manywarnings: drop -Wunsuffixed-float-constants
[gnulib.git] / ChangeLog
1 2011-11-29  Eric Blake  <eblake@redhat.com>
2
3         manywarnings: drop -Wunsuffixed-float-constants
4         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5         '1.0D', which is the only way to silence this warning for 'double'.
6
7 2011-11-29  Jim Meyering  <meyering@redhat.com>
8
9         hash: mark compute_bucket_size with the pure attribute
10         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
11
12         quotearg, propername: correct pragma guard expression
13         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
14         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
15
16 2011-11-28  Jim Meyering  <meyering@redhat.com>
17
18         propername: do not mark proper_name with the const attribute
19         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
20         since it examines data pointed to by its parameter.
21         * lib/propername.c (proper_name): Instead, add a pragma to suppress
22         the suggestion from -Wsuggest-attribute=const.
23
24         propername: mark one more function as const
25         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
26
27 2011-11-27  Jim Meyering  <meyering@redhat.com>
28
29         mark functions with const and pure attributes
30
31         Mark functions per suggestions from gcc-4.6 when using these options:
32         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
33         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
34         Follow these guidelines: when possible, apply the attribute to
35         an extern declaration, not to its definition.  Apply it to the
36         definition only when the definition is static.
37         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
38         * lib/argv-iter.h (argv_iter_n_args): Likewise.
39         * lib/base64.h (isbase64): Likewise.
40         * lib/basename-lgpl.c (last_component, base_len): Likewise.
41         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
42         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
43         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
44         (c_tolower, c_toupper): Likewise.
45         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
46         * lib/chdir-long.c (find_non_slash): Likewise.
47         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
48         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
49         * lib/file-type.h (file_type): Likewise.
50         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
51         * lib/filevercmp.c (verrevcmp): Likewise.
52         * lib/freadahead.h (freadahead): Likewise.
53         * lib/fts.c (fts_maxarglen): Likewise.
54         * lib/hash-pjw.h (hash_pjw): Likewise.
55         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
56         * lib/hash.c (is_prime, next_prime): Likewise.
57         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
58         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
59         (hash_table_ok, hash_get_first, hash_string): Likewise.
60         (compute_bucket_size): Likewise.
61         * lib/i-ring.h (i_ring_empty): Likewise.
62         * lib/isnan.c (isnanl): Likewise.
63         * lib/math.h (isnanl, rpl_isnanl): Likewise.
64         * lib/memcasecmp.h (memcasecmp): Likewise.
65         * lib/memchr2.h (memchr2): Likewise.
66         * lib/memcmp2.h (memcmp2): Likewise.
67         * lib/parse-datetime.y (lookup_zone): Likewise.
68         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
69         [!WINDOWS_SOCKETS]: Likewise.
70         * lib/strnlen1.h (strnlen1): Likewise.
71         * lib/uniwidth.in.h (uc_width): Likewise.
72         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
73         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
74         (quoting_options_from_style): Add a comment.
75         * lib/propername.h (proper_name): Add a comment.
76
77 2011-11-27  Bruno Haible  <bruno@clisp.org>
78
79         Remove unused macros from !_LIBC code in glibc-borrowed files.
80         * lib/fnmatch.c (STRCOLL): Remove macro.
81         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
82         * lib/glob.c (__stat, __readdir64): Remove macros.
83         * lib/tempname.c (__open64, __xstat64): Remove macros.
84         Suggested by Paul Eggert.
85
86 2011-11-27  Bruno Haible  <bruno@clisp.org>
87
88         getcwd: Fix link error on MSVC 9.
89         * modules/getcwd (Depends-on): Add readdir, rewinddir.
90
91 2011-11-27  Bruno Haible  <bruno@clisp.org>
92
93         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
94         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
95         HAVE_OPENDIR is 0.
96         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
97         HAVE_CLOSEDIR is 0.
98         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
99         is 0.
100         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
101
102 2011-11-27  Bruno Haible  <bruno@clisp.org>
103
104         getcwd: Fix bug from 2011-08-17.
105         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
106         platforms that need it.
107         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
108         code of 4 to be a failure, not a success. This ensures that
109         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
110
111 2011-11-27  Bruno Haible  <bruno@clisp.org>
112
113         binary-io tests: Avoid test failure on mingw when libtool is used.
114         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
115         Don't verify the size of t-bin-out1.tmp here.
116         * tests/test-binary-io.sh: Verify it here.
117         Reported by Simon Josefsson.
118
119 2011-11-26  Bruno Haible  <bruno@clisp.org>
120
121         Fix conflict between two instantiations of module 'unistd'.
122         * gnulib-tool (func_emit_autoconf_snippet): Substitute
123         ${include_guard_prefix} also in the autoconf snippet.
124         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
126         GNULIB_UNISTD_H_GETOPT.
127         * modules/getopt-posix (configure.ac): Set the
128         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
129         * modules/getopt-gnu (configure.ac): Likewise.
130         * modules/unistd (Makefile.am): Change the substitution value of
131         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
132         Reported by Simon Josefsson.
133
134 2011-11-25  Bruno Haible  <bruno@clisp.org>
135
136         pagealign_alloc: Doc and comments.
137         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
138         module.
139         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
140
141 2011-11-25  Jim Meyering  <meyering@redhat.com>
142
143         test-update-copyright.sh: avoid false-positive failure
144         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
145         around false positive failure on Cygwin/Windows.  The latter was
146         matching erroneously-created files with names like
147         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
148
149 2011-11-25  Simon Josefsson  <simon@josefsson.org>
150
151         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
152         * m4/valgrind-tests.m4: Check that the parameters that will be
153         used works, not just a subset of them.  Reported by Bruno Haible
154         <bruno@clisp.org>.
155
156 2011-11-24  Jim Meyering  <meyering@redhat.com>
157
158         test-stdalign.c: comment out long double tests
159         * tests/test-stdalign.c: Don't try to reduce alignment of long double
160         variables.  That provokes errors like this from gcc-4.7.0 20111124:
161         error: '_Alignas' specifiers cannot reduce alignment of \
162         'static_longdouble_alignas'.
163
164 2011-11-22  Jim Meyering  <meyering@redhat.com>
165
166         init.sh: make "compare /dev/null FILE" output more readable
167         * tests/init.sh (compare_): Document the preferred order of arguments.
168         (emit_diff_u_header_): New function.
169         (compare_dev_null_): Emit a simulated diff, rather than just the
170         contents of the unexpected file.  Suggestion from Bruno Haible.
171
172 2011-11-21  Jim Meyering  <meyering@redhat.com>
173             Eric Blake  <eblake@redhat.com>
174
175         init.sh: work around OSF/1 5.1's mishandling of /dev/null
176         * tests/init.sh: Make our compare function slightly more portable.
177         Reported by Bruno Haible in
178         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
179
180 2011-11-21  Simon Josefsson  <simon@josefsson.org>
181
182         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
183         before using it, in code that ends up in config.h.
184
185 2011-11-20  Bruno Haible  <bruno@clisp.org>
186
187         getcwd: Work around getcwd bug on AIX 5..7.
188         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
189         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
190         Use a different value for gl_cv_func_getcwd_path_max. Move the
191         definition of HAVE_PARTLY_WORKING_GETCWD from here...
192         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
193         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
194         Define HAVE_MINIMALLY_WORKING_GETCWD.
195         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
196         where it is not even minimally working, that is, on AIX.
197         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
198         m4/getcwd-path-max.m4.
199         (main): Update exit code computation.
200         * doc/posix-functions/getcwd.texi: Mention list of platforms where
201         getcwd does not handle long file names.
202
203 2011-11-20  Bruno Haible  <bruno@clisp.org>
204
205         getcwd: Fix bug from 2009-09-10.
206         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
207         like "no".
208
209 2011-11-20  Simon Josefsson  <simon@josefsson.org>
210
211         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
212
213 2011-11-20  Bruno Haible  <bruno@clisp.org>
214
215         fma tests: Avoid shadowing local variables.
216         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
217         expected.
218
219 2011-11-20  Bruno Haible  <bruno@clisp.org>
220
221         copysignf tests: Fix.
222         * tests/test-copysignf.c: Fix signature check.
223
224 2011-11-20  Bruno Haible  <bruno@clisp.org>
225
226         fma: Remove unused code.
227         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
228         unused macros.
229
230 2011-11-20  Bruno Haible  <bruno@clisp.org>
231
232         sethostname: Fix doc about AIX.
233         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
234         sethostname; it has it.
235
236         sethostname: Mention more portability problems.
237         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
238         problem.
239         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
240
241 2011-11-19  Bruno Haible  <bruno@clisp.org>
242
243         Depend on module fcntl-h when AT_FDCWD is used.
244         * modules/utimens (Depends-on): Add fcntl-h.
245         * modules/areadlinkat (Depends-on): Likewise.
246         * modules/areadlinkat-with-size (Depends-on): Likewise.
247         * modules/faccessat (Depends-on): Likewise.
248         * modules/fchmodat (Depends-on): Likewise.
249         * modules/fchownat (Depends-on): Likewise.
250         * modules/getcwd (Depends-on): Likewise.
251         * modules/mkdirat (Depends-on): Likewise.
252         * modules/mkfifoat (Depends-on): Likewise.
253         * modules/readlinkat (Depends-on): Likewise.
254         * modules/symlinkat (Depends-on): Likewise.
255         * modules/dup2-tests (Depends-on): Likewise.
256         * modules/fdutimensat-tests (Depends-on): Likewise.
257         * modules/futimens-tests (Depends-on): Likewise.
258
259 2011-11-19  Bruno Haible  <bruno@clisp.org>
260
261         euidaccess: Update a comment.
262         * lib/euidaccess.c: Update comment about platforms with faccessat.
263
264 2011-11-19  Bruno Haible  <bruno@clisp.org>
265
266         openat: Fix file list.
267         * modules/openat (Files): Remove lib/at-func.c.
268
269 2011-11-19  Bruno Haible  <bruno@clisp.org>
270
271         fstatat: Simplify.
272         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
273         gnulib should define rpl_fstatat, there is a
274         "#define fstatat rpl_fstatat" in <sys/stat.h>.
275
276 2011-11-19  Bruno Haible  <bruno@clisp.org>
277
278         Ensure 'inline' can be used in tests/test-utimens-common.h.
279         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
280         * modules/futimens-tests (configure.ac): Likewise.
281         * modules/utimens-tests (configure.ac): Likewise.
282         * modules/utimensat-tests (configure.ac): Likewise.
283
284 2011-11-19  Simon Josefsson  <simon@josefsson.org>
285
286         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
287         not hash_insert0.
288         (hash_insert_if_absent): Doc fix.
289
290 2011-11-19  Simon Josefsson  <simon@josefsson.org>
291
292         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
293
294 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
295
296         test-getcwd: disambiguate exit status
297         * tests/test-getcwd.c (test_long_name): Return 0..7.
298         (main): Exit with an unambiguous exit status.  The old
299         code yielded a mysterious mixture of two failure codes.
300
301         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
302         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
303         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
304         rpl_fstatat or fstatat.  This should fix the other problem
305         reported by Kai Habel in
306         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
307         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
308         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
309         and I reproduced it on a Solaris 8 host we still have in production.
310
311 2011-11-18  Jim Meyering  <meyering@redhat.com>
312
313         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
314         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
315         Add a sentence to the comment.
316         (hash_insert0): New function that simply calls hash_insert_if_absent.
317         * lib/hash.h (hash_insert_if_absent): Declare it.
318         (hash_insert0): Add deprecation attribute.
319         (_GL_ATTRIBUTE_DEPRECATED): Define.
320         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
321         not hash_insert0.
322         * NEWS: Mention it, even though it's not really an incompatible change.
323
324 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
325
326         openat: avoid compilation failure due to lack of <errno.h> inclusion
327         * lib/openat.c: Include <errno.h>.
328
329 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
330
331         * modules/getcwd (Depends-on): Add fdopendir.
332         This fixes one of the two problems reported by Kai Habel in
333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
334
335         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
336         stdalign problem reported by Ian Beckwith in
337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
338         * modules/crypto/gc-arcfour (Depends-on):
339         Depend conditionally on crypto/arcfour.
340         * modules/crypto/gc-arctwo (Depends-on):
341         Depend conditionally on crypto/arctwo.
342         * modules/crypto/gc-des (Depends-on):
343         Depend conditionally on crypto/des.
344         * modules/crypto/gc-hmac-md5 (Depends-on):
345         Depend conditionally on crypto/hmac-md5.
346         * modules/crypto/gc-hmac-sha1 (Depends-on):
347         Depend conditionally on crypto/hmac-sha1.
348         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
349         * modules/crypto/gc-md4 (Depends-on):
350         Depend conditionally on crypto/md4.
351         * modules/crypto/gc-md5 (Depends-on):
352         Depend conditionally on crypto/md5.
353         * modules/crypto/gc-rijndael (Depends-on):
354         Depend conditionally on crypto/rijndael.
355         * modules/crypto/gc-sha1 (Depends-on):
356         Depend conditionally on crypto/sha1.
357         * modules/crypto/gc-arcfour:
358         * modules/crypto/gc-arctwo:
359         * modules/crypto/gc-des:
360         * modules/crypto/gc-hmac-md5:
361         * modules/crypto/gc-hmac-sha1:
362         * modules/crypto/gc-md2:
363         * modules/crypto/gc-md4:
364         * modules/crypto/gc-md5:
365         * modules/crypto/gc-rijndael:
366         * modules/crypto/gc-sha1:
367         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
368         now that the conditional dependencies do the work for us.
369
370 2011-11-17  Jim Meyering  <meyering@redhat.com>
371
372         tests: factor st_ctime-comparison out of two headers
373         * tests/test-utimens-common.h (ctime_compare): Define.
374         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
375         * tests/test-lutimens.h (test_lutimens): Likewise.
376         * tests/test-utimens.h (test_utimens): Likewise.
377
378         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
379         Invoke the test program via an init.sh-using wrapper.
380         * tests/test-getcwd.sh: New file.
381         * modules/getcwd-tests (Files): Add it.
382         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
383
384 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
385
386         gitlog-to-changelog: support multi-author commits.
387         The FSF cares about keeping track of all authors of patches to its
388         projects, but Git doesn't provide obvious support for multi-author
389         changesets. Consensus seems to be forming around the use of extra
390         Signed-off-by inspired lines in the log message formatted as
391         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
392         multi-author commits between version control systems.
393         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
394         log message and output in standard ChangeLog multi-author format.
395         Reported by Peter Rosin <peda@lysator.liu.se>
396
397 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
398             Bruno Haible  <bruno@clisp.org>
399
400         Fix some modules' file list.
401         * modules/fstatat (Files): Add m4/lstat.m4.
402         * modules/openat (Files): Likewise.
403         * modules/unlinkat (Files): Likewise.
404
405 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
406
407         maint.mk: fix tight-scope.mk generation in VPATH builds.
408         * top/maint.mk (tight-scope.mk): Make sure to prefix file
409         reference with $(srcdir) so that the file is found correctly even
410         when running `make syntax-check' in a VPATH build.
411
412 2011-11-13  Bruno Haible  <bruno@clisp.org>
413             Jim Meyering  <meyering@redhat.com>
414
415         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
416         * tests/init.sh (compare): Remove "No differences encountered" or
417         synonymous output from the 'diff' program.
418
419 2011-11-13  Bruno Haible  <bruno@clisp.org>
420
421         Makefile: Tweak indentation.
422         * Makefile: Use tab as first character in every line that contains rule
423         commands.
424
425 2011-11-13  Bruno Haible  <bruno@clisp.org>
426
427         Syntax check for copyright statements.
428         * check-copyright: New file.
429         * Makefile (sc_check_copyright): New rule.
430
431 2011-11-13  Simon Josefsson  <simon@josefsson.org>
432
433         * build-aux/git-version-gen: Add --prefix to configure the tag
434         match string.
435
436 2011-11-13  Simon Josefsson  <simon@josefsson.org>
437
438         * build-aux/git-version-gen: Add --help and --version.
439
440 2011-11-12  Jim Meyering  <meyering@redhat.com>
441
442         revamp the other test-exclude?.sh scripts to use init.sh, too
443         * tests/test-exclude1.sh: Use init.sh.
444         * tests/test-exclude2.sh: Likewise.
445         * tests/test-exclude3.sh: Likewise.
446         * tests/test-exclude4.sh: Likewise.
447         * tests/test-exclude5.sh: Likewise.
448         * tests/test-exclude6.sh: Likewise.
449         * tests/test-exclude7.sh: Likewise.
450         * tests/test-exclude8.sh: Likewise.
451         * modules/exclude-tests (Files): List init.sh.
452
453         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
454         These shell scripts ignored failure of the binary test-exclude,
455         so making the latter return 77 didn't cause them to be skipped.
456         * tests/test-exclude5.sh: Exit with test-exclude's error status
457         when that program fails.  Revamp to use init.sh.
458         * tests/test-exclude2.sh: Likewise.
459
460         test-exclude: fix a typo
461         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
462
463 2011-11-11  Bruno Haible  <bruno@clisp.org>
464
465         obstack: Fix compilation error on MSVC 9.
466         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
467
468 2011-11-11  Jim Meyering  <meyering@redhat.com>
469
470         test-exclude: skip tests rather than failing on deficient systems
471         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
472         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
473         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
474         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
475
476 2011-11-10  Bruno Haible  <bruno@clisp.org>
477
478         ptsname_r test: Avoid gcc warning on glibc systems.
479         * tests/test-ptsname_r.c (null_ptr): New function.
480         (test_errors): Use it.
481
482 2011-11-10  Bruno Haible  <bruno@clisp.org>
483
484         ptsname_r: Avoid compilation error on OSF/1 5.1.
485         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
486         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
487         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
488         function is not declared or incompatibly declared.
489         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
490         * modules/ptsname_r (Depends-on, configure.ac): Update.
491         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
492
493 2011-11-10  Bruno Haible  <bruno@clisp.org>
494
495         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
496         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
497         When cross-compiling, guess yes on all platforms except AIX.
498         Reported by Ludovic Courtès <ludo@gnu.org>.
499
500 2011-11-09  Bruno Haible  <bruno@clisp.org>
501
502         ptsname_r tests: Fix bugs.
503         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
504         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
505
506 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
507
508         fstatat: work with cross-compilation
509         Problem reported by Ludovic Courtès in
510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
511         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
512         "cross-compiling" and assume the bug is present.  Replace
513         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
514         an inverted sense, to be more conservative about our assumptions.
515         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
516
517 2011-11-09  Bruno Haible  <bruno@clisp.org>
518
519         Improve MODULES.html output.
520         * modules/mkfifoat (Description): Use the word "function".
521         * modules/readlinkat (Description): Likewise.
522         * modules/symlinkat (Description): Likewise.
523
524 2011-11-09  Eric Blake  <eblake@redhat.com>
525
526         ptsname_r-tests: new test module
527         * modules/ptsname_r-tests: New module.
528         * tests/test-ptsname_r.c: New file.
529
530         ptsname_r: new module
531         * modules/ptsname_r: New module.
532         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
533         * lib/ptsname.c (__ptsname_r): Split...
534         * lib/ptsname_r.c: ...into new file.
535         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
536         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
537         * modules/stdlib (Makefile.am): Substitute witnesses.
538         * lib/stdlib.in.h (ptsname_r): Declare it.
539         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
540         * MODULES.html.sh (Misc): Likewise.
541         * modules/ptsname (Depends-on): Alter dependency.
542         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
543
544 2011-11-09  Jim Meyering  <meyering@redhat.com>
545
546         announce-gen: be more concise when there's only one URL+tarball
547         * build-aux/announce-gen (get_tool_versions): When you distribute
548         only one type of tarball, combine the first two "Here are..."
549         sections and make the key-checking grammar independent of
550         how many tarballs there are.
551
552 2011-11-09  Eric Blake  <eblake@redhat.com>
553
554         openpty: provide a stub on mingw
555         * lib/pty.in.h (includes): Provide forward declarations.
556         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
557
558         raise: fix mingw handling of SIGPIPE
559         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
560
561 2011-11-08  Bruno Haible  <bruno@clisp.org>
562
563         More conditional dependencies.
564         * modules/faccessat (Depends-on): Add conditions.
565         * modules/fchmodat (Depends-on): Likewise.
566         * modules/fchownat (Depends-on): Likewise.
567         * modules/fstatat (Depends-on): Likewise.
568         * modules/mkfifoat (Depends-on): Likewise.
569         * modules/readlinkat (Depends-on): Likewise.
570         * modules/symlinkat (Depends-on): Likewise.
571         * modules/unlinkat (Depends-on): Likewise.
572         * modules/utimensat (Depends-on): Likewise.
573         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
574         * modules/linkat (Depends-on): Refine the conditions.
575         * modules/renameat (Depends-on): Likewise.
576
577 2011-11-08  Bruno Haible  <bruno@clisp.org>
578
579         faccessat: Move AC_LIBOBJ invocation to module description.
580         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
581         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
582         invocation from here...
583         * modules/faccessat (configure.ac): ... to here. Invoke
584         gl_PREREQ_FACCESSAT.
585
586 2011-11-08  Bruno Haible  <bruno@clisp.org>
587
588         faccessat: Simplify autoconf macro.
589         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
590         gl_FUNC_EUIDACCESS.
591
592 2011-11-08  Bruno Haible  <bruno@clisp.org>
593
594         renameat: Fix dependencies.
595         * modules/renameat (Depends-on): Add stdbool.
596
597 2011-11-08  Bruno Haible  <bruno@clisp.org>
598
599         mkfifoat: Fix module description.
600         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
601         not gl_UNISTD_MODULE_INDICATOR.
602
603 2011-11-08  Bruno Haible  <bruno@clisp.org>
604
605         fstatat: Remove unused dependency.
606         * modules/fstatat (Depends-on): Remove fstat.
607
608 2011-11-08  Simon Josefsson  <simon@josefsson.org>
609
610         GNUmakefile: behave when Makefile is missing.
611         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
612
613 2011-11-08  Bruno Haible  <bruno@clisp.org>
614
615         openat: Conditionalize dependencies.
616         * lib/openat.c: Reduce the scope of some #includes.
617         * modules/openat (Depends-on): Add conditions.
618
619 2011-11-07  Jim Meyering  <meyering@redhat.com>
620
621         maint.mk: extract GPG key ID without using a temporary file
622         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
623         without using a temporary file.  Based on a suggestion from Werner Koch
624         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
625
626 2011-11-07  Eric Blake  <eblake@redhat.com>
627
628         grantpt: fix typo
629         * lib/stdlib.in.h (grantpt): Check correct function.
630
631         maint.mk: silence new syntax check
632         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
633
634 2011-11-06  Bruno Haible  <bruno@clisp.org>
635
636         Doc about floating-point and math API.
637         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
638         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
639
640 2011-11-06  Bruno Haible  <bruno@clisp.org>
641
642         stdalign tests: Skip the test when compiled by Sun C.
643         * tests/test-stdalign.c (main): Skip the test on Sun C.
644
645 2011-11-06  Bruno Haible  <bruno@clisp.org>
646
647         ansi-c++-opt: Complete the 2011-06-05 change.
648         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
649         does not support namespaces, set the variable to "no", not to ":".
650
651 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
652
653         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
654
655 2011-11-06  Bruno Haible  <bruno@clisp.org>
656
657         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
658         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
659         (minus_zerol) [HP-UX]: New macro.
660         (unary_minus) [HP-UX]: New function.
661         (copysignl) [HP-UX]: Use unary_minus function.
662
663 2011-11-06  Bruno Haible  <bruno@clisp.org>
664
665         ldexp, ldexpf, ldexpl: Enhance tests.
666         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
667         and tests/test-ldexpl.c.
668         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
669         LDEXP, MIN_EXP, MAX_EXP): New macros.
670         Include test-ldexp.h.
671         (main): Just call test_function.
672         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
673         infinity.h, nan.h.
674         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
675         MAX_EXP): New macros.
676         Include test-ldexp.h.
677         (x, y): Remove variables.
678         (main): Just call test_function.
679         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
680         infinity.h, nan.h.
681         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
682         MAX_EXP): New macros.
683         Include test-ldexp.h.
684         (x, y): Remove variables.
685         (main): Just call test_function.
686         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
687         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
688         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
689         (Depends-on): Add isnand-nolibm, signbit, float.
690         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
691         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
692         (Depends-on): Add isnanf-nolibm, signbit, float.
693
694 2011-11-06  Bruno Haible  <bruno@clisp.org>
695
696         math tests: Cosmetics.
697         * tests/test-math-c++.cc: Reorder declarations.
698
699 2011-11-05  Bruno Haible  <bruno@clisp.org>
700
701         fma*: Simplify test.
702         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
703         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
704
705         Tests for module 'fmal'.
706         * modules/fmal-tests: New file.
707         * tests/test-fmal1.c: New file.
708         * tests/test-fmal2.c: New file.
709
710         New module 'fmal'.
711         * lib/math.in.h (fmal): New declaration.
712         * lib/fmal.c: New file.
713         * m4/fmal.m4: New file.
714         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
716         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
717         REPLACE_FMAL.
718         * modules/fmal: New file.
719         * doc/posix-functions/fmal.texi: Mention the new module and the various
720         bugs.
721
722         Tests for module 'fmaf'.
723         * modules/fmaf-tests: New file.
724         * tests/test-fmaf1.c: New file.
725         * tests/test-fmaf2.c: New file.
726
727         New module 'fmaf'.
728         * lib/math.in.h (fmaf): New declaration.
729         * lib/fmaf.c: New file.
730         * m4/fmaf.m4: New file.
731         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
732         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
733         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
734         REPLACE_FMAF.
735         * modules/fmaf: New file.
736         * doc/posix-functions/fmaf.texi: Mention the new module and the various
737         bugs.
738
739         Tests for module 'fma'.
740         * modules/fma-tests: New file.
741         * tests/test-fma1.c: New file.
742         * tests/test-fma1.h: New file.
743         * tests/test-fma2.c: New file.
744         * tests/test-fma2.h: New file.
745
746         New module 'fma'.
747         * lib/math.in.h (fma): New declaration.
748         * lib/fma.c: New file.
749         * m4/fma.m4: New file.
750         * m4/fegetround.m4: New file.
751         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
753         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
754         REPLACE_FMA.
755         * modules/fma: New file.
756         * doc/posix-functions/fma.texi: Mention the new module and the various
757         bugs.
758
759         Extend gl_MATHFUNC.
760         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
761         Support 'void' as argument type.
762         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
763
764 2011-11-05  Jim Meyering  <meyering@redhat.com>
765
766         maint.mk: also prohibit inclusion of dirent.h without use
767         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
768
769 2011-11-05  Bruno Haible  <bruno@clisp.org>
770
771         ldexpl tests: Avoid test failure on MSVC 9.
772         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
773         value. Needed in order to enforce the conversion from a value greater
774         than LDBL_MAX to Infinity.
775
776 2011-11-05  Bruno Haible  <bruno@clisp.org>
777
778         New modules 'at-internal', 'openat-h', split off from module 'openat'.
779         * modules/at-internal: New file, extracted from modules/openat.
780         * modules/openat-h: New file.
781         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
782         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
783         * modules/openat (Description): Add reference to POSIX function.
784         (Files): Remove lib/openat.h, lib/openat-proc.c.
785         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
786         intprops, unistd.
787         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
788         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
789         gl_FCNTL_MODULE_INDICATOR.
790         (Include): Remove unistd.h, openat.h.
791         * modules/areadlinkat (Files): Add lib/at-func.c.
792         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
793         openat-die, openat-h, save-cwd.
794         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
795         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
796         openat-die, openat-h, save-cwd, unistd.
797         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
798         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
799         openat-h, save-cwd. Remove fcntl-h, openat.
800         * modules/fchmodat (Files): Remove lib/openat.h.
801         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
802         openat, stdbool, unistd.
803         * modules/fchownat (Files): Remove lib/openat.h.
804         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
805         openat, stdbool, sys_stat.
806         * modules/fdopendir (Files): Remove lib/openat-priv.h,
807         lib/openat-proc.c.
808         (Depends-on): Add at-internal.
809         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
810         * modules/fstatat (Files): Remove lib/openat.h.
811         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
812         stdbool, unistd.
813         * modules/fts (Depends-on): Add openat-h.
814         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
815         openat.
816         * modules/mkdirat (Files): Remove lib/openat.h.
817         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
818         openat, stdbool, sys_stat.
819         * modules/mkfifoat (Files): Add lib/at-func.c.
820         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
821         openat-h, save-cwd. Remove fcntl-h, openat.
822         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
823         * modules/readlinkat (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/renameat (Depends-on): Add at-internal, openat-h. Remove
827         openat.
828         * modules/selinux-at (Files): Add lib/at-func.c.
829         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
830         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
831         * modules/symlinkat (Files): Add lib/at-func.c.
832         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
833         openat-h, save-cwd. Remove fcntl-h, openat.
834         * modules/unlinkat (Files): Remove lib/openat.h.
835         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
836         stdbool.
837         * modules/utimensat (Files): Add lib/at-func.c.
838         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
839         openat-die, openat-h, save-cwd.
840         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
841         * modules/fdutimensat-tests (Depends-on): Add openat.
842         * modules/fstatat-tests (Depends-on): Add openat-h.
843         * modules/readlinkat-tests (Depends-on): Add openat.
844         * modules/symlinkat-tests (Depends-on): Add openat.
845
846 2011-11-05  Bruno Haible  <bruno@clisp.org>
847
848         openat: Include <stdbool.h>.
849         * lib/openat.c: Include <stdbool.h>.
850
851 2011-11-04  Bruno Haible  <bruno@clisp.org>
852
853         fchownat, renameat, unlinkat: Fix dependencies.
854         * modules/fchownat (Depends-on): Add fstatat.
855         * modules/renameat (Depends-on): Likewise.
856         * modules/unlinkat (Depends-on): Likewise.
857
858 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
859
860         openat: remove direct dependency on dirent
861         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
862         and hasn't been needed ever since fdopendir was split into its own
863         module on 2009-08-31.
864         * modules/openat (Depends-on): Remove dirent.
865
866 2011-11-04  Bruno Haible  <bruno@clisp.org>
867
868         renameat: Optimize code size.
869         * modules/renameat (configure.ac): Don't compile at-func2.c if
870         REPLACE_RENAMEAT is 1.
871
872 2011-11-04  Bruno Haible  <bruno@clisp.org>
873
874         openat tests: Fix file list.
875         * modules/openat-tests (Files): Add tests/test-open.h.
876
877 2011-11-04  Bruno Haible  <bruno@clisp.org>
878
879         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
880         * modules/fchmodat (Depends-on): Add openat-die.
881         * modules/fchownat (Depends-on): Likewise.
882         * modules/linkat (Depends-on): Likewise.
883         * modules/renameat (Depends-on): Likewise.
884         * modules/openat (Depends-on): Add dirent.
885
886 2011-11-04  Jim Meyering  <meyering@redhat.com>
887
888         at-func*.c: fix comments
889         * lib/at-func2.c: Correct/improve first-line comment.
890         * lib/at-func.c: Correct grammar in first-line comment.
891
892 2011-11-04  Bruno Haible  <bruno@clisp.org>
893
894         New module 'mkdirat', split off from module 'openat'.
895         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
896         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
897         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
898         * modules/mkdirat: New file, extracted from modules/openat.
899         * modules/openat (Files): Remove lib/mkdirat.c.
900         (Depends-on): Remove mkdir.
901         (configure.ac): Remove AC_LIBOBJ of mkdirat.
902         (Include): Remove <sys/stat.h>.
903         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
904         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
905         tests/test-mkdir.h.
906         (Depends-on): Remove ignore-value.
907         (Makefile.am): Remove rules for test-mkdirat.
908         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
909         of module 'openat'.
910         * NEWS: Mention the change.
911
912 2011-11-04  Bruno Haible  <bruno@clisp.org>
913
914         closedir: Avoid warning on mingw.
915         * lib/closedir.c: Include <unistd.h>.
916
917 2011-11-04  Bruno Haible  <bruno@clisp.org>
918
919         New module 'fstatat', split off from module 'openat'.
920         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
921         defined.
922         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
923         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
924         gl_FUNC_FSTATAT.
925         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
926         * modules/fstatat: New file, extracted from modules/openat.
927         * modules/openat (Files): Remove lib/fstatat.c.
928         (Depends-on): Remove lstat.
929         (configure.ac): Remove AC_LIBOBJ of fstatat.
930         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
931         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
932         tests/test-lstat.h, tests/test-stat.h.
933         (Depends-on): Remove getcwd-lgpl.
934         (Makefile.am): Remove rules for test-fstatat.
935         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
936         of module 'openat'.
937         * NEWS: Mention the change.
938         * modules/getcwd (Depends-on): Add fstatat.
939         * modules/linkat (Depends-on): Likewise.
940         * modules/mkfifoat-tests (Depends-on): Likewise.
941         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
942
943 2011-11-03  Bruno Haible  <bruno@clisp.org>
944
945         New module 'unlinkat', split off from module 'openat'.
946         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
947         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
948         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
949         * modules/unlinkat: New file, extracted from modules/openat. Correct
950         the dependency conditions.
951         * modules/openat (Files): Remove lib/unlinkat.c.
952         (Depends-on): Remove rmdir, unlink.
953         (configure.ac): Remove AC_LIBOBJ of unlinkat.
954         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
955         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
956         tests/test-rmdir.h, tests/test-unlink.h.
957         (Depends-on): Remove unlinkdir.
958         (Makefile.am): Remove rules for test-unlinkat.
959         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
960         of module 'openat'.
961         * NEWS: Mention the change.
962         * modules/linkat-tests (Depends-on): Add unlinkat.
963         * modules/mkfifoat-tests (Depends-on): Likewise.
964         * modules/readlinkat-tests (Depends-on): Likewise.
965
966 2011-11-02  Bruno Haible  <bruno@clisp.org>
967
968         New module 'fchmodat', split off from module 'openat'.
969         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
970         defined.
971         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
972         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
973         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
974         * modules/fchmodat: New file, extracted from modules/openat.
975         * modules/openat (Files): Remove lib/fchmodat.c.
976         (configure.ac): Remove AC_LIBOBJ of fchmodat.
977         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
978         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
979         (Makefile.am): Remove rules for test-fchmodat.
980         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
981         of module 'openat'.
982         * NEWS: Mention the change.
983
984 2011-11-02  Jim Meyering  <meyering@redhat.com>
985
986         putenv: indent #definition of "environ" to placate cppi
987         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
988
989         gitlog-to-changelog: provide a ChangeLog-repair mechanism
990         Git logs are often treated as immutable, because editing them
991         changes the SHA1 checksums of all descendants.  Thus, errors in
992         git logs tend to stay there forever.  However, when we generate
993         a ChangeLog file -- typically for distribution -- from that git log,
994         we can actually make corrections in the generated file.  The key
995         lies in recording in machine-readable/applicable form the desired
996         corrections.  See --help for description and an example.
997         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
998         (usage): Describe it; alphabetize option descriptions.
999         (main): Honor the new option, carefully.
1000
1001 2011-11-01  Jim Meyering  <meyering@redhat.com>
1002
1003         gitlog-to-changelog: avoid an infloop
1004         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1005         that ends up being empty.
1006
1007 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1008
1009         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1010         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1011         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1012         contains (possibly-quoted) backslashes.  This should avoid
1013         all-too-common shell bugs if COMPLICATED contains backslashes in
1014         the "wrong" places.  Reported by David Evans in
1015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1016         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1017         because we want ASCII ranges.  Is there some reason we don't use
1018         the C locale everywhere in this script?
1019         (func_module, top level): Avoid unwanted pathname expansion when
1020         $repo_url_prefix or $repo_url_suffix_repl contain shell
1021         metacharacters like '?' and '*'.
1022
1023 2011-11-01  Bruno Haible  <bruno@clisp.org>
1024
1025         fchownat: Improve description.
1026         * modules/fchownat (Description): Add link to function.
1027
1028 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1029
1030         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1031         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1032         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1033         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1034
1035 2011-11-01  Bruno Haible  <bruno@clisp.org>
1036
1037         alignof: Avoid collision with stdalign module.
1038         * lib/alignof.h (alignof): Remove macro.
1039         * NEWS: Mention the change.
1040         Reported by Paul Eggert.
1041
1042 2011-11-01  Bruno Haible  <bruno@clisp.org>
1043
1044         New module 'fchownat', split off from module 'openat'.
1045         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1046         defined.
1047         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1048         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1049         invoke gl_FUNC_FCHOWNAT.
1050         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1051         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1052         * modules/fchownat: New file, extracted from modules/openat.
1053         * modules/openat (Files): Remove lib/fchownat.c.
1054         (Depends-on): Remove lchown.
1055         (configure.ac): Remove AC_LIBOBJ of fchownat.
1056         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1057         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1058         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1059         (Depends-on): Remove mgetgroups, usleep, stat-time.
1060         (configure.ac): Remove test for getegid.
1061         (Makefile.am): Remove rules for test-fchownat.
1062         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1063         of module 'openat'.
1064         * NEWS: Mention the change.
1065
1066 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1067
1068         stdalign: port better to MSVC and to Sun C 5.11
1069         This fixes some of the problems reported by Bruno Haible in
1070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1071         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1072         shortcomings of MSVC and of Sun C 5.11.
1073         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1074         around __declspec arg.
1075         * modules/stdalign-tests (Files): Add tests/macros.h.
1076         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1077         Include macros.h, for ASSERT.
1078         (DECLARE_ALIGNED): Remove.
1079         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1080         to catch bug), and to 1 if not (simplifies the rest of the code).
1081         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1082         (CHECK_AUTO): Remove.
1083         (CHECK_ALIGNED): Check only the alignment of the static vars,
1084         since auto var alignment isn't supported by Sun C 5.11.
1085         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1086         ASSERT failures are easier to diagnose.
1087
1088 2011-10-31  Bruno Haible  <bruno@clisp.org>
1089
1090         doc about some IRIX 5.3 problems.
1091         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1092         on IRIX 5.3.
1093         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1094         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1095         5.3.
1096         * doc/posix-functions/grantpt.texi: Likewise.
1097         * doc/posix-functions/unlockpt.texi: Likewise.
1098         * doc/posix-functions/lgamma.texi: Likewise.
1099         * doc/posix-functions/nextafter.texi: Likewise.
1100         * doc/posix-functions/remainder.texi: Likewise.
1101         * doc/posix-functions/select.texi: Mention misplaced declaration on
1102         IRIX 5.3.
1103         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1104
1105 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1106
1107         gitlog-to-changelog: fix git-log invocation.
1108         git-log mishandles date strings before 1970-01-01 UTC, and there is
1109         no use to specify --since=1970-01-01 by default anyway.
1110         * build-aux/gitlog-to-changelog: By default, when no --since option
1111         was given, do not specify explicit --since option to git-log.
1112
1113 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1114
1115         gitlog-to-changelog: new option --append-dot.
1116         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1117         first non-blank line of each commit message terminated with a dot.
1118
1119 2011-10-30  Bruno Haible  <bruno@clisp.org>
1120
1121         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1122         * lib/ffsl.h: Include <config.h>.
1123         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1124
1125 2011-10-30  Jim Meyering  <meyering@redhat.com>
1126
1127         GNUmakefile: reenable "make syntax-check" for most projects
1128         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1129         build-aux variable", "syntax-check" would do nothing but succeed with
1130         the "No version control files detected..." diagnostic (unless you
1131         happened to override _build-aux via cfg.mk).
1132         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1133         to precede inclusion of maint.mk.  Otherwise, these variables would
1134         be used undefined in any project that does not override the default.
1135
1136 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1137
1138         gitlog-to-changelog: treat a message with only blank lines as empty.
1139         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1140         trailing blank lines before the code that issues a warning about an
1141         empty commit message.
1142
1143 2011-10-30  Jim Meyering  <meyering@redhat.com>
1144
1145         test-parse-datetime.c: avoid new DST-related false positive test failure
1146         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1147         based on the time/date we'll convert, not the current time.
1148         Otherwise, the moment we cross a DST boundary like today's in
1149         Europe, (CEST to CET), that offset ends up being one hour off.
1150
1151 2011-10-27  Bruno Haible  <bruno@clisp.org>
1152
1153         fstat: Tweak documentation.
1154         * modules/fstat (Description): More precise description.
1155
1156 2011-10-27  Bruno Haible  <bruno@clisp.org>
1157
1158         Update documentation regarding 'largefile' module.
1159         * doc/posix-functions/fstat.texi: Tweak wording.
1160         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1161         problems with huge directories and/or small ino_t types.
1162         * doc/posix-functions/readdir.texi: Likewise.
1163         * doc/posix-functions/rewinddir.texi: Likewise.
1164
1165 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1166
1167         maint.mk: don't maintain a second build-aux variable.
1168         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1169         depends on GNUmakefile, which already maintains a cfg.mk
1170         overridable $(_build-aux) for projects with a non-standard
1171         build-aux directory location, although without the $(srcdir)
1172         prefix.  Use that variable consistently instead of introducing a
1173         second one.  Adjust all call sites.
1174
1175 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1176
1177         Add stdalign module and use it in other modules.
1178         This is based on a previous proposal by Bruno Haible
1179         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1180
1181         stdalign: new module
1182         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1183         * modules/stdalign: New files.
1184         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1185         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1186
1187         stdalign-tests: new module
1188         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1189
1190         argp: use stdalign
1191         * lib/argp-parse.c: Include <stdalign.h>.
1192         (alignof): Remove.
1193         * modules/argp (Depends-on): Add stdalign.
1194
1195         crypto libraries: use stdalign
1196         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1197         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1198         Do not include <stdlib.h> twice, in md4.c.
1199         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1200         because we are accessing a pointer's bit-pattern, not a size.
1201         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1202         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1203         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1204         * modules/crypto/sha512: Likewise.
1205
1206         sys_socket: use stdalign, not alignof
1207         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1208         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1209
1210 2011-10-27  Bruno Haible  <bruno@clisp.org>
1211
1212         raise test: Avoid a test failure on Linux/MIPS.
1213         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1214         because 99 is a valid signal on Linux/MIPS.
1215
1216 2011-10-27  Bruno Haible  <bruno@clisp.org>
1217
1218         nonblocking tests: Fix test failure on Linux/MIPS.
1219         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1220         Set to 270000.
1221
1222 2011-10-27  Bruno Haible  <bruno@clisp.org>
1223
1224         utimensat: Work around problem on Linux/hppa.
1225         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1226         values.
1227         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1228
1229 2011-10-25  Jim Meyering  <meyering@redhat.com>
1230
1231         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1232         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1233         after symbols like NULL, size_t, etc.
1234         Reported by Alfred M. Szmidt.
1235
1236         maint.mk: exempt ENODATA from a syntax-check rule
1237         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1238         from the sc_prohibit_always-defined_macros syntax-check rule.
1239         Add a comment.  See this for more details:
1240         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1241
1242 2011-10-23  Jim Meyering  <meyering@redhat.com>
1243
1244         fts: close parent dir FD before returning from post-traversal fts_read
1245         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1246         unlink A, even though an FD open on A remained.  This is suboptimal
1247         (holding a file descriptor open longer than needed), but otherwise not
1248         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1249         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1250         that represents a real problem: it causes the removal of A to fail
1251         with e.g., "rm: cannot remove `A': Device or resource busy"
1252
1253         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1254         directory file descriptors.  After completing the final, FTS_DP,
1255         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1256         cache, but then proceeded to add a new FD to it via the subsequent
1257         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1258         final file descriptor would be closed only via fts_close's call to
1259         fd_ring_clear.  Now, it is usually closed earlier, via the final
1260         FTS_DP-returning fts_read call.
1261         * lib/fts.c (restore_initial_cwd): New function, converted from
1262         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1263         Update callers.
1264         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1265         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1266
1267 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1268             Bruno Haible  <bruno@clisp.org>
1269             Jim Meyering  <jim@meyering.net>
1270
1271         readme-release: improve safety of release prep instructions.
1272         * README-release: Don't git pull all branches when only master
1273         is needed for the release process.
1274         Run make maintainer-clean before changing trees and merging.
1275         Don't try to run ./configure right after git pull in case files
1276         that influence the bootstrap process have changed, move the
1277         ./configure step to after running ./bootstrap.
1278         Don't bootstrap "one last time"... it's the first time!
1279
1280 2011-10-22  Bruno Haible  <bruno@clisp.org>
1281
1282         errno, strerror-override: Support for MSVC 10.
1283         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1284         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1285         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1286         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1287         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1288         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1289         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1290         Assign values compatible with MSVC 10.
1291         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1292         New macros.
1293         (GNULIB_defined_EWINSOCK): New macro.
1294         * lib/strerror-override.c (strerror_override): Update accordingly.
1295         * lib/strerror-override.h: Likewise.
1296         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1297         longer equal to the corresponding errno value.
1298         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1299
1300 2011-10-22  Bruno Haible  <bruno@clisp.org>
1301
1302         perror: Recognize when test program crashes.
1303         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1304         strerror, set gl_cv_func_perror_works to no.
1305         Reported by Daniel Richard G. <skunk@iskunk.org>.
1306
1307         perror: Fix indentation.
1308         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1309
1310 2011-10-22  Bruno Haible  <bruno@clisp.org>
1311
1312         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1313         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1314         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1315         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1316         functions, not as a macro.
1317         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1318         macros.
1319         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1320         absence of macro.
1321         Suggested by Eric Blake.
1322         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1323
1324 2011-10-21  Bruno Haible  <bruno@clisp.org>
1325
1326         relocatable-prog-wrapper: Don't leave object files behind.
1327         * build-aux/install-reloc: Re-synchronize list of .o files to be
1328         removed with list of compilation units.
1329
1330 2011-10-20  Bruno Haible  <bruno@clisp.org>
1331
1332         openpty, posix_openpt: Remove code duplication.
1333         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1334         * lib/openpty.c: Include <stdlib.h>.
1335         (openpty): Use posix_openpt on all platforms except IRIX.
1336         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1337
1338 2011-10-20  Bruno Haible  <bruno@clisp.org>
1339
1340         unlockpt: Detect invalid argument.
1341         * lib/unlockpt.c: Include <fcntl.h>.
1342         (unlockpt): Check whether fd is valid, using fcntl().
1343         * modules/unlockpt (Depends-on): Add fcntl-h.
1344
1345 2011-10-20  Bruno Haible  <bruno@clisp.org>
1346
1347         openpty: Avoid compilation error on AIX 6.1.
1348         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1349
1350 2011-10-20  Bruno Haible  <bruno@clisp.org>
1351
1352         posix_openpt: Support for OpenBSD.
1353         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1354         (posix_openpt) [OpenBSD]: New code.
1355         * lib/grantpt.c: Include <fcntl.h>.
1356         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1357         * modules/grantpt (Depends-on): Add fcntl-h.
1358
1359 2011-10-20  Bruno Haible  <bruno@clisp.org>
1360
1361         posix_openpt test: Coding style.
1362         * tests/test-posix_openpt.c: Use GNU coding style.
1363
1364 2011-10-20  Bruno Haible  <bruno@clisp.org>
1365
1366         grantpt: Support --avoid=pt_chown.
1367         * modules/grantpt (Files): Add lib/pty-private.h.
1368
1369 2011-10-20  Bruno Haible  <bruno@clisp.org>
1370
1371         posix_openpt: Fix autoconf macro.
1372         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1373         unneeded check for _getpty.
1374
1375 2011-10-20  Bruno Haible  <bruno@clisp.org>
1376
1377         openpty: Update comments.
1378         * lib/openpty.c: Add comments about Minix.
1379
1380 2011-10-19  Eric Blake  <eblake@redhat.com>
1381
1382         openpty: relax license
1383         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1384
1385         pt_chown: use configmake to simplify build
1386         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1387
1388         ptsname and others: relax license
1389         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1390         * modules/unlockpt (License): Likewise.
1391         * modules/pt_chown (License): Likewise.
1392         * modules/ptsname (License): Likewise.
1393         * modules/ttyname_r (License): Likewise.
1394
1395 2011-10-19  Jim Meyering  <meyering@redhat.com>
1396
1397         posix_openpt: remove spurious #endif
1398         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1399
1400 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1401
1402         maint.mk: Respect $(build_aux) in web-manual rule.
1403         * top/maint.mk (web-manual): Find gen-announce script in user's
1404         $(build_aux) directory instead of hard-coding 'build-aux'.
1405
1406 2011-10-19  Bruno Haible  <bruno@clisp.org>
1407
1408         posix_openpt: Fix compilation error.
1409         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1410         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1411         Mention the openpty module as an alternative.
1412
1413 2011-10-19  Bruno Haible  <bruno@clisp.org>
1414
1415         Support for old NeXTstep 3.3 frexp().
1416         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1417         execution time of the test to 5 seconds.
1418         Reported by Daniel Richard G. <skunk@iskunk.org>.
1419
1420 2011-10-19  Bruno Haible  <bruno@clisp.org>
1421
1422         Support for old NeXTstep 3.3 sed.
1423         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1424         part, use /.../, not \|...|. Escape periods in the header file name.
1425         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1426         Reported by Daniel Richard G. <skunk@iskunk.org>.
1427
1428 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1429
1430         Support for old NeXTstep 3.3 gcc.
1431         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1432         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1433         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1434         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1435         * lib/regex.h (_Restrict_arr_): Likewise.
1436         * lib/regex_internal.h (re_token_t): Likewise.
1437         * lib/regexec.c (check_node_accept_bytes): Likewise.
1438         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1439
1440 2011-10-18  Eric Blake  <eblake@redhat.com>
1441
1442         posix_openpt: new module
1443         * modules/posix_openpt: New module.
1444         * m4/posix_openpt.m4: New file.
1445         * lib/posix_openpt.c: Likewise.
1446         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1447         (gl_STDLIB_H_DEFAULTS): Set defaults.
1448         * modules/stdlib (Makefile.am): Substitute macros.
1449         * lib/stdlib.in.h (posix_openpt): Declare.
1450         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1451         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1452         * modules/posix_openpt-tests: New test module.
1453         * tests/test-posix_openpt.c: New test.
1454
1455 2011-10-15  Bruno Haible  <bruno@clisp.org>
1456
1457         xstrtoll: Fix compilation failure.
1458         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1459         from lib/strtol.c.
1460         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1461         some platforms.
1462         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1463
1464 2011-10-15  Bruno Haible  <bruno@clisp.org>
1465
1466         vasnprintf: Optimize bit search operation.
1467         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1469         gl_DOUBLE_EXPONENT_LOCATION.
1470         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1471         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1472         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1473         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1474         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1475         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1476         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1477         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1478         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1479
1480 2011-10-15  Bruno Haible  <bruno@clisp.org>
1481
1482         vasnprintf: Fix comments.
1483         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1484
1485 2011-10-14  Bruno Haible  <bruno@clisp.org>
1486
1487         Tests for module 'integer_length_ll'.
1488         * modules/integer_length_ll-tests: New file.
1489         * tests/test-integer_length_ll.c: New file.
1490
1491         New module 'integer_length_ll'.
1492         * lib/integer_length_ll.c: New file.
1493         * modules/integer_length_ll: New file.
1494
1495 2011-10-14  Bruno Haible  <bruno@clisp.org>
1496
1497         Tests for module 'integer_length_l'.
1498         * modules/integer_length_l-tests: New file.
1499         * tests/test-integer_length_l.c: New file.
1500
1501         New module 'integer_length_l'.
1502         * lib/integer_length_l.c: New file.
1503         * modules/integer_length_l: New file.
1504
1505 2011-10-14  Bruno Haible  <bruno@clisp.org>
1506
1507         Tests for module 'integer_length'.
1508         * modules/integer_length-tests: New file.
1509         * tests/test-integer_length.c: New file.
1510
1511         New module 'integer_length'.
1512         * lib/integer_length.h: New file.
1513         * lib/integer_length.c: New file.
1514         * modules/integer_length: New file.
1515
1516 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1517
1518         popen: Fix dependency conditions.
1519         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1520
1521 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1522
1523         perror: Fix autoconf test.
1524         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1525         <stdlib.h> and <string.h>.
1526
1527 2011-10-14  Bruno Haible  <bruno@clisp.org>
1528
1529         ffsl: Optimize on 64-bit platforms.
1530         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1531         unrolling.
1532
1533 2011-10-13  Bruno Haible  <bruno@clisp.org>
1534
1535         ffsl: Optimize on 32-bit platforms.
1536         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1537         use ffs() without a loop.
1538
1539         ffsl, ffsll: Optimize for GCC.
1540         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1541         * lib/ffsl.c (GCC_BUILTIN): New macro.
1542         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1543
1544 2011-10-13  Bruno Haible  <bruno@clisp.org>
1545
1546         ffs, bcopy, memset: Support symbol renaming via config.h.
1547         * lib/ffs.c: Include <config.h>.
1548         * lib/bcopy.c: Likewise.
1549         * lib/memset.c: Likewise.
1550
1551 2011-10-10  Bruno Haible  <bruno@clisp.org>
1552
1553         atanl: Simplify for platforms where 'long double' == 'double'.
1554         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1555         alternative implementation.
1556         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1557         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1558         * modules/atanl (Depends-on): Add atan. Update conditions.
1559
1560 2011-10-10  Bruno Haible  <bruno@clisp.org>
1561
1562         acosl: Simplify for platforms where 'long double' == 'double'.
1563         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1564         alternative implementation.
1565         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1566         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1567         * modules/acosl (Depends-on): Add acos. Update conditions.
1568
1569 2011-10-10  Bruno Haible  <bruno@clisp.org>
1570
1571         asinl: Simplify for platforms where 'long double' == 'double'.
1572         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1573         alternative implementation.
1574         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1575         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1576         * modules/asinl (Depends-on): Add asin. Update conditions.
1577
1578 2011-10-10  Bruno Haible  <bruno@clisp.org>
1579
1580         tanl: Simplify for platforms where 'long double' == 'double'.
1581         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1582         implementation.
1583         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1584         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1585         * modules/tanl (Depends-on): Add tan. Update conditions.
1586         (configure.ac): Don't compile trigl.c if
1587         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1588
1589 2011-10-10  Bruno Haible  <bruno@clisp.org>
1590
1591         cosl: Simplify for platforms where 'long double' == 'double'.
1592         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1593         implementation.
1594         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1595         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1596         * modules/cosl (Depends-on): Add cos. Update conditions.
1597         (configure.ac): Don't compile sincosl.c and trigl.c if
1598         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1599
1600 2011-10-10  Bruno Haible  <bruno@clisp.org>
1601
1602         sinl: Simplify for platforms where 'long double' == 'double'.
1603         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1604         implementation.
1605         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1606         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1607         * modules/sinl (Depends-on): Add sin. Update conditions.
1608         (configure.ac): Don't compile sincosl.c and trigl.c if
1609         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1610
1611 2011-10-10  Bruno Haible  <bruno@clisp.org>
1612
1613         logl: Simplify for platforms where 'long double' == 'double'.
1614         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1615         implementation.
1616         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1617         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1618         * modules/logl (Depends-on): Add log. Update conditions.
1619
1620 2011-10-10  Bruno Haible  <bruno@clisp.org>
1621
1622         expl: Simplify for platforms where 'long double' == 'double'.
1623         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1624         implementation.
1625         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1626         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1627         * modules/expl (Depends-on): Add exp. Update conditions.
1628
1629 2011-10-10  Bruno Haible  <bruno@clisp.org>
1630
1631         sqrtl: Simplify for platforms where 'long double' == 'double'.
1632         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1633         alternative implementation.
1634         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1635         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1636         * modules/sqrtl (Depends-on): Update conditions.
1637
1638 2011-10-10  Bruno Haible  <bruno@clisp.org>
1639
1640         ldexpl: Simplify for platforms where 'long double' == 'double'.
1641         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1642         alternative implementation.
1643         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1644         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1645         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1646
1647 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1648
1649         ffsll: set correct witness
1650         * modules/ffsll (configure.ac): Fix typo.
1651
1652 2011-10-10  Bruno Haible  <bruno@clisp.org>
1653
1654         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1655         * lib/printf-frexpl.c: Include <config.h>.
1656         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1657         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1658         second time.
1659         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1660         gl_LONG_DOUBLE_VS_DOUBLE.
1661         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1662         conditions.
1663
1664 2011-10-10  Bruno Haible  <bruno@clisp.org>
1665
1666         frexpl: Simplify for platforms where 'long double' == 'double'.
1667         * lib/frexpl.c: Include <config.h>.
1668         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1669         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1670         time.
1671         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1672         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1673         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1674         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1675         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1676         conditions.
1677
1678 2011-10-10  Jim Meyering  <meyering@redhat.com>
1679
1680         test-renameat: don't leave behind a temporary file
1681         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1682           ERROR: files left in build directory after distclean:
1683           ./gltests/test-renameat.too
1684           make[1]: *** [distcleancheck] Error 1
1685         Reported by Tom G. Christensen.
1686
1687 2011-10-09  Bruno Haible  <bruno@clisp.org>
1688
1689         rint: Determine RINT_LIBM correctly on AIX 7.
1690         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1691         directly, not only through a function pointer. Also accept an optional
1692         4th argument with extra code.
1693         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1694         rintf() call by gcc when optimizing.
1695
1696         mathfunc.m4: Refactor.
1697         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1698         m4 variable.
1699
1700 2011-10-09  Bruno Haible  <bruno@clisp.org>
1701
1702         rintl: Simplify for platforms where 'long double' == 'double'.
1703         * lib/rintl.c: Include <config.h>.
1704         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1705         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1706         time.
1707         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1708         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1709         * modules/rintl (Depends-on): Add rint. Update conditions.
1710
1711 2011-10-09  Bruno Haible  <bruno@clisp.org>
1712
1713         roundl: Simplify for platforms where 'long double' == 'double'.
1714         * lib/roundl.c: Include <config.h>.
1715         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1716         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1717         time.
1718         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1719         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1720         * modules/roundl (Depends-on): Add round. Update conditions.
1721
1722 2011-10-09  Bruno Haible  <bruno@clisp.org>
1723
1724         truncl: Simplify for platforms where 'long double' == 'double'.
1725         * lib/truncl.c: Include <config.h>.
1726         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1727         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1728         time.
1729         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1730         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1731         * modules/truncl (Depends-on): Add trunc. Update conditions.
1732
1733 2011-10-09  Bruno Haible  <bruno@clisp.org>
1734
1735         ceill: Simplify for platforms where 'long double' == 'double'.
1736         * lib/ceill.c: Include <config.h>.
1737         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1738         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1739         time.
1740         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1741         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1742         * modules/ceill (Depends-on): Add ceil. Update conditions.
1743
1744 2011-10-09  Bruno Haible  <bruno@clisp.org>
1745
1746         floorl: Simplify for platforms where 'long double' == 'double'.
1747         * lib/floorl.c: Include <config.h>.
1748         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1749         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1750         time.
1751         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1752         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1753         * modules/floorl (Depends-on): Add floor. Update conditions.
1754
1755 2011-10-09  Bruno Haible  <bruno@clisp.org>
1756
1757         rint: Fix ordering constraints.
1758         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1759         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1760         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1761
1762 2011-10-09  Bruno Haible  <bruno@clisp.org>
1763
1764         copysignl: Simplify for platforms where 'long double' == 'double'.
1765         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1766         alternative.
1767         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1768         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1769         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1770
1771 2011-10-09  Bruno Haible  <bruno@clisp.org>
1772
1773         Tests for module 'rintl'.
1774         * modules/rintl-tests: New file.
1775         * tests/test-rintl.c: New file.
1776
1777         New module 'rintl'.
1778         * lib/math.in.h (rintl): New declaration.
1779         * lib/rintl.c: New file.
1780         * m4/rintl.m4: New file.
1781         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1783         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1784         * modules/rintl: New file.
1785         * tests/test-math-c++.cc: Check the declaration of rintl.
1786         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1787         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1788         * doc/posix-functions/rintl.texi: Mention the new module.
1789
1790 2011-10-09  Bruno Haible  <bruno@clisp.org>
1791
1792         Tests for module 'rintf'.
1793         * modules/rintf-tests: New file.
1794         * tests/test-rintf.c: New file.
1795
1796         New module 'rintf'.
1797         * lib/math.in.h (rintf): New declaration.
1798         * lib/rintf.c: New file.
1799         * m4/rintf.m4: New file.
1800         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1802         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1803         * modules/rintf: New file.
1804         * tests/test-math-c++.cc: Check the declaration of rintf.
1805         * doc/posix-functions/rintf.texi: Mention the new module.
1806
1807 2011-10-09  Bruno Haible  <bruno@clisp.org>
1808
1809         rint: Support for MSVC.
1810         * lib/math.in.h (rint): New declaration.
1811         * lib/rint.c: New file.
1812         * m4/rint.m4: New file.
1813         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1815         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1816         * modules/rint (Description): Fix.
1817         (Files): Add lib/rint.c, m4/rint.m4.
1818         (Depends-on): Add math.
1819         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1820         gl_MATH_MODULE_INDICATOR.
1821         * tests/test-math-c++.cc: Check the declaration of rint.
1822         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1823         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1824         * doc/posix-functions/rint.texi: Mention the replacement provided by
1825         the module.
1826
1827         rint tests: More tests.
1828         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1829         minus-zero.h, infinity.h, nan.h.
1830         (main): Skip the test if the current rounding mode is not standard. Add
1831         tests for negative numbers, minus zero, infinity, NaN.
1832         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1833         tests/nan.h.
1834         (Depends-on): Add isnand-nolibm.
1835
1836 2011-10-09  Bruno Haible  <bruno@clisp.org>
1837
1838         Tests for module 'copysignl'.
1839         * modules/copysignl-tests: New file.
1840         * tests/test-copysignl.c: New file.
1841
1842         New module 'copysignl'.
1843         * lib/math.in.h (copysignl): New declaration.
1844         * lib/copysignl.c: New file.
1845         * m4/copysignl.m4: New file.
1846         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1848         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1849         HAVE_COPYSIGNL.
1850         * modules/copysignl: New file.
1851         * tests/test-math-c++.cc: Check the declaration of copysignl.
1852         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1853         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1854         * doc/posix-functions/copysignl.texi: Mention the new module.
1855
1856 2011-10-09  Bruno Haible  <bruno@clisp.org>
1857
1858         Tests for module 'copysignf'.
1859         * modules/copysignf-tests: New file.
1860         * tests/test-copysignf.c: New file.
1861
1862         New module 'copysignf'.
1863         * lib/math.in.h (copysignf): New declaration.
1864         * lib/copysignf.c: New file.
1865         * m4/copysignf.m4: New file.
1866         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1868         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1869         HAVE_COPYSIGNF.
1870         * modules/copysignf: New file.
1871         * tests/test-math-c++.cc: Check the declaration of copysignf.
1872         * doc/posix-functions/copysignf.texi: Mention the new module.
1873
1874 2011-10-09  Bruno Haible  <bruno@clisp.org>
1875
1876         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1877         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1878         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1879         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1880         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1881         gl_SIGNAL_H_DEFAULTS.
1882
1883 2011-10-09  Bruno Haible  <bruno@clisp.org>
1884
1885         poll: Make macro safer.
1886         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1887         ac_cv_header_poll_h is not set.
1888
1889 2011-10-09  Bruno Haible  <bruno@clisp.org>
1890
1891         copysign: Provide replacement.
1892         * lib/math.in.h (copysign): New declaration.
1893         * lib/copysign.c: New file.
1894         * m4/copysign.m4: New file.
1895         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1897         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1898         HAVE_COPYSIGN.
1899         * modules/copysign (Description): Clarify.
1900         (Files): Add lib/copysign.c, m4/copysign.m4.
1901         (Depends-on): Add math, signbit.
1902         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1903         gl_MATH_MODULE_INDICATOR.
1904         * tests/test-math-c++.cc: Check the declaration of copysign.
1905         * doc/posix-functions/copysign.texi: Mention the effects of the module
1906         on Minix and MSVC.
1907
1908 2011-10-09  Bruno Haible  <bruno@clisp.org>
1909
1910         isinf: Ensure macro on AIX 5.1.
1911         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1912         macro.
1913         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1914
1915 2011-10-09  Bruno Haible  <bruno@clisp.org>
1916
1917         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1918         * modules/snprintf-posix-tests (configure.ac): Require
1919         gl_LONG_DOUBLE_VS_DOUBLE.
1920         * modules/sprintf-posix-tests (configure.ac): Likewise.
1921         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1922         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1923         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1924         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1925         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1926         tests on platforms where 'long double' is the same as 'double'.
1927         * tests/test-sprintf-posix.h (test_function): Likewise.
1928         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1929         * tests/test-vasprintf-posix.c (test_function): Likewise.
1930
1931         *printf: Fix for platforms where 'long double' == 'double'.
1932         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1933         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1934         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1935         * modules/fprintf-posix (Files): Likewise.
1936         * modules/obstack-printf-posix (Files): Likewise.
1937         * modules/snprintf-posix (Files): Likewise.
1938         * modules/sprintf-posix (Files): Likewise.
1939         * modules/vasnprintf (Files): Likewise.
1940         * modules/vasnprintf-posix (Files): Likewise.
1941         * modules/vasprintf-posix (Files): Likewise.
1942         * modules/vdprintf-posix (Files): Likewise.
1943         * modules/vfprintf-posix (Files): Likewise.
1944         * modules/vsnprintf-posix (Files): Likewise.
1945         * modules/vsprintf-posix (Files): Likewise.
1946         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1947         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1948         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1949         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1950         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1951         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1952         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1953
1954         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1955         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1956         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1957         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1958         'long double'.
1959         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1960
1961         isinf: Fix for platforms where 'long double' == 'double'.
1962         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1963         Don't blindly assume 80-bit 'long double'.
1964
1965         isfinite: Fix for platforms where 'long double' == 'double'.
1966         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1967         Don't blindly assume 80-bit 'long double'.
1968
1969         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1970         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1971         * modules/isfinite-tests (configure.ac): Require
1972         gl_LONG_DOUBLE_VS_DOUBLE.
1973         * modules/isinf-tests (configure.ac): Likewise.
1974         * modules/isnan-tests (configure.ac): Likewise.
1975         * modules/isnanl-tests (configure.ac): Likewise.
1976         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1977         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1978         tests on platforms where 'long double' is the same as 'double'.
1979         * tests/test-isinf.c (test_isinfl): Likewise.
1980         * tests/test-isnan.c (test_long_double): Likewise.
1981         * tests/test-isnanl.h (main): Likewise.
1982
1983 2011-10-08  Bruno Haible  <bruno@clisp.org>
1984
1985         Tests for module 'tanhf'.
1986         * modules/tanhf-tests: New file.
1987         * tests/test-tanhf.c: New file.
1988
1989         New module 'tanhf'.
1990         * lib/math.in.h (tanhf): New declaration.
1991         * lib/tanhf.c: New file.
1992         * m4/tanhf.m4: New file.
1993         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1994         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1995         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1996         * modules/tanhf: New file.
1997         * tests/test-math-c++.cc: Check the declaration of tanhf.
1998         * doc/posix-functions/tanhf.texi: Mention the new module.
1999
2000         tanh: Use a .m4 file.
2001         * m4/tanh.m4: New file.
2002         * modules/tanh (Files): Add it.
2003         (configure.ac): Just invoke gl_FUNC_TANH.
2004
2005 2011-10-08  Bruno Haible  <bruno@clisp.org>
2006
2007         Tests for module 'coshf'.
2008         * modules/coshf-tests: New file.
2009         * tests/test-coshf.c: New file.
2010
2011         New module 'coshf'.
2012         * lib/math.in.h (coshf): New declaration.
2013         * lib/coshf.c: New file.
2014         * m4/coshf.m4: New file.
2015         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2017         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2018         * modules/coshf: New file.
2019         * tests/test-math-c++.cc: Check the declaration of coshf.
2020         * doc/posix-functions/coshf.texi: Mention the new module.
2021
2022         cosh: Use a .m4 file.
2023         * m4/cosh.m4: New file.
2024         * modules/cosh (Files): Add it.
2025         (configure.ac): Just invoke gl_FUNC_COSH.
2026
2027 2011-10-08  Bruno Haible  <bruno@clisp.org>
2028
2029         Tests for module 'sinhf'.
2030         * modules/sinhf-tests: New file.
2031         * tests/test-sinhf.c: New file.
2032
2033         New module 'sinhf'.
2034         * lib/math.in.h (sinhf): New declaration.
2035         * lib/sinhf.c: New file.
2036         * m4/sinhf.m4: New file.
2037         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2039         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2040         * modules/sinhf: New file.
2041         * tests/test-math-c++.cc: Check the declaration of sinhf.
2042         * doc/posix-functions/sinhf.texi: Mention the new module.
2043
2044         sinh: Use a .m4 file.
2045         * m4/sinh.m4: New file.
2046         * modules/sinh (Files): Add it.
2047         (configure.ac): Just invoke gl_FUNC_SINH.
2048
2049 2011-10-08  Bruno Haible  <bruno@clisp.org>
2050
2051         Tests for module 'atan2f'.
2052         * modules/atan2f-tests: New file.
2053         * tests/test-atan2f.c: New file.
2054
2055         New module 'atan2f'.
2056         * lib/math.in.h (atan2f): New declaration.
2057         * lib/atan2f.c: New file.
2058         * m4/atan2f.m4: New file.
2059         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2061         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2062         * modules/atan2f: New file.
2063         * tests/test-math-c++.cc: Check the declaration of atan2f.
2064         * doc/posix-functions/atan2f.texi: Mention the new module.
2065
2066         atan2: Use a .m4 file.
2067         * m4/atan2.m4: New file.
2068         * modules/atan2 (Files): Add it.
2069         (configure.ac): Just invoke gl_FUNC_ATAN2.
2070
2071 2011-10-08  Bruno Haible  <bruno@clisp.org>
2072
2073         Tests for module 'atanf'.
2074         * modules/atanf-tests: New file.
2075         * tests/test-atanf.c: New file.
2076
2077         New module 'atanf'.
2078         * lib/math.in.h (atanf): New declaration.
2079         * lib/atanf.c: New file.
2080         * m4/atanf.m4: New file.
2081         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2083         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2084         * modules/atanf: New file.
2085         * tests/test-math-c++.cc: Check the declaration of atanf.
2086         * doc/posix-functions/atanf.texi: Mention the new module.
2087
2088         atan: Use a .m4 file.
2089         * m4/atan.m4: New file.
2090         * modules/atan (Files): Add it.
2091         (configure.ac): Just invoke gl_FUNC_ATAN.
2092
2093 2011-10-08  Bruno Haible  <bruno@clisp.org>
2094
2095         Tests for module 'acosf'.
2096         * modules/acosf-tests: New file.
2097         * tests/test-acosf.c: New file.
2098
2099         New module 'acosf'.
2100         * lib/math.in.h (acosf): New declaration.
2101         * lib/acosf.c: New file.
2102         * m4/acosf.m4: New file.
2103         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2105         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2106         * modules/acosf: New file.
2107         * tests/test-math-c++.cc: Check the declaration of acosf.
2108         * doc/posix-functions/acosf.texi: Mention the new module.
2109
2110         acos: Use a .m4 file.
2111         * m4/acos.m4: New file.
2112         * modules/acos (Files): Add it.
2113         (configure.ac): Just invoke gl_FUNC_ACOS.
2114
2115 2011-10-08  Bruno Haible  <bruno@clisp.org>
2116
2117         Tests for module 'asinf'.
2118         * modules/asinf-tests: New file.
2119         * tests/test-asinf.c: New file.
2120
2121         New module 'asinf'.
2122         * lib/math.in.h (asinf): New declaration.
2123         * lib/asinf.c: New file.
2124         * m4/asinf.m4: New file.
2125         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2127         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2128         * modules/asinf: New file.
2129         * tests/test-math-c++.cc: Check the declaration of asinf.
2130         * doc/posix-functions/asinf.texi: Mention the new module.
2131
2132         asin: Use a .m4 file.
2133         * m4/asin.m4: New file.
2134         * modules/asin (Files): Add it.
2135         (configure.ac): Just invoke gl_FUNC_ASIN.
2136
2137 2011-10-08  Bruno Haible  <bruno@clisp.org>
2138
2139         Tests for module 'tanf'.
2140         * modules/tanf-tests: New file.
2141         * tests/test-tanf.c: New file.
2142
2143         New module 'tanf'.
2144         * lib/math.in.h (tanf): New declaration.
2145         * lib/tanf.c: New file.
2146         * m4/tanf.m4: New file.
2147         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2148         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2149         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2150         * modules/tanf: New file.
2151         * tests/test-math-c++.cc: Check the declaration of tanf.
2152         * doc/posix-functions/tanf.texi: Mention the new module.
2153
2154         tan: Use a .m4 file.
2155         * m4/tan.m4: New file.
2156         * modules/tan (Files): Add it.
2157         (configure.ac): Just invoke gl_FUNC_TAN.
2158
2159 2011-10-08  Bruno Haible  <bruno@clisp.org>
2160
2161         Tests for module 'cosf'.
2162         * modules/cosf-tests: New file.
2163         * tests/test-cosf.c: New file.
2164
2165         New module 'cosf'.
2166         * lib/math.in.h (cosf): New declaration.
2167         * lib/cosf.c: New file.
2168         * m4/cosf.m4: New file.
2169         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2171         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2172         * modules/cosf: New file.
2173         * tests/test-math-c++.cc: Check the declaration of cosf.
2174         * doc/posix-functions/cosf.texi: Mention the new module.
2175
2176         cos: Use a .m4 file.
2177         * m4/cos.m4: New file.
2178         * modules/cos (Files): Add it.
2179         (configure.ac): Just invoke gl_FUNC_COS.
2180
2181 2011-10-08  Bruno Haible  <bruno@clisp.org>
2182
2183         Tests for module 'sinf'.
2184         * modules/sinf-tests: New file.
2185         * tests/test-sinf.c: New file.
2186
2187         New module 'sinf'.
2188         * lib/math.in.h (sinf): New declaration.
2189         * lib/sinf.c: New file.
2190         * m4/sinf.m4: New file.
2191         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2192         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2193         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2194         * modules/sinf: New file.
2195         * tests/test-math-c++.cc: Check the declaration of sinf.
2196         * doc/posix-functions/sinf.texi: Mention the new module.
2197
2198         sin: Use a .m4 file.
2199         * m4/sin.m4: New file.
2200         * modules/sin (Files): Add it.
2201         (configure.ac): Just invoke gl_FUNC_SIN.
2202
2203 2011-10-08  Bruno Haible  <bruno@clisp.org>
2204
2205         Tests for module 'powf'.
2206         * modules/powf-tests: New file.
2207         * tests/test-powf.c: New file.
2208
2209         New module 'powf'.
2210         * lib/math.in.h (powf): New declaration.
2211         * lib/powf.c: New file.
2212         * m4/powf.m4: New file.
2213         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2214         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2215         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2216         * modules/powf: New file.
2217         * tests/test-math-c++.cc: Check the declaration of powf.
2218         * doc/posix-functions/powf.texi: Mention the new module.
2219
2220         pow: Use a .m4 file.
2221         * m4/pow.m4: New file.
2222         * modules/pow (Files): Add it.
2223         (configure.ac): Just invoke gl_FUNC_POW.
2224
2225 2011-10-08  Bruno Haible  <bruno@clisp.org>
2226
2227         Tests for module 'log10f'.
2228         * modules/log10f-tests: New file.
2229         * tests/test-log10f.c: New file.
2230
2231         New module 'log10f'.
2232         * lib/math.in.h (log10f): New declaration.
2233         * lib/log10f.c: New file.
2234         * m4/log10f.m4: New file.
2235         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2236         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2237         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2238         * modules/log10f: New file.
2239         * tests/test-math-c++.cc: Check the declaration of log10f.
2240         * doc/posix-functions/log10f.texi: Mention the new module.
2241
2242         log10: Use a .m4 file.
2243         * m4/log10.m4: New file.
2244         * modules/log10 (Files): Add it.
2245         (configure.ac): Just invoke gl_FUNC_LOG10.
2246
2247 2011-10-08  Bruno Haible  <bruno@clisp.org>
2248
2249         Tests for module 'logf'.
2250         * modules/logf-tests: New file.
2251         * tests/test-logf.c: New file.
2252
2253         New module 'logf'.
2254         * lib/math.in.h (logf): New declaration.
2255         * lib/logf.c: New file.
2256         * m4/logf.m4: New file.
2257         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2258         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2259         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2260         * modules/logf: New file.
2261         * tests/test-math-c++.cc: Check the declaration of logf.
2262         * doc/posix-functions/logf.texi: Mention the new module.
2263
2264         log: Use a .m4 file.
2265         * m4/log.m4: New file.
2266         * modules/log (Files): Add it.
2267         (configure.ac): Just invoke gl_FUNC_LOG.
2268
2269 2011-10-08  Bruno Haible  <bruno@clisp.org>
2270
2271         Tests for module 'expf'.
2272         * modules/expf-tests: New file.
2273         * tests/test-expf.c: New file.
2274
2275         New module 'expf'.
2276         * lib/math.in.h (expf): New declaration.
2277         * lib/expf.c: New file.
2278         * m4/expf.m4: New file.
2279         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2281         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2282         * modules/expf: New file.
2283         * tests/test-math-c++.cc: Check the declaration of expf.
2284         * doc/posix-functions/expf.texi: Mention the new module.
2285
2286         exp: Use a .m4 file.
2287         * m4/exp.m4: New file.
2288         * modules/exp (Files): Add it.
2289         (configure.ac): Just invoke gl_FUNC_EXP.
2290
2291 2011-10-08  Bruno Haible  <bruno@clisp.org>
2292
2293         Tests for module 'sqrtf'.
2294         * modules/sqrtf-tests: New file.
2295         * tests/test-sqrtf.c: New file.
2296
2297         New module 'sqrtf'.
2298         * lib/math.in.h (sqrtf): New declaration.
2299         * lib/sqrtf.c: New file.
2300         * m4/sqrtf.m4: New file.
2301         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2302         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2303         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2304         * modules/sqrtf: New file.
2305         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2306         * doc/posix-functions/sqrtf.texi: Mention the new module.
2307
2308 2011-10-08  Bruno Haible  <bruno@clisp.org>
2309
2310         Tests: Avoid link failures w.r.t. libintl.
2311         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2312         $(LIBINTL).
2313         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2314         $(LIBINTL).
2315         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2316         against $(LIBINTL).
2317         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2318         $(LIBINTL).
2319         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2320         $(LIBINTL).
2321         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2322
2323 2011-10-08  Bruno Haible  <bruno@clisp.org>
2324
2325         pow tests: Defeat compiler optimizations.
2326         * tests/test-pow.c (main): Assign arguments to x and y before use.
2327
2328 2011-10-08  Bruno Haible  <bruno@clisp.org>
2329
2330         gnulib-tool: Improve last commit.
2331         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2332         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2333         ignore dependencies that are not among the modules list.
2334
2335 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2336
2337         gnulib-tool: don't follow dependencies to avoided modules
2338         This fixes a bug that is related to the previous one.
2339         * gnulib-tool (func_modules_transitive_closure)
2340         (func_emit_autoconf_snippets):
2341         Check whether a dependency is acceptable before using it.
2342         (--extract-dependencies): Report an error if --avoid is also used,
2343         since this combination of options is not yet supported.
2344
2345         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2346         Problem reported by Peter Dyballa in
2347         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2348         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2349         when echoing "$condition".
2350
2351 2011-10-07  Bruno Haible  <bruno@clisp.org>
2352
2353         Fix documentation about math functions on MacOS X.
2354         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2355         MacOS X 10.5.
2356         * doc/posix-functions/fdim.texi: Likewise.
2357         * doc/posix-functions/feclearexcept.texi: Likewise.
2358         * doc/posix-functions/fegetenv.texi: Likewise.
2359         * doc/posix-functions/fegetround.texi: Likewise.
2360         * doc/posix-functions/feholdexcept.texi: Likewise.
2361         * doc/posix-functions/feraiseexcept.texi: Likewise.
2362         * doc/posix-functions/fesetenv.texi: Likewise.
2363         * doc/posix-functions/fesetround.texi: Likewise.
2364         * doc/posix-functions/fetestexcept.texi: Likewise.
2365         * doc/posix-functions/feupdateenv.texi: Likewise.
2366         * doc/posix-functions/fmax.texi: Likewise.
2367         * doc/posix-functions/fmin.texi: Likewise.
2368         * doc/posix-functions/log2.texi: Likewise.
2369         * doc/posix-functions/modff.texi: Likewise.
2370         * doc/posix-functions/nan.texi: Likewise.
2371         * doc/posix-functions/nanf.texi: Likewise.
2372         * doc/posix-functions/nextafterf.texi: Likewise.
2373         * doc/posix-functions/remquo.texi: Likewise.
2374
2375 2011-10-07  Bruno Haible  <bruno@clisp.org>
2376
2377         modff: Drop assumption about library that defines modff.
2378         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2379         AC_CHECK_FUNCS.
2380         * modules/modff (Files): Add m4/mathfunc.m4.
2381
2382 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2383
2384         raise tests: Avoid a GCC warning.
2385         * tests/test-raise.c (handler): Use _Noreturn.
2386
2387 2011-10-07  Bruno Haible  <bruno@clisp.org>
2388
2389         Tests for module 'ldexpf'.
2390         * modules/ldexpf-tests: New file.
2391         * tests/test-ldexpf.c: New file.
2392
2393         New module 'ldexpf'.
2394         * lib/math.in.h (ldexpf): New declaration.
2395         * lib/ldexpf.c: New file.
2396         * m4/ldexpf.m4: New file.
2397         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2398         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2399         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2400         * modules/ldexpf: New file.
2401         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2402         * doc/posix-functions/ldexpf.texi: Mention the new module.
2403
2404 2011-10-06  Bruno Haible  <bruno@clisp.org>
2405
2406         frexpf: Work around problems on IRIX and mingw.
2407         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2409         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2410         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2411         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2412         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2413         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2414
2415 2011-10-06  Bruno Haible  <bruno@clisp.org>
2416
2417         fabsf: Drop assumption about library that defines fabsf.
2418         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2419         AC_CHECK_FUNCS.
2420         * modules/fabsf (Files): Add m4/mathfunc.m4.
2421
2422 2011-10-06  Bruno Haible  <bruno@clisp.org>
2423
2424         frexpf: Drop assumption about library that defines frexpf.
2425         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2426         'int *', 'float *', 'long double *', 'float', 'long double'.
2427         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2428         AC_CHECK_FUNCS.
2429         * modules/frexpf (Files): Add m4/mathfunc.m4.
2430
2431         Tests for module 'frexpf'.
2432         * modules/frexpf-tests: New file.
2433         * tests/test-frexpf.c: New file.
2434
2435         New module 'frexpf'.
2436         * lib/math.in.h (frexpf): New declaration.
2437         * lib/frexpf.c: New file.
2438         * m4/frexpf.m4: New file.
2439         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2441         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2442         * modules/frexpf: New file.
2443         * tests/test-math-c++.cc: Check the declaration of frexpf.
2444         * doc/posix-functions/frexpf.texi: Mention the new module.
2445
2446 2011-10-06  Bruno Haible  <bruno@clisp.org>
2447
2448         math: Sort function declarations of math.in.h.
2449         * lib/math.in.h (frexp, logb): Move declarations.
2450
2451 2011-10-05  Bruno Haible  <bruno@clisp.org>
2452
2453         Tests for module 'modff'.
2454         * modules/modff-tests: New file.
2455         * tests/test-modff.c: New file.
2456
2457         New module 'modff'.
2458         * lib/math.in.h (modff): New declaration.
2459         * lib/modff.c: New file.
2460         * m4/modff.m4: New file.
2461         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2462         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2463         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2464         * modules/modff: New file.
2465         * tests/test-math-c++.cc: Check the declaration of modff.
2466         * doc/posix-functions/modff.texi: Mention the new module.
2467
2468         modf tests: Make test sharper.
2469         * tests/test-modf.c (main): Strengthen upper bound.
2470
2471         modf: Use a .m4 file.
2472         * m4/modf.m4: New file.
2473         * modules/modf (Files): Add it.
2474         (configure.ac): Just invoke gl_FUNC_MODF.
2475
2476 2011-10-05  Bruno Haible  <bruno@clisp.org>
2477
2478         Tests for module 'fmodf'.
2479         * modules/fmodf-tests: New file.
2480         * tests/test-fmodf.c: New file.
2481
2482         New module 'fmodf'.
2483         * lib/math.in.h (fmodf): New declaration.
2484         * lib/fmodf.c: New file.
2485         * m4/fmodf.m4: New file.
2486         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2488         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2489         * modules/fmodf: New file.
2490         * tests/test-math-c++.cc: Check the declaration of fmodf.
2491         * doc/posix-functions/fmodf.texi: Mention the new module.
2492
2493         fmod: Use a .m4 file.
2494         * m4/fmod.m4: New file.
2495         * modules/fmod (Files): Add it.
2496         (configure.ac): Just invoke gl_FUNC_FMOD.
2497
2498 2011-10-05  Bruno Haible  <bruno@clisp.org>
2499
2500         Tests for module 'fabsf'.
2501         * modules/fabsf-tests: New file.
2502         * tests/test-fabsf.c: New file.
2503
2504         New module 'fabsf'.
2505         * lib/math.in.h (fabsf): New declaration.
2506         * lib/fabsf.c: New file.
2507         * m4/fabsf.m4: New file.
2508         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2510         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2511         * modules/fabsf: New file.
2512         * tests/test-math-c++.cc: Check the declaration of fabsf.
2513         * doc/posix-functions/fabsf.texi: Mention the new module.
2514
2515         fabs: Use a .m4 file.
2516         * m4/fabs.m4: New file.
2517         * modules/fabs (Files): Add it.
2518         (configure.ac): Just invoke gl_FUNC_FABS.
2519
2520 2011-10-05  Jim Meyering  <meyering@redhat.com>
2521
2522         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2523         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2524         ls -lL regression introduced in coreutils-8.12, it does so at the
2525         cost of an additional stat call in the common case.  Besides, now
2526         that the kernel change that prompted commit 95f7c57f has been reverted
2527         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2528         we have no use for commit 95f7c57f, "file-has-acl: use
2529         acl_extended_file_nofollow if available".
2530
2531 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2532
2533         file-has-acl: revert unintended change in behavior of ls -L
2534         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2535         derived from...
2536         (file_has_acl): ...code here.  Call it.
2537         This problem was introduced with 2011-07-22 commit 95f7c57f,
2538         "file-has-acl: use acl_extended_file_nofollow if available".
2539         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2540
2541 2011-10-03  Bruno Haible  <bruno@clisp.org>
2542
2543         poll: Avoid link errors on MSVC.
2544         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2545         * modules/poll (Depends-on): Add sockets.
2546         (Link): New section.
2547         * NEWS: Mention the change.
2548         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2549         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2550         $(LIB_POLL) instead of $(LIBSOCKET).
2551
2552 2011-10-03  Bruno Haible  <bruno@clisp.org>
2553
2554         sys_select tests: Fix link error on MSVC 9.
2555         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2556         with $(LIB_SELECT) instead of $(LIBSOCKET).
2557
2558 2011-10-03  Bruno Haible  <bruno@clisp.org>
2559
2560         sys_select: Fix compilation error on mingw.
2561         * lib/sys_select.in.h: On native Windows, include <io.h>.
2562
2563 2011-10-03  Bruno Haible  <bruno@clisp.org>
2564
2565         wmemset: Support for MSVC.
2566         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2567         whether wmemset() exists.
2568
2569 2011-10-03  Bruno Haible  <bruno@clisp.org>
2570
2571         wmemmove: Support for MSVC.
2572         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2573         whether wmemmove() exists.
2574
2575 2011-10-03  Bruno Haible  <bruno@clisp.org>
2576
2577         wmemcpy: Support for MSVC.
2578         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2579         whether wmemcpy() exists.
2580
2581 2011-10-03  Bruno Haible  <bruno@clisp.org>
2582
2583         wmemcmp: Support for MSVC.
2584         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2585         whether wmemcmp() exists.
2586
2587 2011-10-03  Bruno Haible  <bruno@clisp.org>
2588
2589         wmemchr: Support for MSVC.
2590         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2591         whether wmemchr() exists.
2592
2593 2011-10-03  Bruno Haible  <bruno@clisp.org>
2594
2595         glthread/*, strsignal: Support for MSVC.
2596         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2597         including <winsock.h> on MSVC 9.
2598         * lib/glthread/lock.h: Likewise.
2599         * lib/glthread/thread.h: Likewise.
2600         * lib/glthread/tls.h: Likewise.
2601         * lib/glthread/yield.h: Likewise.
2602         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2603         if HAVE_UNISTD_H is false.
2604         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2605
2606 2011-10-03  Bruno Haible  <bruno@clisp.org>
2607
2608         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2609         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2610         Set to 100000.
2611
2612 2011-10-03  Bruno Haible  <bruno@clisp.org>
2613
2614         acl: Fix specification.
2615         * lib/file-has-acl.c (file_has_acl): Fix specification.
2616
2617 2011-10-03  Bruno Haible  <bruno@clisp.org>
2618
2619         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2620         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2621         (compute_curr_prefix, shared_library_fullname,
2622         find_shared_library_fullname, get_shared_library_fullname, relocate):
2623         Use it together with PIC && INSTALLDIR.
2624         Reported by <jojelino@gmail.com>
2625         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2626
2627 2011-10-01  Jim Meyering  <meyering@redhat.com>
2628
2629         maint.mk: adjust a release-related rule not to require use of gzip
2630         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2631         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2632         projects that build only .tar.xz files.  Also fix an erroneous test.
2633
2634         test-linkat: don't leave behind a temporary file
2635         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2636         Otherwise, coreutils' "make distcheck" would fail with this:
2637           Only in /c/cu/tests/torture/coreutils/test/\
2638             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2639           make[2]: *** [my-distcheck] Error 1
2640
2641         float, math: add omitted file
2642         * lib/itold.c: Add file, required for yesterday's float change.
2643
2644 2011-10-01  Bruno Haible  <bruno@clisp.org>
2645
2646         isinf: Fix for OpenBSD/x86.
2647         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2648         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2649         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2650
2651 2011-10-01  Bruno Haible  <bruno@clisp.org>
2652
2653         isfinite: Fix syntax error in configure test.
2654         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2655
2656         isfinite: Fix typo.
2657         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2658         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2659
2660 2011-10-01  Bruno Haible  <bruno@clisp.org>
2661
2662         nonblocking tests: Fix test failure on Linux/IA-64.
2663         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2664         Set to 270000.
2665
2666 2011-10-01  Bruno Haible  <bruno@clisp.org>
2667
2668         mkfifoat tests: Fix a test failure on mingw.
2669         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2670         with error ENOSYS.
2671
2672 2011-09-30  Bruno Haible  <bruno@clisp.org>
2673
2674         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2675         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2676         'long double'. Set REPLACE_ITOLD.
2677         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2678         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2679         * lib/itold.c: New file.
2680         * modules/float (Files): Add lib/itold.c.
2681         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2682         (Makefile.am): Substitute REPLACE_ITOLD.
2683         * modules/math (Depends-on): Add float.
2684         (Makefile.am): Substitute REPLACE_ITOLD.
2685         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2686         * doc/posix-headers/math.texi: Likewise.
2687         * doc/posix-functions/logl.texi: Likewise.
2688
2689 2011-09-30  Bruno Haible  <bruno@clisp.org>
2690
2691         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2692         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2693         Set to 140000.
2694
2695 2011-09-30  Bruno Haible  <bruno@clisp.org>
2696
2697         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2698         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2699         invocation, say "right after AC_PROG_CC_STDC", not "right after
2700         AC_PROG_CC".
2701         Reported by Gary V. Vaughan <gary@gnu.org>.
2702
2703 2011-09-30  Bruno Haible  <bruno@clisp.org>
2704
2705         Centralize C99 requirement.
2706         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2707         * modules/stdarg (configure.ac-early): Invoke it instead of
2708         AC_PROG_CC_STDC.
2709         Reported by Gary V. Vaughan and Paul Eggert.
2710
2711 2011-09-29  Bruno Haible  <bruno@clisp.org>
2712
2713         float: Fix LDBL_MAX value on Linux/PowerPC.
2714         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2715         on Linux/PowerPC.
2716         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2717         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2718         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2719         platform.
2720         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2721
2722 2011-09-29  Bruno Haible  <bruno@clisp.org>
2723
2724         doc: Improve doc about gl_EARLY.
2725         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2726         AC_PROG_CC_STDC invocation.
2727         Reported by Gary V. Vaughan <gary@gnu.org>.
2728
2729 2011-09-28  Bruno Haible  <bruno@clisp.org>
2730
2731         fgetc, fputc, fread, fwrite tests: Fix link error.
2732         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2733         on non-MSVC platforms.
2734         * tests/test-fputc.c (main): Likewise.
2735         * tests/test-fread.c (main): Likewise.
2736         * tests/test-fwrite.c (main): Likewise.
2737         Reported by Jim Meyering.
2738
2739 2011-09-27  Bruno Haible  <bruno@clisp.org>
2740
2741         fputc, fwrite tests: Avoid test failure on MSVC.
2742         * tests/test-fgetc.c: Include msvc-inval.h.
2743         (main): Invoke gl_msvc_inval_ensure_handler.
2744         * tests/test-fputc.c: Include msvc-inval.h.
2745         (main): Invoke gl_msvc_inval_ensure_handler.
2746         * tests/test-fread.c: Include msvc-inval.h.
2747         (main): Invoke gl_msvc_inval_ensure_handler.
2748         * tests/test-fwrite.c: Include msvc-inval.h.
2749         (main): Invoke gl_msvc_inval_ensure_handler.
2750         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2751         * modules/fputc-tests (Depends-on): Likewise.
2752         * modules/fread-tests (Depends-on): Likewise.
2753         * modules/fwrite-tests (Depends-on): Likewise.
2754
2755 2011-09-27  Bruno Haible  <bruno@clisp.org>
2756
2757         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2758         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2759         (raise): Remove older, duplicated declaration.
2760         (_gl_raise_SIGPIPE): New declaration.
2761         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2762         (rpl_raise): Remove function.
2763         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2764         a gnulib-defined SIGPIPE here.
2765         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2766         'sigprocmask' has detected missing signal-blocking and the module
2767         'sigpipe' is enabled.
2768         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2769
2770 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2771
2772         base64-tests: avoid memory leak
2773         * tests/test-base64.c (main): Plug memory leak.
2774
2775         base32: new module
2776         * modules/base32: New module.
2777         * lib/base32.c: New file.
2778         * lib/base32.h: Likewise.
2779         * m4/base32.m4: Likewise.
2780         * modules/base32-tests: New test.
2781         * tests/test-base32.c: Likewise.
2782         * MODULES.html.sh (Misc): Mention it.
2783
2784 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2785
2786         gnulib: use more-standard license notice wording
2787         * gnulib-tool (func_emit_copyright_notice): When emitting a
2788         license notice into a file, use the standard wording as suggested
2789         by the current information for GNU maintainers, except say "file"
2790         rather than "program".  The new wording gives a license version
2791         number, which addresses an issue raised by Glenn Morris in
2792         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2793         * m4/onceonly.m4: Use that same wording here, too.
2794
2795         dup2: minor simplification
2796         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2797         as lib/dup2.c no longer uses 'inline'.
2798
2799 2011-09-25  Bruno Haible  <bruno@clisp.org>
2800
2801         strings: Fix compilation error on MSVC.
2802         * lib/strings.in.h: Include <stddef.h> for size_t.
2803
2804 2011-09-25  Bruno Haible  <bruno@clisp.org>
2805
2806         fflush et al.: Document limitation on MSVC.
2807         * doc/posix-functions/fflush.texi: Document possible crash in handling
2808         mode other than DEFAULT_HANDLING.
2809         * doc/posix-functions/fgetc.texi: Likewise.
2810         * doc/posix-functions/fputc.texi: Likewise.
2811         * doc/posix-functions/fread.texi: Likewise.
2812         * doc/posix-functions/fwrite.texi: Likewise.
2813
2814 2011-09-25  Bruno Haible  <bruno@clisp.org>
2815
2816         msvc-inval: Allow three invalid parameter handling modes.
2817         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2818         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2819         macros.
2820         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2821         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2822         SANE_LIBRARY_HANDLING as a no-op.
2823         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2824         <stdlib.h>.
2825         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2826
2827 2011-09-25  Bruno Haible  <bruno@clisp.org>
2828
2829         msvc-inval: Make handler multithread-safe.
2830         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2831         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2832         declarations.
2833         (gl_msvc_inval_current): New declaration.
2834         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2835         Operate on the structure returned by gl_msvc_inval_current().
2836         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2837         Remove varaiables.
2838         (tls_index, tls_initialized): New variables.
2839         (not_per_thread): New variable.
2840         (gl_msvc_inval_current): New function.
2841         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2842         returned by gl_msvc_inval_current().
2843
2844 2011-09-25  Bruno Haible  <bruno@clisp.org>
2845
2846         msvc-inval: Install handler globally.
2847         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2848         !_MSC_VER.
2849         (gl_msvc_invalid_parameter_handler): Remove declaration.
2850         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2851         declarations.
2852         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2853         Install the handler globally, don't uninstall it.
2854         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2855         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2856         currently valid, call RaiseException instead.
2857         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2858         for !_MSC_VER.
2859
2860 2011-09-25  Bruno Haible  <bruno@clisp.org>
2861
2862         strerror_r-posix: Fix for MSVC 9.
2863         * lib/strerror_r.c (local_snprintf): New function.
2864         (snprintf): Define to local_snprintf, not to _snprintf.
2865
2866 2011-09-25  Bruno Haible  <bruno@clisp.org>
2867
2868         ftruncate: Support for MSVC 9.
2869         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2870         (chsize_nothrow): New function.
2871         (chsize): Redefine as a macro.
2872         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2873         * modules/ftruncate (Depends-on): Add msvc-inval.
2874
2875 2011-09-25  Bruno Haible  <bruno@clisp.org>
2876
2877         New module 'fstat'.
2878         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2879         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2880         * lib/fchdir.c (rpl_fstat): Remove function.
2881         * m4/fstat.m4: New file.
2882         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2883         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2884         declared.
2885         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2886         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2887         * modules/fstat: New file.
2888         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2889         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2890         is set.
2891         * doc/posix-functions/fstat.texi: Mention the new module and the
2892         problem on MSVC.
2893         * NEWS: Mention the change.
2894         * modules/acl (Depends-on): Add fstat.
2895         * modules/chdir-safer (Depends-on): Likewise.
2896         * modules/chown (Depends-on): Likewise.
2897         * modules/copy-file (Depends-on): Likewise.
2898         * modules/fchdir (Depends-on): Likewise.
2899         * modules/fdopendir (Depends-on): Likewise.
2900         * modules/fopen (Depends-on): Likewise.
2901         * modules/fts (Depends-on): Likewise.
2902         * modules/getcwd (Depends-on): Likewise.
2903         * modules/isapipe (Depends-on): Likewise.
2904         * modules/linkat (Depends-on): Likewise.
2905         * modules/lseek (Depends-on): Likewise.
2906         * modules/mkdir-p (Depends-on): Likewise.
2907         * modules/open (Depends-on): Likewise.
2908         * modules/openat (Depends-on): Likewise.
2909         * modules/read-file (Depends-on): Likewise.
2910         * modules/renameat (Depends-on): Likewise.
2911         * modules/utimens (Depends-on): Likewise.
2912
2913 2011-09-25  Bruno Haible  <bruno@clisp.org>
2914
2915         linkat: Fix compilation on MSVC 9.
2916         * lib/linkat.c: Don't include <stdint.h>.
2917
2918 2011-09-25  Bruno Haible  <bruno@clisp.org>
2919
2920         fclose: Support for MSVC 9.
2921         * lib/fclose.c: Include msvc-inval.h.
2922         (fclose_nothrow): New function.
2923         (rpl_fclose): Use it.
2924         * modules/fclose (Depends-on): Add msvc-inval.
2925         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2926
2927 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2928
2929         dup2: minor simplifications
2930         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2931         that it's a performance win.
2932         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2933         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2934
2935 2011-09-24  Jim Meyering  <meyering@redhat.com>
2936
2937         test-futimens: avoid a warning from gcc -Wshadow
2938         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2939         to avoid a shadowing warning.
2940
2941 2011-09-24  Bruno Haible  <bruno@clisp.org>
2942
2943         fdopen: Support for MSVC 9.
2944         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2945         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2946         * lib/fdopen.c: Include msvc-inval.h.
2947         (fdopen_nothrow): New function.
2948         (rpl_fdopen): Use it.
2949         * modules/fdopen (Depends-on): Add msvc-inval.
2950         * modules/fclose-tests (Depends-on): Add fdopen.
2951         * modules/fflush-tests (Depends-on): Likewise.
2952         * modules/fgetc-tests (Depends-on): Likewise.
2953         * modules/fputc-tests (Depends-on): Likewise.
2954         * modules/fread-tests (Depends-on): Likewise.
2955         * modules/freopen-tests (Depends-on): Likewise.
2956         * modules/fseeko-tests (Depends-on): Likewise.
2957         * modules/ftello-tests (Depends-on): Likewise.
2958         * modules/fwrite-tests  (Depends-on): Likewise.
2959         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2960
2961 2011-09-24  Bruno Haible  <bruno@clisp.org>
2962
2963         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2964         * modules/fgetc-tests (Depends-on): Add unistd.
2965         * modules/fputc-tests (Depends-on): Likewise.
2966         * modules/fread-tests (Depends-on): Likewise.
2967         * modules/fwrite-tests (Depends-on): Likewise.
2968
2969 2011-09-24  Bruno Haible  <bruno@clisp.org>
2970
2971         dup: Simplify autoconf test.
2972         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2973         on gl_MSVC_INVAL's result.
2974
2975 2011-09-24  Bruno Haible  <bruno@clisp.org>
2976
2977         Tests for function fwrite().
2978         * modules/fwrite-tests: New file.
2979         * tests/test-fwrite.c: New file.
2980         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2981
2982         Tests for function fread().
2983         * modules/fread-tests: New file.
2984         * tests/test-fread.c: New file.
2985         * modules/stdio-tests (Depends-on): Add fread-tests.
2986
2987         Activate fputc tests.
2988         * modules/stdio-tests (Depends-on): Add fputc-tests.
2989
2990         Enhance fgetc, fputc tests.
2991         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2992         * tests/test-fputc.c (main): Likewise.
2993
2994 2011-09-24  Bruno Haible  <bruno@clisp.org>
2995
2996         write: Support for MSVC 9.
2997         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2998         is not 1.
2999         * lib/write.c (write_nothrow): New function.
3000         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3001         not 1. Use write_nothrow.
3002         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3003         invalid parameter handler.
3004         (gl_PREREQ_WRITE): New macro.
3005         * modules/write (Depends-on): Add msvc-inval.
3006         (configure.ac): Invoke gl_PREREQ_WRITE.
3007         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3008
3009 2011-09-24  Bruno Haible  <bruno@clisp.org>
3010
3011         read: Fix last commit.
3012         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3013
3014 2011-09-24  Bruno Haible  <bruno@clisp.org>
3015
3016         dup2: Fix last commit.
3017         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3018         (rpl_dup2): Disable fcntl workaround on native Windows.
3019
3020         sigprocmask: Make code safer.
3021         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3022         section that changes macro definitions for this compilation unit.
3023
3024 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3025
3026         dup2: clarify by coalescing Windows-specific material
3027         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3028         "msvc-nothrow.h"' to the Windows-specific section, so that the
3029         Emacs source need not contain these include files.
3030         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3031         Windows-specific fixes into this function rather than just the
3032         nothrow fix, as this shortens and clarifies the code.  Always
3033         define as a function, as that's a bit cleaner than having it be
3034         sometimes a function and sometimes a macro.
3035         (rpl_dup2): Move the Windows-specific stuff out of here and into
3036         ms_windows_dup2.  Don't protect the Haiku-related fix with
3037         "#if !defined __linux__", as the same code also works around
3038         a Linux kernel bug, and it doesn't add any system calls on any
3039         platform.  Add comment about FreeBSD 6.1.
3040
3041         sigprocmask: move #include directive
3042         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3043         Windows-specific section, so that the Emacs source need not
3044         contain msvc-inval.h.
3045
3046 2011-09-23  Bruno Haible  <bruno@clisp.org>
3047
3048         read: Support for MSVC 9.
3049         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3050         is not 1.
3051         * lib/read.c (read_nothrow): New function.
3052         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3053         read_nothrow.
3054         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3055         invalid parameter handler.
3056         (gl_PREREQ_READ): New macro.
3057         * modules/read (Depends-on): Add msvc-inval.
3058         (configure.ac): Invoke gl_PREREQ_READ.
3059         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3060
3061 2011-09-23  Bruno Haible  <bruno@clisp.org>
3062
3063         close: Support for MSVC 9.
3064         * lib/close.c: Include <errno.h>, msvc-inval.h.
3065         (close_nothrow): New function.
3066         (rpl_close): Use it.
3067         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3068         invalid parameter handler.
3069         * modules/close (Depends-on): Add msvc-inval.
3070         * modules/dup2-tests (Depends-on): Add close.
3071         * modules/dup3-tests (Depends-on): Likewise.
3072         * modules/fcntl-tests (Depends-on): Likewise.
3073         * modules/spawn-pipe-tests (Depends-on): Likewise.
3074         * modules/unistd-safer-tests (Depends-on): Likewise.
3075         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3076
3077 2011-09-23  Bruno Haible  <bruno@clisp.org>
3078
3079         New module 'dup'.
3080         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3081         Allow replacement.
3082         * lib/dup.c: New file.
3083         * lib/fchdir.c (rpl_dup): Remove function.
3084         * m4/dup.m4: New file.
3085         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3086         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3087         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3088         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3089         * modules/dup: New file.
3090         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3091         'dup' module is in use.
3092         * modules/fdopendir (Depends-on): Add dup.
3093         * modules/fdutimensat-tests (Depends-on): Likewise.
3094         * modules/fts (Depends-on): Likewise.
3095         * modules/futimens-tests (Depends-on): Likewise.
3096         * modules/posix_spawnp-tests (Depends-on): Likewise.
3097         * modules/unistd-safer-tests (Depends-on): Likewise.
3098         * modules/utimens-tests (Depends-on): Likewise.
3099         * doc/posix-functions/dup.texi: Mention the new module and the problem
3100         on MSVC.
3101
3102 2011-09-23  Bruno Haible  <bruno@clisp.org>
3103
3104         getdtablesize: Support for MSVC 9.
3105         * lib/getdtablesize.c: Include msvc-inval.h.
3106         (_setmaxstdio_nothrow): New function.
3107         (_setmaxstdio): Redefine it.
3108         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3109         * modules/getdtablesize (Depends-on): Add msvc-inval.
3110         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3111
3112 2011-09-23  Bruno Haible  <bruno@clisp.org>
3113
3114         signal-h: Rename from signal.
3115         * modules/signal-h: Renamed from modules/signal.
3116         * modules/pthread_sigmask (Depends-on): Update.
3117         * modules/raise (Depends-on): Likewise.
3118         * modules/sigaction (Depends-on): Likewise.
3119         * modules/sigpipe (Depends-on): Likewise.
3120         * modules/sigprocmask (Depends-on): Likewise.
3121         * modules/sys_select (Depends-on): Likewise.
3122         * modules/signal-h-tests: Renamed from modules/signal-tests.
3123         (Files, Depends-on, Makefile.am): Update.
3124         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3125         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3126         (Files, Makefile.am): Update.
3127         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3128         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3129         * modules/signal: New placeholder file.
3130         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3131         * doc/posix-headers/signal.texi: Update.
3132         * NEWS: Mention the change.
3133
3134 2011-09-23  Bruno Haible  <bruno@clisp.org>
3135
3136         sigprocmask: Avoid crashes through signal() on MSVC 9.
3137         * lib/sigprocmask.c: Include msvc-inval.h.
3138         (signal_nothrow): New function.
3139         (signal): Redefine it.
3140         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3141         * modules/sigprocmask (Depends-on): Add msvc-inval.
3142         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3143
3144 2011-09-23  Bruno Haible  <bruno@clisp.org>
3145
3146         Tests for module 'raise'.
3147         * modules/raise-tests: New file.
3148         * tests/test-raise.c: New file.
3149
3150         raise: Support for MSVC.
3151         * lib/signal.in.h (raise): New declaration.
3152         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3153         for native Windows platforms.
3154         * m4/raise.m4: New file.
3155         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3156         HAVE_RAISE, REPLACE_RAISE.
3157         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3158         REPLACE_RAISE.
3159         * modules/raise (Status, Notice): Remove fields.
3160         (Files): Add m4/raise.m4.
3161         (Depends-on): Add signal, msvc-inval.
3162         (configure.ac): Use the common idioms.
3163         (Maintainer): Add me.
3164         * tests/test-signal-c++.cc: Check the signature of raise.
3165         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3166
3167 2011-09-23  Bruno Haible  <bruno@clisp.org>
3168
3169         pipe2: Fix compilation on pre-C99 compilers.
3170         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3171
3172 2011-09-23  Bruno Haible  <bruno@clisp.org>
3173
3174         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3175         * lib/msvc-nothrow.h: New file.
3176         * lib/msvc-nothrow.c: New file.
3177         * m4/msvc-nothrow.m4: New file.
3178         * modules/msvc-nothrow: New file.
3179         * lib/dup2.c: Include msvc-nothrow.h.
3180         (rpl_dup2): No need to protect _get_osfhandle call here.
3181         * lib/accept4.c: Include msvc-nothrow.h.
3182         * lib/error.c: Likewise.
3183         * lib/fcntl.c: Likewise.
3184         * lib/lseek.c: Likewise.
3185         * lib/nonblocking.c: Likewise.
3186         * lib/poll.c: Likewise.
3187         * lib/read.c: Likewise.
3188         * lib/select.c: Likewise.
3189         * lib/sockets.h: Likewise.
3190         * lib/sockets.c: Likewise.
3191         * lib/stdio-read.c: Likewise.
3192         * lib/stdio-write.c: Likewise.
3193         * lib/write.c: Likewise.
3194         * lib/w32sock.h: Likewise.
3195         * lib/w32spawn.h: Likewise.
3196         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3197         * lib/fsync.c: Likewise.
3198         * lib/isapipe.c: Likewise.
3199         * modules/dup2 (Depends-on): Add msvc-nothrow.
3200         * modules/accept4 (Depends-on): Likewise.
3201         * modules/error (Depends-on): Likewise.
3202         * modules/fcntl (Depends-on): Likewise.
3203         * modules/lseek (Depends-on): Likewise.
3204         * modules/nonblocking (Depends-on): Likewise.
3205         * modules/poll (Depends-on): Likewise.
3206         * modules/read (Depends-on): Likewise.
3207         * modules/select (Depends-on): Likewise.
3208         * modules/sockets (Depends-on): Likewise.
3209         * modules/sigpipe (Depends-on): Likewise.
3210         * modules/write (Depends-on): Likewise.
3211         * modules/accept (Depends-on): Likewise.
3212         * modules/bind (Depends-on): Likewise.
3213         * modules/connect (Depends-on): Likewise.
3214         * modules/gethostname (Depends-on): Likewise.
3215         * modules/getpeername (Depends-on): Likewise.
3216         * modules/getsockname (Depends-on): Likewise.
3217         * modules/getsockopt (Depends-on): Likewise.
3218         * modules/ioctl (Depends-on): Likewise.
3219         * modules/listen (Depends-on): Likewise.
3220         * modules/recv (Depends-on): Likewise.
3221         * modules/recvfrom (Depends-on): Likewise.
3222         * modules/send (Depends-on): Likewise.
3223         * modules/sendto (Depends-on): Likewise.
3224         * modules/setsockopt (Depends-on): Likewise.
3225         * modules/shutdown (Depends-on): Likewise.
3226         * modules/socket (Depends-on): Likewise.
3227         * modules/execute (Depends-on): Likewise.
3228         * modules/spawn-pipe (Depends-on): Likewise.
3229         * modules/flock (Depends-on): Likewise.
3230         * modules/fsync (Depends-on): Likewise.
3231         * modules/isapipe (Depends-on): Likewise.
3232         * tests/test-cloexec.c: Include msvc-nothrow.h.
3233         * tests/test-dup-safer.c: Likewise.
3234         * tests/test-dup2.c: Likewise.
3235         * tests/test-dup3.c: Likewise.
3236         * tests/test-fcntl.c: Likewise.
3237         * tests/test-pipe.c: Likewise.
3238         * tests/test-pipe2.c: Likewise.
3239         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3240         * modules/unistd-safer-tests (Depends-on): Likewise.
3241         * modules/dup2-tests (Depends-on): Likewise.
3242         * modules/dup3-tests (Depends-on): Likewise.
3243         * modules/fcntl-tests (Depends-on): Likewise.
3244         * modules/pipe-posix-tests (Depends-on): Likewise.
3245         * modules/pipe2-tests (Depends-on): Likewise.
3246
3247 2011-09-23  Bruno Haible  <bruno@clisp.org>
3248
3249         dup2: Make code more maintainable.
3250         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3251         (rpl_dup2): Use it.
3252         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3253         * modules/dup2 (configure.ac): Invoke it.
3254         Reported by Paul Eggert.
3255
3256 2011-09-23  Bruno Haible  <bruno@clisp.org>
3257
3258         msvc-inval: Fix compilation error.
3259         * lib/msvc-inval.h: Include <excpt.h>.
3260
3261 2011-09-23  Bruno Haible  <bruno@clisp.org>
3262
3263         mkdir: Tweak for MSVC 9.
3264         * lib/sys_stat.in.h: Update comments.
3265         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3266
3267         Tests for module 'chdir'.
3268         * modules/chdir-tests: New file.
3269         * tests/test-chdir.c: New file.
3270
3271         New module 'chdir'.
3272         * modules/chdir: New file.
3273         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3274         (chdir): New declaration.
3275         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3276         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3277         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3278         * tests/test-unistd-c++.cc: Check signature of chdir.
3279         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3280         * modules/chdir-long (Depends-on): Add chdir.
3281         * modules/fchdir (Depends-on): Likewise.
3282         * modules/rename (Depends-on): Likewise.
3283         * modules/savewd (Depends-on): Likewise.
3284
3285         rmdir: Support for mingw, MSVC 9.
3286         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3287         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3288
3289         getcwd: Tweak for MSVC 9.
3290         * lib/unistd.in.h: Update comments.
3291         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3292
3293 2011-09-22  Bruno Haible  <bruno@clisp.org>
3294
3295         strerror_r-posix: Avoid a link error on MSVC.
3296         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3297         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3298
3299 2011-09-22  Bruno Haible  <bruno@clisp.org>
3300
3301         select: Avoid link errors on MSVC.
3302         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3303         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3304         * modules/pselect (Link): Likewise.
3305         * NEWS: Mention the change.
3306         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3307         test-select-stdin against $(LIB_SELECT).
3308         * modules/pselect-tests (Makefile.am): Link test-pselect against
3309         $(LIB_SELECT).
3310
3311 2011-09-22  Bruno Haible  <bruno@clisp.org>
3312
3313         select: Avoid compilation error on MSVC.
3314         * lib/select.c: Don't include <stdbool.h>.
3315
3316 2011-09-21  Bruno Haible  <bruno@clisp.org>
3317
3318         Consolidate all uses of PATH_MAX in *.m4 files.
3319         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3320         macros.
3321         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3322         and gl_PATHMAX_SNIPPET.
3323         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3324         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3325         * modules/chdir-long (Files): Add m4/pathmax.m4.
3326         * modules/getcwd (Files): Likewise.
3327
3328 2011-09-21  Bruno Haible  <bruno@clisp.org>
3329
3330         ftruncate: Un-deprecate, concentrate on Win32 support.
3331         * modules/ftruncate (Status, Notice): Remove sections.
3332         (Depends-on): Add largefile.
3333         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3334         non-mingw platforms.
3335         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3336         include <io.h>.
3337         * modules/perror-tests (Depends-on): Add ftruncate.
3338         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3339         'ftruncate' module.
3340
3341 2011-09-21  Bruno Haible  <bruno@clisp.org>
3342
3343         Add dependencies to new dirent related modules.
3344         * modules/opendir (Depends-on): Add closedir.
3345         * modules/getcwd (Depends-on): Add opendir, closedir.
3346         * modules/dirent-safer-tests (Depends-on): Likewise.
3347         * modules/fdopendir-tests (Depends-on): Likewise.
3348         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3349         * modules/renameat-tests (Depends-on): Likewise.
3350
3351 2011-09-21  Bruno Haible  <bruno@clisp.org>
3352
3353         opendir: Avoid compilation error on mingw.
3354         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3355         * modules/opendir (Depends-on): Add unistd.
3356
3357 2011-09-21  Bruno Haible  <bruno@clisp.org>
3358
3359         ftruncate tests: Avoid a test failure on mingw.
3360         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3361
3362 2011-09-21  Bruno Haible  <bruno@clisp.org>
3363
3364         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3365         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3366         native Windows.
3367
3368 2011-09-21  Bruno Haible  <bruno@clisp.org>
3369
3370         New module 'fdopen'.
3371         * lib/stdio.in.h (fdopen): New declaration.
3372         * lib/fdopen.c: New file.
3373         * m4/fdopen.m4: New file.
3374         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3375         REPLACE_FDOPEN.
3376         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3377         REPLACE_FDOPEN.
3378         * modules/fdopen: New file.
3379         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3380         * tests/test-stdio-c++.cc: Check signature of fdopen.
3381         * doc/posix-functions/fdopen.texi: Mention the new module.
3382
3383 2011-09-21  Bruno Haible  <bruno@clisp.org>
3384
3385         unlockpt tests: Avoid test failure on NetBSD 5.1.
3386         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3387         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3388
3389 2011-09-21  Bruno Haible  <bruno@clisp.org>
3390
3391         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3392         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3393         * tests/test-getlogin_r.c (main): Likewise.
3394
3395 2011-09-20  Bruno Haible  <bruno@clisp.org>
3396
3397         time tests: Don't require pid_t.
3398         * doc/posix-headers/time.texi: Revert last change.
3399         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3400         * tests/test-time.c: Comment out the check for pid_t.
3401
3402 2011-09-20  Bruno Haible  <bruno@clisp.org>
3403
3404         fsync tests: Avoid a test failure on mingw.
3405         * tests/test-fsync.c (main): Allow a failure with EIO.
3406
3407 2011-09-20  Bruno Haible  <bruno@clisp.org>
3408
3409         euidaccess: Update comments.
3410         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3411
3412 2011-09-20  Bruno Haible  <bruno@clisp.org>
3413
3414         Ensure EBADF returns for socket functions on mingw.
3415         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3416         descriptor is invalid.
3417         * lib/bind.c (rpl_bind): Likewise.
3418         * lib/connect.c (rpl_connect): Likewise.
3419         * lib/getpeername.c (rpl_getpeername): Likewise.
3420         * lib/getsockname.c (rpl_getsockname): Likewise.
3421         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3422         * lib/listen.c (rpl_listen): Likewise.
3423         * lib/recv.c (rpl_recv): Likewise.
3424         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3425         * lib/send.c (rpl_send): Likewise.
3426         * lib/sendto.c (rpl_sendto): Likewise.
3427         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3428         * lib/shutdown.c (rpl_shutdown): Likewise.
3429
3430 2011-09-20  Bruno Haible  <bruno@clisp.org>
3431
3432         select tests: EBADF tests.
3433         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3434         test_bad_fd): New functions.
3435         (test_function): Invoke also test_bad_fd.
3436
3437 2011-09-20  Bruno Haible  <bruno@clisp.org>
3438
3439         Tests for module 'posix_spawn_file_actions_addopen.
3440         * modules/posix_spawn_file_actions_addopen-tests: New file.
3441         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3442
3443         Tests for module 'posix_spawn_file_actions_adddup2'.
3444         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3445         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3446
3447         Tests for module 'posix_spawn_file_actions_addclose'.
3448         * modules/posix_spawn_file_actions_addclose-tests: New file.
3449         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3450
3451 2011-09-20  Bruno Haible  <bruno@clisp.org>
3452
3453         Tests for module 'unlockpt'.
3454         * modules/unlockpt-tests: New file.
3455         * tests/test-unlockpt.c: New file.
3456         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3457
3458         Tests for module 'grantpt'.
3459         * modules/grantpt-tests: New file.
3460         * tests/test-grantpt.c: New file.
3461         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3462
3463 2011-09-20  Bruno Haible  <bruno@clisp.org>
3464
3465         freopen tests: EBADF tests.
3466         * tests/test-freopen.c: Include errno.h, unistd.h.
3467         (main): Add tests for EBADF, commented out for the moment.
3468
3469         fclose tests: EBADF tests.
3470         * tests/test-fclose.c (main): Add tests for EBADF.
3471
3472         fflush tests: EBADF tests.
3473         * tests/test-fflush.c: Include errno.h, macros.h.
3474         (main): Add tests for EBADF.
3475
3476         ftello tests: EBADF tests.
3477         * tests/test-ftello4.sh: New file.
3478         * tests/test-ftello4.c: New file.
3479         * modules/ftello-tests (Files): Add them.
3480         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3481
3482         fseeko tests: EBADF tests.
3483         * tests/test-fseeko4.sh: New file.
3484         * tests/test-fseeko4.c: New file.
3485         * modules/fseeko-tests (Files): Add them.
3486         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3487
3488         Tests for function fputc().
3489         * modules/fputc-tests: New file.
3490         * tests/test-fputc.c: New file.
3491         * modules/stdio-tests (Depends-on): Add fputc-tests.
3492
3493         Tests for function fgetc().
3494         * modules/fgetc-tests: New file.
3495         * tests/test-fgetc.c: New file.
3496         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3497
3498         Tests for function fdopen().
3499         * modules/fdopen-tests: New file.
3500         * tests/test-fdopen.c: New file.
3501         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3502
3503         Tests for module 'vdprintf'.
3504         * modules/vdprintf-tests: New file.
3505         * tests/test-vdprintf.c: New file.
3506
3507         Tests for module 'dprintf'.
3508         * modules/dprintf-tests: New file.
3509         * tests/test-dprintf.c: New file.
3510
3511 2011-09-20  Bruno Haible  <bruno@clisp.org>
3512
3513         Tests for module 'ioctl'.
3514         * modules/ioctl-tests: New file.
3515         * tests/test-ioctl.c: New file.
3516
3517 2011-09-20  Bruno Haible  <bruno@clisp.org>
3518
3519         fcntl tests: EBADF tests.
3520         * tests/test-fcntl.c (main): Add more tests for EBADF.
3521
3522 2011-09-20  Bruno Haible  <bruno@clisp.org>
3523
3524         utimensat tests: EBADF tests.
3525         * tests/test-utimensat.c (main): Add tests for EBADF.
3526
3527         renameat tests: EBADF tests.
3528         * tests/test-renameat.c (main): Add tests for EBADF.
3529
3530         mkfifoat tests: EBADF tests.
3531         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3532
3533         readlinkat tests: EBADF tests.
3534         * tests/test-readlinkat.c (main): Add tests for EBADF.
3535
3536         symlinkat tests: EBADF tests.
3537         * tests/test-symlinkat.c (main): Add tests for EBADF.
3538
3539         linkat tests: EBADF tests.
3540         * tests/test-linkat.c (main): Add tests for EBADF.
3541
3542         Tests for module 'faccessat'.
3543         * modules/faccessat-tests: New file.
3544         * tests/test-faccessat.c: New file.
3545
3546         fdopendir tests: EBADF tests.
3547         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3548
3549         openat tests: EBADF tests.
3550         * tests/test-fchownat.c (main): Add tests for EBADF.
3551         * tests/test-fstatat.c (main): Likewise.
3552         * tests/test-mkdirat.c (main): Likewise.
3553         * tests/test-openat.c (main): Likewise.
3554         * tests/test-unlinkat.c (main): Likewise.
3555         * tests/test-fchmodat.c: New file.
3556         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3557         (Makefile.am): Also run 'test-fchmodat'.
3558
3559 2011-09-20  Bruno Haible  <bruno@clisp.org>
3560
3561         utimens, futimens, fdutimensat tests: EBADF tests.
3562         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3563
3564         Tests for function fstat().
3565         * modules/fstat-tests: New file.
3566         * tests/test-fstat.c: New file.
3567         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3568
3569 2011-09-20  Bruno Haible  <bruno@clisp.org>
3570
3571         test-ttyname_r tests: EBADF tests.
3572         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3573
3574         Tests for module 'isatty'.
3575         * modules/isatty-tests: New file.
3576         * tests/test-isatty.c: New file.
3577
3578         Tests for module 'write'.
3579         * modules/write-tests: New file.
3580         * tests/test-write.c: New file.
3581
3582         Tests for module 'read'.
3583         * modules/read-tests: New file.
3584         * tests/test-read.c: New file.
3585
3586         pwrite tests: EBADF tests.
3587         * tests/test-pwrite.c (main): Add tests for EBADF.
3588
3589         pread tests: EBADF tests.
3590         * tests/test-pread.c (main): Add tests for EBADF.
3591
3592         lseek tests: EBADF tests.
3593         * tests/test-lseek.c (main): Add more tests for EBADF.
3594
3595         Tests for module 'ftruncate'.
3596         * modules/ftruncate-tests: New file.
3597         * tests/test-ftruncate.sh: New file.
3598         * tests/test-ftruncate.c: New file.
3599
3600         fsync tests: EBADF tests.
3601         * tests/test-fsync.c (main): Add more tests for EBADF.
3602
3603         fdatasync tests: EBADF tests.
3604         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3605
3606         Tests for module 'fchown'.
3607         * modules/fchown-tests: New file.
3608         * tests/test-fchown.c: New file.
3609
3610         Tests for module 'fchmod'.
3611         * modules/fchmod-tests: New file.
3612         * tests/test-fchmod.c: New file.
3613
3614         fchdir tests: EBADF tests.
3615         * tests/test-fchdir.c (main): Add more tests for EBADF.
3616
3617         dup2 tests: EBADF tests.
3618         * tests/test-dup2.c (main): Add more tests for EBADF.
3619
3620         Tests for module 'dup'.
3621         * modules/dup-tests: New file.
3622         * tests/test-dup.c: New file.
3623
3624         Tests for module 'close'.
3625         * modules/close-tests: New file.
3626         * tests/test-close.c: New file.
3627
3628 2011-09-20  Bruno Haible  <bruno@clisp.org>
3629
3630         Tests for module 'shutdown'.
3631         * modules/shutdown-tests: New file.
3632         * tests/test-shutdown.c: New file.
3633
3634         Tests for module 'setsockopt'.
3635         * modules/setsockopt-tests: New file.
3636         * tests/test-setsockopt.c: New file.
3637
3638         Tests for module 'sendto'.
3639         * modules/sendto-tests: New file.
3640         * tests/test-sendto.c: New file.
3641
3642         Tests for module 'send'.
3643         * modules/send-tests: New file.
3644         * tests/test-send.c: New file.
3645
3646         Tests for module 'recvfrom'.
3647         * modules/recvfrom-tests: New file.
3648         * tests/test-recvfrom.c: New file.
3649
3650         Tests for module 'recv'.
3651         * modules/recv-tests: New file.
3652         * tests/test-recv.c: New file.
3653
3654         Tests for module 'listen'.
3655         * modules/listen-tests: New file.
3656         * tests/test-listen.c: New file.
3657
3658         Tests for module 'getsockopt'.
3659         * modules/getsockopt-tests: New file.
3660         * tests/test-getsockopt.c: New file.
3661
3662         Tests for module 'getsockname'.
3663         * modules/getsockname-tests: New file.
3664         * tests/test-getsockname.c: New file.
3665
3666         Tests for module 'getpeername'.
3667         * modules/getpeername-tests: New file.
3668         * tests/test-getpeername.c: New file.
3669
3670         Tests for module 'connect'.
3671         * modules/connect-tests: New file.
3672         * tests/test-connect.c: New file.
3673
3674         Tests for module 'bind'.
3675         * modules/bind-tests: New file.
3676         * tests/test-bind.c: New file.
3677
3678         accept4 tests: Fix for native Windows.
3679         * tests/test-accept4.c: Include sockets.h.
3680         (main): Invoke gl_sockets_startup.
3681         * modules/accept4-tests (Depends-on): Add sockets.
3682
3683         accept tests: Fix for native Windows.
3684         * tests/test-accept.c: Include sockets.h.
3685         (main): Invoke gl_sockets_startup.
3686         * modules/accept-tests (Depends-on): Add sockets.
3687
3688 2011-09-19  Bruno Haible  <bruno@clisp.org>
3689
3690         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3691         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3692         do...while(0).
3693         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3694         Suggested by Paul Eggert.
3695
3696 2011-09-19  Bruno Haible  <bruno@clisp.org>
3697
3698         sched: Ensure pid_t is defined.
3699         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3700         not define pid_t.
3701         * lib/sched.in.h: Include <sys/types.h>.
3702         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3703         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3704
3705 2011-09-19  Bruno Haible  <bruno@clisp.org>
3706
3707         msvc-inval: Ensure the entire expansion is a single statement.
3708         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3709         of braces.
3710
3711 2011-09-19  Jim Meyering  <meyering@redhat.com>
3712
3713         tests: use printf, not echo in init.sh's warn_ function
3714         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3715         misbehave when given strings containing a backslash or starting
3716         with e.g., -n.  James Youngman suggested setting IFS.
3717
3718 2011-09-19  Eric Blake  <eblake@redhat.com>
3719
3720         futimens: enhance test
3721         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3722         closed non-negative fd.
3723
3724         date: accept 'hence' as opposite of 'ago'
3725         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3726         * tests/test-parse-datetime.c (main): Enhance test.
3727         Suggested by Jesse Wilson.
3728
3729 2011-09-19  Jim Meyering  <meyering@redhat.com>
3730
3731         getcwd: don't fail in a deep directory on a system without openat
3732         Before this change, getcwd would fail when called from a directory
3733         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3734         the non-openat implementation used "..", "../..", "../../..", etc.
3735         to access ancestor directories.  With too many, that string would
3736         be longer than PATH_MAX.
3737         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3738         using gnulib's openat replacement.
3739         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3740         we're using the replacement function.
3741
3742 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3743
3744         maint.mk: avoid warnings from perl about missing files
3745         * top/maint.mk (def_sym_regex): Ignore files listed in
3746         $(gl_other_headers_) that do not exist, say because a project
3747         does not use a corresponding module.
3748
3749 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3750
3751         stat: use pathmax.h only if needed
3752         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3753         This is better for Emacs, which does not have a mingw port and
3754         therefore can avoid the pathmax module.
3755
3756         utimens: remove dependency on dup2
3757         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3758         to work around the Linux kernel bug.
3759         * modules/utimens (Depends-on): Remove dup2.
3760
3761 2011-09-18  Bruno Haible  <bruno@clisp.org>
3762
3763         inet_ntop, inet_pton: Look for it also in libresolv.
3764         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3765         libnsl, search for it in libresolv.
3766         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3767         Needed on Solaris 7.
3768
3769 2011-09-18  Bruno Haible  <bruno@clisp.org>
3770
3771         accept, accept4 tests: Avoid link error on Solaris.
3772         * modules/accept-tests (Makefile.am): Link test-accept against
3773         $(LIBSOCKET).
3774         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3775         $(LIBSOCKET).
3776
3777         accept4: Avoid link error on Solaris.
3778         * modules/accept4 (Link): New section.
3779
3780         socket functions: Avoid link errors on Solaris.
3781         * modules/accept (Depends-on): Add socketlib.
3782         (Link): New section.
3783         * modules/bind (Depends-on): Add socketlib.
3784         (Link): New section.
3785         * modules/connect (Depends-on): Add socketlib.
3786         (Link): New section.
3787         * modules/getpeername (Depends-on): Add socketlib.
3788         (Link): New section.
3789         * modules/getsockname (Depends-on): Add socketlib.
3790         (Link): New section.
3791         * modules/getsockopt (Depends-on): Add socketlib.
3792         (Link): New section.
3793         * modules/listen (Depends-on): Add socketlib.
3794         (Link): New section.
3795         * modules/recv (Depends-on): Add socketlib.
3796         (Link): New section.
3797         * modules/recvfrom (Depends-on): Add socketlib.
3798         (Link): New section.
3799         * modules/send (Depends-on): Add socketlib.
3800         (Link): New section.
3801         * modules/sendto (Depends-on): Add socketlib.
3802         (Link): New section.
3803         * modules/setsockopt (Depends-on): Add socketlib.
3804         (Link): New section.
3805         * modules/shutdown (Depends-on): Add socketlib.
3806         (Link): New section.
3807         * modules/socket (Depends-on): Add socketlib.
3808         (Link): New section.
3809
3810 2011-09-18  Bruno Haible  <bruno@clisp.org>
3811
3812         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3813         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3814         than 5 seconds.
3815         * modules/ptsname-tests (configure.ac): Test for alarm.
3816
3817 2011-09-18  Bruno Haible  <bruno@clisp.org>
3818
3819         posix_spawn_file_actions_add*: Fix module dependencies.
3820         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3821         posix_spawn_file_actions_init.
3822         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3823         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3824
3825 2011-09-18  Bruno Haible  <bruno@clisp.org>
3826
3827         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3828         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3829         * tests/test-renameat.c (main): Likewise.
3830
3831 2011-09-18  Bruno Haible  <bruno@clisp.org>
3832
3833         Tests for module 'accept4'.
3834         * modules/accept4-tests: New file.
3835         * tests/test-accept4.c: New file.
3836
3837 2011-09-18  Bruno Haible  <bruno@clisp.org>
3838
3839         Tests for module 'accept'.
3840         * modules/accept-tests: New file.
3841         * tests/test-accept.c: New file.
3842
3843 2011-09-18  Bruno Haible  <bruno@clisp.org>
3844
3845         dup2: Support for MSVC.
3846         * lib/dup2.c: Include msvc-inval.h.
3847         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3848         _get_osfhandle calls.
3849         * modules/dup2 (Depends-on): Add msvc-inval.
3850         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3851
3852         New module 'msvc-inval'.
3853         * lib/msvc-inval.h: New file.
3854         * lib/msvc-inval.c: New file.
3855         * m4/msvc-inval.m4: New file.
3856         * modules/msvc-inval: New file.
3857
3858 2011-09-17  Bruno Haible  <bruno@clisp.org>
3859
3860         Tests for module 'pclose'.
3861         * modules/pclose-tests: New file.
3862
3863         New module 'pclose'.
3864         * lib/stdio.in.h (pclose): New declaration.
3865         * lib/pclose.c: New file.
3866         * m4/pclose.m4: New file.
3867         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3868         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3869         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3870         * modules/pclose: New file.
3871         * modules/popen-tests (Depends-on): Add pclose.
3872         * modules/popen-safer-tests (Depends-on): Likewise.
3873         * doc/posix-functions/pclose.texi: Mention the new module.
3874
3875 2011-09-17  Bruno Haible  <bruno@clisp.org>
3876
3877         popen: Support for MSVC.
3878         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3879         * lib/popen.c (popen): Provide alternate definition for native Windows.
3880         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3882         * modules/popen (Depends-on, configure.ac): Update condition.
3883         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3884         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3885         fixed.
3886
3887 2011-09-17  Bruno Haible  <bruno@clisp.org>
3888
3889         isnanl, isnand, isnanf: Work around MSVC bug.
3890         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3891
3892 2011-09-17  Bruno Haible  <bruno@clisp.org>
3893
3894         sys_socket tests: Fix recent mistake.
3895         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3896
3897 2011-09-17  Bruno Haible  <bruno@clisp.org>
3898
3899         putenv: Support for MSVC.
3900         * modules/putenv (Depends-on): Add environ.
3901         * lib/putenv.c (environ): Disable declaration.
3902         * lib/unistd.in.h: Update comment.
3903
3904 2011-09-17  Bruno Haible  <bruno@clisp.org>
3905
3906         math: Avoid macro redefinition warnings on MSVC.
3907         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3908         Undefine before redefining.
3909
3910 2011-09-17  Bruno Haible  <bruno@clisp.org>
3911
3912         doc: Mention functions which are declared as macros.
3913         * doc/posix-functions/*[fl].texi: Mention that some functions are
3914         defined as macros with arguments only.
3915
3916 2011-09-17  Bruno Haible  <bruno@clisp.org>
3917
3918         Add dependencies to new dirent related modules.
3919         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3920         * modules/fts (Depends-on): Likewise.
3921         * modules/glob (Depends-on): Likewise.
3922         * modules/savedir (Depends-on): Likewise.
3923         * modules/scandir (Depends-on): Likewise.
3924         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3925         * modules/fdopendir (Depends-on): Add opendir.
3926
3927 2011-09-17  Bruno Haible  <bruno@clisp.org>
3928
3929         inet_pton: Support for MSVC on Windows Vista or newer.
3930         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3931         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3932         HAVE_DECL_INET_PTON is defined.
3933         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3934         On platforms with <winsock2.h>, test whether inet_pton is declared in
3935         <ws2tcpip.h>. If so, arrange to replace it.
3936         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3937         REPLACE_INET_PTON.
3938         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3939         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3940         (Depends-on, configure.ac): Update condition.
3941         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3942
3943 2011-09-17  Bruno Haible  <bruno@clisp.org>
3944
3945         inet_ntop: Support for MSVC on Windows Vista or newer.
3946         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3947         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3948         HAVE_DECL_INET_NTOP is defined.
3949         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3950         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3951         <ws2tcpip.h>. If so, arrange to replace it.
3952         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3953         REPLACE_INET_NTOP.
3954         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3955         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3956         (Depends-on, configure.ac): Update condition.
3957         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3958
3959 2011-09-16  Eric Blake  <eblake@redhat.com>
3960
3961         test-fsync: yet another enhancement
3962         * tests/test-fsync.c (main): Also test behavior on read-only text
3963         file.
3964
3965 2011-09-16  Bruno Haible  <bruno@clisp.org>
3966
3967         Enhance fsync, fdatasync tests.
3968         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3969         * tests/test-fdatasync.c (main): Likewise.
3970
3971 2011-09-16  Bruno Haible  <bruno@clisp.org>
3972
3973         Support for MSVC compiler: Ensure mode_t gets defined.
3974         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3975         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3976         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3977         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3978         * tests/test-fcntl-h.c: Check that mode_t is defined.
3979         * tests/test-sys_stat.c: Likewise.
3980         * tests/test-sys_types.c: Likewise.
3981         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3982         * doc/posix-headers/sys_stat.texi: Likewise.
3983         * doc/posix-headers/sys_types.texi: Likewise.
3984
3985 2011-09-16  Bruno Haible  <bruno@clisp.org>
3986
3987         sys_stat: Support for MSVC.
3988         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3989         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3990         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3991         MSVC.
3992
3993 2011-09-16  Bruno Haible  <bruno@clisp.org>
3994
3995         Support for MSVC compiler: Ensure off_t gets defined.
3996         * lib/unistd.in.h: Include <sys/types.h>.
3997         * tests/test-fcntl-h.c: Check that off_t is defined.
3998         * tests/test-sys_stat.c: Likewise.
3999         * tests/test-sys_types.c: Likewise.
4000
4001 2011-09-16  Eric Blake  <eblake@redhat.com>
4002
4003         fdatasync: port to Solaris
4004         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4005         * modules/fdatasync (Link): Document it.
4006         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4007
4008         fdatasync: port to MacOS X 10.7
4009         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4010         declared.
4011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4012         * modules/unistd (Makefile.am): Substitute it.
4013         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4014         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4015
4016         fdatasync: minor improvements
4017         * modules/fdatasync (Depends-on): Add condition for fsync.
4018         * lib/fdatasync.c (fdatasync): Add comment.
4019         * tests/test-unistd-c++.cc: Test fdatasync.
4020
4021         unistd: update refs to newer POSIX
4022         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4023         Suggested by Bruno Haible.
4024
4025         fdatasync: new module
4026         * modules/fsync (Description): Document difference to fdatasync.
4027         * modules/fdatasync: New module.
4028         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4029         * lib/fdatasync.c (fdatasync): Likewise.
4030         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4031         defaults.
4032         * modules/unistd (Makefile.am): Set witnesses.
4033         * lib/unistd.in.h (fdatasync): Declare.
4034         * MODULES.html.sh: Document it.
4035         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4036         * modules/fdatasync-tests: New test.
4037         * tests/test-fdatasync.c: Likewise.
4038
4039 2011-09-16  Eric Blake  <eblake@redhat.com>
4040
4041         test-fsync: enhance tests
4042         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4043         * tests/test-fsync.c (main): Enhance test.
4044
4045 2011-09-15  Bruno Haible  <bruno@clisp.org>
4046
4047         Support for MSVC compiler: Ensure ssize_t gets defined.
4048         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4049         * doc/posix-headers/stdio.texi: Likewise.
4050         * modules/stdio (Depends-on): Add ssize_t.
4051         * modules/sys_socket (Depends-on): Likewise.
4052         * modules/sys_types (Depends-on): Likewise.
4053         * modules/sys_uio (Depends-on): Likewise.
4054         * modules/unistd (Depends-on): Likewise.
4055         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4056         * tests/test-sys_types.c: Check that ssize_t is defined.
4057
4058 2011-09-14  Bruno Haible  <bruno@clisp.org>
4059
4060         Avoid using #, the m4 comment starter character, near brackets.
4061         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4062         delimiter character in sed expressions.
4063         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4064         Suggested by Eric Blake.
4065
4066         Properly quote AC_CHECK_DECLS' 4th argument.
4067         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4068         argument.
4069         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4070         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4071         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4072         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4073         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4074         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4075         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4076         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4077         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4078         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4079         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4080         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4081         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4082         * m4/isinf.m4 (gl_ISINF): Likewise.
4083         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4084         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4085         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4086         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4087         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4088         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4089         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4090         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4091         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4092         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4093         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4094         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4095         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4096         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4097         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4098         Reported by Eric Blake.
4099
4100         Properly quote AC_CHECK_DECL's 4th argument.
4101         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4102         argument.
4103         * m4/argp.m4 (gl_ARGP): Likewise.
4104         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4105         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4106         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4107         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4108         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4109         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4110         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4111         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4112         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4113         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4114         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4115         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4116         Reported by Eric Blake.
4117
4118 2011-09-14  Eric Blake  <eblake@redhat.com>
4119
4120         opendir: avoid compile warning
4121         * lib/opendir.c (includes): Always include errno.h.
4122         Reported by Tatsuro MATSUOKA.
4123
4124 2011-09-14  Jim Meyering  <meyering@redhat.com>
4125
4126         maint.mk: sc_tight_scope: propagate failure from sub-make
4127         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4128         Reported by Martin von Gagern.
4129
4130 2011-09-13  Bruno Haible  <bruno@clisp.org>
4131
4132         tempname: Support for MSVC.
4133         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4134         MSVC.
4135         * modules/tempname (Depends-on): Add fcntl-h.
4136
4137 2011-09-13  Bruno Haible  <bruno@clisp.org>
4138
4139         sys_time: Support for MSVC.
4140         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4141         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4142         include <winsock2.h>.
4143         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4144         function declarations that collide with POSIX.
4145         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4146         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4147
4148 2011-09-13  Bruno Haible  <bruno@clisp.org>
4149
4150         stat: Support for MSVC.
4151         * lib/stat.c: Include pathmax.h.
4152         * modules/stat (Depends-on): Add pathmax.
4153
4154         pathmax: Support for native Windows.
4155         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4156
4157 2011-09-12  Bruno Haible  <bruno@clisp.org>
4158
4159         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4160         * lib/dirent.in.h (struct dirent): New type.
4161         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4162         DT_WHT): New macros.
4163         (DIR): New type.
4164         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4165         (readdir, rewinddir): New declarations.
4166         * lib/dirent-private.h: New file.
4167         * lib/opendir.c: New file.
4168         * lib/readdir.c: New file.
4169         * lib/rewinddir.c: New file.
4170         * lib/closedir.c: New file.
4171         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4172         * m4/opendir.m4: New file.
4173         * m4/readdir.m4: New file.
4174         * m4/rewinddir.m4: New file.
4175         * m4/closedir.m4: New file.
4176         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4177         REPLACE_CLOSEDIR here.
4178         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4179         readdir, rewinddir are declared.
4180         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4181         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4182         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4183         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4184         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4185         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4186         * modules/opendir: New file.
4187         * modules/readdir: New file.
4188         * modules/rewinddir: New file.
4189         * modules/closedir: New file.
4190         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4191         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4192         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4193         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4194         * NEWS: Mention the 'fchdir' change.
4195
4196 2011-09-11  Bruno Haible  <bruno@clisp.org>
4197
4198         asm-underscore.m4: Support for MSVC.
4199         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4200         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4201
4202 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4203
4204         Doc about crypt functions.
4205         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4206         needing for _GNU_SOURCE to get crypt.
4207         * doc/posix-functions/encrypt.texi: Likewise.
4208         * doc/posix-functions/setkey.texi: Likewise.
4209
4210 2011-09-11  Bruno Haible  <bruno@clisp.org>
4211
4212         doc: Update regarding MSVC 9.
4213         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4214         tested".
4215         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4216         * doc/posix-headers/*.texi: Likewise.
4217         * doc/pastposix-functions/*.texi: Likewise.
4218         * doc/glibc-functions/*.texi: Likewise.
4219         * doc/glibc-headers/*.texi: Likewise.
4220
4221 2011-09-11  Bruno Haible  <bruno@clisp.org>
4222
4223         unistd et al.: Don't assume <unistd.h> exists.
4224         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4225         does not exist.
4226         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4227         exist. But include <stdlib.h>.
4228         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4229         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4230         symlink() does not exist.
4231         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4232         include <io.h> instead.
4233         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4234         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4235         include <direct.h> instead.
4236         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4237         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4238         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4239         <io.h> instead.
4240         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4241         correctly if the system does not have hard links.
4242         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4243         <direct.h> instead.
4244         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4245         it when looking for function declarations.
4246         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4247         <direct.h> and <io.h> instead.
4248         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4249
4250 2011-09-11  Bruno Haible  <bruno@clisp.org>
4251
4252         strcase: Support for MSVC.
4253         * modules/strcase (Status, Notice): Remove obsoletion mark.
4254         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4255         * doc/posix-functions/strncasecmp.texi: Likewise.
4256
4257         strings: Don't assume <strings.h> exists.
4258         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4259         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4260         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4261         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4262
4263 2011-09-11  Bruno Haible  <bruno@clisp.org>
4264
4265         dirent: Don't assume <dirent.h> exists.
4266         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4267         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4268         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4269         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4270
4271 2011-09-11  Bruno Haible  <bruno@clisp.org>
4272
4273         Fix wint_t on MSVC.
4274         * lib/wchar.in.h (wint_t): On MSVC, override it.
4275         * lib/wctype.in.h (wint_t): Likewise.
4276         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4277         MSVC.
4278         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4279         * doc/posix-headers/wctype.texi: Likewise.
4280
4281 2011-09-11  Bruno Haible  <bruno@clisp.org>
4282
4283         sys_types: Fix typo.
4284         * lib/sys_types.in.h: Fix typo in comment.
4285         Reported by Paul Eggert.
4286
4287         Support for MSVC compiler: Ensure size_t gets defined.
4288         * modules/strings (Depends-on): Add 'sys_types'.
4289         * modules/sys_uio (Depends-on): Likewise.
4290         * lib/sys_uio.in.h: Update comment.
4291
4292         C++ tests for module 'sys_types'.
4293         * modules/sys_types-c++-tests: New file.
4294         * tests/test-sys_types-c++.cc: New file.
4295
4296         Tests for module 'sys_types'.
4297         * modules/sys_types-tests: New file.
4298         * tests/test-sys_types.c: New file.
4299
4300         New module 'sys_types'.
4301         * lib/sys_types.in.h: New file.
4302         * m4/sys_types_h.m4: New file.
4303         * modules/sys_types: New file.
4304         * doc/posix-headers/sys_types.texi: Mention the new module and the
4305         size_t problem on MSVC 9.
4306
4307 2011-09-11  Bruno Haible  <bruno@clisp.org>
4308
4309         Support for MSVC compiler: Avoid division by a literal 0.
4310         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4311         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4312         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4313         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4314         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4315         * tests/infinity.h: New file.
4316         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4317         on MSVC.
4318         * tests/test-ceilf1.c: Include infinity.h.
4319         (main): Use Infinityf.
4320         * tests/test-ceil1.c: Include infinity.h.
4321         (main): Use Infinityd.
4322         * tests/test-ceill.c: Include infinity.h.
4323         (main): Use Infinityl.
4324         * tests/test-dprintf-posix.c: Include infinity.h.
4325         (test_function): Use Infinityd.
4326         * tests/test-floorf1.c: Include infinity.h.
4327         (main): Use Infinityf.
4328         * tests/test-floor1.c: Include infinity.h.
4329         (main): Use Infinityd.
4330         * tests/test-floorl.c: Include infinity.h.
4331         (main): Use Infinityl.
4332         * tests/test-fprintf-posix.c: Include infinity.h.
4333         (test_function): Use Infinityd.
4334         * tests/test-frexp.c: Include infinity.h.
4335         (main): Use Infinityd.
4336         * tests/test-frexpl.c: Include infinity.h.
4337         (main): Use Infinityl.
4338         * tests/test-isfinite.c: Include infinity.h.
4339         (test_isfinitef): Use Infinityf.
4340         (test_isfinited): Use Infinityd.
4341         (test_isfinitel): Use Infinityl.
4342         * tests/test-isinf.c: Include infinity.h.
4343         (test_isinff): Use Infinityf.
4344         (test_isinfd): Use Infinityd.
4345         (test_isinfl): Use Infinityl.
4346         * tests/test-isnan.c: Include infinity.h.
4347         (test_float): Use Infinityf.
4348         (test_double): Use Infinityd.
4349         (test_long_double): Use Infinityl.
4350         * tests/test-isnanf.h: Include infinity.h.
4351         (main): Use Infinityf.
4352         * tests/test-isnand.h: Include infinity.h.
4353         (main): Use Infinityd.
4354         * tests/test-isnanl.h: Include infinity.h.
4355         (main): Use Infinityl.
4356         * tests/test-ldexpl.c: Include infinity.h.
4357         (main): Use Infinityl.
4358         * tests/test-printf-posix.h: Include infinity.h.
4359         (test_function): Use Infinityd.
4360         * tests/test-roundf1.c: Include infinity.h.
4361         (main): Use Infinityf.
4362         * tests/test-round1.c: Include infinity.h.
4363         (main): Use Infinityd.
4364         * tests/test-roundl.c: Include infinity.h.
4365         (main): Use Infinityl.
4366         * tests/test-signbit.c: Include infinity.h.
4367         (test_signbitf): Use Infinityf.
4368         (test_signbitd): Use Infinityd.
4369         (test_signbitl): Use Infinityl.
4370         * tests/test-snprintf-posix.h: Include infinity.h.
4371         (test_function): Use Infinityd, Infinityl.
4372         * tests/test-sprintf-posix.h: Include infinity.h.
4373         (test_function): Use Infinityd, Infinityl.
4374         * tests/test-truncf1.c: Include infinity.h.
4375         (main): Use Infinityf.
4376         * tests/test-trunc1.c: Include infinity.h.
4377         (main): Use Infinityd.
4378         * tests/test-truncl.c: Include infinity.h.
4379         (main): Use Infinityl.
4380         * tests/test-vasnprintf-posix.c: Include infinity.h.
4381         (test_function): Use Infinityd, Infinityl.
4382         * tests/test-vasprintf-posix.c: Include infinity.h.
4383         (test_function): Use Infinityd, Infinityl.
4384         * modules/ceilf-tests (Files): Add tests/infinity.h.
4385         * modules/ceil-tests (Files): Likewise.
4386         * modules/ceill-tests (Files): Likewise.
4387         * modules/dprintf-posix-tests (Files): Likewise.
4388         * modules/floorf-tests (Files): Likewise.
4389         * modules/floor-tests (Files): Likewise.
4390         * modules/floorl-tests (Files): Likewise.
4391         * modules/fprintf-posix-tests (Files): Likewise.
4392         * modules/frexp-tests (Files): Likewise.
4393         * modules/frexp-nolibm-tests (Files): Likewise.
4394         * modules/frexpl-tests (Files): Likewise.
4395         * modules/frexpl-nolibm-tests (Files): Likewise.
4396         * modules/isfinite-tests (Files): Likewise.
4397         * modules/isinf-tests (Files): Likewise.
4398         * modules/isnan-tests (Files): Likewise.
4399         * modules/isnanf-tests (Files): Likewise.
4400         * modules/isnanf-nolibm-tests (Files): Likewise.
4401         * modules/isnand-tests (Files): Likewise.
4402         * modules/isnand-nolibm-tests (Files): Likewise.
4403         * modules/isnanl-tests (Files): Likewise.
4404         * modules/isnanl-nolibm-tests (Files): Likewise.
4405         * modules/ldexpl-tests (Files): Likewise.
4406         * modules/printf-posix-tests (Files): Likewise.
4407         * modules/roundf-tests (Files): Likewise.
4408         * modules/round-tests (Files): Likewise.
4409         * modules/roundl-tests (Files): Likewise.
4410         * modules/signbit-tests (Files): Likewise.
4411         * modules/snprintf-posix-tests (Files): Likewise.
4412         * modules/sprintf-posix-tests (Files): Likewise.
4413         * modules/truncf-tests (Files): Likewise.
4414         * modules/trunc-tests (Files): Likewise.
4415         * modules/truncl-tests (Files): Likewise.
4416         * modules/vasnprintf-posix-tests (Files): Likewise.
4417         * modules/vasprintf-posix-tests (Files): Likewise.
4418         * modules/vdprintf-posix-tests (Files): Likewise.
4419         * modules/vfprintf-posix-tests (Files): Likewise.
4420         * modules/vprintf-posix-tests (Files): Likewise.
4421         * modules/vsnprintf-posix-tests (Files): Likewise.
4422         * modules/vsprintf-posix-tests (Files): Likewise.
4423         * modules/xprintf-posix-tests (Files): Likewise.
4424
4425 2011-09-11  Bruno Haible  <bruno@clisp.org>
4426
4427         Ensure pid_t gets defined.
4428         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4429         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4430         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4431         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4432         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4433         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4434         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4435         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4436         * tests/test-fcntl-h.c: Check that pid_t is defined.
4437         * tests/test-sched.c: Likewise.
4438         * tests/test-termios.c: Likewise.
4439         * tests/test-time.c: Likewise.
4440         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4441         * doc/posix-headers/signal.texi: Likewise.
4442         * doc/posix-headers/sys_types.texi: Likewise.
4443         * doc/posix-headers/time.texi: Likewise.
4444
4445 2011-09-11  Bruno Haible  <bruno@clisp.org>
4446
4447         acl: Fix compilation on Solaris 10 (older version).
4448         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4449         of ACE_EVERYONE.
4450         * lib/set-mode-acl.c (qset_acl): Likewise.
4451         Reported by Christian Jullien <eligis@orange.fr>.
4452
4453 2011-09-10  Bruno Haible  <bruno@clisp.org>
4454
4455         iconv, unsetenv: Add support for MSVC compiler.
4456         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4457         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4458
4459 2011-09-10  Bruno Haible  <bruno@clisp.org>
4460
4461         *printf: Add support for MSVC compiler.
4462         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4463         handles the exception caused by the %n directive. When cross-compiling,
4464         guess no on native Windows.
4465         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4466         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4467         emulate it through vsnprintf.
4468         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4469         * doc/posix-functions/dprintf.texi: Update documentation regarding
4470         MSVC 9.
4471         * doc/posix-functions/fprintf.texi: Likewise.
4472         * doc/posix-functions/printf.texi: Likewise.
4473         * doc/posix-functions/snprintf.texi: Likewise.
4474         * doc/posix-functions/sprintf.texi: Likewise.
4475         * doc/posix-functions/swprintf.texi: Likewise.
4476         * doc/posix-functions/vdprintf.texi: Likewise.
4477         * doc/posix-functions/vfprintf.texi: Likewise.
4478         * doc/posix-functions/vprintf.texi: Likewise.
4479         * doc/posix-functions/vsnprintf.texi: Likewise.
4480         * doc/posix-functions/vsprintf.texi: Likewise.
4481         * doc/glibc-functions/asprintf.texi: Likewise.
4482         * doc/glibc-functions/obstack_printf.texi: Likewise.
4483         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4484         * doc/glibc-functions/vasprintf.texi: Likewise.
4485
4486 2011-09-10  Bruno Haible  <bruno@clisp.org>
4487
4488         nocrash: Add support for native Windows.
4489         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4490
4491 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4492             Bruno Haible  <bruno@clisp.org>
4493
4494         absolute-header, include-next: Add support for MSVC compiler.
4495         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4496         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4497         directory separator in #line directives.
4498         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4499         recognize also backslash as directory separator in #line directives.
4500
4501 2011-09-08  Jim Meyering  <meyering@redhat.com>
4502
4503         maint.mk: mark the post-release commit log with "maint: " prefix
4504         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4505         one-line commit-log summary.
4506
4507 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4508             Bruno Haible  <bruno@clisp.org>
4509
4510         Doc about crypt functions.
4511         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4512         systems.
4513         * doc/posix-functions/encrypt.texi: Likewise.
4514         * doc/posix-functions/setkey.texi: Likewise.
4515
4516 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4517
4518         * lib/gc.h: Fix copyright header.
4519
4520 2011-09-07  Bruno Haible  <bruno@clisp.org>
4521
4522         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4523         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4524         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4525
4526 2011-09-07  Bruno Haible  <bruno@clisp.org>
4527
4528         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4529         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4530         * lib/freopen.c: Likewise.
4531         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4532         * lib/lstat.c: Likewise.
4533         * lib/stat.c: Likewise.
4534         * lib/open.c: Use different syntax for include of <fcntl.h>.
4535         * lib/openat.c: Include fcntl.h again, explicitly.
4536
4537 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4538
4539         parse-datetime: document the newly accepted format
4540         * doc/parse-datetime.texi (Combined date and time of day items):
4541         New section.
4542
4543 2011-09-06  Bruno Haible  <bruno@clisp.org>
4544
4545         acl: Fix a test failure on newer Solaris 10 with ZFS.
4546         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4547         ENOSYS as no ACL.
4548         Reported by Jim Meyering.
4549
4550 2011-09-06  Bruno Haible  <bruno@clisp.org>
4551
4552         acl: Update for AIX >= 5.3 with NFS.
4553         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4554         ENOSYS as no ACL.
4555
4556         acl: Fix a test failure on AIX >= 5.3 with NFS.
4557         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4558         as no ACL.
4559
4560 2011-09-06  Bruno Haible  <bruno@clisp.org>
4561
4562         acl: Fix a test failure on IRIX 6.5 with NFS.
4563         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4564         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4565         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4566         * lib/copy-acl.c (qcopy_acl): Likewise.
4567
4568 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4569
4570         openat: port to AIX 7.1 with large files
4571         AIX 7.1 does a "#define openat open64at" if large files are in use,
4572         so we can't simply #undef openat.  Use the orig_openat trick (similar
4573         to orig_open in lib/open.c) to work around the problem.  Problem
4574         reported by Kevin Brott for GNU tar, in the thread containing
4575         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4576         * lib/openat.c (__need_system_fcntl_h): Define first.
4577         Include <fcntl.h> and <sys/types.h> before undefining.
4578         (orig_openat) [HAVE_OPENAT]: New inline function.
4579         (openat) [HAVE_OPENAT]: Do not undef.
4580         (rpl_openat): Use orig_openat, not openat.
4581
4582 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4583             Bruno Haible  <bruno@clisp.org>
4584
4585         acl: Avoid errors on NonStop Kernel.
4586         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4587         ENOTSUP errors.
4588
4589 2011-09-05  Bruno Haible  <bruno@clisp.org>
4590
4591         acl: Clean up Solaris code.
4592         * lib/acl-internal.h: Remove no-op #if.
4593         * lib/file-has-acl.c: Likewise.
4594         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4595         * lib/copy-acl.c (qcopy_acl): Likewise.
4596
4597 2011-09-05  Bruno Haible  <bruno@clisp.org>
4598
4599         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4600         binaries built on the original Solaris 10.
4601         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4602         trivial.
4603
4604 2011-09-05  Bruno Haible  <bruno@clisp.org>
4605
4606         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4607         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4608         10.
4609         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4610         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4611         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4612         instead of acl_get, facl_get, acl_set, facl_set.
4613
4614 2011-09-05  Bruno Haible  <bruno@clisp.org>
4615
4616         copy-file: Try unit tests on more file systems.
4617         * tests/test-copy-file-1.sh: New file.
4618         * tests/test-copy-file-2.sh: New file.
4619         * modules/copy-file-tests (Files): Add them.
4620         (Makefile.am): Add them to TESTS.
4621
4622         acl: Try unit tests on more file systems.
4623         * tests/test-file-has-acl-1.sh: New file.
4624         * tests/test-file-has-acl-2.sh: New file.
4625         * tests/test-set-mode-acl-1.sh: New file.
4626         * tests/test-set-mode-acl-2.sh: New file.
4627         * tests/test-copy-acl-1.sh: New file.
4628         * tests/test-copy-acl-2.sh: New file.
4629         * modules/acl-tests (Files): Add them.
4630         (Makefile.am): Add them to TESTS.
4631
4632 2011-09-04  Bruno Haible  <bruno@clisp.org>
4633
4634         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4635         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4636         10.
4637         (OLD_ALLOW, OLD_DENY): New macros.
4638         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4639         ACE_ACCESS_ALLOWED_ACE_TYPE.
4640         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4641         ACE_ACCESS_DENIED_ACE_TYPE.
4642         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4643         (NEW_ACE_EXECUTE): Fix value.
4644         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4645         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4646         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4647         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4648         NEW_ACE_SYNCHRONIZE): New macros.
4649         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4650         instead of acl_fromtext, acl_set, facl_set.
4651         Fixes a coreutils/tests/cp/perm failure.
4652
4653 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4654
4655         openat: test for fstatat (..., 0) bug
4656         Further testing with tar suggests that fstatat (..., 0)
4657         does not work in general, on AIX 7.1; see
4658         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4659         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4660         replacement fstatat (which is what older AIX releases were using
4661         anyway).
4662         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4663         use is now changed to orig_fstatat.  This was probably the right
4664         thing to do anyway.
4665         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4666         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4667         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4668         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4669         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4670         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4671         if the bug is found.
4672
4673         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4674         This tests for another fstatat bug on AIX 7.1:
4675         fstatat (AT_FDCWD, ..., 0) does not work.  See
4676         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4677         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4678         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4679         (rpl_fstatat): Adjust so that it works around either (or both)
4680         bugs if present.
4681         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4682
4683 2011-09-03  Karl Berry  <karl@gnu.org>
4684
4685         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4686         in index entries.
4687
4688 2011-09-02  Bruno Haible  <bruno@clisp.org>
4689
4690         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4691         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4692         values of AR, ARFLAGS, RANLIB.
4693         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4694
4695 2011-09-02  Bruno Haible  <bruno@clisp.org>
4696
4697         Find 'ar' program that fits with --host argument.
4698         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4699
4700 2011-09-02  Bruno Haible  <bruno@clisp.org>
4701
4702         tests: init.sh: Support any non-GNU diff.
4703         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4704         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4705         Solaris 8.
4706
4707 2011-09-02  Bruno Haible  <bruno@clisp.org>
4708
4709         tests: init.sh: work also with any non-GNU diff that supports -u
4710         * tests/init.sh: Relax check for diff -u support.
4711         Rather than checking for GNU diff via --version, simply check
4712         for support for -u itself.  Useful at least on OpenBSD 4.9,
4713         AIX 7.1, IRIX 6.5, and Solaris 10.
4714
4715 2011-09-01  Bruno Haible  <bruno@clisp.org>
4716
4717         strtoimax, strtoumax: Document problem on HP-UX 11.
4718         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4719         * doc/posix-functions/strtoumax.texi: Likewise.
4720
4721 2011-09-01  Bruno Haible  <bruno@clisp.org>
4722
4723         strtoumax: Avoid link error on OSF/1 with DTK cc.
4724         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4725         defined as a function.
4726         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4727         strtoumax is defined, not whether it is declared.
4728
4729 2011-09-01  Bruno Haible  <bruno@clisp.org>
4730
4731         strtoimax: Avoid link error on OSF/1 with DTK cc.
4732         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4733         defined as a function.
4734         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4735         strtoimax is defined, not whether it is declared.
4736
4737 2011-09-01  Bruno Haible  <bruno@clisp.org>
4738
4739         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4740         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4741         as a function.
4742         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4743         whether it is declared.
4744
4745 2011-09-01  Bruno Haible  <bruno@clisp.org>
4746
4747         imaxabs: Avoid link error on OSF/1 with DTK cc.
4748         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4749         as a function.
4750         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4751         whether it is declared.
4752
4753 2011-09-01  Bruno Haible  <bruno@clisp.org>
4754
4755         Tests for module 'strtoumax'.
4756         * modules/strtoumax-tests: New file.
4757         * tests/test-strtoumax.c: New file.
4758
4759         Tests for module 'strtoimax'.
4760         * modules/strtoimax-tests: New file.
4761         * tests/test-strtoimax.c: New file.
4762
4763         Tests for module 'imaxdiv'.
4764         * modules/imaxdiv-tests: New file.
4765         * tests/test-imaxdiv.c: New file.
4766
4767         Tests for module 'imaxabs'.
4768         * modules/imaxabs-tests: New file.
4769         * tests/test-imaxabs.c: New file.
4770
4771 2011-09-01  Bruno Haible  <bruno@clisp.org>
4772
4773         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4774         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4775         pthread_create.
4776
4777 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4778
4779         openat: work around AIX 7.1 fstatat issue
4780         This should fix the problem that was not properly fixed
4781         in the previous change, dated 2011-08-30.
4782         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4783         __need_system_stat_h defined.
4784         (orig_fstatat) [HAVE_FSTATAT]: New function.
4785         (rpl_fstatat): Go back to the old way of doing things,
4786         except call orig_fstatat instead of fstatat.
4787         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4788         Remove unnecessary check whether fstatat fills in st_size etc.
4789
4790 2011-09-01  Bruno Haible  <bruno@clisp.org>
4791
4792         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4793         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4794         just include the system's header.
4795
4796 2011-08-31  Jim Meyering  <meyering@redhat.com>
4797
4798         tests: avoid spurious assertion failure in test-float.c on ppc64
4799         * tests/test-float.c (test_long_double): Comment out an assertion,
4800         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4801         with gcc-4.4.4.
4802
4803         maint: indent with spaces, not TABs
4804         I need to get in the habit of running gnulib's "make check".
4805         Both of these would have been caught.
4806         * m4/largefile.m4: Indent with spaces, not TABs.
4807         * lib/parse-datetime.y (iso_8601_time): Likewise.
4808         Spotted by Pádraig Brady.
4809
4810         test-parse-datetime.c: accommodate a relatively strict gcc warning
4811         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4812         to avoid a warning from gcc's -Werror=missing-declarations.
4813         Insert a few spaces-before-funcall-parenthesis.
4814
4815 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4816
4817         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4818         The parser now accepts ISO 8601 date-time strings with "T" as the
4819         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4820         with a space between the date and time strings.  Now it also parses
4821         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4822         variants like "2004-02-29T16:21:42.333-07:00"
4823         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4824         of day representation using the 'T' separator character.
4825         * doc/parse-datetime.texi (General date syntax): replace use of
4826         deprecated --iso-8601 option with --rfc-3339 in example of date
4827         command output formats that can be parsed.
4828         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4829         lib/parse-datetime.y.
4830         (gmt_offset): New function.
4831         (main): Add additional test cases to validate ISO8601 extended
4832         date and time of day parsing.
4833
4834 2011-08-31  Bruno Haible  <bruno@clisp.org>
4835
4836         freopen: Documentation.
4837         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4838         name.
4839         Reported by Claudio Bley <claudio.bley@gmail.com>.
4840
4841 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4842
4843         freopen: Don't crash if the filename argument is NULL.
4844         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4845         NULL.
4846
4847 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4848
4849         openat: work around AIX 7.1 fstatat bug
4850         Problem reported by Kevin Brott for GNU tar, in the thread containing
4851         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4852         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4853         FSTATAT_ST_SIZE_ETC_BROKEN.
4854         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4855         rpl_fstatat.
4856         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4857         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4858         AC_CHECK_FUNCS_ONCE for fstatat.
4859         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4860         fchmodat, mkdirat, openat and unlinkat.
4861
4862 2011-08-30  Bruno Haible  <bruno@clisp.org>
4863
4864         Avoid endless recursions if config.h includes some header files.
4865         * lib/fopen.c (__need_FILE): Define already before including config.h.
4866         * lib/freopen.c (__need_FILE): Likewise.
4867         * lib/open.c (__need_system_fcntl_h): Likewise.
4868         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4869         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4870         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4871
4872 2011-08-25  Karl Berry  <karl@gnu.org>
4873
4874         * config/srclist.txt (ylwrap): new try.
4875         * build-aux/ylwrap: new file.
4876
4877 2011-08-23  Bruno Haible  <bruno@clisp.org>
4878
4879         tmpdir: Use a good default directory on native Windows.
4880         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4881         (P_tmpdir): Default to _P_tmpdir on native Windows.
4882         (path_search): On native Windows, try the value returned by GetTempPath
4883         before trying P_tmpdir.
4884         * modules/tmpdir (Depends-on): Add pathmax.
4885         Suggested by John Darrington <john@darrington.wattle.id.au>.
4886
4887 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4888
4889         doc: fix typo in README-release
4890         * top/README-release: Capitalize first word of a sentence.
4891
4892 2011-08-19  Jim Meyering  <meyering@redhat.com>
4893
4894         fts: do not exhaust memory when processing million-entry directories
4895         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4896         directory would require about 256*N bytes of memory.  Thus, it was
4897         easy to construct a directory too large to be processed by any of
4898         those tools.  With this change, fts' maximum memory utilization is
4899         now limited to around 30MB.
4900         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4901         (fts_read): When we've processed the final entry (i.e., when
4902         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4903         using the parent entry to read any remaining entries.  Dispatch
4904         depending on what fts_build returns:
4905         - NULL+stop, aka failure: stop
4906         - NULL otherwise: move up in the dir hierarchy
4907         - non-NULL: handle this new entry
4908         (fts_build): Declare and use new local, continue_readdir.
4909         Prepare to be called from fts_read, when the entries
4910         from a partially-read directory have just been exhausted.
4911         In that case, we'll skip the opendir and instead use the parent's
4912         fts_dirp and derive dir_fd from that.
4913         Finally, in the readdir loop, if we read max_entries entries,
4914         exit the loop ensuring *not* to call closedir.  This is required
4915         so that fts_dirp can be reused on a subsequent call.
4916         Prompted by Ben England's report of memory exhaustion in find
4917         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4918
4919         maint: fts: move decl of `dp' down into while loop; split a long line
4920         * lib/fts.c (fts_build): No semantic change.
4921
4922         fts: add/use new struct member, fts_dirp
4923         We are about to use this to manage any directory with
4924         too many entries to read all of them into memory at once.
4925         To do that, we'll need to save the DIR* pointer in each
4926         affected FTSENT struct.
4927         * lib/fts_.h: Include <dirent.h>.
4928         (struct FTSENT) [fts_dirp]: New member.
4929         * lib/fts.c (closedir_and_clear): Define.
4930         Use it in place of closedir so that we are sure to
4931         clear the new fts_dirp member when done with it.
4932         (fts_alloc): Initialize the new member.
4933         (fts_lfree): Free, if needed.
4934
4935         maint: fts: give __opendir2 a new parameter and rename
4936         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4937         than surreptitiously using sole caller's "dir_fd".
4938         (fts_opendir): Rename from __opendir2.
4939
4940         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4941         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4942
4943         maint: fts.c: correct off-by-one indentation
4944         * lib/fts.c (fts_build): Correct indentation, change style
4945         of a couple of block comments, and bracing style.
4946
4947         maint: fts.c: move __opendir2 #define "up" out of function body
4948         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4949
4950         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4951         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4952         out for a long time and besides was useful only on BSD systems.
4953
4954 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4955
4956         regex: port to Stratus OpenVOS
4957         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4958         define to empty, rather than attempting nonportable optimizations.
4959         Problem reported by Paul Green in:
4960         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4961         and fix suggested by Eric Blake in:
4962         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4963
4964 2011-08-17  Eric Blake  <eblake@redhat.com>
4965
4966         getcwd: fix test failures on mingw
4967         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4968         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4969         test if long directory cannot be created, and allow mingw errno.
4970
4971         getcwd-lgpl: fix m4 to match relaxed test for BSD
4972         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4973         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4974         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4975         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4976         signature problem.
4977
4978         getcwd: fix compilation on mingw64
4979         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4980         getcwd.
4981         Reported by Marc-André Lureau.
4982
4983         pipe2: silence compiler warning
4984         * lib/pipe2.c (pipe2): Hide label if it is not used.
4985
4986 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4987
4988         relocatable-prog: fix link error
4989         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4990         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4991         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4992         into modules/relocatable-lib without noticing that
4993         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4994         also needs to build relocatable.c.
4995
4996 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4997
4998         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4999         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5000         shell code: it contained a 'break' that was not in a loop.
5001         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5002         via a shell-language loop; this may have been true in old Autoconf
5003         versions, but it's not true in Autoconf 2.68.  I found this bug
5004         when testing coreutils git on Solaris 8, whose shell complains
5005         about the syntax error.
5006
5007 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5008
5009         * lib/base64.c: Fix comment to reference RFC 4648.
5010         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5011         <gvtulder@gmail.com>.
5012
5013 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5014
5015         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5016
5017         po/Makefile.in.in: fix make -q problem
5018         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5019         rule, since there's no file named 'check-macro-version' and its
5020         use as a file breaks make -q.
5021         (all): Don't depend on check-macro-version.
5022         (CHECK_MACRO_VERSION): New macro.
5023         (stamp-po): Use it.
5024
5025         configmake: fix make -q problem
5026         * modules/configmake (configmake.h): Update configmake.h's time stamp
5027         even if the file does not change.  Otherwise, 'make -q' fails.
5028         Problem reported by Simon Josefsson in
5029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5030
5031 2011-08-11  Jim Meyering  <meyering@redhat.com>
5032
5033         git-version-gen: correct the advice in a comment
5034         * build-aux/git-version-gen: Correct comment.
5035         Don't recommend to list .tarball-version in .gitignore.
5036
5037 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5038
5039         base64: fix off-by-one buffer size bug
5040         Problem and (trivial) fix reported by Gijs van Tulder in
5041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5042         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5043         * tests/test-base64.c (main): Catch the bug.
5044
5045 2011-08-10  Eric Blake  <eblake@redhat.com>
5046
5047         closein: correct comments
5048         * lib/closein.c (close_stdin): Improve comments.
5049
5050 2011-08-09  Bruno Haible  <bruno@clisp.org>
5051
5052         More tests for 'fseeko'.
5053         * tests/test-fseeko3.c: New file, from Eric Blake.
5054         * tests/test-fseeko3.sh: New file.
5055         * modules/fseeko-tests (Files): Add them.
5056         (TESTS): Add test-fseeko3.sh.
5057         (check_PROGRAMS): Add test-fseeko3.
5058
5059 2011-08-09  Eric Blake  <eblake@redhat.com>
5060
5061         fseeko: remove unneeded hack
5062         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5063
5064         fseeko: fix bug on glibc
5065         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5066         Reported by John W. Eaton.
5067
5068 2011-08-08  Bruno Haible  <bruno@clisp.org>
5069
5070         unictype/base: Fix interoperability with preinstalled libunistring.
5071         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5072         Reported by Simon Josefsson.
5073
5074 2011-08-08  Bruno Haible  <bruno@clisp.org>
5075
5076         iswblank: Detect declaration correctly.
5077         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5078         AC_CHECK_DECLS invocation.
5079
5080 2011-08-08  Bruno Haible  <bruno@clisp.org>
5081
5082         tcgetsid: Detect declaration correctly.
5083         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5084         AC_CHECK_DECLS invocation.
5085         Reported by Simon Josefsson.
5086
5087 2011-08-08  Eric Blake  <eblake@redhat.com>
5088
5089         largefile: fix typo that regressed large file support
5090         * modules/largefile (configure.ac-early): Fix section name.
5091
5092 2011-08-06  Karl Berry  <karl@gnu.org>
5093
5094         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5095         a separate module.
5096
5097 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5098
5099         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5100         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5101         get prototype for free.
5102
5103 2011-08-04  Bruno Haible  <bruno@clisp.org>
5104
5105         Tests for module 'pathmax'.
5106         * modules/pathmax-tests: New file.
5107         * tests/test-pathmax.c: New file.
5108
5109         canonicalize-lgpl: Support larger filenames on the Hurd.
5110         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5111         Reported by Paul Eggert.
5112
5113         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5114         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5115         * lib/chdir-long.h: Include pathmax.h.
5116         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5117         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5118         (PATH_MAX): Remove code that is done by pathmax.h.
5119         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5120         * lib/tmpfile.c: Add a comment.
5121         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5122         * modules/chdir-long (Depends-on): Add pathmax.
5123         * modules/getcwd (Depends-on): Add pathmax.
5124         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5125         is not defined.
5126         * doc/posix-headers/limits.texi: Mention the pathmax module.
5127         * NEWS: Mention the change.
5128
5129 2011-08-02  Bruno Haible  <bruno@clisp.org>
5130
5131         pthread_sigmask: Actually use results of gl_THREADLIB.
5132         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5133         gl_THREADLIB, not gl_[]THREADLIB.
5134         Reported by Eric Blake.
5135
5136 2011-08-02  Jim Meyering  <meyering@redhat.com>
5137
5138         maint.mk: relax the default _gl_TS_function_match regexp
5139         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5140         space between function name and "(" in an "extern" declaration.
5141         That would fail to match a decl with no space there: extern void foo();
5142
5143 2011-07-31  Iain Nicol  <iain@thenicols.net>
5144
5145         git-version-gen: document that EXTRA_DIST must include .version
5146         * build-aux/git-version-gen: In the how-to-use comment, document
5147         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5148         will fail when run from an unpacked distribution tarball.
5149
5150 2011-08-01  Bruno Haible  <bruno@clisp.org>
5151
5152         wctype-h: Fix last change.
5153         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5154         REPLACE_TOWLOWER to 0.
5155         Reported by Sam Steingold <sds@gnu.org>.
5156
5157 2011-07-31  Bruno Haible  <bruno@clisp.org>
5158
5159         frexpl: Update autoconf test.
5160         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5161         according to changes of 2011-06-20.
5162
5163 2011-07-31  Bruno Haible  <bruno@clisp.org>
5164
5165         sys_utsname: Add support for Minix.
5166         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5167         <sys/utsname.h>.
5168         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5169         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5170
5171 2011-07-31  Bruno Haible  <bruno@clisp.org>
5172
5173         strings: Add support for Minix.
5174         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5175         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5176         * doc/posix-headers/strings.texi: Document the Minix problem.
5177
5178 2011-07-31  Bruno Haible  <bruno@clisp.org>
5179
5180         wctype-h: Add support for Minix.
5181         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5182         REPLACE_TOWLOWER.
5183         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5184         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5185         REPLACE_ISWCNTRL.
5186
5187 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5188
5189         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5190         This is a performance improvement for 64-bit hosts: it causes the
5191         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5192
5193 2011-07-31  Bruno Haible  <bruno@clisp.org>
5194
5195         stdioext: Add support for Minix.
5196         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5197         * lib/fpurge.c (fpurge): Likewise.
5198         * lib/freadahead.c (freadahead): Likewise.
5199         * lib/freadable.c (freadable): Likewise.
5200         * lib/freading.c (freading): Likewise.
5201         * lib/freadptr.c (freadptr): Likewise.
5202         * lib/freadseek.c (freadptrinc): Likewise.
5203         * lib/fseeko.c (rpl_fseeko): Likewise.
5204         * lib/fseterr.c (fseterr): Likewise.
5205         * lib/fwritable.c (fwritable): Likewise.
5206         * lib/fwriting.c (fwriting): Likewise.
5207         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5208         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5209
5210 2011-07-31  Bruno Haible  <bruno@clisp.org>
5211
5212         errno: Port to Minix.
5213         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5214         ECONNABORTED are defined.
5215         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5216         GNULIB_defined_ECONNABORTED): New macros.
5217         * lib/strerror-override.h (strerror_override): Test also
5218         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5219         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5220         ECONNABORTED.
5221         * doc/posix-headers/errno.texi: Mention the Minix problem.
5222
5223 2011-07-31  Bruno Haible  <bruno@clisp.org>
5224
5225         Work around declaration collisions on Minix.
5226         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5227         defined, set REPLACE_MBSINIT.
5228         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5229         defined, set REPLACE_MBRTOWC.
5230         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5231         set REPLACE_MBRLEN.
5232         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5233         defined, set REPLACE_MBSRTOWCS.
5234         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5235         defined, set REPLACE_WCRTOMB.
5236         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5237         defined, set REPLACE_WCSRTOMBS.
5238
5239 2011-07-31  Bruno Haible  <bruno@clisp.org>
5240
5241         Add support for Minix with ACK compiler.
5242         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5243         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5244         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5245
5246 2011-07-31  Bruno Haible  <bruno@clisp.org>
5247
5248         Documentation about Minix.
5249         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5250         * doc/glibc-headers/*.texi: Likewise.
5251         * doc/posix-functions/*.texi: Likewise.
5252         * doc/glibc-functions/*.texi: Likewise.
5253
5254 2011-07-31  Bruno Haible  <bruno@clisp.org>
5255
5256         snippet/warn-on-use: Fix indentation.
5257         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5258
5259 2011-07-25  Jim Meyering  <meyering@redhat.com>
5260
5261         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5262         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5263         commands.
5264
5265 2011-07-27  Jim Meyering  <meyering@redhat.com>
5266
5267         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5268         * top/maint.mk (gl_extract_significant_defines_): Now that
5269         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5270         gnulib/lib/signal.in.h, and now that we recommend to
5271         define-if-undefined those two symbols in application code,
5272         we must filter them out of the "significant" list.
5273         This avoids a "make syntax-check" failure in coreutils.
5274
5275 2011-07-26  Eric Blake  <eblake@redhat.com>
5276
5277         warnings: add comments about previous patch
5278         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5279         * m4/include_next.m4: Likewise.
5280         * m4/warn-on-use.m4: Likewise.
5281         * m4/warnings.m4: Likewise, and simplify use.
5282         Suggested by Stefano Lattarini.
5283
5284         include-next, warnings: support older autoconf
5285         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5286         AS_VAR_PUSHDEF in a way that works with older autoconf.
5287         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5288         Reported by Daniel P. Berrange.
5289
5290 2011-07-25  Bruno Haible  <bruno@clisp.org>
5291
5292         fseek, ftell: Fix doc.
5293         * doc/posix-functions/fseek.texi: Reword statement about
5294         AC_SYS_LARGEFILE.
5295         * doc/posix-functions/ftell.texi: Likewise.
5296
5297 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5298             Bruno Haible  <bruno@clisp.org>
5299
5300         Add dependencies to the 'largefile' module.
5301         * modules/fopen (Depends-on): Add 'largefile'.
5302         * modules/freopen (Depends-on): Likewise.
5303         * modules/fseeko (Depends-on): Likewise.
5304         * modules/ftello (Depends-on): Likewise.
5305         * modules/glob (Depends-on): Likewise.
5306         * modules/lseek (Depends-on): Likewise.
5307         * modules/lstat (Depends-on): Likewise.
5308         * modules/mkostemp (Depends-on): Likewise.
5309         * modules/mkostemps (Depends-on): Likewise.
5310         * modules/mkstemp (Depends-on): Likewise.
5311         * modules/mkstemps (Depends-on): Likewise.
5312         * modules/open (Depends-on): Likewise.
5313         * modules/openat (Depends-on): Likewise.
5314         * modules/pread (Depends-on): Likewise.
5315         * modules/pwrite (Depends-on): Likewise.
5316         * modules/scandir (Depends-on): Likewise.
5317         * modules/stat (Depends-on): Likewise.
5318         * modules/tmpfile (Depends-on): Likewise.
5319         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5320         since the containing module now depends on the largefile module.
5321         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5322         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5323         off_t is fixed by gnulib.
5324         * doc/posix-functions/freopen.texi: Likewise.
5325         * doc/posix-functions/fseeko.texi: Likewise.
5326         * doc/posix-functions/fstatat.texi: Likewise.
5327         * doc/posix-functions/ftello.texi: Likewise.
5328         * doc/posix-functions/glob.texi: Likewise.
5329         * doc/posix-functions/lseek.texi: Likewise.
5330         * doc/posix-functions/lstat.texi: Likewise.
5331         * doc/posix-functions/mkstemp.texi: Likewise.
5332         * doc/posix-functions/open.texi: Likewise.
5333         * doc/posix-functions/openat.texi: Likewise.
5334         * doc/posix-functions/pread.texi: Likewise.
5335         * doc/posix-functions/pwrite.texi: Likewise.
5336         * doc/posix-functions/scandir.texi: Likewise.
5337         * doc/posix-functions/stat.texi: Likewise.
5338         * doc/posix-functions/tmpfile.texi: Likewise.
5339         * doc/glibc-functions/mkostemp.texi: Likewise.
5340         * doc/glibc-functions/mkostemps.texi: Likewise.
5341         * doc/glibc-functions/mkstemps.texi: Likewise.
5342
5343 2011-07-25  Bruno Haible  <bruno@clisp.org>
5344
5345         fcntl: Move AC_LIBOBJ invocation to module description.
5346         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5347         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5348
5349         fcntl: Remove call-in from fchdir.m4.
5350         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5351         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5352
5353         dup3: Remove potential call-in from fchdir.m4.
5354         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5355         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5356
5357         dup2: Move AC_LIBOBJ invocation to module description.
5358         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5359         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5360         Don't invoke AC_LIBOBJ.
5361         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5362
5363         dup2: Remove call-in from fchdir.m4.
5364         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5365         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5366
5367         fclose: Move AC_LIBOBJ invocation to module description.
5368         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5369         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5370         to 1.
5371         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5372
5373         fclose: Remove call-in from close.m4.
5374         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5375         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5376
5377         close: Move AC_LIBOBJ invocation to module description.
5378         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5379         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5380         1.
5381         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5382
5383         close: Remove call-in from fchdir.m4.
5384         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5385         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5386
5387         open: Move AC_LIBOBJ invocation to module description.
5388         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5389         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5390         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5391
5392         open: Remove call-in from fchdir.m4.
5393         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5394         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5395
5396         fchdir: Start to remove gl_REPLACE_* idiom.
5397         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5398         (gl_FUNC_FCHDIR): Invoke it.
5399
5400 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5401
5402         * lib/ftell.c (ftell): Comment out cast.
5403
5404         close: use gl_REPLACE_FCLOSE only if defined
5405         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5406         is defined.  The close module doesn't depend on the fclose module
5407         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5409         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5410
5411 2011-07-24  Jim Meyering  <meyering@redhat.com>
5412
5413         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5414         * tests/test-select.h (test_function): Declare as "static".
5415
5416 2011-07-24  Bruno Haible  <bruno@clisp.org>
5417
5418         doc: Mention the effects of AC_SYS_LARGEFILE.
5419         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5420         on this function.
5421         * doc/posix-functions/aio_error.texi: Likewise.
5422         * doc/posix-functions/aio_fsync.texi: Likewise.
5423         * doc/posix-functions/aio_read.texi: Likewise.
5424         * doc/posix-functions/aio_return.texi: Likewise.
5425         * doc/posix-functions/aio_suspend.texi: Likewise.
5426         * doc/posix-functions/aio_write.texi: Likewise.
5427         * doc/posix-functions/fgetpos.texi: Likewise.
5428         * doc/posix-functions/fopen.texi: Likewise.
5429         * doc/posix-functions/freopen.texi: Likewise.
5430         * doc/posix-functions/fsetpos.texi: Likewise.
5431         * doc/posix-functions/fstatvfs.texi: Likewise.
5432         * doc/posix-functions/ftruncate.texi: Likewise.
5433         * doc/posix-functions/ftw.texi: Likewise.
5434         * doc/posix-functions/getrlimit.texi: Likewise.
5435         * doc/posix-functions/glob.texi: Likewise.
5436         * doc/posix-functions/lio_listio.texi: Likewise.
5437         * doc/posix-functions/lockf.texi: Likewise.
5438         * doc/posix-functions/mkstemp.texi: Likewise.
5439         * doc/posix-functions/mmap.texi: Likewise.
5440         * doc/posix-functions/nftw.texi: Likewise.
5441         * doc/posix-functions/openat.texi: Likewise.
5442         * doc/posix-functions/opendir.texi: Likewise.
5443         * doc/posix-functions/posix_fadvise.texi: Likewise.
5444         * doc/posix-functions/posix_fallocate.texi: Likewise.
5445         * doc/posix-functions/pread.texi: Likewise.
5446         * doc/posix-functions/pwrite.texi: Likewise.
5447         * doc/posix-functions/readdir.texi: Likewise.
5448         * doc/posix-functions/readdir_r.texi: Likewise.
5449         * doc/posix-functions/rewinddir.texi: Likewise.
5450         * doc/posix-functions/scandir.texi: Likewise.
5451         * doc/posix-functions/seekdir.texi: Likewise.
5452         * doc/posix-functions/setrlimit.texi: Likewise.
5453         * doc/posix-functions/statvfs.texi: Likewise.
5454         * doc/posix-functions/telldir.texi: Likewise.
5455         * doc/posix-functions/tmpfile.texi: Likewise.
5456         * doc/posix-functions/truncate.texi: Likewise.
5457         * doc/glibc-functions/fallocate.texi: Likewise.
5458         * doc/glibc-functions/fstatfs.texi: Likewise.
5459         * doc/glibc-functions/fts_children.texi: Likewise.
5460         * doc/glibc-functions/fts_read.texi: Likewise.
5461         * doc/glibc-functions/getdirentries.texi: Likewise.
5462         * doc/glibc-functions/mkostemp.texi: Likewise.
5463         * doc/glibc-functions/mkostemps.texi: Likewise.
5464         * doc/glibc-functions/mkstemps.texi: Likewise.
5465         * doc/glibc-functions/preadv.texi: Likewise.
5466         * doc/glibc-functions/pwritev.texi: Likewise.
5467         * doc/glibc-functions/sendfile.texi: Likewise.
5468         * doc/glibc-functions/statfs.texi: Likewise.
5469
5470 2011-07-24  Bruno Haible  <bruno@clisp.org>
5471
5472         doc: Fix typo.
5473         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5474
5475 2011-07-24  Bruno Haible  <bruno@clisp.org>
5476
5477         doc: Mention fsusage.
5478         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5479
5480 2011-07-24  Bruno Haible  <bruno@clisp.org>
5481
5482         doc: Mention new glibc headers and functions.
5483         * doc/glibc-headers/gshadow.texi: New file.
5484         * doc/glibc-functions/endsgent.texi: New file.
5485         * doc/glibc-functions/fgetsgent.texi: New file.
5486         * doc/glibc-functions/fgetsgent_r.texi: New file.
5487         * doc/glibc-functions/getsgent.texi: New file.
5488         * doc/glibc-functions/getsgent_r.texi: New file.
5489         * doc/glibc-functions/getsgnam.texi: New file.
5490         * doc/glibc-functions/getsgnam_r.texi: New file.
5491         * doc/glibc-functions/putsgent.texi: New file.
5492         * doc/glibc-functions/setsgent.texi: New file.
5493         * doc/glibc-functions/sgetsgent.texi: New file.
5494         * doc/glibc-functions/sgetsgent_r.texi: New file.
5495         * doc/glibc-functions/malloc_info.texi: New file.
5496         * doc/glibc-functions/preadv.texi: New file.
5497         * doc/glibc-functions/pwritev.texi: New file.
5498         * doc/glibc-functions/register_printf_modifier.texi: New file.
5499         * doc/glibc-functions/register_printf_specifier.texi: New file.
5500         * doc/glibc-functions/register_printf_type.texi: New file.
5501         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5502         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5503         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5504         * doc/glibc-functions/pthread_getname_np.texi: New file.
5505         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5506         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5507         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5508         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5509         * doc/glibc-functions/pthread_setname_np.texi: New file.
5510         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5511         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5512         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5513         * doc/glibc-functions/qsort_r.texi: New file.
5514         * doc/glibc-functions/quick_exit.texi: New file.
5515         * doc/glibc-functions/syncfs.texi: New file.
5516         * doc/gnulib.texi: Include them.
5517         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5518         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5519         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5520         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5521         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5522         * doc/glibc-functions/execvpe.texi: Likewise.
5523
5524 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5525
5526         ftell: don't include <unistd.h>
5527         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5528         guaranteed to define off_t, and the ftell module depends on the
5529         stdio module.
5530
5531         ftell: do not assume wraparound signed arithmetic
5532         * lib/ftell.c: Include <limits.h>.
5533         (ftell): Don't assume wraparound signed arithmetic.
5534
5535 2011-07-24  Bruno Haible  <bruno@clisp.org>
5536
5537         close: No longer depend on module 'fclose'.
5538         * modules/close (Depends-on): Remove fclose.
5539         * NEWS: Mention the change.
5540         Suggested by Sam Steingold <sds@gnu.org>.
5541
5542 2011-07-24  Bruno Haible  <bruno@clisp.org>
5543
5544         fsusage: Enable large volume support on AIX >= 5.2.
5545         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5546         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5547         instead of STAT_STATVFS.
5548         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5549
5550         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5551         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5552         f_blocks field only on MacOS X.
5553
5554         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5555         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5556         * modules/fsusage (Depends-on): Add largefile.
5557
5558 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5559
5560         * README: Modernize discussion of signed integers.
5561         Assuming overflow wraparound is no longer safe.
5562         Mention ones' complement and signed magnitude.
5563
5564 2011-07-22  Bruno Haible  <bruno@clisp.org>
5565
5566         select tests, pselect tests: Refactor.
5567         * tests/test-select.h: New file, extracted from tests/test-select.c.
5568         (select_fn): New type.
5569         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5570         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5571         test_pipe): Add my_select argument.
5572         (test_function): Renamed from main. Add my_select argument.
5573         * tests/test-select.c: Move most code to tests/test-select.h. Include
5574         test-select.h.
5575         * modules/select-tests (Files): Add tests/test-select.h.
5576         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5577         (my_select, main): New functions.
5578         * modules/pselect-tests (Files): Add tests/test-select.h,
5579         tests/macros.h, tests/signature.h.
5580         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5581         (configure.ac): Check for <sys/wait.h>.
5582
5583 2011-07-22  Bruno Haible  <bruno@clisp.org>
5584
5585         sys_select tests: Check the signature of FD_*.
5586         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5587         signature tests from here...
5588         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5589         here.
5590         * modules/sys_select-tests (Files): Add tests/signature.h.
5591
5592 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5593
5594         largefile: new module, replacing large-inode
5595         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5596         * MODULES.html.sh: Add largefile, remove large-inode.
5597         * modules/largefile, m4/largefile.m4: New files.
5598         * modules/large-inode, m4/large-inode.m4: Remove.
5599
5600         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5601         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5602         implementations that use only 32 bits to count blocks.
5603         On typical hosts with 1024-byte blocks, this fails with file
5604         systems as small as 4 TiB.  Problem reported by Herb Wartens
5605         <http://debbugs.gnu.org/9140> and this should also fix a similar
5606         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5607
5608         large-inode: New module
5609         * MODULES.html.sh: Add it.
5610         * modules/large-inode, m4/large-inode.m4: New files.
5611
5612         extensions: Enable extensions on MacOS X 10.5 and later.
5613         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5614
5615 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5616
5617         file-has-acl: use acl_extended_file_nofollow if available
5618         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5619         (acl_extended_file): New macro.
5620         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5621         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5622
5623 2011-07-21  Bruno Haible  <bruno@clisp.org>
5624
5625         Declare system functions in a way that works with C++.
5626         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5627         declare fdopendir as extern "C".
5628         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5629         declare frexpl as extern "C".
5630         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5631         declare gai_strerror as extern "C".
5632         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5633         programs, declare gai_strerror as extern "C".
5634         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5635         declare getlogin_r as extern "C".
5636         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5637         as extern "C".
5638         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5639         declare ldexpl as extern "C".
5640         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5641         as extern "C".
5642         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5643         program, declare getmntinfo as extern "C".
5644         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5645         stpncpy as extern "C".
5646         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5647         program, declare __xpg_strerror_r as extern "C".
5648         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5649         strndup as extern "C".
5650         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5651         declare memset and bzero as extern "C".
5652         Reported by Sam Steingold <sds@gnu.org>.
5653
5654 2011-07-12  Jim Meyering  <meyering@redhat.com>
5655
5656         maint.mk: prohibit inclusion of "verify.h" without use
5657         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5658
5659 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5660
5661         timer-time: A new module to check for timer_settime()
5662         * m4/timer_time.m4: Check for the posix function.
5663         * modules/timer-time: Add the new module.
5664         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5665         Mention it.
5666
5667 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5668             Bruno Haible  <bruno@clisp.org>
5669
5670         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5671         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5672         not defined, assume POSIX threads and look for pthread_sigmask in
5673         $LIBS, without changing $CPPFLAGS.
5674
5675 2011-07-19  Bruno Haible  <bruno@clisp.org>
5676
5677         strstr: Update cross-compilation guess.
5678         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5679         CPUs, guess no, in view of glibc
5680         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5681         Suggested by Eric Blake. Reported by Reuben Thomas.
5682
5683 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5684
5685         getopt-gnu: suppress core dumps from detection code
5686         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5687         to suppress core dumps that may well occur on glibc systems.
5688         * modules/getopt-gnu: Depend on nocrash.
5689
5690 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5691
5692         pthread_sigmask: ensure usleep is declared
5693         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5694         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5695
5696 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5697
5698         doc: Document NonStop portability issues.
5699         * doc/posix-functions/sigaction.texi (sigaction):
5700         * doc/posix-headers/signal.texi (signal.h):
5701         Document NonStop.  See Joachim Schmitz in
5702         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5703
5704 2011-07-15  Bruno Haible  <bruno@clisp.org>
5705
5706         ffsl, ffsll: Avoid unportable behaviour.
5707         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5708
5709 2011-07-15  Bruno Haible  <bruno@clisp.org>
5710
5711         ffs: More tests.
5712         * tests/test-ffs.c (NBITS): New macro.
5713         (main): Add more tests.
5714         * tests/test-ffsl.c (NBITS): New macro.
5715         (main): Add more tests.
5716         * tests/test-ffsll.c (NBITS): New macro.
5717         (main): Add more tests.
5718
5719 2011-07-15  Eric Blake  <eblake@redhat.com>
5720
5721         ffsl, ffsll: new modules
5722         * modules/ffsl: New file.
5723         * modules/ffsll: Likewise.
5724         * m4/ffsl.m4: Likewise.
5725         * m4/ffsll.m4: Likewise.
5726         * lib/ffsl.c: Likewise.
5727         * lib/ffsl.h: Likewise.
5728         * lib/ffsll.c: Likewise.
5729         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5730         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5731         * modules/string (Makefile.am): Substitute witnesses.
5732         * lib/strings.in.h (ffsl, ffsll): Declare.
5733         * modules/ffsl-tests: New test file.
5734         * modules/ffsll-tests: Likewise.
5735         * tests/test-ffsl.c: Likewise.
5736         * tests/test-ffsll.c: Likewise.
5737         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5738         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5739         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5740
5741         ffs: fix m4 prerequisite
5742         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5743
5744         ffs: avoid undefined behavior
5745         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5746         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5747         Reported by Bruno Haible.
5748
5749 2011-07-12  Bruno Haible  <bruno@clisp.org>
5750
5751         pthread_sigmask: Rely on module 'threadlib'.
5752         * modules/pthread_sigmask (Depends-on): Add threadlib.
5753         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5754         is defined.
5755
5756 2011-07-12  Bruno Haible  <bruno@clisp.org>
5757
5758         regex: Depend on module 'strcase'.
5759         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5760
5761 2011-07-12  Jim Meyering  <meyering@redhat.com>
5762
5763         warn-on-use: fix typo in file name
5764         * modules/snippet/warn-on-use (Files): Correct file name:
5765         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5766
5767 2011-07-12  Bruno Haible  <bruno@clisp.org>
5768
5769         strings: Document module.
5770         * doc/posix-headers/strings.texi: Mention module 'strings'.
5771
5772 2011-07-12  Bruno Haible  <bruno@clisp.org>
5773
5774         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5775         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5776         (Files, Makefile.am): Update.
5777         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5778         * modules/stdlib (Depends-on): Update.
5779
5780 2011-07-12  Bruno Haible  <bruno@clisp.org>
5781
5782         * NEWS: Mention the changes.
5783
5784         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5785         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5786         (Files, Makefile.am): Update.
5787         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5788         * modules/arpa_inet (Depends-on): Update.
5789         * modules/ctype (Depends-on): Update.
5790         * modules/dirent (Depends-on): Update.
5791         * modules/fcntl-h (Depends-on): Update.
5792         * modules/glob (Depends-on): Update.
5793         * modules/iconv-h (Depends-on): Update.
5794         * modules/inttypes-incomplete (Depends-on): Update.
5795         * modules/langinfo (Depends-on): Update.
5796         * modules/locale (Depends-on): Update.
5797         * modules/math (Depends-on): Update.
5798         * modules/netdb (Depends-on): Update.
5799         * modules/poll-h (Depends-on): Update.
5800         * modules/pty (Depends-on): Update.
5801         * modules/search (Depends-on): Update.
5802         * modules/signal (Depends-on): Update.
5803         * modules/spawn (Depends-on): Update.
5804         * modules/stdio (Depends-on): Update.
5805         * modules/stdlib (Depends-on): Update.
5806         * modules/string (Depends-on): Update.
5807         * modules/strings (Depends-on): Update.
5808         * modules/sys_file (Depends-on): Update.
5809         * modules/sys_ioctl (Depends-on): Update.
5810         * modules/sys_select (Depends-on): Update.
5811         * modules/sys_socket (Depends-on): Update.
5812         * modules/sys_stat (Depends-on): Update.
5813         * modules/sys_time (Depends-on): Update.
5814         * modules/sys_times (Depends-on): Update.
5815         * modules/sys_utsname (Depends-on): Update.
5816         * modules/sys_wait (Depends-on): Update.
5817         * modules/termios (Depends-on): Update.
5818         * modules/time (Depends-on): Update.
5819         * modules/unistd (Depends-on): Update.
5820         * modules/wchar (Depends-on): Update.
5821         * modules/wctype-h (Depends-on): Update.
5822         * MODULES.html.sh (Support for building libraries and executables):
5823         Update.
5824
5825         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5826         * modules/snippet/unused-parameter: Renamed from
5827         modules/unused-parameter.
5828         (Files, Makefile.am): Update.
5829         * build-aux/snippet/unused-parameter.h: Renamed from
5830         build-aux/unused-parameter.h.
5831         * modules/selinux-h (Depends-on): Update.
5832         * modules/unistr/base (Depends-on): Update.
5833         * MODULES.html.sh (Core language properties): Update.
5834
5835         Rename module 'link-warning' to 'snippet/link-warning'.
5836         * modules/snippet/link-warning: Renamed from modules/link-warning.
5837         (Files, Makefile.am): Update.
5838         * build-aux/snippet/link-warning.h: Renamed from
5839         build-aux/link-warning.h.
5840         * MODULES.html.sh (Support for building libraries and executables):
5841         Update.
5842
5843         Rename module 'c++defs' to 'snippet/c++defs'.
5844         * modules/snippet/c++defs: Renamed from modules/c++defs.
5845         (Files, Makefile.am): Update.
5846         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5847         * modules/arpa_inet (Depends-on): Update.
5848         * modules/ctype (Depends-on): Update.
5849         * modules/dirent (Depends-on): Update.
5850         * modules/fcntl-h (Depends-on): Update.
5851         * modules/glob (Depends-on): Update.
5852         * modules/iconv-h (Depends-on): Update.
5853         * modules/langinfo (Depends-on): Update.
5854         * modules/locale (Depends-on): Update.
5855         * modules/math (Depends-on): Update.
5856         * modules/netdb (Depends-on): Update.
5857         * modules/poll-h (Depends-on): Update.
5858         * modules/pty (Depends-on): Update.
5859         * modules/search (Depends-on): Update.
5860         * modules/signal (Depends-on): Update.
5861         * modules/spawn (Depends-on): Update.
5862         * modules/stdio (Depends-on): Update.
5863         * modules/stdlib (Depends-on): Update.
5864         * modules/string (Depends-on): Update.
5865         * modules/strings (Depends-on): Update.
5866         * modules/sys_ioctl (Depends-on): Update.
5867         * modules/sys_select (Depends-on): Update.
5868         * modules/sys_socket (Depends-on): Update.
5869         * modules/sys_stat (Depends-on): Update.
5870         * modules/sys_time (Depends-on): Update.
5871         * modules/sys_wait (Depends-on): Update.
5872         * modules/termios (Depends-on): Update.
5873         * modules/time (Depends-on): Update.
5874         * modules/unistd (Depends-on): Update.
5875         * modules/wchar (Depends-on): Update.
5876         * modules/wctype-h (Depends-on): Update.
5877
5878         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5879         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5880         (Files, Makefile.am): Update.
5881         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5882         * modules/argv-iter (Depends-on): Update.
5883         * modules/arpa_inet (Depends-on): Update.
5884         * modules/dirent (Depends-on): Update.
5885         * modules/fcntl-h (Depends-on): Update.
5886         * modules/fnmatch (Depends-on): Update.
5887         * modules/getopt-posix (Depends-on): Update.
5888         * modules/glob (Depends-on): Update.
5889         * modules/iconv-h (Depends-on): Update.
5890         * modules/inttypes-incomplete (Depends-on): Update.
5891         * modules/locale (Depends-on): Update.
5892         * modules/math (Depends-on): Update.
5893         * modules/netdb (Depends-on): Update.
5894         * modules/search (Depends-on): Update.
5895         * modules/signal (Depends-on): Update.
5896         * modules/spawn (Depends-on): Update.
5897         * modules/stdio (Depends-on): Update.
5898         * modules/stdlib (Depends-on): Update.
5899         * modules/string (Depends-on): Update.
5900         * modules/strings (Depends-on): Update.
5901         * modules/sys_socket (Depends-on): Update.
5902         * modules/sys_stat (Depends-on): Update.
5903         * modules/sys_time (Depends-on): Update.
5904         * modules/sys_times (Depends-on): Update.
5905         * modules/sys_utsname (Depends-on): Update.
5906         * modules/time (Depends-on): Update.
5907         * modules/unistd (Depends-on): Update.
5908         * modules/wchar (Depends-on): Update.
5909         * MODULES.html.sh (Support for building libraries and executables):
5910         Update.
5911
5912 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5913
5914         Improvements on _Noreturn and related modules.
5915
5916         modules/_Exit-tests: test _Noreturn too
5917         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5918         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5919         (main): Use them.
5920
5921         stdnoreturn, stdnoreturn-tests: remove modules
5922         They're not needed here and a bit premature for use elsewhere.  See
5923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5924         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5925         * tests/test-stdnoreturn.c: Remove files.
5926         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5927         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5928         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5929         and using noreturn.
5930         * modules/openat, modules/sigpipe-die, modules/xalloc:
5931         * modules/xmemdup0, modules/xstrtol:
5932         Remove dependency on stdnoreturn.
5933
5934         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5935         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5936         Reparenthesize to avoid GCC warning.
5937         Support Microsoft's syntax.
5938         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5939
5940         _Noreturn-tests: remove module
5941         * modules/_Noreturn-tests: Remove.
5942         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5943         * tests/test-_Noreturn.c: Remove.
5944         * tests/test-stdnoreturn.c: Merge from the old
5945         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5946
5947 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5948
5949         _Noreturn, stdnoreturn, and related modules.
5950
5951         * top/maint.mk: Adjust to new noreturn support.
5952         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5953         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5954
5955         xalloc: use stdnoreturn.h
5956         * lib/xalloc.h: Include <stdnoreturn.h>.
5957         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5958         * modules/xalloc (Depends-on): Add stdnoreturn.
5959
5960         xstrtol: use stdnoreturn.h
5961         * lib/xstrtol.h: Include <stdnoreturn.h>.
5962         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5963         * modules/xstrtol (Depends-on): Add stdnoreturn.
5964
5965         xmemdup0: use stdnoreturn.h
5966         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5967         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5968         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5969
5970         sigpipe-die: use stdnoreturn.h
5971         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5972         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5973         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5974
5975         openat: use stdnoreturn.h
5976         * lib/openat.h: Include <stdnoreturn.h>.
5977         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5978         * modules/openat (Depends-on): Add stdnoreturn.
5979
5980         * lib/openat-die.c (openat_save_fail): Modernize comment.
5981
5982         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5983
5984         * lib/glthread/thread.h: Modernize comment.
5985
5986         obstack: use _Noreturn
5987         * lib/obstack.c (__attribute__): Remove macro.
5988         (print_and_abort): Use _Noreturn.
5989
5990         c-stack: use _Noreturn
5991         * lib/c-stack.c (die, overflow_handler, segv_handler):
5992         Use _Noreturn rather than __attribute__((noreturn)).
5993
5994         argmatch-tests, exclude_tests: use _Noreturn
5995         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5996         Remove.
5997         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5998
5999         stdlib: use _Noreturn
6000         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6001         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6002         * modules/stdlib (Depends-on): Add _Noreturn.
6003         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6004
6005         stdnoreturn-tests: new module
6006         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6007
6008         stdnoreturn: new module
6009         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6010         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6011
6012         _Noreturn-tests: new module
6013         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6014
6015         _Noreturn: new module
6016         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6017         New section, mentioning it.
6018         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6019
6020         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6021
6022 2011-07-11  Eric Blake  <eblake@redhat.com>
6023
6024         ffs: new module
6025         * modules/ffs: New file.
6026         * m4/ffs.m4: Likewise.
6027         * lib/ffs.c: Likewise.
6028         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6029         * modules/strings (Makefile.am): Substitute witness.
6030         (Depends-on): Add c++defs.
6031         * lib/strings.in.h (ffs): Declare.
6032         * modules/ffs-tests: New test file.
6033         * tests/test-ffs.c: Test new module.
6034         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6035         * doc/posix-functions/ffs.texi (ffs): Likewise.
6036
6037         regex: avoid compiler warning
6038         * lib/regex.c (includes): Include <strings.h>, for use of
6039         strcasecmp in regcomp.c.
6040         Reported by Joachim Schmitz.
6041
6042 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6043
6044         stdint: respect system's intmax_t if INTMAX_MAX
6045         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6046         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6047         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6048         long but int64_t is long long, and where we will clash with the
6049         system intmax_t if we override it.  See
6050         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6051         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6052         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6053         similarly for UINTMAX_C.
6054
6055 2011-07-08  Bruno Haible  <bruno@clisp.org>
6056
6057         pthread_sigmask tests: Avoid a compiler warning.
6058         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6059         non-zero.
6060
6061         sigprocmask tests: A better way to avoid a compiler warning.
6062         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6063         (main): Complain if system() returns non-zero.
6064         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6065
6066 2011-07-08  Bruno Haible  <bruno@clisp.org>
6067
6068         pthread_sigmask: Work around IRIX bug.
6069         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6070         bug.
6071         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6072         there may be unblocked pending signals.
6073         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6074
6075 2011-07-08  Bruno Haible  <bruno@clisp.org>
6076
6077         pthread_sigmask: Work around Cygwin bug.
6078         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6079         bug.
6080         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6081         the system's pthread_sigmask function.
6082         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6083
6084 2011-07-08  Bruno Haible  <bruno@clisp.org>
6085
6086         pthread_sigmask: Work around bug in single-threaded implementation.
6087         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6088         FreeBSD, HP-UX, Solaris bug.
6089         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6090         * lib/pthread_sigmask.c: Include <stddef.h>.
6091         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6092         the system's pthread_sigmask function.
6093         * modules/pthread_sigmask (configure.ac): Invoke
6094         gl_PREREQ_PTHREAD_SIGMASK.
6095         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6096         HP-UX, Solaris.
6097
6098 2011-07-08  Eric Blake  <eblake@redhat.com>
6099
6100         test-sigprocmask: avoid compiler warning
6101         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6102         * tests/test-sigprocmask.c (main): Use it to silence warning.
6103         Reported by Jim Meyering.
6104
6105         test-snprintf: avoid compiler warning
6106         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6107         * tests/test-vsnprintf.c (main): Likewise.
6108         Reported by Jim Meyering.
6109
6110 2011-07-08  Bruno Haible  <bruno@clisp.org>
6111
6112         Tests for module 'pthread_sigmask'.
6113         * modules/pthread_sigmask-tests: New file.
6114         * tests/test-pthread_sigmask1.c: New file, based on
6115         tests/test-sigprocmask.c.
6116         * tests/test-pthread_sigmask2.c: New file.
6117
6118 2011-07-08  Jim Meyering  <meyering@redhat.com>
6119
6120         test-getopt.h: avoid warning about an unused variable
6121         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6122
6123 2011-07-07  Jim Meyering  <meyering@redhat.com>
6124
6125         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6126         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6127         now that it no longer contains leading TABs.
6128         Remove unused "url=FIXME" statement.
6129
6130 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6131
6132         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6133         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6134         When gl_THREADLIB is not in use, assume that the POSIX sematics
6135         are desired.  This is better for Emacs, which uses POSIX semantics
6136         on GNUish and/or POSIXish platforms, and does not use threads at
6137         all otherwise.
6138
6139         pthread_sigmask: fix typo when testing for libraries
6140         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6141         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6142
6143 2011-07-08  Eric Blake  <eblake@redhat.com>
6144
6145         fts: introduce FTS_NOATIME
6146         * lib/fts_.h (FTS_NOATIME): New bit flag.
6147         (FTS_OPTIONMASK): Adjust.
6148         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6149         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6150
6151 2011-07-08  Bruno Haible  <bruno@clisp.org>
6152
6153         Tests for module 'thread'.
6154         * modules/thread-tests: New file.
6155         * tests/test-thread_self.c: New file.
6156         * tests/test-thread_create.cc: New file.
6157
6158 2011-07-08  Bruno Haible  <bruno@clisp.org>
6159
6160         thread: Avoid gcc warnings when using gl_thread_self().
6161         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6162         'void *'.
6163         (gl_thread_self_pointer): Update.
6164
6165 2011-07-07  Bruno Haible  <bruno@clisp.org>
6166
6167         signal-c++-tests: Check declaration of pthread_sigmask.
6168         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6169         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6170         $(LIB_PTHREAD_SIGMASK).
6171
6172 2011-07-07  Bruno Haible  <bruno@clisp.org>
6173
6174         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6175         * lib/signal.in.h (pthread_sigmask): Override if
6176         REPLACE_PTHREAD_SIGMASK is 1.
6177         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6178         REPLACE_PTHREAD_SIGMASK.
6179         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6180         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6181         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6182         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6183         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6184
6185 2011-07-07  Bruno Haible  <bruno@clisp.org>
6186
6187         pthread_sigmask: Ensure declaration in <signal.h>.
6188         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6189         include <pthread.h>.
6190         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6191         problem.
6192
6193 2011-07-07  Bruno Haible  <bruno@clisp.org>
6194
6195         pthread_sigmask: Document the module.
6196         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6197
6198 2011-07-07  Bruno Haible  <bruno@clisp.org>
6199
6200         pthread_sigmask: Follow gnulib conventions.
6201         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6202         gl_PTHREAD_SIGMASK.
6203         * modules/pthread_sigmask (configure.ac): Update.
6204
6205 2011-07-07  Bruno Haible  <bruno@clisp.org>
6206
6207         pthread_sigmask: Make declaration C++ safe.
6208         * lib/signal.in.h: In two special conditions, just do an #include_next.
6209         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6210         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6211         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6212         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6213         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6214         not REPLACE_PTHREAD_MASK.
6215         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6216         not REPLACE_PTHREAD_MASK.
6217         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6218
6219 2011-07-07  Bruno Haible  <bruno@clisp.org>
6220
6221         pthread_sigmask: Fix return value.
6222         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6223         * lib/pthread_sigmask.c: New file.
6224         * modules/pthread_sigmask (Files): Add it.
6225         (configure.ac): Invoke AC_LIBOBJ.
6226
6227 2011-07-07  Eric Blake  <eblake@redhat.com>
6228
6229         getopt: more portable argv creation
6230         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6231         const, use char arrays rather than strings.
6232         Suggested by Paul Eggert.
6233
6234 2011-07-07  Bruno Haible  <bruno@clisp.org>
6235
6236         Tests for module 'sigprocmask'.
6237         * modules/sigprocmask-tests: New file.
6238         * tests/test-sigprocmask.c: New file.
6239
6240 2011-07-07  Bruno Haible  <bruno@clisp.org>
6241
6242         float tests: Tweak.
6243         * tests/test-float.c (main): Tweak skip message.
6244
6245 2011-07-07  Eric Blake  <eblake@redhat.com>
6246
6247         getopt: avoid compiler warning during configure
6248         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6249         assigning string literals to non-const pointer.
6250
6251         getopt-gnu: avoid crash in glibc getopt
6252         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6253         * tests/test-getopt.h (test_getopt): Enhance test.
6254         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6255         * doc/posix-functions/getopt.texi (getopt): Document it.
6256         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6257         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6258         Likewise.
6259
6260 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6261
6262         getopt: handle W; without long options in getopt [BZ #12922]
6263         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6264         but no long options are defined, just return 'W'.
6265
6266 2011-07-07  Bruno Haible  <bruno@clisp.org>
6267
6268         Avoid literal tabs.
6269         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6270         variable containing a tab instead of a literal tab.
6271         Reported by Jim Meyering.
6272
6273 2011-07-07  Bruno Haible  <bruno@clisp.org>
6274
6275         Comments.
6276         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6277
6278 2011-07-06  Bruno Haible  <bruno@clisp.org>
6279
6280         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6281         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6282         <winsock2.h>.
6283         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6284         lib/sys_socket.in.h.
6285         (close, gethostname): Hide declarations from <winsock2.h>.
6286         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6287         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6288         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6289         (select): Don't override if gnulib's <sys/select.h> was already
6290         included.
6291         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6292         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6293         setsockopt, shutdown, select): Tweak indentation.
6294
6295 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6296
6297         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6298         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6299         in an application that does not use the sys_select module.
6300
6301 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6302
6303         poll: do not return 0 on timeout=-1
6304         * lib/poll.c: Loop with yield if no events occured
6305
6306 2011-07-06  Eric Blake  <eblake@redhat.com>
6307
6308         pthread_sigmask: always replace when not using pthread
6309         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6310         replacement when using some threading other than pthread.  Fix
6311         logic bug.
6312
6313 2011-07-06  Bruno Haible  <bruno@clisp.org>
6314
6315         Comments.
6316         * m4/printf.m4: Update comments about mingw.
6317
6318 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6319
6320         sys_select: define sigset_t more portably
6321         * lib/sys_select.in.h: Always include <sys/types.h>, since
6322         we now need sigset_t and mingw defines it there.
6323         Include <signal.h> before split inclusion guard, to avoid
6324         mishaps on Solaris, whose <signal.h> eventually includes us.
6325         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6326         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6327         which come from ...
6328         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6329         gl_CHECK_TYPE_SIGSET_T.
6330         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6331         does the real work.
6332         * modules/sys_select (Depends-on): Add 'signal'.
6333
6334         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6335         Suggested by Bruno Haible.
6336
6337         pselect: Use pthread_sigmask, not sigprocmask.
6338         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6339         multithreaded apps better than sigprocmask does.
6340         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6341         sigprocmask directly.
6342
6343 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6344
6345         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6346         Don't #undef,  since we don't need any underlying pselect.
6347         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6348         (Depends-on): Add select.
6349         (Link): Add $(LIBSOCKET).
6350         These changes suggested by Bruno Haible.
6351
6352         pselect: document better
6353         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6354         * doc/posix-functions/pselect.texi (pselect): Document new module.
6355
6356         pthread_sigmask: new module
6357         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6358         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6359         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6360         This is done only as a macro; I don't know how well that'll
6361         work for C++.  Move <sys/types.h> include before the include_next,
6362         to avoid mishap on Solaris.
6363         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6364         * modules/signal (Makefile.am): Substitute the check's results.
6365         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6366
6367         test-pselect: new module
6368         * modules/pselect-tests, tests/test-pselect.c: New files.
6369         * tests/test-select.c, tests/test-sys_select-c++.cc:
6370         If TEST_PSELECT is defined, test pselect instead of testing select.
6371
6372         * tests/test-sys_select.c (sigset_t): Test for it, too.
6373         Suggested by Bruno Haible.
6374
6375 2011-07-05  Eric Blake  <eblake@redhat.com>
6376
6377         snprintf: guarantee %1$d, for libintl
6378         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6379         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6380         * doc/posix-functions/snprintf.texi (snprintf): Update.
6381         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6382         * tests/test-snprintf.c (main): Enhance test.
6383         * tests/test-vsnprintf.c (main): Likewise.
6384
6385 2011-07-05  Jim Meyering  <meyering@redhat.com>
6386
6387         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6388         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6389         per Bruno's request, to accommodate this idiom (no space after "#")
6390         even when the function is inside an #if block:
6391         char *
6392         gets (char *s)
6393         #undef gets
6394         {
6395           ...
6396         }
6397
6398 2011-07-04  Jim Meyering  <meyering@redhat.com>
6399
6400         maint: indent with spaces, not TABs, and add a rule to check this
6401         * tests/test-userspec.c: Indent with spaces, not TABs.
6402         * tests/test-argp.c: Likewise.
6403         * tests/test-c-stack2.sh: Likewise.
6404         * tests/test-parse-duration.sh: Likewise
6405         * m4/strtod.m4: Likewise.
6406         * m4/alloca.m4: Likewise.
6407         * m4/pselect.m4: Likewise.
6408         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6409
6410 2011-07-03  Jim Meyering  <meyering@redhat.com>
6411
6412         maint.mk: correct omissions in prohibit_argmatch_without_use check
6413         This rule would mistakenly report that argmatch.h is included without
6414         use even when both the argmatch and invalid_arg macro were used.
6415         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6416         of argmatch and invalid_arg.
6417
6418 2011-07-03  Bruno Haible  <bruno@clisp.org>
6419
6420         Comments about EINTR.
6421         * lib/safe-read.h: Explain the purpose of this module.
6422         * lib/safe-write.h: Likewise.
6423         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6424         module.
6425         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6426         module.
6427         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6428
6429 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6430
6431         xnanosleep: Rewrite to use new dtotimespec module.
6432         It has the conversion code that used to be in xnanosleep.
6433         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6434         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6435         (TIME_T_MAX): Remove.
6436         (xnanosleep): Rewrite in terms of dtotimespec.
6437         * modules/xnanosleep (Depends-on): Add dtotimespec.
6438         Remove intprops, stdbool.
6439
6440         timespec-add, timespec-sub: new modules
6441         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6442         * lib/timespec-add.c, lib/timespec-sub.c:
6443         * modules/timespec-add, modules/timespec-sub: New files.
6444
6445         dtotimespec: new module
6446         * lib/timespec.h (dtotimespec): New decl.
6447         * lib/dtotimespec.c, modules/dtotimespec: New files.
6448
6449         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6450
6451         pselect: new module
6452         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6453         (pselect): New decls.
6454         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6455         since the standard pselect decl uses 'restrict'.
6456         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6457         HAVE_PSELECT, REPLACE_PSELECT.
6458         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6459         HAVE_PSELECT, REPLACE_PSELECT.
6460         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6461
6462         sys_select: don't depend on sys_socket
6463         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6465         This fix works on GNU and GNU-like platforms, but has not been tested
6466         on native Windows.
6467         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6468         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6469         gl_HEADER_SYS_SOCKET.
6470         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6471         gl_PREREQ_SYS_H_WINSOCK2.
6472
6473 2011-06-29  Eric Blake  <eblake@redhat.com>
6474
6475         pipe2: fix C89 compile problem
6476         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6477         Reported by Bruno Haible.
6478
6479         pipe, pipe2: don't corrupt fd on error
6480         * lib/pipe.c (pipe): Leave fd unchanged on error.
6481         * lib/pipe2.c (pipe2): Likewise.
6482         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6483         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6484
6485 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6486
6487         mmap-anon: do not use regular expressions inadvertently
6488         * m4/mmap-anon.m4: Remove trailing period from strings sought
6489         in the output.
6490
6491 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6492
6493         nanosleep: fix integer overflow problem
6494         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6495         arithmetic wraps around on overflow.
6496
6497         nanosleep: simplify carrying
6498         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6499         first call to the underyling nanosleep, not for the last one.
6500         This doesn't fix any bugs, but it simplifies the computation of
6501         the remaining delay.  Found while auditing integer overflow issues.
6502
6503         dup2: remove test for existence of fcntl
6504         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6505         "#if HAVE_FCNTL", in the configure-time test program.
6506         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6507         and therefore speeds up "configure" a bit.  Found while
6508         adding the dup2 module to Emacs.
6509
6510 2011-06-24  Eric Blake  <eblake@redhat.com>
6511
6512         maint.mk: enhance useless header checks
6513         * top/maint.mk (_sc_header_without_use): Check both include
6514         styles.
6515         (sc_prohibit_assert_without_use)
6516         (sc_prohibit_close_stream_without_use)
6517         (sc_prohibit_getopt_without_use)
6518         (sc_prohibit_quotearg_without_use)
6519         (sc_prohibit_quote_without_use)
6520         (sc_prohibit_long_options_without_use)
6521         (sc_prohibit_inttostr_without_use)
6522         (sc_prohibit_ignore_value_without_use)
6523         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6524         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6525         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6526         (sc_prohibit_hash_pjw_without_use)
6527         (sc_prohibit_safe_read_without_use)
6528         (sc_prohibit_argmatch_without_use)
6529         (sc_prohibit_canonicalize_without_use)
6530         (sc_prohibit_root_dev_ino_without_use)
6531         (sc_prohibit_openat_without_use)
6532         (sc_prohibit_c_ctype_without_use)
6533         (sc_prohibit_signal_without_use)
6534         (sc_prohibit_stdio--_without_use)
6535         (sc_prohibit_stdio-safer_without_use)
6536         (sc_prohibit_strings_without_use)
6537         (sc_prohibit_intprops_without_use)
6538         (sc_prohibit_stddef_without_use)
6539         (sc_prohibit_xfreopen_without_use): Update clients.
6540
6541 2011-06-24  Jim Meyering  <meyering@redhat.com>
6542
6543         syntax-check: keep one maint.mk rule in sync with its header
6544         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6545         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6546         I prefer to avoid temporary files here, so use <(...), but that
6547         is not supported by /bin/sh, so...
6548         (SHELL): Define to /bin/bash.
6549
6550 2011-06-24  Eric Blake  <eblake@redhat.com>
6551
6552         maint.mk: update sc_prohibit_intprops_without_use
6553         * top/maint.mk (_intprops_names): Match recent changes.
6554
6555 2011-06-24  Bruno Haible  <bruno@clisp.org>
6556
6557         strerror-override: No-op tweak.
6558         * lib/strerror-override.h (strerror_override): Reorder conditions,
6559         for consistency with lib/strerror-override.c.
6560
6561 2011-06-23  Eric Blake  <eblake@redhat.com>
6562
6563         maint.mk: test further PATH_MAX issues
6564         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6565         (sc_prohibit_path_max_allocation): ...and also test alloca.
6566         Suggested by Jim Meyering.
6567
6568 2011-06-22  Eric Blake  <eblake@redhat.com>
6569
6570         maint.mk: add syntax-check to avoid char[PATH_MAX]
6571         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6572
6573         stat: be robust to PATH_MAX definition
6574         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6575         * modules/stat (Depends-on): Add verify.
6576
6577         link: work around IRIX bug
6578         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6579         * lib/link.c (rpl_link): Work around it.
6580         * tests/test-link.h (test_link): Enhance test.
6581         * doc/posix-functions/link.texi (link): Document the bug.
6582
6583         getopt: silence clang warning
6584         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6585         dereference.
6586         Reported by Gustavo Martin Domato.
6587
6588 2011-06-22  Jim Meyering  <meyering@redhat.com>
6589
6590         bootstrap: do not insert a blank line into each .gitignore file
6591         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6592
6593 2011-06-21  Eric Blake  <eblake@redhat.com>
6594
6595         perror: test for output mismatch
6596         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6597         perror on IRIX.
6598
6599         strerror_r: fix OpenBSD behavior on out-of-range
6600         * lib/strerror_r.c (strerror_r): Always use maximal string.
6601         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6602
6603         strerror_r: fix OpenBSD behavior on 0
6604         * lib/strerror-override.c (strerror_override): Also override 0
6605         when needed.
6606         * lib/strerror-override.h (strerror_override): Likewise.
6607         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6608         earlier.
6609         * lib/strerror_r.c (strerror_r): Likewise.
6610         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6611         behavior...
6612         (gl_FUNC_STRERROR_0): ...into new macro.
6613         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6614         is overridden.
6615         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6616         * modules/strerror-override (Files): Add strerror.m4.
6617         (configure.ac): Also provide override for 0 when needed.
6618         * doc/posix-functions/strerror.texi (strerror): Document this.
6619         * doc/posix-functions/perror.texi (perror): Likewise.
6620
6621         perror: adjust array size
6622         * modules/perror (Depends-on): Add strerror-override.
6623         * lib/perror.c (perror): Use it to avoid magic number.
6624
6625         strerror-override: reduce size
6626         * lib/strerror-override.c (strerror_override): Use fewer lines.
6627
6628 2011-06-20  Bruno Haible  <bruno@clisp.org>
6629
6630         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6631         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6632
6633 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6634
6635         alloca: port to compilers that can optimize like GCC 4.6.0
6636         * lib/alloca.c (find_stack_direction): New signature, taken from
6637         Autoconf git.  This works with GCC 4.6.0.  This code should never
6638         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6639         be used with other compilers that optimize as well as GCC 4.6.0 does.
6640         (alloca): Adjust to new signature.
6641         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6642         New macro, which patches Autoconf in a similar way.
6643
6644         c-stack: stop worrying about stack direction
6645         * lib/c-stack.c (find_stack_direction): Remove.
6646         (segv_handler): Don't worry about stack direction growth, as it's
6647         too much of a pain to configure this correctly, given how compilers
6648         are optimizing-away our stack-growth detection code.  Instead, assume
6649         that any access to just before or just after the stack is OK.
6650         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6651         Don't require AC_FUNC_ALLOCA; no longer needed.
6652
6653 2011-06-20  Eric Blake  <eblake@redhat.com>
6654
6655         test-stat: don't allocate PATH_MAX bytes
6656         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6657         PATH_MAX-sized buffer.
6658         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6659         * modules/stat-tests (Depends-on): Likewise.
6660         * tests/test-fstatat.c (includes): Drop pathmax.h.
6661         * tests/test-stat.c (includes): Likewise.
6662         Reported by Bruno Haible.
6663
6664 2011-06-20  Bruno Haible  <bruno@clisp.org>
6665
6666         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6667         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6668         * lib/float.c: New file.
6669         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6670         REPLACE_FLOAT_LDBL.
6671         * modules/float (Files): Add lib/float.c.
6672         (configure.ac): Invoke AC_LIBOBJ.
6673         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6674
6675 2011-06-20  Bruno Haible  <bruno@clisp.org>
6676
6677         Tests for module 'float'.
6678         * modules/float-tests: New file.
6679         * tests/test-float.c: New file.
6680
6681 2011-06-19  Bruno Haible  <bruno@clisp.org>
6682
6683         isinf: Coding style.
6684         * lib/isinf.c: Use GNU coding style.
6685
6686 2011-06-19  Bruno Haible  <bruno@clisp.org>
6687
6688         linkat test: Avoid test failure on AIX 7.1.
6689         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6690         * tests/test-link.h (test_link): Likewise.
6691
6692 2011-06-19  Bruno Haible  <bruno@clisp.org>
6693
6694         pread test: Avoid test failure on OpenBSD 4.9.
6695         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6696
6697 2011-06-19  Bruno Haible  <bruno@clisp.org>
6698
6699         sprintf-posix: Fix test failure on AIX 7.1.
6700         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6701         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6702         on AIX.
6703         * doc/posix-functions/fprintf.texi: Likewise.
6704         * doc/posix-functions/printf.texi: Likewise.
6705         * doc/posix-functions/snprintf.texi: Likewise.
6706         * doc/posix-functions/sprintf.texi: Likewise.
6707         * doc/posix-functions/vdprintf.texi: Likewise.
6708         * doc/posix-functions/vfprintf.texi: Likewise.
6709         * doc/posix-functions/vprintf.texi: Likewise.
6710         * doc/posix-functions/vsnprintf.texi: Likewise.
6711         * doc/posix-functions/vsprintf.texi: Likewise.
6712
6713 2011-06-19  Bruno Haible  <bruno@clisp.org>
6714
6715         roundl-ieee: Fix test failure on AIX 7.1.
6716         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6717         * doc/posix-functions/roundl.texi: Mention problem with negative
6718         arguments.
6719
6720 2011-06-19  Bruno Haible  <bruno@clisp.org>
6721
6722         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6723         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6724         * doc/posix-functions/round.texi: Mention problem with negative
6725         arguments.
6726         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6727
6728 2011-06-19  Bruno Haible  <bruno@clisp.org>
6729
6730         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6731         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6732         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6733         * doc/posix-functions/roundf.texi: Mention problem with negative
6734         arguments.
6735         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6736
6737 2011-06-19  Bruno Haible  <bruno@clisp.org>
6738
6739         ceilf-ieee: Work around bug on MacOS X 10.5.
6740         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6741
6742         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6743         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6744         IEEE compliant, avoid compiler optimizations.
6745         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6746         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6747         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6748         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6749         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6750         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6751         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6752         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6753         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6754         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6755
6756 2011-06-19  Bruno Haible  <bruno@clisp.org>
6757
6758         ceilf-ieee: Work around bug on AIX 7.1.
6759         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6760         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6761
6762 2011-06-19  Bruno Haible  <bruno@clisp.org>
6763
6764         ceil-ieee: Work around bug on AIX 7.1.
6765         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6766         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6767
6768 2011-06-18  Bruno Haible  <bruno@clisp.org>
6769
6770         fsync test: Avoid test failure on MacOS X and AIX.
6771         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6772         EINVAL.
6773
6774 2011-06-18  Bruno Haible  <bruno@clisp.org>
6775
6776         openat, fdopendir tests: Fix link errors.
6777         * modules/openat-tests (Depends-on): Add progname.
6778         * modules/fdopendir-tests (Depends-on): Likewise.
6779         * tests/test-fchownat.c: Include progname.h.
6780         (main): Call set_program_name.
6781         * tests/test-fstatat.c: Include progname.h.
6782         (main): Call set_program_name.
6783         * tests/test-mkdirat.c: Include progname.h.
6784         (main): Call set_program_name.
6785         * tests/test-openat.c: Include progname.h.
6786         (main): Call set_program_name.
6787         * tests/test-unlinkat.c: Include progname.h.
6788         (main): Call set_program_name.
6789         * tests/test-fdopendir.c: Include progname.h.
6790         (main): Call set_program_name.
6791
6792 2011-06-18  Bruno Haible  <bruno@clisp.org>
6793
6794         Doc update.
6795         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6796         HP-UX.
6797         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6798
6799 2011-06-18  Bruno Haible  <bruno@clisp.org>
6800
6801         getcwd tests: Avoid compilation error on HP-UX 11.31.
6802         * modules/getcwd-tests (Depends-on): Add pathmax.
6803         * tests/test-getcwd.c: Include pathmax.h.
6804
6805 2011-06-18  Bruno Haible  <bruno@clisp.org>
6806
6807         isfinite, isinf: Fix link error on AIX 6 and 7.
6808         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6809         needed, also test the macro with a 'float' argument.
6810         * m4/isinf.m4 (gl_ISINF): Likewise.
6811
6812 2011-06-18  Bruno Haible  <bruno@clisp.org>
6813
6814         getloadavg: Don't clobber LIBS. Regression from previous commit.
6815         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6816         AC_CHECK_LIB from here...
6817         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6818         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6819         gl_func_getloadavg_done.
6820         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6821
6822 2011-06-18  Bruno Haible  <bruno@clisp.org>
6823
6824         clean-temp: Improve documentation.
6825         * lib/clean-temp.h: Explain better how to use this module.
6826         Reported by John Darrington <john@darrington.wattle.id.au>.
6827
6828 2011-06-17  Bruno Haible  <bruno@clisp.org>
6829
6830         pread, pwrite: Avoid cc warning on AIX.
6831         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6832         (pwrite): Likewise.
6833
6834 2011-06-17  Bruno Haible  <bruno@clisp.org>
6835
6836         spawn-pipe tests: Fix link error.
6837         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6838         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6839
6840 2011-06-17  Bruno Haible  <bruno@clisp.org>
6841
6842         Tests: Remove unnecessary dependency.
6843         * modules/canonicalize-tests (Depends-on): Remove progname.
6844         * modules/chown-tests (Depends-on): Likewise.
6845         * modules/dirname-tests (Depends-on): Likewise.
6846         * modules/fdopendir-tests (Depends-on): Likewise.
6847         * modules/fdutimensat-tests (Depends-on): Likewise.
6848         * modules/hash-tests (Depends-on): Likewise.
6849         * modules/lchown-tests (Depends-on): Likewise.
6850         * modules/linkat-tests (Depends-on): Likewise.
6851         * modules/renameat-tests (Depends-on): Likewise.
6852         * modules/spawn-pipe-tests (Depends-on): Likewise.
6853         * modules/utimensat-tests (Depends-on): Likewise.
6854
6855 2011-06-17  Bruno Haible  <bruno@clisp.org>
6856
6857         spawn-pipe tests: Fix link error.
6858         * tests/test-spawn-pipe-child.c: Undefine fflush.
6859
6860 2011-06-17  Bruno Haible  <bruno@clisp.org>
6861
6862         Fix tests link errors.
6863         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6864         * modules/chown-tests (Makefile.am): Don't link test-chown with
6865         LIBINTL.
6866         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6867         LIBINTL.
6868         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6869         LIBINTL.
6870         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6871         LIBINTL.
6872
6873 2011-06-16  Bruno Haible  <bruno@clisp.org>
6874
6875         crypto/gc-sha1: Fix recent regression.
6876         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6877         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6878
6879         crypto/gc-md5: Fix recent regression.
6880         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6881
6882         crypto/gc-md4: Fix recent regression.
6883         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6884         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6885
6886         crypto/gc-arctwo: Fix recent regression.
6887         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6888         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6889
6890         crypto/gc-rijndael: Fix recent regression.
6891         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6892         (configure.ac): Invoke AC_LIBOBJ here.
6893         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6895
6896         crypto/gc-hmac-sha1: Fix recent regression.
6897         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6898         (configure.ac): Invoke AC_LIBOBJ here.
6899         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6900         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6901
6902         crypto/gc-hmac-md5: Fix recent regression.
6903         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6904         (configure.ac): Invoke AC_LIBOBJ here.
6905         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6906         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6907
6908         crypto/gc-des: Fix recent regression.
6909         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6910         (configure.ac): Invoke AC_LIBOBJ here.
6911         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6912         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6913
6914         crypto/gc-arcfour: Fix recent regression.
6915         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6916         (configure.ac): Invoke AC_LIBOBJ here.
6917         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6918         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6919
6920 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6921
6922         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6923         After the 2011-05-21 change, this macro requires
6924         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6925         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6926
6927 2011-06-16  Bruno Haible  <bruno@clisp.org>
6928
6929         fprintftime: Move AC_LIBOBJ invocations to module description.
6930         * m4/fprintftime.m4: Remove file.
6931         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6932         (configure.ac): Remove gl_FPRINTFTIME call.
6933         (Makefile.am): Augment lib_SOURCES.
6934         Reported by Jim Meyering.
6935
6936 2011-06-16  Bruno Haible  <bruno@clisp.org>
6937
6938         tmpfile-safer: Finish 2011-05-23 commit.
6939         * m4/stdio-safer.m4: Really remove file.
6940         Reported by Jim Meyering.
6941
6942 2011-06-16  Bruno Haible  <bruno@clisp.org>
6943
6944         syntax-check: Fix typo.
6945         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6946         printf-posix.m4.
6947         Reported by Jim Meyering.
6948
6949 2011-06-13  Jim Meyering  <meyering@redhat.com>
6950
6951         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6952         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6953
6954 2011-05-23  Bruno Haible  <bruno@clisp.org>
6955
6956         yesno: Move AC_LIBOBJ invocations to module description.
6957         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6958         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6959
6960 2011-05-23  Bruno Haible  <bruno@clisp.org>
6961
6962         xstrtol: Move AC_LIBOBJ invocations to module description.
6963         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6964         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6965
6966 2011-05-23  Bruno Haible  <bruno@clisp.org>
6967
6968         xstrtold: Move AC_LIBOBJ invocations to module description.
6969         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6970         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6971
6972 2011-05-23  Bruno Haible  <bruno@clisp.org>
6973
6974         xstrtod: Move AC_LIBOBJ invocations to module description.
6975         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6976         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6977
6978 2011-05-23  Bruno Haible  <bruno@clisp.org>
6979
6980         xnanosleep: Move AC_LIBOBJ invocations to module description.
6981         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6982         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6983
6984 2011-05-23  Bruno Haible  <bruno@clisp.org>
6985
6986         xgetcwd: Move AC_LIBOBJ invocations to module description.
6987         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6988         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6989
6990 2011-05-23  Bruno Haible  <bruno@clisp.org>
6991
6992         xalloc: Move AC_LIBOBJ invocations to module description.
6993         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6994         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6995
6996 2011-05-23  Bruno Haible  <bruno@clisp.org>
6997
6998         write-any-file: Move AC_LIBOBJ invocations to module description.
6999         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7000         invocation.
7001         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7002
7003 2011-05-23  Bruno Haible  <bruno@clisp.org>
7004
7005         utimens: Move AC_LIBOBJ invocations to module description.
7006         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7007         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7008
7009 2011-05-23  Bruno Haible  <bruno@clisp.org>
7010
7011         utimecmp: Move AC_LIBOBJ invocations to module description.
7012         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7013         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7014
7015 2011-05-23  Bruno Haible  <bruno@clisp.org>
7016
7017         userspec: Move AC_LIBOBJ invocations to module description.
7018         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7019         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7020
7021 2011-05-23  Bruno Haible  <bruno@clisp.org>
7022
7023         unlinkdir: Move AC_LIBOBJ invocations to module description.
7024         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7025         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7026
7027 2011-05-23  Bruno Haible  <bruno@clisp.org>
7028
7029         unistd-safer: Move AC_LIBOBJ invocations to module description.
7030         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7031         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7032
7033 2011-05-23  Bruno Haible  <bruno@clisp.org>
7034
7035         tempname: Move AC_LIBOBJ invocations to module description.
7036         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7037         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7038
7039 2011-05-23  Bruno Haible  <bruno@clisp.org>
7040
7041         strftime: Move AC_LIBOBJ invocations to module description.
7042         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7043         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7044
7045 2011-05-23  Bruno Haible  <bruno@clisp.org>
7046
7047         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7048         * m4/stdlib-safer.m4: Remove file.
7049         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7050         (configure.ac): Remove gl_STDLIB_SAFER call.
7051         (Makefile.am): Augment lib_SOURCES.
7052
7053 2011-05-23  Bruno Haible  <bruno@clisp.org>
7054
7055         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7056         * m4/stdio-safer.m4: Remove file.
7057         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7058         (configure.ac): Remove gl_TMPFILE_SAFER call.
7059         (Makefile.am): Augment lib_SOURCES.
7060
7061 2011-05-23  Bruno Haible  <bruno@clisp.org>
7062
7063         popen-safer: Move AC_LIBOBJ invocations to module description.
7064         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7065         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7066         (configure.ac): Remove gl_POPEN_SAFER call.
7067         (Makefile.am): Augment lib_SOURCES.
7068
7069 2011-05-23  Bruno Haible  <bruno@clisp.org>
7070
7071         freopen-safer: Move AC_LIBOBJ invocations to module description.
7072         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7073         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7074         (configure.ac): Remove gl_FREOPEN_SAFER call.
7075         (Makefile.am): Augment lib_SOURCES.
7076
7077 2011-05-23  Bruno Haible  <bruno@clisp.org>
7078
7079         fopen-safer: Move AC_LIBOBJ invocations to module description.
7080         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7081         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7082         (configure.ac): Remove gl_FOPEN_SAFER call.
7083         (Makefile.am): Augment lib_SOURCES.
7084
7085 2011-05-23  Bruno Haible  <bruno@clisp.org>
7086
7087         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7088         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7089         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7090
7091 2011-05-23  Bruno Haible  <bruno@clisp.org>
7092
7093         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7094         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7095         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7096
7097 2011-05-23  Bruno Haible  <bruno@clisp.org>
7098
7099         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7100         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7101         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7102
7103 2011-05-23  Bruno Haible  <bruno@clisp.org>
7104
7105         settime: Move AC_LIBOBJ invocations to module description.
7106         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7107         * modules/settime (Makefile.am): Augment lib_SOURCES.
7108
7109 2011-05-23  Bruno Haible  <bruno@clisp.org>
7110
7111         savedir: Move AC_LIBOBJ invocations to module description.
7112         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7113         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7114
7115 2011-05-23  Bruno Haible  <bruno@clisp.org>
7116
7117         save-cwd: Move AC_LIBOBJ invocations to module description.
7118         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7119         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7120
7121 2011-05-23  Bruno Haible  <bruno@clisp.org>
7122
7123         same: Move AC_LIBOBJ invocations to module description.
7124         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7125         * modules/same (Makefile.am): Augment lib_SOURCES.
7126
7127 2011-05-23  Bruno Haible  <bruno@clisp.org>
7128
7129         safe-write: Move AC_LIBOBJ invocations to module description.
7130         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7131         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7132         instead of gl_SAFE_WRITE.
7133         (Makefile.am): Augment lib_SOURCES.
7134
7135 2011-05-23  Bruno Haible  <bruno@clisp.org>
7136
7137         safe-read: Move AC_LIBOBJ invocations to module description.
7138         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7139         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7140         of gl_SAFE_READ.
7141         (Makefile.am): Augment lib_SOURCES.
7142
7143 2011-05-23  Bruno Haible  <bruno@clisp.org>
7144
7145         safe-alloc: Move AC_LIBOBJ invocations to module description.
7146         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7147         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7148
7149 2011-05-23  Bruno Haible  <bruno@clisp.org>
7150
7151         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7152         * m4/rijndael.m4: Remove file.
7153         * modules/crypto/rijndael (Files): Remove it.
7154         (configure.ac): Remove gl_RIJNDAEL call.
7155         (Makefile.am): Augment lib_SOURCES.
7156
7157 2011-05-23  Bruno Haible  <bruno@clisp.org>
7158
7159         readtokens: Move AC_LIBOBJ invocations to module description.
7160         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7161         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7162
7163 2011-05-23  Bruno Haible  <bruno@clisp.org>
7164
7165         read-file: Move AC_LIBOBJ invocations to module description.
7166         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7167         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7168         of gl_FUNC_READ_FILE.
7169         (Makefile.am): Augment lib_SOURCES.
7170
7171 2011-05-23  Bruno Haible  <bruno@clisp.org>
7172
7173         quotearg: Move AC_LIBOBJ invocations to module description.
7174         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7175         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7176
7177 2011-05-23  Bruno Haible  <bruno@clisp.org>
7178
7179         quote: Move AC_LIBOBJ invocations to module description.
7180         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7181         * modules/quote (Makefile.am): Augment lib_SOURCES.
7182
7183 2011-05-23  Bruno Haible  <bruno@clisp.org>
7184
7185         posixver: Move AC_LIBOBJ invocations to module description.
7186         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7187         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7188
7189 2011-05-23  Bruno Haible  <bruno@clisp.org>
7190
7191         posixtm: Move AC_LIBOBJ invocations to module description.
7192         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7193         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7194
7195 2011-05-23  Bruno Haible  <bruno@clisp.org>
7196
7197         physmem: Move AC_LIBOBJ invocations to module description.
7198         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7199         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7200
7201 2011-05-23  Bruno Haible  <bruno@clisp.org>
7202
7203         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7204         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7205         invocation.
7206         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7207
7208 2011-05-23  Bruno Haible  <bruno@clisp.org>
7209
7210         mpsort: Move AC_LIBOBJ invocations to module description.
7211         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7212         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7213
7214 2011-05-23  Bruno Haible  <bruno@clisp.org>
7215
7216         modechange: Move AC_LIBOBJ invocations to module description.
7217         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7218         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7219
7220 2011-05-23  Bruno Haible  <bruno@clisp.org>
7221
7222         mkdir-p: Move AC_LIBOBJ invocations to module description.
7223         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7224         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7225
7226 2011-05-23  Bruno Haible  <bruno@clisp.org>
7227
7228         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7229         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7230         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7231
7232 2011-05-23  Bruno Haible  <bruno@clisp.org>
7233
7234         mgetgroups: Move AC_LIBOBJ invocations to module description.
7235         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7236         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7237
7238 2011-05-23  Bruno Haible  <bruno@clisp.org>
7239
7240         memxor: Move AC_LIBOBJ invocations to module description.
7241         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7242         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7243
7244 2011-05-23  Bruno Haible  <bruno@clisp.org>
7245
7246         memcoll: Move AC_LIBOBJ invocations to module description.
7247         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7248         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7249
7250 2011-05-23  Bruno Haible  <bruno@clisp.org>
7251
7252         memcasecmp: Move AC_LIBOBJ invocations to module description.
7253         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7254         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7255
7256 2011-05-23  Bruno Haible  <bruno@clisp.org>
7257
7258         crypto/md5: Move AC_LIBOBJ invocations to module description.
7259         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7260         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7261
7262 2011-05-23  Bruno Haible  <bruno@clisp.org>
7263
7264         crypto/md4: Move AC_LIBOBJ invocations to module description.
7265         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7266         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7267
7268 2011-05-23  Bruno Haible  <bruno@clisp.org>
7269
7270         crypto/md2: Move AC_LIBOBJ invocations to module description.
7271         * m4/md2.m4: Remove file.
7272         * modules/crypto/md2 (Files): Remove it.
7273         (configure.ac): Remove gl_MD2 call.
7274         (Makefile.am): Augment lib_SOURCES.
7275
7276 2011-05-23  Bruno Haible  <bruno@clisp.org>
7277
7278         long-options: Move AC_LIBOBJ invocations to module description.
7279         * m4/long-options.m4: Remove file.
7280         * modules/long-options (Files): Remove it.
7281         (configure.ac): Remove gl_LONG_OPTIONS call.
7282         (Makefile.am): Augment lib_SOURCES.
7283
7284 2011-05-23  Bruno Haible  <bruno@clisp.org>
7285
7286         i-ring: Move AC_LIBOBJ invocations to module description.
7287         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7288         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7289
7290 2011-05-23  Bruno Haible  <bruno@clisp.org>
7291
7292         idcache: Move AC_LIBOBJ invocations to module description.
7293         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7294         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7295
7296 2011-05-23  Bruno Haible  <bruno@clisp.org>
7297
7298         human: Move AC_LIBOBJ invocations to module description.
7299         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7300         * modules/human (Makefile.am): Augment lib_SOURCES.
7301
7302 2011-05-23  Bruno Haible  <bruno@clisp.org>
7303
7304         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7305         * m4/hmac-sha1.m4: Remove file.
7306         * modules/crypto/hmac-sha1 (Files): Remove it.
7307         (configure.ac): Remove gl_HMAC_SHA1 call.
7308         (Makefile.am): Augment lib_SOURCES.
7309
7310 2011-05-23  Bruno Haible  <bruno@clisp.org>
7311
7312         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7313         * m4/hmac-md5.m4: Remove file.
7314         * modules/crypto/hmac-md5 (Files): Remove it.
7315         (configure.ac): Remove gl_HMAC_MD5 call.
7316         (Makefile.am): Augment lib_SOURCES.
7317
7318 2011-05-23  Bruno Haible  <bruno@clisp.org>
7319
7320         hash: Move AC_LIBOBJ invocations to module description.
7321         * m4/hash.m4: Remove file.
7322         * modules/hash (Files): Remove it.
7323         (configure.ac): Remove gl_HASH call.
7324         (Makefile.am): Augment lib_SOURCES.
7325
7326 2011-05-23  Bruno Haible  <bruno@clisp.org>
7327
7328         hard-locale: Move AC_LIBOBJ invocations to module description.
7329         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7330         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7331
7332 2011-05-23  Bruno Haible  <bruno@clisp.org>
7333
7334         getugroups: Move AC_LIBOBJ invocations to module description.
7335         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7336         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7337
7338 2011-05-23  Bruno Haible  <bruno@clisp.org>
7339
7340         gettime: Move AC_LIBOBJ invocations to module description.
7341         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7342         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7343
7344 2011-05-23  Bruno Haible  <bruno@clisp.org>
7345
7346         getndelim2: Move AC_LIBOBJ invocations to module description.
7347         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7348         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7349
7350 2011-05-23  Bruno Haible  <bruno@clisp.org>
7351
7352         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7353         * m4/gc-pbkdf2-sha1.m4: Remove file.
7354         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7355         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7356         (Makefile.am): Augment lib_SOURCES.
7357
7358 2011-05-23  Bruno Haible  <bruno@clisp.org>
7359
7360         fts: Move AC_LIBOBJ invocations to module description.
7361         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7362         * modules/fts (configure.ac): ... to here.
7363
7364 2011-05-23  Bruno Haible  <bruno@clisp.org>
7365
7366         file-type: Move AC_LIBOBJ invocations to module description.
7367         * m4/file-type.m4: Remove file.
7368         * modules/file-type (Files): Remove it.
7369         (configure.ac): Remove gl_FILE_TYPE call.
7370         (Makefile.am): Augment lib_SOURCES.
7371
7372 2011-05-23  Bruno Haible  <bruno@clisp.org>
7373
7374         filenamecat*: Respect rules for use of AC_LIBOBJ.
7375         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7376         Remove AC_LIBOBJ invocation.
7377         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7378         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7379
7380 2011-05-23  Bruno Haible  <bruno@clisp.org>
7381
7382         filemode: Move AC_LIBOBJ invocations to module description.
7383         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7384         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7385
7386 2011-05-23  Bruno Haible  <bruno@clisp.org>
7387
7388         openat-safer: Move AC_LIBOBJ invocations to module description.
7389         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7390         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7391
7392 2011-05-23  Bruno Haible  <bruno@clisp.org>
7393
7394         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7395         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7396         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7397
7398 2011-05-23  Bruno Haible  <bruno@clisp.org>
7399
7400         exclude: Move AC_LIBOBJ invocations to module description.
7401         * m4/exclude.m4: Remove file.
7402         * modules/exclude (Files): Remove it.
7403         (configure.ac): Remove gl_EXCLUDE call.
7404         (Makefile.am): Augment lib_SOURCES.
7405
7406 2011-05-23  Bruno Haible  <bruno@clisp.org>
7407
7408         dirname*: Respect rules for use of AC_LIBOBJ.
7409         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7410         invocations.
7411         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7412         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7413
7414 2011-05-23  Bruno Haible  <bruno@clisp.org>
7415
7416         dirent-safer: Move AC_LIBOBJ invocations to module description.
7417         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7418         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7419
7420 2011-05-23  Bruno Haible  <bruno@clisp.org>
7421
7422         crypto/des: Move AC_LIBOBJ invocations to module description.
7423         * m4/des.m4: Remove file.
7424         * modules/crypto/des (Files): Remove it.
7425         (configure.ac): Remove gl_DES call.
7426         (Makefile.am): Augment lib_SOURCES.
7427
7428 2011-05-23  Bruno Haible  <bruno@clisp.org>
7429
7430         cycle-check: Move AC_LIBOBJ invocations to module description.
7431         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7432         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7433
7434 2011-05-23  Bruno Haible  <bruno@clisp.org>
7435
7436         c-strtold: Move AC_LIBOBJ invocations to module description.
7437         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7438         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7439
7440 2011-05-23  Bruno Haible  <bruno@clisp.org>
7441
7442         c-strtod: Move AC_LIBOBJ invocations to module description.
7443         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7444         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7445
7446 2011-05-23  Bruno Haible  <bruno@clisp.org>
7447
7448         crc: Move AC_LIBOBJ invocations to module description.
7449         * m4/crc.m4: Remove file.
7450         * modules/crc (Files): Remove it.
7451         (configure.ac): Remove gl_CRC call.
7452         (Makefile.am): Augment lib_SOURCES.
7453
7454 2011-05-23  Bruno Haible  <bruno@clisp.org>
7455
7456         close-stream: Move AC_LIBOBJ invocations to module description.
7457         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7458         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7459
7460 2011-05-23  Bruno Haible  <bruno@clisp.org>
7461
7462         closeout: Move AC_LIBOBJ invocations to module description.
7463         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7464         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7465
7466 2011-05-23  Bruno Haible  <bruno@clisp.org>
7467
7468         closein: Move AC_LIBOBJ invocations to module description.
7469         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7470         * modules/closein (Makefile.am): Augment lib_SOURCES.
7471
7472 2011-05-23  Bruno Haible  <bruno@clisp.org>
7473
7474         cloexec: Move AC_LIBOBJ invocations to module description.
7475         * m4/cloexec.m4: Remove file.
7476         * modules/cloexec (Files): Remove it.
7477         (configure.ac): Remove gl_CLOEXEC call.
7478         (Makefile.am): Augment lib_SOURCES.
7479
7480 2011-05-23  Bruno Haible  <bruno@clisp.org>
7481
7482         check-version: Move AC_LIBOBJ invocations to module description.
7483         * m4/check-version.m4: Remove file.
7484         * modules/check-version (Files): Remove it.
7485         (configure.ac): Remove gl_CHECK_VERSION call.
7486         (Makefile.am): Augment lib_SOURCES.
7487
7488 2011-05-23  Bruno Haible  <bruno@clisp.org>
7489
7490         chdir-safer: Move AC_LIBOBJ invocations to module description.
7491         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7492         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7493
7494 2011-05-23  Bruno Haible  <bruno@clisp.org>
7495
7496         canonicalize: Move AC_LIBOBJ invocations to module description.
7497         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7498         AC_LIBOBJ invocation.
7499         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7500
7501 2011-05-23  Bruno Haible  <bruno@clisp.org>
7502
7503         canon-host: Move AC_LIBOBJ invocations to module description.
7504         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7505         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7506         instead of gl_CANON_HOST.
7507         (Makefile.am): Augment lib_SOURCES.
7508
7509 2011-05-23  Bruno Haible  <bruno@clisp.org>
7510
7511         backupfile: Move AC_LIBOBJ invocations to module description.
7512         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7513         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7514
7515 2011-05-23  Bruno Haible  <bruno@clisp.org>
7516
7517         argmatch: Move AC_LIBOBJ invocations to module description.
7518         * m4/argmatch.m4: Remove file.
7519         * modules/argmatch (Files): Remove it.
7520         (configure.ac): Remove gl_ARGMATCH call.
7521         (Makefile.am): Augment lib_SOURCES.
7522
7523 2011-05-23  Bruno Haible  <bruno@clisp.org>
7524
7525         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7526         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7527         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7528
7529 2011-05-23  Bruno Haible  <bruno@clisp.org>
7530
7531         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7532         * m4/arcfour.m4: Remove file.
7533         * modules/crypto/arcfour (Files): Remove it.
7534         (configure.ac): Remove gl_ARCFOUR call.
7535         (Makefile.am): Augment lib_SOURCES.
7536
7537 2011-05-22  Bruno Haible  <bruno@clisp.org>
7538
7539         write: Move AC_LIBOBJ invocations to module description.
7540         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7541         * modules/write (configure.ac): ... to here.
7542
7543 2011-05-22  Bruno Haible  <bruno@clisp.org>
7544
7545         wmemset: Move AC_LIBOBJ invocations to module description.
7546         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7547         here...
7548         * modules/wmemset (configure.ac): ... to here.
7549
7550 2011-05-22  Bruno Haible  <bruno@clisp.org>
7551
7552         wmemmove: Move AC_LIBOBJ invocations to module description.
7553         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7554         here...
7555         * modules/wmemmove (configure.ac): ... to here.
7556
7557 2011-05-22  Bruno Haible  <bruno@clisp.org>
7558
7559         wmemcpy: Move AC_LIBOBJ invocations to module description.
7560         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7561         here...
7562         * modules/wmemcpy (configure.ac): ... to here.
7563
7564 2011-05-22  Bruno Haible  <bruno@clisp.org>
7565
7566         wmemcmp: Move AC_LIBOBJ invocations to module description.
7567         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7568         here...
7569         * modules/wmemcmp (configure.ac): ... to here.
7570
7571 2011-05-22  Bruno Haible  <bruno@clisp.org>
7572
7573         wmemchr: Move AC_LIBOBJ invocations to module description.
7574         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7575         here...
7576         * modules/wmemchr (configure.ac): ... to here.
7577
7578 2011-05-22  Bruno Haible  <bruno@clisp.org>
7579
7580         wcswidth: Move AC_LIBOBJ invocations to module description.
7581         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7582         here...
7583         * modules/wcswidth (configure.ac): ... to here.
7584
7585 2011-05-22  Bruno Haible  <bruno@clisp.org>
7586
7587         wcwidth: Respect rules for use of AC_LIBOBJ.
7588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7589         invocation from here...
7590         * modules/wcwidth (configure.ac): ... to here.
7591         (Depends-on): Update conditions.
7592
7593 2011-05-22  Bruno Haible  <bruno@clisp.org>
7594
7595         wctype: Move AC_LIBOBJ invocations to module description.
7596         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7597         invocation from here...
7598         * modules/wctype (configure.ac): ... to here.
7599         (Depends-on): Update conditions.
7600
7601 2011-05-22  Bruno Haible  <bruno@clisp.org>
7602
7603         wctrans: Move AC_LIBOBJ invocations to module description.
7604         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7605         invocation from here...
7606         * modules/wctrans (configure.ac): ... to here.
7607
7608 2011-05-22  Bruno Haible  <bruno@clisp.org>
7609
7610         wctomb: Move AC_LIBOBJ invocations to module description.
7611         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7612         invocations from here...
7613         * modules/wctomb (configure.ac): ... to here.
7614
7615 2011-05-22  Bruno Haible  <bruno@clisp.org>
7616
7617         wctob: Move AC_LIBOBJ invocations to module description.
7618         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7619         gl_PREREQ_WCTOB invocations from here...
7620         * modules/wctob (configure.ac): ... to here.
7621         (Depends-on): Update conditions.
7622
7623 2011-05-22  Bruno Haible  <bruno@clisp.org>
7624
7625         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7626         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7627         here...
7628         * modules/wcsxfrm (configure.ac): ... to here.
7629
7630 2011-05-22  Bruno Haible  <bruno@clisp.org>
7631
7632         wcstok: Move AC_LIBOBJ invocations to module description.
7633         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7634         * modules/wcstok (configure.ac): ... to here.
7635
7636 2011-05-22  Bruno Haible  <bruno@clisp.org>
7637
7638         wcsstr: Move AC_LIBOBJ invocations to module description.
7639         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7640         * modules/wcsstr (configure.ac): ... to here.
7641
7642 2011-05-22  Bruno Haible  <bruno@clisp.org>
7643
7644         wcsspn: Move AC_LIBOBJ invocations to module description.
7645         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7646         * modules/wcsspn (configure.ac): ... to here.
7647
7648 2011-05-22  Bruno Haible  <bruno@clisp.org>
7649
7650         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7651         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7652         gl_PREREQ_WCSRTOMBS invocations from here...
7653         * modules/wcsrtombs (configure.ac): ... to here.
7654
7655 2011-05-22  Bruno Haible  <bruno@clisp.org>
7656
7657         wcsrchr: Move AC_LIBOBJ invocations to module description.
7658         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7659         here...
7660         * modules/wcsrchr (configure.ac): ... to here.
7661
7662 2011-05-22  Bruno Haible  <bruno@clisp.org>
7663
7664         wcspbrk: Move AC_LIBOBJ invocations to module description.
7665         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7666         here...
7667         * modules/wcspbrk (configure.ac): ... to here.
7668
7669 2011-05-22  Bruno Haible  <bruno@clisp.org>
7670
7671         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7672         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7673         gl_PREREQ_WCSNRTOMBS invocations from here...
7674         * modules/wcsnrtombs (configure.ac): ... to here.
7675
7676 2011-05-22  Bruno Haible  <bruno@clisp.org>
7677
7678         wcsnlen: Move AC_LIBOBJ invocations to module description.
7679         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7680         here...
7681         * modules/wcsnlen (configure.ac): ... to here.
7682
7683 2011-05-22  Bruno Haible  <bruno@clisp.org>
7684
7685         wcsncpy: Move AC_LIBOBJ invocations to module description.
7686         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7687         here...
7688         * modules/wcsncpy (configure.ac): ... to here.
7689
7690 2011-05-22  Bruno Haible  <bruno@clisp.org>
7691
7692         wcsncmp: Move AC_LIBOBJ invocations to module description.
7693         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7694         here...
7695         * modules/wcsncmp (configure.ac): ... to here.
7696
7697 2011-05-22  Bruno Haible  <bruno@clisp.org>
7698
7699         wcsncat: Move AC_LIBOBJ invocations to module description.
7700         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7701         here...
7702         * modules/wcsncat (configure.ac): ... to here.
7703
7704 2011-05-22  Bruno Haible  <bruno@clisp.org>
7705
7706         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7707         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7708         from here...
7709         * modules/wcsncasecmp (configure.ac): ... to here.
7710
7711 2011-05-22  Bruno Haible  <bruno@clisp.org>
7712
7713         wcslen: Move AC_LIBOBJ invocations to module description.
7714         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7715         * modules/wcslen (configure.ac): ... to here.
7716
7717 2011-05-22  Bruno Haible  <bruno@clisp.org>
7718
7719         wcsdup: Move AC_LIBOBJ invocations to module description.
7720         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7721         * modules/wcsdup (configure.ac): ... to here.
7722
7723 2011-05-22  Bruno Haible  <bruno@clisp.org>
7724
7725         wcscspn: Move AC_LIBOBJ invocations to module description.
7726         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7727         here...
7728         * modules/wcscspn (configure.ac): ... to here.
7729
7730 2011-05-22  Bruno Haible  <bruno@clisp.org>
7731
7732         wcscpy: Move AC_LIBOBJ invocations to module description.
7733         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7734         * modules/wcscpy (configure.ac): ... to here.
7735
7736 2011-05-22  Bruno Haible  <bruno@clisp.org>
7737
7738         wcscoll: Move AC_LIBOBJ invocations to module description.
7739         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7740         here...
7741         * modules/wcscoll (configure.ac): ... to here.
7742
7743 2011-05-22  Bruno Haible  <bruno@clisp.org>
7744
7745         wcscmp: Move AC_LIBOBJ invocations to module description.
7746         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7747         * modules/wcscmp (configure.ac): ... to here.
7748
7749 2011-05-22  Bruno Haible  <bruno@clisp.org>
7750
7751         wcschr: Move AC_LIBOBJ invocations to module description.
7752         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7753         * modules/wcschr (configure.ac): ... to here.
7754
7755 2011-05-22  Bruno Haible  <bruno@clisp.org>
7756
7757         wcscat: Move AC_LIBOBJ invocations to module description.
7758         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7759         * modules/wcscat (configure.ac): ... to here.
7760
7761 2011-05-22  Bruno Haible  <bruno@clisp.org>
7762
7763         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7764         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7765         here...
7766         * modules/wcscasecmp (configure.ac): ... to here.
7767
7768 2011-05-22  Bruno Haible  <bruno@clisp.org>
7769
7770         wcrtomb: Move AC_LIBOBJ invocations to module description.
7771         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7772         invocations from here...
7773         * modules/wcrtomb (configure.ac): ... to here.
7774
7775 2011-05-22  Bruno Haible  <bruno@clisp.org>
7776
7777         wcpncpy: Move AC_LIBOBJ invocations to module description.
7778         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7779         here...
7780         * modules/wcpncpy (configure.ac): ... to here.
7781
7782 2011-05-22  Bruno Haible  <bruno@clisp.org>
7783
7784         wcpcpy: Move AC_LIBOBJ invocations to module description.
7785         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7786         * modules/wcpcpy (configure.ac): ... to here.
7787
7788 2011-05-22  Bruno Haible  <bruno@clisp.org>
7789
7790         waitpid: Move AC_LIBOBJ invocations to module description.
7791         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7792         invocation from here...
7793         * modules/waitpid (configure.ac): ... to here.
7794
7795 2011-05-22  Bruno Haible  <bruno@clisp.org>
7796
7797         utimensat: Move AC_LIBOBJ invocations to module description.
7798         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7799         here...
7800         * modules/utimensat (configure.ac): ... to here.
7801
7802 2011-05-22  Bruno Haible  <bruno@clisp.org>
7803
7804         usleep: Move AC_LIBOBJ invocations to module description.
7805         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7806         here...
7807         * modules/usleep (configure.ac): ... to here.
7808
7809 2011-05-22  Bruno Haible  <bruno@clisp.org>
7810
7811         unlockpt: Move AC_LIBOBJ invocations to module description.
7812         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7813         gl_PREREQ_UNLOCKPT invocations from here...
7814         * modules/unlockpt (configure.ac): ... to here.
7815
7816 2011-05-22  Bruno Haible  <bruno@clisp.org>
7817
7818         unlink: Respect rules for use of AC_LIBOBJ.
7819         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7820         * modules/unlink (configure.ac): ... to here.
7821
7822 2011-05-22  Bruno Haible  <bruno@clisp.org>
7823
7824         uname: Move AC_LIBOBJ invocations to module description.
7825         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7826         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7827         here...
7828         * modules/uname (configure.ac): ... to here.
7829
7830 2011-05-22  Bruno Haible  <bruno@clisp.org>
7831
7832         ttyname_r: Move AC_LIBOBJ invocations to module description.
7833         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7834         gl_PREREQ_TTYNAME_R invocations from here...
7835         * modules/ttyname_r (configure.ac): ... to here.
7836
7837 2011-05-22  Bruno Haible  <bruno@clisp.org>
7838
7839         tsearch: Move AC_LIBOBJ invocations to module description.
7840         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7841         invocations from here...
7842         * modules/tsearch (configure.ac): ... to here.
7843
7844 2011-05-22  Bruno Haible  <bruno@clisp.org>
7845
7846         towctrans: Move AC_LIBOBJ invocations to module description.
7847         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7848         AC_LIBOBJ invocation from here...
7849         * modules/towctrans (configure.ac): ... to here.
7850
7851 2011-05-22  Bruno Haible  <bruno@clisp.org>
7852
7853         tmpfile: Move AC_LIBOBJ invocations to module description.
7854         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7855         invocations from here...
7856         * modules/tmpfile (configure.ac): ... to here.
7857
7858 2011-05-22  Bruno Haible  <bruno@clisp.org>
7859
7860         times: Move AC_LIBOBJ invocations to module description.
7861         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7862         * modules/times (configure.ac): ... to here.
7863
7864 2011-05-22  Bruno Haible  <bruno@clisp.org>
7865
7866         time_r: Move AC_LIBOBJ invocations to module description.
7867         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7868         invocations from here...
7869         * modules/time_r (configure.ac): ... to here.
7870
7871 2011-05-22  Bruno Haible  <bruno@clisp.org>
7872
7873         timegm: Move AC_LIBOBJ invocations to module description.
7874         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7875         invocations from here...
7876         * modules/timegm (configure.ac): ... to here.
7877
7878 2011-05-22  Bruno Haible  <bruno@clisp.org>
7879
7880         tcgetsid: Move AC_LIBOBJ invocations to module description.
7881         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7882         and gl_PREREQ_TCGETSID invocations from here...
7883         * modules/tcgetsid (configure.ac): ... to here.
7884         (Depends-on): Update conditions.
7885
7886 2011-05-22  Bruno Haible  <bruno@clisp.org>
7887
7888         symlinkat: Move AC_LIBOBJ invocations to module description.
7889         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7890         here...
7891         * modules/symlinkat (configure.ac): ... to here.
7892
7893 2011-05-22  Bruno Haible  <bruno@clisp.org>
7894
7895         symlink: Move AC_LIBOBJ invocations to module description.
7896         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7897         here...
7898         * modules/symlink (configure.ac): ... to here.
7899
7900 2011-05-22  Bruno Haible  <bruno@clisp.org>
7901
7902         strverscmp: Move AC_LIBOBJ invocations to module description.
7903         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7904         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7905         from here...
7906         * modules/strverscmp (configure.ac): ... to here.
7907
7908 2011-05-22  Bruno Haible  <bruno@clisp.org>
7909
7910         strtok_r: Move AC_LIBOBJ invocations to module description.
7911         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7912         and gl_PREREQ_STRTOK_R invocations from here...
7913         * modules/strtok_r (configure.ac): ... to here.
7914         (Depends-on): Update conditions.
7915
7916 2011-05-22  Bruno Haible  <bruno@clisp.org>
7917
7918         strtoumax: Move AC_LIBOBJ invocations to module description.
7919         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7920         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7921         from here...
7922         * modules/strtoumax (configure.ac): ... to here.
7923
7924 2011-05-22  Bruno Haible  <bruno@clisp.org>
7925
7926         strtoimax: Move AC_LIBOBJ invocations to module description.
7927         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7928         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7929         from here...
7930         * modules/strtoimax (configure.ac): ... to here.
7931
7932 2011-05-22  Bruno Haible  <bruno@clisp.org>
7933
7934         strtoull: Move AC_LIBOBJ invocations to module description.
7935         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7936         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7937         from here...
7938         * modules/strtoull (configure.ac): ... to here.
7939
7940 2011-05-22  Bruno Haible  <bruno@clisp.org>
7941
7942         strtoll: Move AC_LIBOBJ invocations to module description.
7943         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7944         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7945         here...
7946         * modules/strtoll (configure.ac): ... to here.
7947
7948 2011-05-22  Bruno Haible  <bruno@clisp.org>
7949
7950         strtoul: Move AC_LIBOBJ invocations to module description.
7951         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7952         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7953         * modules/strtoul (configure.ac): ... to here.
7954
7955 2011-05-22  Bruno Haible  <bruno@clisp.org>
7956
7957         strtol: Move AC_LIBOBJ invocations to module description.
7958         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7959         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7960         * modules/strtol (configure.ac): ... to here.
7961
7962 2011-05-22  Bruno Haible  <bruno@clisp.org>
7963
7964         strtod: Move AC_LIBOBJ invocations to module description.
7965         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7966         invocations from here...
7967         * modules/strtod (configure.ac): ... to here.
7968
7969 2011-05-22  Bruno Haible  <bruno@clisp.org>
7970
7971         strstr*: Move AC_LIBOBJ invocations to module description.
7972         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7973         invocations from here...
7974         * modules/strstr-simple (configure.ac): ... to here.
7975         * modules/strstr (configure.ac): ... and here.
7976
7977 2011-05-22  Bruno Haible  <bruno@clisp.org>
7978
7979         strsignal: Move AC_LIBOBJ invocations to module description.
7980         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7981         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7982         * modules/strsignal (configure.ac): ... to here.
7983         (Depends-on): Update conditions.
7984
7985 2011-05-22  Bruno Haible  <bruno@clisp.org>
7986
7987         strsep: Move AC_LIBOBJ invocations to module description.
7988         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7989         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7990         here...
7991         * modules/strsep (configure.ac): ... to here.
7992
7993 2011-05-22  Bruno Haible  <bruno@clisp.org>
7994
7995         strptime: Move AC_LIBOBJ invocations to module description.
7996         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7997         gl_PREREQ_STRPTIME invocations from here...
7998         * modules/strptime (configure.ac): ... to here.
7999
8000 2011-05-22  Bruno Haible  <bruno@clisp.org>
8001
8002         strpbrk: Move AC_LIBOBJ invocations to module description.
8003         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8004         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8005         here...
8006         * modules/strpbrk (configure.ac): ... to here.
8007
8008 2011-05-22  Bruno Haible  <bruno@clisp.org>
8009
8010         strnlen: Move AC_LIBOBJ invocations to module description.
8011         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8012         invocations from here...
8013         * modules/strnlen (configure.ac): ... to here.
8014
8015 2011-05-22  Bruno Haible  <bruno@clisp.org>
8016
8017         strndup: Move AC_LIBOBJ invocations to module description.
8018         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8019         invocations from here...
8020         * modules/strndup (configure.ac): ... to here.
8021         (Depends-on): Update conditions.
8022
8023 2011-05-22  Bruno Haible  <bruno@clisp.org>
8024
8025         strncat: Move AC_LIBOBJ invocations to module description.
8026         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8027         invocations from here...
8028         * modules/strncat (configure.ac): ... to here.
8029
8030 2011-05-22  Bruno Haible  <bruno@clisp.org>
8031
8032         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8033         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8034         invocations from here...
8035         * modules/strdup (configure.ac): ... to here.
8036         * modules/strdup-posix (configure.ac): ... and here.
8037
8038 2011-05-22  Bruno Haible  <bruno@clisp.org>
8039
8040         strcspn: Move AC_LIBOBJ invocations to module description.
8041         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8042         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8043         here...
8044         * modules/strcspn (configure.ac): ... to here.
8045
8046 2011-05-22  Bruno Haible  <bruno@clisp.org>
8047
8048         strchrnul: Move AC_LIBOBJ invocations to module description.
8049         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8050         gl_PREREQ_STRCHRNUL invocations from here...
8051         * modules/strchrnul (configure.ac): ... to here.
8052
8053 2011-05-22  Bruno Haible  <bruno@clisp.org>
8054
8055         strcasestr*: Move AC_LIBOBJ invocations to module description.
8056         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8057         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8058         * modules/strcasestr-simple (configure.ac): ... to here.
8059         * modules/strcasestr (configure.ac): ... and here.
8060
8061 2011-05-22  Bruno Haible  <bruno@clisp.org>
8062
8063         strcase: Move AC_LIBOBJ invocations to module description.
8064         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8065         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8066         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8067         gl_PREREQ_STRNCASECMP invocations from here...
8068         * modules/strcase (configure.ac): ... to here.
8069
8070 2011-05-22  Bruno Haible  <bruno@clisp.org>
8071
8072         stpncpy: Move AC_LIBOBJ invocations to module description.
8073         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8074         here...
8075         * modules/stpncpy (configure.ac): ... to here.
8076
8077 2011-05-22  Bruno Haible  <bruno@clisp.org>
8078
8079         stpcpy: Move AC_LIBOBJ invocations to module description.
8080         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8081         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8082         here...
8083         * modules/stpcpy (configure.ac): ... to here.
8084
8085 2011-05-21  Bruno Haible  <bruno@clisp.org>
8086
8087         stat: Move AC_LIBOBJ invocations to module description.
8088         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8089         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8090         here...
8091         * modules/stat (configure.ac): ... to here.
8092
8093 2011-05-21  Bruno Haible  <bruno@clisp.org>
8094
8095         sleep: Move AC_LIBOBJ invocations to module description.
8096         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8097         * modules/sleep (configure.ac): ... to here.
8098
8099 2011-05-21  Bruno Haible  <bruno@clisp.org>
8100
8101         signbit: Move AC_LIBOBJ invocations to module description.
8102         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8103         * modules/signbit (configure.ac): ... to here.
8104
8105 2011-05-21  Bruno Haible  <bruno@clisp.org>
8106
8107         sigprocmask: Move AC_LIBOBJ invocations to module description.
8108         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8109         gl_PREREQ_SIGPROMASK invocations from here...
8110         * modules/sigprocmask (configure.ac): ... to here.
8111
8112 2011-05-21  Bruno Haible  <bruno@clisp.org>
8113
8114         sigaction: Move AC_LIBOBJ invocations to module description.
8115         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8116         gl_PREREQ_SIGACTION invocations from here...
8117         * modules/sigaction (configure.ac): ... to here.
8118
8119 2011-05-21  Bruno Haible  <bruno@clisp.org>
8120
8121         sig2str: Move AC_LIBOBJ invocations to module description.
8122         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8123         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8124         here...
8125         * modules/sig2str (configure.ac): ... to here.
8126
8127 2011-05-21  Bruno Haible  <bruno@clisp.org>
8128
8129         setlocale: Move AC_LIBOBJ invocations to module description.
8130         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8131         gl_PREREQ_SETLOCALE invocations from here...
8132         * modules/setlocale (configure.ac): ... to here.
8133
8134 2011-05-21  Bruno Haible  <bruno@clisp.org>
8135
8136         unsetenv: Move AC_LIBOBJ invocations to module description.
8137         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8138         and gl_PREREQ_UNSETENV invocations from here...
8139         * modules/unsetenv (configure.ac): ... to here.
8140         (Depends-on): Update.
8141
8142 2011-05-21  Bruno Haible  <bruno@clisp.org>
8143
8144         setenv: Move AC_LIBOBJ invocations to module description.
8145         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8146         here...
8147         * modules/setenv (configure.ac): ... to here.
8148
8149 2011-05-21  Bruno Haible  <bruno@clisp.org>
8150
8151         selinux-h: Move AC_LIBOBJ invocations to module description.
8152         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8153         AC_LIBOBJ invocation from here...
8154         * modules/selinux-h (configure.ac): ... to here.
8155
8156 2011-05-21  Bruno Haible  <bruno@clisp.org>
8157
8158         select: Respect rules for use of AC_LIBOBJ.
8159         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8160         here...
8161         * modules/select (configure.ac): ... to here.
8162
8163 2011-05-21  Bruno Haible  <bruno@clisp.org>
8164
8165         scandir: Move AC_LIBOBJ invocations to module description.
8166         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8167         invocations from here...
8168         * modules/scandir (configure.ac): ... to here.
8169
8170 2011-05-21  Bruno Haible  <bruno@clisp.org>
8171
8172         rpmatch: Move AC_LIBOBJ invocations to module description.
8173         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8174         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8175         here...
8176         * modules/rpmatch (configure.ac): ... to here.
8177
8178 2011-05-21  Bruno Haible  <bruno@clisp.org>
8179
8180         rmdir: Respect rules for use of AC_LIBOBJ.
8181         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8182         * modules/rmdir (configure.ac): ... to here.
8183
8184 2011-05-21  Bruno Haible  <bruno@clisp.org>
8185
8186         renameat: Move AC_LIBOBJ invocations to module description.
8187         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8188         here...
8189         * modules/renameat (configure.ac): ... to here.
8190
8191 2011-05-21  Bruno Haible  <bruno@clisp.org>
8192
8193         rename: Respect rules for use of AC_LIBOBJ.
8194         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8195         here...
8196         * modules/rename (configure.ac): ... to here.
8197
8198 2011-05-21  Bruno Haible  <bruno@clisp.org>
8199
8200         remove: Move AC_LIBOBJ invocations to module description.
8201         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8202         here...
8203         * modules/remove (configure.ac): ... to here.
8204
8205 2011-05-21  Bruno Haible  <bruno@clisp.org>
8206
8207         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8208         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8209         macro.
8210         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8211         * modules/relocatable-lib (configure.ac): ... to here.
8212         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8213         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8214
8215 2011-05-21  Bruno Haible  <bruno@clisp.org>
8216
8217         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8218         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8219         here...
8220         * modules/relocatable-prog (configure.ac): ... to here.
8221
8222 2011-05-21  Bruno Haible  <bruno@clisp.org>
8223
8224         regex: Move AC_LIBOBJ invocations to module description.
8225         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8226         invocations from here...
8227         * modules/regex (configure.ac): ... to here.
8228
8229 2011-05-21  Bruno Haible  <bruno@clisp.org>
8230
8231         realloc-*: Move AC_LIBOBJ invocations to module description.
8232         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8233         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8234         AC_LIBOBJ invocations from here...
8235         * modules/realloc-gnu (configure.ac): ... to here.
8236         * modules/realloc-posix (configure.ac): ... and here.
8237
8238 2011-05-21  Bruno Haible  <bruno@clisp.org>
8239
8240         readutmp: Move AC_LIBOBJ invocations to module description.
8241         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8242         * modules/readutmp (configure.ac): ... to here.
8243
8244 2011-05-21  Bruno Haible  <bruno@clisp.org>
8245
8246         readlinkat: Move AC_LIBOBJ invocations to module description.
8247         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8248         here...
8249         * modules/readlinkat (configure.ac): ... to here.
8250
8251 2011-05-21  Bruno Haible  <bruno@clisp.org>
8252
8253         readlink: Move AC_LIBOBJ invocations to module description.
8254         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8255         gl_PREREQ_READLINK invocations from here...
8256         * modules/readlink (configure.ac): ... to here.
8257
8258 2011-05-21  Bruno Haible  <bruno@clisp.org>
8259
8260         readline: Move AC_LIBOBJ invocations to module description.
8261         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8262         gl_PREREQ_READLINE invocations from here...
8263         * modules/readline (configure.ac): ... to here.
8264
8265 2011-05-21  Bruno Haible  <bruno@clisp.org>
8266
8267         read: Move AC_LIBOBJ invocations to module description.
8268         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8269         * modules/read (configure.ac): ... to here.
8270
8271 2011-05-21  Bruno Haible  <bruno@clisp.org>
8272
8273         rawmemchr: Move AC_LIBOBJ invocations to module description.
8274         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8275         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8276         from here...
8277         * modules/rawmemchr (configure.ac): ... to here.
8278
8279 2011-05-21  Bruno Haible  <bruno@clisp.org>
8280
8281         random_r: Move AC_LIBOBJ invocations to module description.
8282         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8283         gl_PREREQ_RANDOM_R invocations from here...
8284         * modules/random_r (configure.ac): ... to here.
8285
8286 2011-05-21  Bruno Haible  <bruno@clisp.org>
8287
8288         pwrite: Move AC_LIBOBJ invocations to module description.
8289         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8290         * modules/pwrite (configure.ac): ... to here.
8291
8292 2011-05-21  Bruno Haible  <bruno@clisp.org>
8293
8294         putenv: Move AC_LIBOBJ invocations to module description.
8295         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8296         * modules/putenv (configure.ac): ... to here.
8297
8298 2011-05-21  Bruno Haible  <bruno@clisp.org>
8299
8300         login_tty: Move AC_LIBOBJ invocations to module description.
8301         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8302         * modules/login_tty (configure.ac): ... to here.
8303
8304 2011-05-21  Bruno Haible  <bruno@clisp.org>
8305
8306         openpty: Move AC_LIBOBJ invocations to module description.
8307         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8308         * modules/openpty (configure.ac): ... to here.
8309
8310 2011-05-21  Bruno Haible  <bruno@clisp.org>
8311
8312         forkpty: Move AC_LIBOBJ invocations to module description.
8313         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8314         * modules/forkpty (configure.ac): ... to here.
8315
8316 2011-05-21  Bruno Haible  <bruno@clisp.org>
8317
8318         ptsname: Move AC_LIBOBJ invocations to module description.
8319         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8320         invocations from here...
8321         * modules/ptsname (configure.ac): ... to here.
8322
8323 2011-05-21  Bruno Haible  <bruno@clisp.org>
8324
8325         pread: Move AC_LIBOBJ invocations to module description.
8326         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8327         * modules/pread (configure.ac): ... to here.
8328
8329 2011-05-21  Bruno Haible  <bruno@clisp.org>
8330
8331         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8332         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8333         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8334         * modules/posix_spawn (configure.ac): ... to here.
8335         * modules/posix_spawnp (configure.ac): ... and here.
8336
8337 2011-05-21  Bruno Haible  <bruno@clisp.org>
8338
8339         popen: Move AC_LIBOBJ invocations to module description.
8340         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8341         invocations from here...
8342         * modules/popen (configure.ac): ... to here.
8343
8344 2011-05-21  Bruno Haible  <bruno@clisp.org>
8345
8346         poll: Move AC_LIBOBJ invocations to module description.
8347         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8348         invocations from here...
8349         * modules/poll (configure.ac): ... to here.
8350
8351 2011-05-21  Bruno Haible  <bruno@clisp.org>
8352
8353         pipe-posix: Move AC_LIBOBJ invocations to module description.
8354         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8355         * modules/pipe-posix (configure.ac): ... to here.
8356
8357 2011-05-21  Bruno Haible  <bruno@clisp.org>
8358
8359         openat: Respect rules for use of AC_LIBOBJ.
8360         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8361         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8362         * modules/openat (configure.ac): ... to here.
8363
8364 2011-05-21  Bruno Haible  <bruno@clisp.org>
8365
8366         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8367         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8368         invocation from here...
8369         * modules/obstack-printf (configure.ac): ... to here.
8370         * modules/obstack-printf-posix (configure.ac): ... and here.
8371
8372 2011-05-21  Bruno Haible  <bruno@clisp.org>
8373
8374         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8375         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8376         from here...
8377         * modules/nl_langinfo (configure.ac): ... to here.
8378
8379 2011-05-21  Bruno Haible  <bruno@clisp.org>
8380
8381         nanosleep: Move AC_LIBOBJ invocations to module description.
8382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8383         gl_PREREQ_NANOSLEEP invocations from here...
8384         * modules/nanosleep (configure.ac): ... to here.
8385
8386 2011-05-21  Bruno Haible  <bruno@clisp.org>
8387
8388         mountlist: Move AC_LIBOBJ invocations to module description.
8389         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8390         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8391         * modules/mountlist (configure.ac): ... to here.
8392
8393 2011-05-21  Bruno Haible  <bruno@clisp.org>
8394
8395         mktime: Respect rules for use of AC_LIBOBJ.
8396         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8397         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8398         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8399         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8400         * modules/mktime (configure.ac): ... to here.
8401         * modules/mktime-internal (configure.ac): ... and here.
8402         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8403
8404 2011-05-21  Bruno Haible  <bruno@clisp.org>
8405
8406         mkstemps: Move AC_LIBOBJ invocations to module description.
8407         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8408         here...
8409         * modules/mkstemps (configure.ac): ... to here.
8410
8411 2011-05-21  Bruno Haible  <bruno@clisp.org>
8412
8413         mkstemp: Move AC_LIBOBJ invocations to module description.
8414         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8415         gl_PREREQ_MKSTEMP invocations from here...
8416         * modules/mkstemp (configure.ac): ... to here.
8417
8418 2011-05-21  Bruno Haible  <bruno@clisp.org>
8419
8420         mkostemps: Move AC_LIBOBJ invocations to module description.
8421         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8422         here...
8423         * modules/mkostemps (configure.ac): ... to here.
8424
8425 2011-05-21  Bruno Haible  <bruno@clisp.org>
8426
8427         mkostemp: Move AC_LIBOBJ invocations to module description.
8428         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8429         gl_PREREQ_MKOSTEMP invocations from here...
8430         * modules/mkostemp (configure.ac): ... to here.
8431
8432 2011-05-21  Bruno Haible  <bruno@clisp.org>
8433
8434         mknod: Move AC_LIBOBJ invocations to module description.
8435         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8436         * modules/mknod (configure.ac): ... to here.
8437
8438 2011-05-21  Bruno Haible  <bruno@clisp.org>
8439
8440         mkfifoat: Move AC_LIBOBJ invocations to module description.
8441         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8442         here...
8443         * modules/mkfifoat (configure.ac): ... to here.
8444
8445 2011-05-21  Bruno Haible  <bruno@clisp.org>
8446
8447         mkfifo: Respect rules for use of AC_LIBOBJ.
8448         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8449         here...
8450         * modules/mkfifo (configure.ac): ... to here.
8451
8452 2011-05-21  Bruno Haible  <bruno@clisp.org>
8453
8454         mkdtemp: Move AC_LIBOBJ invocations to module description.
8455         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8456         invocations from here...
8457         * modules/mkdtemp (configure.ac): ... to here.
8458
8459 2011-05-21  Bruno Haible  <bruno@clisp.org>
8460
8461         mkdir: Move AC_LIBOBJ invocations to module description.
8462         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8463         * modules/mkdir (configure.ac): ... to here.
8464
8465 2011-05-21  Bruno Haible  <bruno@clisp.org>
8466
8467         memset: Move AC_LIBOBJ invocations to module description.
8468         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8469         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8470         here...
8471         * modules/memset (configure.ac): ... to here.
8472
8473 2011-05-21  Bruno Haible  <bruno@clisp.org>
8474
8475         memrchr: Move AC_LIBOBJ invocations to module description.
8476         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8477         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8478         here...
8479         * modules/memrchr (configure.ac): ... to here.
8480
8481 2011-05-21  Bruno Haible  <bruno@clisp.org>
8482
8483         mempcpy: Move AC_LIBOBJ invocations to module description.
8484         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8485         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8486         here...
8487         * modules/mempcpy (configure.ac): ... to here.
8488
8489 2011-05-21  Bruno Haible  <bruno@clisp.org>
8490
8491         memmove: Move AC_LIBOBJ invocations to module description.
8492         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8493         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8494         here...
8495         * modules/memmove (configure.ac): ... to here.
8496
8497 2011-05-21  Bruno Haible  <bruno@clisp.org>
8498
8499         memmem*: Move AC_LIBOBJ invocations to module description.
8500         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8501         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8502         here...
8503         (gl_FUNC_MEMMEM): ... and here...
8504         * modules/memmem-simple (configure.ac): ... to here.
8505         * modules/memmem (configure.ac): ... and here.
8506
8507 2011-05-21  Bruno Haible  <bruno@clisp.org>
8508
8509         memcpy: Move AC_LIBOBJ invocations to module description.
8510         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8511         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8512         here...
8513         * modules/memcpy (configure.ac): ... to here.
8514
8515 2011-05-21  Bruno Haible  <bruno@clisp.org>
8516
8517         memcmp: Simplify autoconf macro.
8518         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8519         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8520         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8521
8522 2011-05-21  Bruno Haible  <bruno@clisp.org>
8523
8524         memcmp: Move AC_LIBOBJ invocations to module description.
8525         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8526         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8527         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8528         * modules/memcmp (configure.ac): ... to here.
8529         (Depends-on): Update conditions.
8530
8531 2011-05-21  Bruno Haible  <bruno@clisp.org>
8532
8533         memchr: Respect rules for use of AC_LIBOBJ.
8534         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8535         invocations from here...
8536         * modules/memchr (configure.ac): ... to here.
8537
8538 2011-05-21  Bruno Haible  <bruno@clisp.org>
8539
8540         mbtowc: Move AC_LIBOBJ invocations to module description.
8541         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8542         invocations from here...
8543         * modules/mbtowc (configure.ac): ... to here.
8544
8545 2011-05-21  Bruno Haible  <bruno@clisp.org>
8546
8547         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8548         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8549         gl_PREREQ_MBSRTOWCS invocations from here...
8550         * modules/mbsrtowcs (configure.ac): ... to here.
8551
8552 2011-05-21  Bruno Haible  <bruno@clisp.org>
8553
8554         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8555         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8556         gl_PREREQ_MBSNRTOWCS invocations from here...
8557         * modules/mbsnrtowcs (configure.ac): ... to here.
8558
8559 2011-05-21  Bruno Haible  <bruno@clisp.org>
8560
8561         mbsinit: Move AC_LIBOBJ invocations to module description.
8562         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8563         invocations from here...
8564         * modules/mbsinit (configure.ac): ... to here.
8565
8566 2011-05-21  Bruno Haible  <bruno@clisp.org>
8567
8568         mbrlen: Move AC_LIBOBJ invocations to module description.
8569         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8570         invocations from here...
8571         * modules/mbrlen (configure.ac): ... to here.
8572
8573 2011-05-21  Bruno Haible  <bruno@clisp.org>
8574
8575         mbrtowc: Respect rules for use of AC_LIBOBJ.
8576         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8577         invocations from here...
8578         * modules/mbrtowc (configure.ac): ... to here.
8579
8580 2011-05-21  Bruno Haible  <bruno@clisp.org>
8581
8582         malloc-*: Move AC_LIBOBJ invocations to module description.
8583         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8584         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8585         AC_LIBOBJ invocations from here...
8586         * modules/malloc-gnu (configure.ac): ... to here.
8587         * modules/malloc-posix (configure.ac): ... and here.
8588
8589 2011-05-21  Bruno Haible  <bruno@clisp.org>
8590
8591         lstat, openat: Respect rules for use of AC_LIBOBJ.
8592         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8593         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8594         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8595         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8596         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8597         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8598         here.
8599         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8600
8601 2011-05-21  Bruno Haible  <bruno@clisp.org>
8602
8603         lseek: Move AC_LIBOBJ invocations to module description.
8604         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8605         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8606         * modules/lseek (configure.ac): ... to here.
8607
8608 2011-05-21  Bruno Haible  <bruno@clisp.org>
8609
8610         linkat: Move AC_LIBOBJ invocations to module description.
8611         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8612         here...
8613         * modules/linkat (configure.ac): ... to here.
8614
8615 2011-05-21  Bruno Haible  <bruno@clisp.org>
8616
8617         link: Respect rules for use of AC_LIBOBJ.
8618         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8619         * modules/link (configure.ac): ... to here.
8620
8621 2011-05-21  Bruno Haible  <bruno@clisp.org>
8622
8623         lchown: Move AC_LIBOBJ invocations to module description.
8624         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8625         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8626         * modules/lchown (configure.ac): ... to here.
8627
8628 2011-05-21  Bruno Haible  <bruno@clisp.org>
8629
8630         iswctype: Move AC_LIBOBJ invocations to module description.
8631         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8632         here...
8633         * modules/iswctype (configure.ac): ... to here.
8634
8635 2011-05-21  Bruno Haible  <bruno@clisp.org>
8636
8637         iswblank: Move AC_LIBOBJ invocations to module description.
8638         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8639         here...
8640         * modules/iswblank (configure.ac): ... to here.
8641
8642 2011-05-21  Bruno Haible  <bruno@clisp.org>
8643
8644         atanl: Move AC_LIBOBJ invocations to module description.
8645         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8646         * modules/atanl (configure.ac): ... to here.
8647
8648 2011-05-21  Bruno Haible  <bruno@clisp.org>
8649
8650         acosl: Move AC_LIBOBJ invocations to module description.
8651         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8652         * modules/acosl (configure.ac): ... to here.
8653
8654 2011-05-21  Bruno Haible  <bruno@clisp.org>
8655
8656         asinl: Respect rules for use of AC_LIBOBJ.
8657         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8658         * modules/asinl (configure.ac): ... to here.
8659
8660 2011-05-21  Bruno Haible  <bruno@clisp.org>
8661
8662         tanl: Move AC_LIBOBJ invocations to module description.
8663         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8664         * modules/tanl (configure.ac): ... to here.
8665
8666 2011-05-21  Bruno Haible  <bruno@clisp.org>
8667
8668         cosl: Move AC_LIBOBJ invocations to module description.
8669         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8670         * modules/cosl (configure.ac): ... to here.
8671
8672 2011-05-21  Bruno Haible  <bruno@clisp.org>
8673
8674         sinl: Move AC_LIBOBJ invocations to module description.
8675         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8676         * modules/sinl (configure.ac): ... to here.
8677
8678 2011-05-21  Bruno Haible  <bruno@clisp.org>
8679
8680         logl: Move AC_LIBOBJ invocations to module description.
8681         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8682         * modules/logl (configure.ac): ... to here.
8683
8684 2011-05-21  Bruno Haible  <bruno@clisp.org>
8685
8686         expl: Move AC_LIBOBJ invocations to module description.
8687         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8688         * modules/expl (configure.ac): ... to here.
8689
8690 2011-05-21  Bruno Haible  <bruno@clisp.org>
8691
8692         roundl: Move AC_LIBOBJ invocations to module description.
8693         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8694         * modules/roundl (configure.ac): ... to here.
8695
8696 2011-05-21  Bruno Haible  <bruno@clisp.org>
8697
8698         round: Move AC_LIBOBJ invocations to module description.
8699         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8700         * modules/round (configure.ac): ... to here.
8701
8702 2011-05-21  Bruno Haible  <bruno@clisp.org>
8703
8704         roundf: Move AC_LIBOBJ invocations to module description.
8705         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8706         * modules/roundf (configure.ac): ... to here.
8707
8708 2011-05-21  Bruno Haible  <bruno@clisp.org>
8709
8710         truncl: Move AC_LIBOBJ invocations to module description.
8711         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8712         * modules/truncl (configure.ac): ... to here.
8713
8714 2011-05-21  Bruno Haible  <bruno@clisp.org>
8715
8716         trunc: Move AC_LIBOBJ invocations to module description.
8717         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8718         * modules/trunc (configure.ac): ... to here.
8719
8720 2011-05-21  Bruno Haible  <bruno@clisp.org>
8721
8722         truncf: Move AC_LIBOBJ invocations to module description.
8723         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8724         * modules/truncf (configure.ac): ... to here.
8725
8726 2011-05-21  Bruno Haible  <bruno@clisp.org>
8727
8728         ceill: Move AC_LIBOBJ invocations to module description.
8729         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8730         * modules/ceill (configure.ac): ... to here.
8731
8732 2011-05-21  Bruno Haible  <bruno@clisp.org>
8733
8734         ceil: Move AC_LIBOBJ invocations to module description.
8735         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8736         * modules/ceil (configure.ac): ... to here.
8737
8738 2011-05-21  Bruno Haible  <bruno@clisp.org>
8739
8740         ceilf: Move AC_LIBOBJ invocations to module description.
8741         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8742         * modules/ceilf (configure.ac): ... to here.
8743
8744 2011-05-21  Bruno Haible  <bruno@clisp.org>
8745
8746         floorl: Respect rules for use of AC_LIBOBJ.
8747         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8748         * modules/floorl (configure.ac): ... to here.
8749
8750 2011-05-21  Bruno Haible  <bruno@clisp.org>
8751
8752         floor: Respect rules for use of AC_LIBOBJ.
8753         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8754         * modules/floor (configure.ac): ... to here.
8755
8756 2011-05-21  Bruno Haible  <bruno@clisp.org>
8757
8758         floorf: Move AC_LIBOBJ invocations to module description.
8759         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8760         * modules/floorf (configure.ac): ... to here.
8761
8762 2011-05-20  Bruno Haible  <bruno@clisp.org>
8763
8764         sqrtl: Respect rules for use of AC_LIBOBJ.
8765         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8766         * modules/sqrtl (configure.ac): ... to here.
8767
8768 2011-05-20  Bruno Haible  <bruno@clisp.org>
8769
8770         ldexpl: Respect rules for use of AC_LIBOBJ.
8771         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8772         * modules/ldexpl (configure.ac): ... to here.
8773
8774 2011-05-20  Bruno Haible  <bruno@clisp.org>
8775
8776         frexpl*: Respect rules for use of AC_LIBOBJ.
8777         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8778         invocation from here...
8779         * modules/frexpl (configure.ac): ... to here.
8780         * modules/frexpl-nolibm (configure.ac): ... and here.
8781
8782 2011-05-20  Bruno Haible  <bruno@clisp.org>
8783
8784         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8785         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8786         invocation from here...
8787         * modules/frexp (configure.ac): ... to here.
8788         * modules/frexp-nolibm (configure.ac): ... and here.
8789
8790 2011-05-20  Bruno Haible  <bruno@clisp.org>
8791
8792         isnan: Respect rules for use of AC_LIBOBJ.
8793         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8794         invocations here.
8795         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8796         REPLACE_ISNAN.
8797         * modules/isnand (configure.ac): Likewise.
8798         * modules/isnanl (configure.ac): Likewise.
8799
8800 2011-05-20  Bruno Haible  <bruno@clisp.org>
8801
8802         isnanl*: Respect rules for use of AC_LIBOBJ.
8803         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8804         invocation from here...
8805         * modules/isnanl (configure.ac): ... to here.
8806         * modules/isnanl-nolibm (configure.ac): ... and here.
8807
8808 2011-05-20  Bruno Haible  <bruno@clisp.org>
8809
8810         isnand*: Move AC_LIBOBJ invocations to module description.
8811         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8812         invocation from here...
8813         * modules/isnand (configure.ac): ... to here.
8814         * modules/isnand-nolibm (configure.ac): ... and here.
8815
8816 2011-05-20  Bruno Haible  <bruno@clisp.org>
8817
8818         isnanf*: Move AC_LIBOBJ invocations to module description.
8819         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8820         invocation from here...
8821         * modules/isnanf (configure.ac): ... to here.
8822         * modules/isnanf-nolibm (configure.ac): ... and here.
8823
8824 2011-05-20  Bruno Haible  <bruno@clisp.org>
8825
8826         isnan*: Separate the AC_LIBOBJ invocations.
8827         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8828         AC_LIBOBJ invocation.
8829         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8830         here.
8831         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8832         AC_LIBOBJ invocation.
8833         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8834         here.
8835         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8836         AC_LIBOBJ invocation.
8837         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8838         here.
8839         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8840
8841 2011-05-08  Bruno Haible  <bruno@clisp.org>
8842
8843         isinf: Move AC_LIBOBJ invocations to module description.
8844         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8845         * modules/isinf (configure.ac): ... to here.
8846
8847 2011-05-08  Bruno Haible  <bruno@clisp.org>
8848
8849         isfinite: Move AC_LIBOBJ invocations to module description.
8850         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8851         * modules/isfinite (configure.ac): ... to here.
8852
8853 2011-05-08  Bruno Haible  <bruno@clisp.org>
8854
8855         isblank: Move AC_LIBOBJ invocations to module description.
8856         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8857         here...
8858         * modules/isblank (configure.ac): ... to here.
8859
8860 2011-05-08  Bruno Haible  <bruno@clisp.org>
8861
8862         isapipe: Move AC_LIBOBJ invocations to module description.
8863         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8864         gl_PREREQ_ISAPIPE invocations from here...
8865         * modules/isapipe (configure.ac): ... to here.
8866         (Depends-on): Update condition.
8867
8868 2011-05-08  Bruno Haible  <bruno@clisp.org>
8869
8870         ioctl: Move AC_LIBOBJ invocations to module description.
8871         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8872         invocations from here...
8873         * modules/ioctl (configure.ac): ... to here.
8874         (Depends-on): Update condition.
8875
8876 2011-05-08  Bruno Haible  <bruno@clisp.org>
8877
8878         imaxdiv: Move AC_LIBOBJ invocations to module description.
8879         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8880         invocations from here...
8881         * modules/imaxdiv (configure.ac): ... to here.
8882
8883 2011-05-08  Bruno Haible  <bruno@clisp.org>
8884
8885         imaxabs: Move AC_LIBOBJ invocations to module description.
8886         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8887         invocations from here...
8888         * modules/imaxabs (configure.ac): ... to here.
8889
8890 2011-05-08  Bruno Haible  <bruno@clisp.org>
8891
8892         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8893         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8894         AC_LIBOBJ invocations from here...
8895         * modules/getaddrinfo (configure.ac): ... to here.
8896         (Depends-on): Add conditions.
8897
8898 2011-05-08  Bruno Haible  <bruno@clisp.org>
8899
8900         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8901         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8902         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8903         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8904         (gl_PREREQ_INET_PTON): ... from here.
8905         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8906         gl_PREREQ_INET_PTON here.
8907         (Depends-on): Update condition.
8908
8909 2011-05-08  Bruno Haible  <bruno@clisp.org>
8910
8911         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8912         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8913         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8914         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8915         (gl_PREREQ_INET_NTOP): ... from here.
8916         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8917         gl_PREREQ_INET_NTOP here.
8918         (Depends-on): Update condition.
8919
8920 2011-05-08  Bruno Haible  <bruno@clisp.org>
8921
8922         iconv_open: Move AC_LIBOBJ invocations to module description.
8923         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8924         AC_LIBOBJ invocations from here...
8925         * modules/iconv_open (configure.ac): ... to here.
8926
8927 2011-05-08  Bruno Haible  <bruno@clisp.org>
8928
8929         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8930         If module 'iconv_open' is among the main modules and module
8931         'iconv_open-utf' is among the tests dependencies, then
8932         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8933         return the special iconv_t values. Therefore iconv() and iconv_close()
8934         must support these special iconv_t values, already in lib, not only in
8935         tests.
8936         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8937         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8938         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8939         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8940         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8941         (Depends-on): Add the dependencies of iconv_open-utf.
8942         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8943         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8944         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8945
8946 2011-05-08  Bruno Haible  <bruno@clisp.org>
8947
8948         group-member: Move AC_LIBOBJ invocations to module description.
8949         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8950         gl_PREREQ_GROUP_MEMBER invocations from here...
8951         * modules/group-member (configure.ac): ... to here.
8952
8953 2011-05-08  Bruno Haible  <bruno@clisp.org>
8954
8955         grantpt: Move AC_LIBOBJ invocations to module description.
8956         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8957         invocations from here...
8958         * modules/grantpt (configure.ac): ... to here.
8959
8960 2011-05-08  Bruno Haible  <bruno@clisp.org>
8961
8962         glob: Move AC_LIBOBJ invocations to module description.
8963         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8964         from here...
8965         * modules/glob (configure.ac): ... to here.
8966
8967 2011-05-08  Bruno Haible  <bruno@clisp.org>
8968
8969         getusershell: Move AC_LIBOBJ invocations to module description.
8970         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8971         Move AC_LIBOBJ invocation from here...
8972         * modules/getusershell (configure.ac): ... to here.
8973         (Depends-on): Update condition.
8974
8975 2011-05-08  Bruno Haible  <bruno@clisp.org>
8976
8977         gettimeofday: Move AC_LIBOBJ invocations to module description.
8978         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8979         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8980         gl_PREREQ_GETTIMEOFDAY invocations from here...
8981         * modules/gettimeofday (configure.ac): ... to here.
8982
8983 2011-05-08  Bruno Haible  <bruno@clisp.org>
8984
8985         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8986         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8987         just gl_FUNC_TZSET.
8988         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8989         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8990         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8991         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8992
8993 2011-05-08  Bruno Haible  <bruno@clisp.org>
8994
8995         getsubopt: Move AC_LIBOBJ invocations to module description.
8996         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8997         gl_PREREQ_GETSUBOPT invocations from here...
8998         * modules/getsubopt (configure.ac): ... to here.
8999
9000 2011-05-08  Bruno Haible  <bruno@clisp.org>
9001
9002         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9003         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9004         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9005         * modules/getpass-gnu (configure.ac): ... to here.
9006
9007 2011-05-08  Bruno Haible  <bruno@clisp.org>
9008
9009         getpass: Move AC_LIBOBJ invocations to module description.
9010         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9011         gl_PREREQ_GETPASS invocations from here...
9012         * modules/getpass (configure.ac): ... to here.
9013
9014 2011-05-08  Bruno Haible  <bruno@clisp.org>
9015
9016         getpagesize: Move AC_LIBOBJ invocations to module description.
9017         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9018         from here...
9019         * modules/getpagesize (configure.ac): ... to here.
9020
9021 2011-05-08  Bruno Haible  <bruno@clisp.org>
9022
9023         getopt: Move AC_LIBOBJ invocations to module description.
9024         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9025         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9026         invocations from here...
9027         * modules/getopt-gnu (configure.ac): ... to here.
9028         * modules/getopt-posix (configure.ac): ... and here.
9029         (Depends-on): Update condition.
9030
9031 2011-05-08  Bruno Haible  <bruno@clisp.org>
9032
9033         getopt, argp: Respect rules for use of AC_LIBOBJ.
9034         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9035         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9036         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9037         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9038
9039 2011-05-08  Bruno Haible  <bruno@clisp.org>
9040
9041         getlogin_r: Move AC_LIBOBJ invocations to module description.
9042         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9043         gl_PREREQ_GETLOGIN_R invocations from here...
9044         * modules/getlogin_r (configure.ac): ... to here.
9045
9046 2011-05-08  Bruno Haible  <bruno@clisp.org>
9047
9048         getlogin: Move AC_LIBOBJ invocations to module description.
9049         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9050         here...
9051         * modules/getlogin (configure.ac): ... to here.
9052
9053 2011-05-08  Bruno Haible  <bruno@clisp.org>
9054
9055         getloadavg: Move AC_LIBOBJ invocations to module description.
9056         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9057         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9058         * modules/getloadavg (configure.ac): ... to here.
9059
9060 2011-05-08  Bruno Haible  <bruno@clisp.org>
9061
9062         gethrxtime: Move AC_LIBOBJ invocations to module description.
9063         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9064         LIB_GETHRXTIME from here...
9065         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9066         invocations from here...
9067         * modules/gethrxtime (configure.ac): ... to here.
9068
9069 2011-05-08  Bruno Haible  <bruno@clisp.org>
9070
9071         gethostname: Move AC_LIBOBJ invocations to module description.
9072         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9073         gl_PREREQ_GETHOSTNAME invocations from here...
9074         * modules/gethostname (configure.ac): ... to here.
9075
9076 2011-05-08  Bruno Haible  <bruno@clisp.org>
9077
9078         getgroups: Move AC_LIBOBJ invocations to module description.
9079         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9080         here...
9081         * modules/getgroups (configure.ac): ... to here.
9082
9083 2011-05-08  Bruno Haible  <bruno@clisp.org>
9084
9085         getdtablesize: Move AC_LIBOBJ invocations to module description.
9086         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9087         invocation from here...
9088         * modules/getdtablesize (configure.ac): ... to here.
9089
9090 2011-05-08  Bruno Haible  <bruno@clisp.org>
9091
9092         getdomainname: Move AC_LIBOBJ invocations to module description.
9093         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9094         gl_PREREQ_GETDOMAINNAME invocations from here...
9095         * modules/getdomainname (configure.ac): ... to here.
9096
9097 2011-05-08  Bruno Haible  <bruno@clisp.org>
9098
9099         getline: Move AC_LIBOBJ invocations to module description.
9100         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9101         invocations from here...
9102         * modules/getline (configure.ac): ... to here.
9103
9104 2011-05-08  Bruno Haible  <bruno@clisp.org>
9105
9106         getline: Simplify.
9107         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9108         It's already handled through the module dependency.
9109
9110 2011-05-08  Bruno Haible  <bruno@clisp.org>
9111
9112         getdelim: Move AC_LIBOBJ invocations to module description.
9113         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9114         and gl_PREREQ_GETDELIM invocations from here...
9115         * modules/getdelim (configure.ac): ... to here.
9116         (Depends-on): Fix condition.
9117
9118 2011-05-08  Bruno Haible  <bruno@clisp.org>
9119
9120         getcwd: Move AC_LIBOBJ invocations to module description.
9121         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9122         invocations from here...
9123         * modules/getcwd (configure.ac): ... to here.
9124
9125 2011-05-08  Bruno Haible  <bruno@clisp.org>
9126
9127         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9128         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9129         here...
9130         * modules/getcwd-lgpl (configure.ac): ... to here.
9131
9132 2011-05-07  Bruno Haible  <bruno@clisp.org>
9133
9134         crypto/gc: Move AC_LIBOBJ invocations to module description.
9135         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9136         * modules/crypto/gc (configure.ac): ... to here.
9137
9138 2011-05-07  Bruno Haible  <bruno@clisp.org>
9139
9140         fwriting: Move AC_LIBOBJ invocations to module description.
9141         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9142         here...
9143         * modules/fwriting (configure.ac): ... to here.
9144
9145 2011-05-07  Bruno Haible  <bruno@clisp.org>
9146
9147         fwritable: Move AC_LIBOBJ invocations to module description.
9148         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9149         here...
9150         * modules/fwritable (configure.ac): ... to here.
9151
9152 2011-05-07  Bruno Haible  <bruno@clisp.org>
9153
9154         futimens: Move AC_LIBOBJ invocations to module description.
9155         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9156         here...
9157         * modules/futimens (configure.ac): ... to here.
9158
9159 2011-05-07  Bruno Haible  <bruno@clisp.org>
9160
9161         ftruncate: Move AC_LIBOBJ invocations to module description.
9162         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9163         gl_PREREQ_FTRUNCATE invocations from here...
9164         * modules/ftruncate (configure.ac): ... to here.
9165
9166 2011-05-07  Bruno Haible  <bruno@clisp.org>
9167
9168         fsync: Move AC_LIBOBJ invocations to module description.
9169         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9170         invocations from here...
9171         * modules/fsync (configure.ac): ... to here.
9172
9173 2011-05-07  Bruno Haible  <bruno@clisp.org>
9174
9175         fsusage: Move AC_LIBOBJ invocations to module description.
9176         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9177         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9178         * modules/fsusage (configure.ac): ... to here.
9179
9180 2011-05-07  Bruno Haible  <bruno@clisp.org>
9181
9182         freopen: Move AC_LIBOBJ invocations to module description.
9183         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9184         invocations from here...
9185         * modules/freopen (configure.ac): ... to here.
9186
9187 2011-05-07  Bruno Haible  <bruno@clisp.org>
9188
9189         free: Move AC_LIBOBJ invocations to module description.
9190         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9191         invocations from here...
9192         * modules/free (configure.ac): ... to here.
9193
9194 2011-05-07  Bruno Haible  <bruno@clisp.org>
9195
9196         freadable: Move AC_LIBOBJ invocations to module description.
9197         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9198         here...
9199         * modules/freadable (configure.ac): ... to here.
9200
9201 2011-05-07  Bruno Haible  <bruno@clisp.org>
9202
9203         fpurge: Move AC_LIBOBJ invocations to module description.
9204         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9205         invocations from here...
9206         * modules/fpurge (configure.ac): ... to here.
9207
9208 2011-05-07  Bruno Haible  <bruno@clisp.org>
9209
9210         fpending: Move AC_LIBOBJ invocations to module description.
9211         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9212         gl_FUNC_FPENDING.
9213         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9214         invocations from here...
9215         * modules/fpending (configure.ac): ... to here.
9216
9217 2011-05-07  Bruno Haible  <bruno@clisp.org>
9218
9219         fopen: Move AC_LIBOBJ invocations to module description.
9220         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9221         invocations from here...
9222         * modules/fopen (configure.ac): ... to here.
9223
9224 2011-05-07  Bruno Haible  <bruno@clisp.org>
9225
9226         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9227         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9228         gl_FUNC_FNMATCH_POSIX.
9229         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9230         invocations from here...
9231         * modules/fnmatch (configure.ac): ... to here.
9232         * modules/fnmatch-gnu (configure.ac): ... and here.
9233
9234 2011-05-07  Bruno Haible  <bruno@clisp.org>
9235
9236         flock: Move AC_LIBOBJ invocations to module description.
9237         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9238         invocations from here...
9239         * modules/flock (configure.ac): ... to here.
9240
9241 2011-05-07  Bruno Haible  <bruno@clisp.org>
9242
9243         fileblocks: Move AC_LIBOBJ invocations to module description.
9244         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9245         gl_PREREQ_FILEBLOCKS invocations from here...
9246         * modules/fileblocks (configure.ac): ... to here.
9247
9248 2011-05-06  Bruno Haible  <bruno@clisp.org>
9249
9250         fflush: Move AC_LIBOBJ invocations to module description.
9251         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9252         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9253         invocations from here...
9254         * modules/fflush (configure.ac): ... to here.
9255
9256 2011-05-06  Bruno Haible  <bruno@clisp.org>
9257
9258         fdopendir: Move AC_LIBOBJ invocations to module description.
9259         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9260         here...
9261         * modules/fdopendir (configure.ac): ... to here.
9262         (Depends-on): Improve conditions.
9263
9264 2011-05-06  Bruno Haible  <bruno@clisp.org>
9265
9266         _Exit: Move AC_LIBOBJ invocations to module description.
9267         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9268         invocations from here...
9269         * modules/_Exit (configure.ac): ... to here.
9270
9271 2011-05-21  Bruno Haible  <bruno@clisp.org>
9272
9273         euidaccess: Respect rules for use of AC_LIBOBJ.
9274         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9275         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9276         from here...
9277         * modules/euidaccess (configure.ac): ... to here.
9278
9279 2011-05-06  Bruno Haible  <bruno@clisp.org>
9280
9281         error: Move AC_LIBOBJ invocations to module description.
9282         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9283         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9284         invocations from here...
9285         * modules/error (configure.ac): ... to here.
9286
9287 2011-05-06  Bruno Haible  <bruno@clisp.org>
9288
9289         duplocale: Move AC_LIBOBJ invocations to module description.
9290         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9291         gl_PREREQ_DUPLOCALE invocations from here...
9292         * modules/duplocale (configure.ac): ... to here.
9293
9294 2011-05-05  Bruno Haible  <bruno@clisp.org>
9295
9296         dirfd: Move AC_LIBOBJ invocations to module description.
9297         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9298         gl_FUNC_DIRFD.
9299         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9300         here...
9301         * modules/dirfd (configure.ac): ... to here.
9302         (Depends-on): Fix condition.
9303
9304 2011-05-05  Bruno Haible  <bruno@clisp.org>
9305
9306         chown: Respect rules for use of AC_LIBOBJ.
9307         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9308         * modules/chown (configure.ac): ... to here.
9309
9310 2011-05-05  Bruno Haible  <bruno@clisp.org>
9311
9312         chdir-long: Move AC_LIBOBJ invocations to module description.
9313         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9314         gl_PREREQ_CHDIR_LONG invocations from here...
9315         * modules/chdir-long (configure.ac): ... to here.
9316
9317 2011-05-05  Bruno Haible  <bruno@clisp.org>
9318
9319         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9320         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9321         from here...
9322         * modules/canonicalize-lgpl (configure.ac): ... to here.
9323
9324 2011-05-05  Bruno Haible  <bruno@clisp.org>
9325
9326         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9327         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9328         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9329         REPLACE_CALLOC.
9330         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9331         * modules/calloc-gnu (configure.ac): Likewise.
9332
9333 2011-05-05  Bruno Haible  <bruno@clisp.org>
9334
9335         btowc: Move AC_LIBOBJ invocations to module description.
9336         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9337         invocations from here...
9338         * modules/btowc (configure.ac): ... to here.
9339
9340 2011-05-21  Bruno Haible  <bruno@clisp.org>
9341
9342         atexit: Move AC_LIBOBJ invocations to module description.
9343         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9344         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9345         here...
9346         * modules/atexit (configure.ac): ... to here.
9347
9348 2011-05-05  Bruno Haible  <bruno@clisp.org>
9349
9350         atoll: Move AC_LIBOBJ invocations to module description.
9351         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9352         invocations from here...
9353         * modules/atoll (configure.ac): ... to here.
9354
9355 2011-05-05  Bruno Haible  <bruno@clisp.org>
9356
9357         argz: Move AC_LIBOBJ invocations to module description.
9358         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9359         * modules/argz (configure.ac): ... to here.
9360
9361 2011-05-05  Bruno Haible  <bruno@clisp.org>
9362
9363         alphasort: Move AC_LIBOBJ invocations to module description.
9364         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9365         gl_PREREQ_ALPHASORT invocations from here...
9366         * modules/alphasort (configure.ac): ... to here.
9367
9368 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9369
9370         verify: new macro verify_expr; verify_true deprecated
9371         * NEWS: Mention this.
9372         * doc/verify.texi (Compile-time Assertions): Document this.
9373         * lib/verify.h (verify_true): Deprecate.
9374         (verify_expr): New macro.
9375         * tests/test-verify.c (function): Test verify_expr.
9376
9377 2011-06-14  Jim Meyering  <meyering@redhat.com>
9378
9379         init.sh: give more portable redirection-related advice in a comment
9380         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9381         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9382         for lots of discussion.  Stefano Lattarini suggested the solution
9383         of putting "9>&2" after the command.  Reported by Bruno Haible.
9384
9385 2011-06-13  Bruno Haible  <bruno@clisp.org>
9386
9387         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9388         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9389         'none'.
9390
9391 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9392
9393         ftoastr: use strtof only if HAVE_STRTOF
9394         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9395         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9396         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9397         * modules/ftoastr (configure.ac): Check for strtof.
9398
9399 2011-06-13  Bruno Haible  <bruno@clisp.org>
9400
9401         gnulib-tool: Addendum to 2011-06-08 commit.
9402         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9403         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9404
9405 2011-06-13  Bruno Haible  <bruno@clisp.org>
9406
9407         fseeko: Provide a non-inline replacement of fseek().
9408         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9409         * modules/fseeko (Depends-on): Add fseek.
9410         * modules/fseek (License): Change to LGPLv2+.
9411
9412 2011-06-13  Bruno Haible  <bruno@clisp.org>
9413
9414         ftello: Provide a non-inline replacement of ftell().
9415         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9416         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9417         not have ftello() (such as on mingw).
9418         * modules/ftello (Depends-on): Add ftell.
9419         * modules/ftell (License): Change to LGPLv2+.
9420
9421 2011-05-07  Bruno Haible  <bruno@clisp.org>
9422
9423         ftell: Move AC_LIBOBJ invocations to module description.
9424         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9425         * modules/ftell (configure.ac): ... to here.
9426
9427 2011-05-07  Bruno Haible  <bruno@clisp.org>
9428
9429         ftello: Respect rules for use of AC_LIBOBJ.
9430         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9431         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9432         here...
9433         * modules/ftello (configure.ac): ... to here.
9434
9435 2011-05-07  Bruno Haible  <bruno@clisp.org>
9436
9437         fseeko: Simplify.
9438         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9439         (gl_FUNC_FSEEKO): Inline it here.
9440
9441 2011-05-07  Bruno Haible  <bruno@clisp.org>
9442
9443         fseek: Move AC_LIBOBJ invocations to module description.
9444         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9445         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9446         * modules/fseek (configure.ac): ... to here.
9447
9448 2011-05-07  Bruno Haible  <bruno@clisp.org>
9449
9450         fseek: Respect rules for use of AC_LIBOBJ.
9451         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9452         here...
9453         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9454
9455 2011-05-07  Bruno Haible  <bruno@clisp.org>
9456
9457         fseeko: Respect rules for use of AC_LIBOBJ.
9458         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9459         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9460         here...
9461         * modules/fseeko (configure.ac): ... to here.
9462
9463 2011-06-13  Bruno Haible  <bruno@clisp.org>
9464
9465         gnulib-tool: Allow comments in the 'Depends-on' section.
9466         * doc/gnulib.texi (Module description): Mention comment syntax in the
9467         Depends-on section.
9468         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9469
9470 2011-06-13  Bruno Haible  <bruno@clisp.org>
9471
9472         file-set.h: guard __attibute__ use, now that it's not always defined
9473         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9474         versions that support it.  This fixes a coreutils build failure with
9475         the vendor cc on HP-UX 11.31.
9476
9477 2011-06-12  Bruno Haible  <bruno@clisp.org>
9478
9479         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9480         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9481         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9482         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9483         (acl, aclsort): New declarations.
9484         (aclv_nontrivial): New declaration.
9485         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9486         (file_has_acl): Read also the second kind of HP-UX ACLs.
9487         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9488         kind of HP-UX ACLs if the first kind fails.
9489         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9490         second kind of HP-UX ACLs.
9491         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9492         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9493         agree.
9494         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9495         hpuxjfs.
9496         Handle hpuxjfs.
9497         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9498         hpuxjfs.
9499         Handle hpuxjfs.
9500         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9501         (func_test_same_acls): Use both lsacl and getacl.
9502         Handle hpuxjfs.
9503         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9504         (func_test_same_acls): Use both lsacl and getacl.
9505         Handle hpuxjfs.
9506
9507 2011-06-12  Bruno Haible  <bruno@clisp.org>
9508
9509         acl: Complete the 2010-08-10 fix.
9510         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9511         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9512         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9513         explicitly.
9514         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9515         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9516
9517 2011-06-12  Bruno Haible  <bruno@clisp.org>
9518
9519         spawn-pipe tests: Comments.
9520         * tests/test-spawn-pipe-child.c (main): Update comment.
9521         Reported by James Youngman <jay@gnu.org>.
9522
9523 2011-06-11  James Youngman  <jay@gnu.org>
9524
9525         New module 'stat-size'.
9526         * modules/stat-size: New module.  Provides macros for accessing
9527         file size information in instances of struct stat.  Depends on the
9528         fileblocks module because it calls st_blocks.
9529         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9530         * doc/gnulib.texi: Include stat-size.texi.
9531         * doc/stat-size.texi: Documentation for this module.
9532         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9533         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9534         AC_STRUCT_ST_BLOCKS.
9535
9536 2011-06-09  Bruno Haible  <bruno@clisp.org>
9537
9538         thread: Support pthreads-win32.
9539         * lib/glthread/thread.h (gl_thread_self): Define differently on
9540         pthreads-win32.
9541         (gl_null_thread): New declaration.
9542         (gl_thread_self_pointer): New macro.
9543         * lib/glthread/thread.c (gl_null_thread): New constant.
9544         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9545         gl_thread_self.
9546         * tests/test-tls.c: Likewise.
9547         Suggested by Paul Eggert. Reported by Eric Blake.
9548
9549 2011-06-09  Bruno Haible  <bruno@clisp.org>
9550
9551         thread: Fix confusion between NULL and 0.
9552         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9553         Reported by Paul Eggert.
9554
9555 2011-06-09  Bruno Haible  <bruno@clisp.org>
9556
9557         spawn-pipe tests: Avoid test failure on HP-UX 11.
9558         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9559         is closed.
9560
9561 2011-06-09  Bruno Haible  <bruno@clisp.org>
9562
9563         acl tests: Fix compilation error on HP-UX 11.
9564         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9565
9566 2011-06-09  Bruno Haible  <bruno@clisp.org>
9567
9568         rmdir: Avoid test failure on HP-UX 10.20.
9569         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9570         EEXIST.
9571
9572 2011-06-08  Eric Blake  <eblake@redhat.com>
9573
9574         perror: fix test on mingw
9575         * modules/perror-tests (Depends-on): Add dup2.
9576
9577         strerror_r-posix: fix on MacOS
9578         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9579         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9580         logic bug.
9581         * lib/strerror_r.c (strerror_r): Fix the bug.
9582         * lib/strerror.c (strerror): Likewise.
9583         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9584         problem.
9585         * doc/posix-functions/strerror.texi (strerror): Likewise.
9586         * doc/posix-functions/perror.texi (perror): Likewise.
9587         * tests/test-strerror.c (main): Enhance test.
9588         * tests/test-strerror_r.c (main): Likewise.
9589
9590 2011-06-08  Bruno Haible  <bruno@clisp.org>
9591
9592         gnulib-tool: Better isolation between different gnulib-tool invocations.
9593         * gnulib-tool: New option --witness-c-macro.
9594         (witness_c_macro): New variable.
9595         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9596         AM_CPPFLAGS define it as a C macro.
9597         (func_emit_tests_Makefile_am): Likewise.
9598         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9599         read it from there.
9600         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9601         m4_define, not AC_DEFUN.
9602         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9603         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9604         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9605         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9606         s|...|...|, to substitute the values of the GNULIB_* module indicator
9607         variables.
9608         * modules/dirent (Makefile.am): Likewise.
9609         * modules/fcntl-h (Makefile.am): Likewise.
9610         * modules/iconv-h (Makefile.am): Likewise.
9611         * modules/langinfo (Makefile.am): Likewise.
9612         * modules/locale (Makefile.am): Likewise.
9613         * modules/math (Makefile.am): Likewise.
9614         * modules/netdb (Makefile.am): Likewise.
9615         * modules/poll-h (Makefile.am): Likewise.
9616         * modules/pty (Makefile.am): Likewise.
9617         * modules/search (Makefile.am): Likewise.
9618         * modules/signal (Makefile.am): Likewise.
9619         * modules/spawn (Makefile.am): Likewise.
9620         * modules/stdio (Makefile.am): Likewise.
9621         * modules/stdlib (Makefile.am): Likewise.
9622         * modules/string (Makefile.am): Likewise.
9623         * modules/sys_ioctl (Makefile.am): Likewise.
9624         * modules/sys_select (Makefile.am): Likewise.
9625         * modules/sys_socket (Makefile.am): Likewise.
9626         * modules/sys_stat (Makefile.am): Likewise.
9627         * modules/sys_times (Makefile.am): Likewise.
9628         * modules/sys_utsname (Makefile.am): Likewise.
9629         * modules/sys_wait (Makefile.am): Likewise.
9630         * modules/termios (Makefile.am): Likewise.
9631         * modules/time (Makefile.am): Likewise.
9632         * modules/unistd (Makefile.am): Likewise.
9633         * modules/wchar (Makefile.am): Likewise.
9634
9635 2011-06-08  Eric Blake  <eblake@redhat.com>
9636
9637         strerror: simplify replacement
9638         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9639         * modules/strerror (configure.ac): No prereqs needed here...
9640         * modules/strerror-override (configure.ac): ...but this needs it.
9641         (Files): Add file for needed prereq macro.
9642
9643 2011-06-08  Bruno Haible  <bruno@clisp.org>
9644
9645         strerror_r-posix: Tweaks.
9646         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9647         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9648         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9649         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9650         (gl_FUNC_STRERROR_R): ... to here.
9651         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9652
9653 2011-06-07  Eric Blake  <eblake@redhat.com>
9654
9655         perror: document fixed bugs
9656         * doc/posix-functions/perror.texi (perror): Document recent
9657         patches.
9658
9659 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9660
9661         stat-time: get_stat_birthtime failure is better-defined
9662         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9663         return a timestamp whose tv_sec and tv_nsec values are both -1.
9664         Previously, the spec said only that the tv_nsec value was negative.
9665         This upward-compatible change simplifies GNU tar a bit.
9666
9667 2011-06-07  Eric Blake  <eblake@redhat.com>
9668
9669         strerror_r-posix: work around cygwin 1.7.9
9670         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9671         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9672         bug without replacing strerror_r.
9673         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9674         strerror_r is buggy, but without requiring strerror_r compilation.
9675         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9676
9677         test-perror: relax test to ignore cygwin bug
9678         * tests/test-perror2.c (main): Relax test on requiring detection
9679         of stream errors, and use unbuffered stream.
9680         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9681         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9682         * doc/posix-functions/fputc.texi (fputc): Likewise.
9683         * doc/posix-functions/fputs.texi (fputs): Likewise.
9684         * doc/posix-functions/fputws.texi (fputws): Likewise.
9685         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9686         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9687         * doc/posix-functions/getopt.texi (getopt): Likewise.
9688         * doc/posix-functions/perror.texi (perror): Likewise.
9689         * doc/posix-functions/printf.texi (printf): Likewise.
9690         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9691         * doc/posix-functions/psignal.texi (psignal): Likewise.
9692         * doc/posix-functions/putc.texi (putc): Likewise.
9693         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9694         Likewise.
9695         * doc/posix-functions/putchar.texi (putchar): Likewise.
9696         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9697         Likewise.
9698         * doc/posix-functions/puts.texi (puts): Likewise.
9699         * doc/posix-functions/putwc.texi (putwc): Likewise.
9700         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9701         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9702         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9703         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9704         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9705         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9706         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9707         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9708
9709 2011-05-22  Bruno Haible  <bruno@clisp.org>
9710
9711         strerror: Move AC_LIBOBJ invocations to module description.
9712         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9713         gl_PREREQ_STRERROR invocations from here...
9714         * modules/strerror (configure.ac): ... to here.
9715
9716 2011-05-21  Bruno Haible  <bruno@clisp.org>
9717
9718         perror: Use common idiom.
9719         * modules/perror (configure.ac): Reorder statements.
9720
9721 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9722
9723         tests: fix usage message in 'mktempd_'
9724         * tests/init.sh (mktempd_): In the usage message, use literal
9725         'mktempd_', not '$ME' (which is even undefined), as the name of
9726         the subroutine.
9727
9728 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9729
9730         tests init: new function 'fatal_', for hard errors
9731         Before this patch, the only way offered by tests/init.sh to
9732         properly signal a hard error was the `framework_failure_'
9733         function.  But the error message issued by that function,
9734         as its name would suggest, refers to a set-up failure in the
9735         testsuite, while hard errors can obviously also be due to
9736         other reasons.  The best way to fix this inconsistency is to
9737         introduce a new function with a more general error message.
9738         * tests/init.sh (fatal_): New function.
9739
9740 2011-06-06  Eric Blake  <eblake@redhat.com>
9741
9742         canonicalize-lgpl: use common idiom
9743         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9744         over newer POSIX -Rf.
9745         Reported by Bruno Haible.
9746
9747         canonicalize-lgpl: work around AIX realpath bug
9748         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9749         * doc/posix-functions/realpath.texi (realpath): Document it.
9750         Reported by Bruno Haible.
9751
9752         strerror: work around FreeBSD bug
9753         * lib/strerror.c (strerror): Special case 0.
9754         Reported by Bruno Haible.
9755
9756         strerror-override: avoid bloating errno module
9757         * modules/errno (Files, configure.ac): Move replacement strings...
9758         * modules/strerror-override: ...to new module.
9759         * modules/strerror (Depends-on): Add strerror-override.
9760         * modules/strerror_r-posix (Depends-on): Likewise.
9761         * MODULES.html.sh: Document new module.
9762         Reported by Bruno Haible.
9763
9764 2011-06-06  Bruno Haible  <bruno@clisp.org>
9765
9766         spawn-pipe tests: Rename program.
9767         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9768         * tests/test-spawn-pipe-child.c: Update comment.
9769         * tests/test-spawn-pipe.sh: Update.
9770         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9771
9772         spawn-pipe tests: Link the child program only against libc.
9773         * tests/test-spawn-pipe-child.c: New file, extracted from
9774         tests/test-spawn-pipe.c.
9775         (main): Expect only one argument.
9776         (is_open): New function, copied from tests/test-pipe.c.
9777         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9778         (child_main): Remove function.
9779         (test_pipe): Pass only one argument to the child program.
9780         (main): Remove child process code. Expect the child program's name as
9781         first argument.
9782         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9783         argument.
9784         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9785         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9786         test-spawn-pipe-child against no libraries.
9787
9788 2011-06-06  Bruno Haible  <bruno@clisp.org>
9789
9790         careadlinkat: Avoid mismatch between ssize_t and int.
9791         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9792         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9793
9794 2011-06-06  Jim Meyering  <meyering@redhat.com>
9795
9796         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9797         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9798         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9799
9800 2011-06-05  Bruno Haible  <bruno@clisp.org>
9801
9802         ansi-c++-opt: Interoperability with libtool.
9803         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9804         set the variable to "no", not to ":".
9805         * NEWS: Mention the change.
9806
9807 2011-06-05  Bruno Haible  <bruno@clisp.org>
9808
9809         acl: Fix test failure on AIX 7.
9810         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9811         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9812
9813 2011-06-05  Bruno Haible  <bruno@clisp.org>
9814
9815         pipe-filter-ii: Fix test failure on AIX and IRIX.
9816         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9817         with EAGAIN, retry with a smaller buffer size.
9818
9819 2011-06-05  Bruno Haible  <bruno@clisp.org>
9820
9821         localename: Fix link dependencies.
9822         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9823         * modules/localename-tests (Makefile.am): Link test-localename with
9824         $(LIBTHREAD).
9825
9826 2011-06-05  Bruno Haible  <bruno@clisp.org>
9827
9828         error: Avoid gcc warning.
9829         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9830
9831 2011-06-05  Bruno Haible  <bruno@clisp.org>
9832
9833         unsetenv: Avoid gcc warning.
9834         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9835
9836 2011-06-05  Bruno Haible  <bruno@clisp.org>
9837
9838         setenv: Avoid gcc warning.
9839         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9840
9841 2011-06-05  Bruno Haible  <bruno@clisp.org>
9842
9843         sys_select: Ensure memset is declared also on AIX 7.
9844         * lib/sys_select.in.h: Include <string.h> also on AIX.
9845         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9846         self-contained also on AIX 7.1.
9847
9848 2011-06-04  Jim Meyering  <meyering@redhat.com>
9849
9850         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9851         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9852         function name, "error".
9853         (_gl_translatable_diag_func_re): New configurable variable.
9854
9855 2011-06-04  Bruno Haible  <bruno@clisp.org>
9856
9857         getopt: Avoid gcc warning.
9858         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9859
9860 2011-06-04  Bruno Haible  <bruno@clisp.org>
9861
9862         strerror_r: Fix comments.
9863         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9864         commit.
9865
9866 2011-06-04  Bruno Haible  <bruno@clisp.org>
9867
9868         perror: Fix compilation error.
9869         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9870         Undefine fprintf, not sprintf.
9871         * modules/perror (Depends-on): Remove intprops, verify.
9872
9873 2011-06-04  Bruno Haible  <bruno@clisp.org>
9874
9875         setlocale: Enable replacement on Cygwin 1.5.
9876         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9877         Cygwin 1.5.x.
9878         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9879         LC_CTYPE category also exists on Cygwin 1.5.x.
9880
9881 2011-06-04  Bruno Haible  <bruno@clisp.org>
9882
9883         strerror-override: Don't disable symbol renamings.
9884         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9885         * lib/strerror-override.c: Include config.h.
9886         (strerror_override): Don't undefine.
9887
9888 2011-06-03  Bruno Haible  <bruno@clisp.org>
9889
9890         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9891         * lib/localename.h: Update copyright header.
9892         * lib/localename.c: Likewise.
9893         * lib/relocatable.h: Likewise.
9894         * lib/relocatable.c: Likewise.
9895
9896 2011-06-02  Bruno Haible  <bruno@clisp.org>
9897
9898         doc: Fix a module name.
9899         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9900
9901 2011-06-02  Bruno Haible  <bruno@clisp.org>
9902
9903         pipe2: Remove dependency on 'nonblocking' module.
9904         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9905         O_NONBLOCK is defined by gnulib.
9906         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9907         is zero.
9908         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9909         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9910         defined by gnulib.
9911         (get_nonblocking_flag): New function.
9912         (main): Test O_NONBLOCK flag only if it is nonzero.
9913         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9914
9915 2011-06-03  Jim Meyering  <meyering@redhat.com>
9916
9917         maint: three new prohibit-header-without-use rules
9918         Prohibit use of cloexec.h, posixver.h, same.h without use.
9919         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9920         (sc_prohibit_posixver_without_use): Likewise.
9921         (sc_prohibit_same_without_use): Likewise.
9922
9923 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9924
9925         allocator: 'die' routine is now given requested size
9926         * lib/allocator.h (struct allocator.die): New size arg.
9927         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9928         If the actual problem is an ssize_t limitation, not a size_t or
9929         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9930
9931 2011-06-01  Eric Blake  <eblake@redhat.com>
9932
9933         strerror: drop strerror_r dependency
9934         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9935         * lib/strerror-override.c (strerror_override): ...to new file.
9936         * lib/strerror-override.h: Add prototype.
9937         * lib/strerror-impl.h: Delete.
9938         * lib/strerror.c (strerror): New implementation.
9939         * modules/errno (Files): Add new files.
9940         (configure.ac): Compile new file as appropriate.
9941         * modules/strerror (Files): Drop unused file.
9942         (Depends-on): Drop strerror_r-posix.
9943         * MODULES.html.sh: Document strerror_r-posix.
9944         Requested by Sam Steingold.
9945
9946         perror: call strerror_r directly
9947         * modules/perror (Files): Drop strerror-impl.h.
9948         * lib/perror.c (perror): Use our own stack buffer, rather than
9949         calling a wrapper that uses static storage.
9950         * doc/posix-functions/perror.texi (perror): Document a limitation
9951         of our replacement.
9952
9953         strerror_r: fix includes for FreeBSD
9954         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9955         since we use abort on some platforms.
9956         Reported by Matthias Bolte.
9957
9958 2011-05-31  Bruno Haible  <bruno@clisp.org>
9959
9960         Fix link errors in tests: openat-die uses gettext-h.
9961         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9962         against $(LIBINTL).
9963         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9964         against $(LIBINTL).
9965         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9966         $(LIBINTL).
9967         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9968         against $(LIBINTL).
9969         * modules/linkat-tests (Makefile.am): Link test-linkat against
9970         $(LIBINTL).
9971         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9972         $(LIBINTL).
9973         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9974         against $(LIBINTL).
9975         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9976         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9977         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9978         $(LIBINTL).
9979         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9980         $(LIBINTL).
9981         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9982         $(LIBINTL).
9983         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9984
9985 2011-05-31  Bruno Haible  <bruno@clisp.org>
9986
9987         Fix link errors in tests: wait-process uses gettext-h.
9988         * modules/nonblocking-pipe-tests (Makefile.am): Set
9989         test_nonblocking_pipe_main_LDADD.
9990         * modules/nonblocking-socket-tests (Makefile.am): Link
9991         test-nonblocking-socket-main against $(LIBINTL).
9992         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9993
9994 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9995
9996         assert-h: work around 'verify' incompatibility
9997         * lib/verify.h: Use @...@ directives, not ifdef.
9998         * modules/assert-h (assert.h): Implement the directives.
9999         (assert.h): Substitute the symbol-prefix more consistently.
10000
10001 2011-05-29  Jim Meyering  <meyering@redhat.com>
10002
10003         trim: remove three superfluous assignments
10004         * lib/trim.c (trim2): Remove three superfluous assignments
10005         and correct brace positioning.
10006
10007 2011-05-29  Bruno Haible  <bruno@clisp.org>
10008
10009         wctype-h: Avoid namespace pollution on Solaris 2.6.
10010         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10011         identifiers.
10012         * doc/posix-headers/wctype.texi: Mention the problem.
10013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10014
10015 2011-05-28  Jim Meyering  <meyering@redhat.com>
10016
10017         parse-datetime.y: accommodate -Wstrict-overflow
10018         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10019         placate -Wstrict-overflow.
10020
10021         trim: avoid a warning from -O2 -Wstrict-overflow
10022         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10023
10024 2011-05-29  Bruno Haible  <bruno@clisp.org>
10025
10026         gnulib-tool: Fix bug in yesterday's commit.
10027         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10028         twice.
10029
10030 2011-05-29  Bruno Haible  <bruno@clisp.org>
10031
10032         Allow multiple gnulib generated include files to be combined.
10033         * gnulib-tool (func_compute_include_guard_prefix): New function.
10034         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10035         ${gl_include_guard_prefix} references.
10036         (func_import, func_create_testdir): Invoke
10037         func_compute_include_guard_prefix.
10038         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10039         * lib/ctype.in.h: Likewise.
10040         * lib/dirent.in.h: Likewise.
10041         * lib/errno.in.h: Likewise.
10042         * lib/fcntl.in.h: Likewise.
10043         * lib/float.in.h: Likewise.
10044         * lib/getopt.in.h: Likewise.
10045         * lib/iconv.in.h: Likewise.
10046         * lib/langinfo.in.h: Likewise.
10047         * lib/locale.in.h: Likewise.
10048         * lib/math.in.h: Likewise.
10049         * lib/netdb.in.h: Likewise.
10050         * lib/netinet_in.in.h: Likewise.
10051         * lib/poll.in.h: Likewise.
10052         * lib/pthread.in.h: Likewise.
10053         * lib/pty.in.h: Likewise.
10054         * lib/sched.in.h: Likewise.
10055         * lib/se-selinux.in.h: Likewise.
10056         * lib/search.in.h: Likewise.
10057         * lib/signal.in.h: Likewise.
10058         * lib/spawn.in.h: Likewise.
10059         * lib/stdarg.in.h: Likewise.
10060         * lib/stddef.in.h: Likewise.
10061         * lib/stdint.in.h: Likewise.
10062         * lib/stdio.in.h: Likewise.
10063         * lib/stdlib.in.h: Likewise.
10064         * lib/string.in.h: Likewise.
10065         * lib/strings.in.h: Likewise.
10066         * lib/sys_file.in.h: Likewise.
10067         * lib/sys_ioctl.in.h: Likewise.
10068         * lib/sys_select.in.h: Likewise.
10069         * lib/sys_socket.in.h: Likewise.
10070         * lib/sys_stat.in.h: Likewise.
10071         * lib/sys_time.in.h: Likewise.
10072         * lib/sys_times.in.h: Likewise.
10073         * lib/sys_uio.in.h: Likewise.
10074         * lib/sys_utsname.in.h: Likewise.
10075         * lib/sys_wait.in.h: Likewise.
10076         * lib/sysexits.in.h: Likewise.
10077         * lib/termios.in.h: Likewise.
10078         * lib/time.in.h: Likewise.
10079         * lib/unistd.in.h: Likewise.
10080         * lib/wchar.in.h: Likewise.
10081         * lib/wctype.in.h: Likewise.
10082         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10083         * modules/ctype (Makefile.am): Likewise.
10084         * modules/dirent (Makefile.am): Likewise.
10085         * modules/errno (Makefile.am): Likewise.
10086         * modules/fcntl-h (Makefile.am): Likewise.
10087         * modules/float (Makefile.am): Likewise.
10088         * modules/getopt-posix (Makefile.am): Likewise.
10089         * modules/iconv-h (Makefile.am): Likewise.
10090         * modules/langinfo (Makefile.am): Likewise.
10091         * modules/locale (Makefile.am): Likewise.
10092         * modules/math (Makefile.am): Likewise.
10093         * modules/netdb (Makefile.am): Likewise.
10094         * modules/netinet_in (Makefile.am): Likewise.
10095         * modules/poll-h (Makefile.am): Likewise.
10096         * modules/pthread (Makefile.am): Likewise.
10097         * modules/pty (Makefile.am): Likewise.
10098         * modules/sched (Makefile.am): Likewise.
10099         * modules/search (Makefile.am): Likewise.
10100         * modules/selinux-h (Makefile.am): Likewise.
10101         * modules/signal (Makefile.am): Likewise.
10102         * modules/spawn (Makefile.am): Likewise.
10103         * modules/stdarg (Makefile.am): Likewise.
10104         * modules/stddef (Makefile.am): Likewise.
10105         * modules/stdint (Makefile.am): Likewise.
10106         * modules/stdio (Makefile.am): Likewise.
10107         * modules/stdlib (Makefile.am): Likewise.
10108         * modules/string (Makefile.am): Likewise.
10109         * modules/strings (Makefile.am): Likewise.
10110         * modules/sys_file (Makefile.am): Likewise.
10111         * modules/sys_ioctl (Makefile.am): Likewise.
10112         * modules/sys_select (Makefile.am): Likewise.
10113         * modules/sys_socket (Makefile.am): Likewise.
10114         * modules/sys_stat (Makefile.am): Likewise.
10115         * modules/sys_time (Makefile.am): Likewise.
10116         * modules/sys_times (Makefile.am): Likewise.
10117         * modules/sys_uio (Makefile.am): Likewise.
10118         * modules/sys_utsname (Makefile.am): Likewise.
10119         * modules/sys_wait (Makefile.am): Likewise.
10120         * modules/sysexits (Makefile.am): Likewise.
10121         * modules/termios (Makefile.am): Likewise.
10122         * modules/time (Makefile.am): Likewise.
10123         * modules/unistd (Makefile.am): Likewise.
10124         * modules/wchar (Makefile.am): Likewise.
10125         * modules/wctype-h (Makefile.am): Likewise.
10126         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10127
10128 2011-05-29  Bruno Haible  <bruno@clisp.org>
10129
10130         assert-h: Allow multiple gnulib generated replacements to coexist.
10131         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10132
10133 2011-05-29  Bruno Haible  <bruno@clisp.org>
10134
10135         argp: Allow coexistence with strerror_r-posix module.
10136         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10137         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10138         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10139         not the glibc signature.
10140
10141 2011-05-28  Bruno Haible  <bruno@clisp.org>
10142
10143         gnulib-tool: Alternative structure of testdirs, similar to --import.
10144         * gnulib-tool: New option --single-configure.
10145         (func_usage): Document it.
10146         (single_configure): New variable.
10147         (func_modules_transitive_closure_separately,
10148         func_modules_transitive_closure_separately,
10149         func_determine_use_libtests, func_modules_add_dummy_separately,
10150         func_modules_to_filelist_separately): New functions, extracted from
10151         func_import.
10152         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10153         (func_import): Use the new functions.
10154         (func_create_testdir): Set final_modules. Handle $single_configure =
10155         true case.
10156
10157 2011-05-28  Bruno Haible  <bruno@clisp.org>
10158
10159         getloadavg: Remove an unreliable safety check.
10160         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10161         getloadavg.c is in place.
10162         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10163         Reported by Sam Steingold <sds@gnu.org>.
10164
10165 2011-05-28  Bruno Haible  <bruno@clisp.org>
10166
10167         doc: Cleanup yet another file produced by texinfo.tex.
10168         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10169
10170 2011-05-28  Bruno Haible  <bruno@clisp.org>
10171
10172         Finish the conditional dependencies mechanism.
10173         * gnulib-tool: New option --no-conditional-dependencies.
10174         (func_usage): Document it. Don't mark --conditional-dependencies as
10175         experimental.
10176         (cond_dependencies): The possible values can now be true, false, empty.
10177         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10178         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10179         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10180
10181 2011-05-28  Bruno Haible  <bruno@clisp.org>
10182
10183         doc: Use a recent texinfo.tex.
10184         * doc/Makefile (tex_opts): New variable.
10185         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10186
10187 2011-05-28  Jim Meyering  <meyering@redhat.com>
10188
10189         intprops.h: adjust comment to match code change
10190         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10191         only once, it *may* have side effects.  Also fix an unrelated typo.
10192         (_GL_INT_SIGNED): Likewise.
10193
10194 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10195
10196         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10197
10198 2011-05-26  Bruno Haible  <bruno@clisp.org>
10199
10200         mbsrchr: Avoid collision with system function on Interix.
10201         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10202         Reported by Markus Duft <mduft@gentoo.org>.
10203
10204 2011-05-15  James Youngman  <jay@gnu.org>
10205
10206         getopt: for ambiguous options, enumerate the possibilities.
10207         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10208         the ambiguous options when an ambiguous prefix is given. This was
10209         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10210         glibc change was
10211         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10212
10213 2011-05-25  Eric Blake  <eblake@redhat.com>
10214
10215         getcwd: work around mingw bug
10216         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10217         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10218         Reported by Matthias Bolte.
10219
10220 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10221
10222         test-intprops: disable -Wtype-limits diagnostics
10223         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10224         diagnostics.  Otherwise, the integer overflow macros generate many
10225         diagnostics.  Reported by Jim Meyering in
10226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10227
10228         intprops: shorten, to pacify gcc -Woverlength-strings
10229         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10230         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10231         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10232         likely to run afoul of C compiler limits for string constant lengths.
10233         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10234
10235 2011-05-24  Eric Blake  <eblake@redhat.com>
10236
10237         docs: document recently fixed glibc printf bug
10238         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10239         * doc/posix-functions/printf.texi (printf): Likewise.
10240         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10241         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10242
10243         closein-tests: convert to init.sh
10244         * modules/closein-tests (Files): Add init.sh
10245         * tests/test-closein.sh Use it.
10246
10247         yesno-tests: convert to init.sh
10248         * modules/yesno-tests (Files): Add init.sh.
10249         * tests/test-yesno.sh: Use it.
10250
10251         atexit-tests: ensure reliable exit status
10252         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10253         Reported by Bruno Haible.
10254
10255 2011-05-24  Bruno Haible  <bruno@clisp.org>
10256
10257         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10258         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10259         gl_PREREQ_STRERROR_R invocations from here...
10260         * modules/strerror_r-posix (configure.ac): ... to here.
10261
10262 2011-05-24  Eric Blake  <eblake@redhat.com>
10263
10264         strerror_r: fix missing header
10265         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10266
10267         strerror_r: fix AIX test failures
10268         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10269         ERANGE failure.
10270
10271         strerror_r: fix Solaris test failures
10272         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10273         failures.
10274         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10275
10276         strerror_r: enforce POSIX recommendations
10277         * lib/strerror_r.c (safe_copy): New helper method.
10278         (strerror_r): Guarantee a non-empty string.
10279         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10280         recent POSIX rulings and to match our strerror guarantees.
10281         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10282
10283 2011-05-24  Jim Meyering  <meyering@redhat.com>
10284
10285         test-perror2.c: avoid warning about unused variable
10286         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10287
10288 2011-05-24  Eric Blake  <eblake@redhat.com>
10289
10290         perror: avoid spurious test failure on HP-UX
10291         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10292
10293         tests: fix logic bug in init.sh
10294         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10295         shell.
10296
10297 2011-05-24  Jim Meyering  <meyering@redhat.com>
10298
10299         utimensat: do not reference an out-of-scope buffer
10300         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10301         declared in an inner scope, yet "times" would be dereferenced outside
10302         the scope in which "ts" was valid.
10303         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10304         of ts[2] "out/up", so that the use of aliased "times" (via
10305         "times = ts;") does not end up referencing an out-of-scope "ts"
10306
10307         opendir-safer.c: don't clobber errno; don't close negative FD
10308         * lib/opendir-safer.c (opendir_safer):
10309         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10310         file descriptor, and more importantly, don't clobber the
10311         offending errno value with EINVAL.  Before, upon failure
10312         of dup_safer, we would pass the negative file descriptor to
10313         fdopendir, which would clobber errno.
10314
10315 2011-05-23  Bruno Haible  <bruno@clisp.org>
10316
10317         idcache: Fix module description.
10318         * modules/idcache (Include): Set to "idcache.h".
10319
10320 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10321
10322         gnulib-tool: fix portability problem with MacOS sed
10323         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10324         before the "}".  Problem reported by Leo in
10325         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10326         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10327         sed_extract_condition1, sed_extract_condition2.
10328
10329 2011-05-23  Bruno Haible  <bruno@clisp.org>
10330
10331         hash: Simplify autoconf macro.
10332         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10333
10334 2011-05-23  Bruno Haible  <bruno@clisp.org>
10335
10336         getugroups: Fix module description.
10337         * modules/getugroups (Include): Set to "getugroups.h".
10338
10339 2011-05-23  Bruno Haible  <bruno@clisp.org>
10340
10341         linkat: Simplify autoconf macro.
10342         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10343
10344 2011-05-23  Bruno Haible  <bruno@clisp.org>
10345             Eric Blake  <eblake@redhat.com>
10346
10347         linkat, renameat: Update dependencies.
10348         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10349         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10350         symlinkat.
10351
10352 2011-05-23  Jim Meyering  <meyering@redhat.com>
10353
10354         maint.mk: more tight_scope improvements
10355         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10356         (_gl_TS_headers): Define only in if-0'd block.
10357         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10358         sometimes we must *not* use it.  Adjust uses accordingly.
10359         (sc_tight_scope): Use much simpler grep-based test to determine
10360         whether we skip this rule.
10361
10362         maint.mk: generalize/improve the tight-scope rule
10363         * top/maint.mk: Emit a warning when the test is skipped.
10364         (_gl_TS_dir): Add $(srcdir)/ prefix.
10365         (_gl_TS_function_match): Simplify, rather than trying
10366         to enumerate common types.  Otherwise, it would fail to match an
10367         "extern unsigned char const *" declaration in idutils.
10368         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10369         a way to support use of that type of macro.
10370         (_gl_TS_var_match): Simplify regexp.
10371         (_gl_TS_obj_files): New configurable variable.
10372         (_gl_TS_headers): Likewise.
10373
10374 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10375
10376         verify: fix bug when gnulib <assert.h> is also included
10377         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10378         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10379         Perhaps there's a better way, but this fixes the immediate problem.
10380         Problem reported by Bruno Haible in
10381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10382
10383 2011-05-22  Bruno Haible  <bruno@clisp.org>
10384
10385         xgetcwd: Simplify autoconf macro.
10386         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10387
10388 2011-05-22  Bruno Haible  <bruno@clisp.org>
10389
10390         New module 'mktime-internal'.
10391         * modules/mktime-internal: New file.
10392         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10393         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10394         mktime_internal as a C macro if libc has __mktime_internal.
10395         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10396         conditions.
10397         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10398
10399 2011-05-22  Bruno Haible  <bruno@clisp.org>
10400
10401         timegm: Correct mktime replacement statements.
10402         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10403         defining mktime as a C macro. This completes a 2009-07-28 commit.
10404
10405 2011-05-22  Bruno Haible  <bruno@clisp.org>
10406
10407         timegm: Simplify autoconf macro.
10408         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10409
10410 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10411
10412         clock-time: change to LGPLv2+.
10413         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10414         BSD-like but we have no mark for that; this is good enough for now.
10415
10416 2011-05-21  Bruno Haible  <bruno@clisp.org>
10417
10418         strerror_r: Fix comments.
10419         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10420
10421 2011-05-21  Bruno Haible  <bruno@clisp.org>
10422
10423         relocatable-prog-wrapper: Fix possible link error.
10424         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10425         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10426         (gl_FUNC_SETENV): ... to here.
10427         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10428         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10429
10430 2011-05-21  Bruno Haible  <bruno@clisp.org>
10431
10432         relocatable-prog-wrapper: Assume strerror() exists.
10433         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10434         m4/strerror.m4.
10435         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10436         * lib/relocwrapper.c: Remove mention of strerror module.
10437         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10438         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10439         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10440         C macro.
10441
10442 2011-05-21  Bruno Haible  <bruno@clisp.org>
10443
10444         select: Simplify replacement idiom.
10445         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10446         Win32 platforms.
10447         * lib/sys_select.in.h (select): Simplify accordingly.
10448         * modules/select (Depends-on): Likewise.
10449
10450 2011-05-21  Bruno Haible  <bruno@clisp.org>
10451
10452         mkdir-p: Simplify autoconf macro.
10453         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10454         gl_FUNC_LCHOWN.
10455
10456 2011-05-21  Eric Blake  <eblake@redhat.com>
10457
10458         strerror_r: avoid clobbering strerror on cygwin
10459         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10460         fall back instead to sys_errlist.
10461         * modules/strerror (configure.ac): Add witness.
10462         * tests/test-strerror_r.c (main): Enhance test.
10463         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10464         * tests/test-perror2.c (main): Free memory before exit.
10465
10466 2011-05-21  Bruno Haible  <bruno@clisp.org>
10467
10468         mkdtemp: Use gnulib naming conventions.
10469         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10470         * modules/mkdtemp (configure.ac): Update.
10471
10472 2011-05-20  Eric Blake  <eblake@redhat.com>
10473
10474         strerror_r: avoid corrupting errno on Solaris
10475         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10476         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10477
10478         strerror_r: avoid compiler warning
10479         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10480
10481         strerror_r: simplify AIX code
10482         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10483
10484         test-perror: avoid spurious failure on FreeBSD
10485         * modules/perror-tests (Depends-on): Add strerror, now that
10486         strerror_r no longer pulls it in.
10487
10488 2011-05-20  Bruno Haible  <bruno@clisp.org>
10489
10490         strerror_r-posix: Remove unused dependencies.
10491         * modules/strerror_r-posix (Depends-on): Remove strerror.
10492         Reported by Eric Blake.
10493
10494 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10495
10496         intprops: remove assumption about A|B representation
10497         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10498         is a valid integer if both A and B are.  Although this is true for
10499         all known practical hosts, the C standard doesn't guarantee it,
10500         and the code need not assume it.  Also, this change may work around
10501         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10502         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10503
10504 2011-05-20  Eric Blake  <eblake@redhat.com>
10505
10506         perror: work around FreeBSD bug
10507         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10508         is broken.  Move AC_LIBOBJ...
10509         * modules/perror (configure.ac): Here.
10510         * doc/posix-functions/perror.texi (perror): Document this.
10511         * tests/test-perror2.c (main): Enhance test.
10512
10513         test-perror: check for strerror interactions
10514         * tests/macros.h (STREQ): Add macro.
10515         * modules/perror-tests (Files): Add second test.
10516         * tests/test-perror2.c (main): New file.
10517         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10518
10519         test-perror: rewrite to use init script
10520         * modules/perror-tests (Files): Add init.sh.
10521         * tests/test-perror.sh: Use temporary directory.
10522
10523 2011-05-20  Jim Meyering  <meyering@redhat.com>
10524
10525         maint: replace misused "a" with "an"
10526         * doc/intprops.texi: "a integer"
10527         * doc/regex.texi: "a explanation"
10528         * lib/alignof.h: "a object"
10529         * lib/argmatch.h: "a explanation"
10530         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10531         * lib/stdint.in.h: "a integer"
10532         * lib/userspec.c: "a owner"
10533         * doc/gnulib.texi: Fix "a idea", and reword.
10534
10535 2011-05-19  Jim Meyering  <meyering@redhat.com>
10536
10537         maint: correct misuse of "a" and "an"
10538         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10539         * lib/argp-help.c: "an docum...": s/an/a/
10540         * lib/argp-parse.c: "An vector": s/An/A/
10541         * lib/execute.c: "an native": s/an/a/
10542         * lib/spawn-pipe.c: Likewise.
10543         * lib/gc.h: "an Gc_rc": s/an/a/
10544         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10545         * lib/fts.c: "an stat.st_dev": s/an/a/
10546
10547 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10548
10549         intprops-tests: work around HP-UX 11.23 cc bug with constants
10550         * tests/test-intprops.c (VERIFY): New macro.
10551         (main): Use it, instead of verify, to work around the compiler bug; see
10552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10553
10554         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10555         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10556         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10557         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10558         (_GL_REMAINDER_OVERFLOW): Use it.
10559
10560         intprops-tests: revert unsigned part of previous change
10561         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10562         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10563         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10564         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10565
10566 2011-05-19  Bruno Haible  <bruno@clisp.org>
10567
10568         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10569         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10570         strerror_r() returned without filling the buffer.
10571         Reported by Eric Blake.
10572
10573 2011-05-19  Eric Blake  <eblake@redhat.com>
10574
10575         strerror_r: guarantee unchanged errno
10576         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10577         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10578         failure.
10579         * tests/test-strerror_r.c (main): Enhance test.
10580
10581 2011-05-19  Bruno Haible  <bruno@clisp.org>
10582
10583         strerror_r: Reorder #if blocks.
10584         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10585         for consistency with the previous commit.
10586
10587 2011-05-19  Bruno Haible  <bruno@clisp.org>
10588
10589         perror: Avoid clobbering the strerror buffer when possible.
10590         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10591         * lib/strerror.c: Include it.
10592         * modules/strerror (Files): Add lib/strerror-impl.h.
10593         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10594         (my_strerror): New function, defined through lib/strerror-impl.h.
10595         (perror): Use it instead of strerror.
10596         * modules/perror (Files): Add lib/strerror-impl.h.
10597         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10598
10599 2011-05-19  Eric Blake  <eblake@redhat.com>
10600
10601         strerror_r: fix on newer cygwin
10602         * lib/strerror_r.c (strerror_r): Cygwin now has
10603         __xpg_strerror_r, use it.
10604
10605 2011-05-19  Bruno Haible  <bruno@clisp.org>
10606
10607         strerror_r: Avoid clobbering the strerror buffer when possible.
10608         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10609         (sys_nerr, sys_errlist): New declarations.
10610         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10611         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10612         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10613
10614 2011-05-19  Bruno Haible  <bruno@clisp.org>
10615
10616         strerror_r: Fix test failure on mingw.
10617         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10618         EXTEND_STRERROR_R.
10619         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10620         macros from errno.in.h instead.
10621
10622 2011-05-19  Eric Blake  <eblake@redhat.com>
10623
10624         strerror: relax test for Solaris
10625         * tests/test-strerror.c (main): Permit Solaris behavior.
10626         * tests/test-strerror_r.c (main): Likewise.
10627
10628         strerror: enforce POSIX ruling on strerror(0)
10629         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10630         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10631         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10632         * doc/posix-functions/strerror.texi (strerror): Document it.
10633         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10634         * tests/test-strerror.c (main): Strengthen test.
10635         * tests/test-strerror_r.c (main): Likewise.
10636
10637 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10638
10639         intprop-tests: port to older and more-pedantic compilers
10640         * modules/intprops-tests (Files): Add tests/macros.h.
10641         * tests/test-intprops.c: Include macros.h.
10642         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10643         it's no longer documented to expand to an integer constant expression.
10644         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10645         argument is floating point, as it's no longer documented to expand
10646         to an integer constant expression in that case.
10647         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10648         compiler bugs reported by Bruno Haible.  See
10649         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10650         (U0, U1): New constants, to work around the same bugs.  Also,
10651         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10652
10653         intprops: work around C compiler bugs
10654         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10655         bug in Sun C 5.11 2010/08/13 and other compilers; see
10656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10657
10658         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10659         * doc/intprops.texi (Integer Type Determination): Fix
10660         documentation for TYPE_IS_INTEGER: it returns an constant
10661         expression, not an integer constant expression.  Fix doc for
10662         TYPE_SIGNED: it returns an integer constant expression only if its
10663         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10664         hardly worth documented that way....)
10665
10666 2011-05-18  Bruno Haible  <bruno@clisp.org>
10667
10668         strerror_r: Avoid clobbering the strerror buffer when possible.
10669         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10670         Handle gnulib defined errno values here. When strerror() returns NULL
10671         or an empty string, return EINVAL.
10672         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10673         gnulib defined errno values here.
10674         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10675
10676 2011-05-18  Eric Blake  <eblake@redhat.com>
10677
10678         fnmatch: avoid compiler warning
10679         * lib/fnmatch_loop.c (FCT): Use correct type.
10680         Reported by Matthias Bolte.
10681
10682 2011-05-13  Jim Meyering  <meyering@redhat.com>
10683
10684         maint.mk: three new prohibit_<HDR>_without_use rules
10685         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10686         (sc_prohibit_stdio-safer_without_use): Likewise.
10687         (sc_prohibit_xfreopen_without_use): Likewise.
10688
10689 2011-05-17  Jim Meyering  <meyering@redhat.com>
10690
10691         announce-gen: fail if the NEWS delta is empty
10692         If there's nothing noteworthy in NEWS, then either you forgot
10693         or you shouldn't be releasing.
10694         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10695
10696 2011-05-17  Pádraig Brady <P@draigBrady.com>
10697
10698         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10699         reserved symbols starting with double underscore from the check.
10700
10701 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10702
10703         intprops: add doc
10704         * doc/intprops.texi: New file, documenting intprops.
10705         * doc/gnulib.texi (Particular Modules): Include it.
10706
10707         verify: add doc to gnulib manual and fix example
10708         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10709         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10710         (Compile-time Assertions): Fix example so it can't overflow.
10711
10712 2011-05-17  Jim Meyering  <meyering@redhat.com>
10713
10714         warnings.m4: don't usurp save_CPPFLAGS variable name
10715         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10716
10717         doc: fix typo
10718         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10719
10720 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10721             Bruno Haible  <bruno@clisp.org>
10722
10723         doc: Tweak recent change.
10724         * README (Portability guidelines): Tweak new text.
10725         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10726         Interix 6.1.
10727
10728 2011-05-16  Eric Blake  <eblake@redhat.com>
10729
10730         inttypes: avoid autoconf warning
10731         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10732         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10733
10734 2011-05-16  Sam Steingold <sds@gnu.org>
10735         and Eric Blake  <eblake@redhat.com>
10736
10737         vc-list-files: accept multiple directory operands
10738         * build-aux/vc-list-files: Iterate over all remaining operands.
10739
10740 2011-05-16  Bruno Haible  <bruno@clisp.org>
10741
10742         Fix confusion regarding deprecated modules.
10743         * modules/calloc (Status, Notice): Mark module as deprecated, not
10744         obsolete.
10745         * modules/fnmatch-posix (Status, Notice): Likewise.
10746         * modules/getdate (Status, Notice): Likewise.
10747         * modules/getopt (Status, Notice): Likewise.
10748         * modules/malloc (Status, Notice): Likewise.
10749         * modules/pipe (Status, Notice): Likewise.
10750         * modules/realloc (Status, Notice): Likewise.
10751         * modules/rename-dest-slash (Status, Notice): Likewise.
10752         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10753         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10754         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10755         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10756         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10757
10758 2011-05-16  Bruno Haible  <bruno@clisp.org>
10759
10760         doc: List the target platforms.
10761         * doc/gnulib-intro.texi (Target Platforms): New section.
10762         * doc/gnulib.texi (Introduction): Update menu.
10763         * README (Portability guidelines): Refer to the new section. Update
10764         statement about oldest supported environment. Remove rationale why
10765         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10766         unportable C89 function.
10767         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10768         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10769
10770 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10771
10772         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10773
10774 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10775
10776         intprops-tests: new module
10777         * modules/intprops-tests, tests/test-intprops.c: New files.
10778
10779         intprops: add safe, portable integer overflow checking
10780         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10781         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10782         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10783         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10784         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10785         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10786         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10787         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10788         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10789         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10790         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10791
10792 2011-05-12  James Youngman  <jay@gnu.org>
10793
10794         Add a test for glibc's Bugzilla bug #12378.
10795         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10796         doesn't allow the literal matching of a lone "[" (which is
10797         required by POSIX).
10798         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10799
10800 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10801
10802         Sync glibc change fixing Bugzilla bug #12378.
10803         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10804         beginning and fall back to matching as normal character if the
10805         string ends before the matching ']' is found.  This is what POSIX
10806         requires.
10807
10808 2011-05-13  Eric Blake  <eblake@redhat.com>
10809
10810         getcwd-lgpl: relax test for FreeBSD
10811         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10812         issue.
10813         * tests/test-getcwd-lgpl.c (main): Relax test.
10814         Reported by Matthias Bolte.
10815
10816 2011-05-11  Eric Blake  <eblake@redhat.com>
10817
10818         test-fflush: silence compiler warning
10819         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10820
10821 2011-05-11  Bruno Haible  <bruno@clisp.org>
10822
10823         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10824         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10825         * modules/canonicalize (Depends-on): Add 'nocrash'.
10826         * modules/canonicalize-lgpl (Depends-on): Likewise.
10827         * doc/posix-functions/realpath.texi: Update platforms list.
10828         Reported by Ryan Schmidt <ryandesign@macports.org>.
10829
10830 2011-05-11  Bruno Haible  <bruno@clisp.org>
10831
10832         group-member: Declare function in <unistd.h>.
10833         * lib/unistd.in.h (group_member): New declaration.
10834         * lib/group-member.h: Remove file.
10835         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10836         * tests/test-unistd-c++.cc: Check signature of group_member.
10837         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10838         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10839         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10840         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10841         HAVE_GROUP_MEMBER.
10842         * modules/group-member (Files): Remove lib/group-member.h.
10843         (Depends-on): Add unistd. Specify conditions.
10844         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10845         (Include): Change to <unistd.h>.
10846         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10847         HAVE_GROUP_MEMBER.
10848         * NEWS: Mention the change.
10849         * lib/euidaccess.c: Don't include group-member.h.
10850
10851 2011-05-11  Bruno Haible  <bruno@clisp.org>
10852
10853         group-member: Document module.
10854         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10855         module.
10856
10857 2011-05-11  Bruno Haible  <bruno@clisp.org>
10858
10859         fclose: Fix mistake earlier today.
10860         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10861
10862 2011-05-11  Eric Blake  <eblake@redhat.com>
10863
10864         fclose: preserve fflush errors
10865         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10866         Reported by Jim Meyering.
10867
10868         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10869         * build-aux/bootstrap (check_versions): When no specific version
10870         is required, merely check that the app produces an exit status
10871         that indicates its existence.
10872
10873         maint.mk: drop redundant check
10874         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10875         the same but better.
10876
10877 2011-05-11  Bruno Haible  <bruno@clisp.org>
10878
10879         fclose: Fix possible link error.
10880         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10881         unregister_shadow_fd. Improve comments.
10882         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10883         Eric Blake.
10884
10885 2011-05-11  Jim Meyering  <meyering@redhat.com>
10886
10887         maint.mk: improve "can not" detection and generalize rule name
10888         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10889         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10890         Use the same technique as in sc_prohibit_doubled_word, so that
10891         we recognize "can not" also when the words are separated by a newline.
10892         Suggested by Eric Blake.
10893         (perl_filename_lineno_text_): Define.  Factored out of...
10894         (prohibit_doubled_word_): ...here.  Use the new definition.
10895         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10896         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10897         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10898
10899 2011-05-10  Eric Blake  <eblake@redhat.com>
10900
10901         fclose: avoid double close race when possible
10902         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10903         all but WINDOWS_SOCKETS.
10904
10905 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10906
10907         openat: correct new comment
10908         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10909
10910 2011-05-10  Jim Meyering  <meyering@redhat.com>
10911
10912         openat: add comments
10913         * lib/openat-proc.c (openat_proc_name): Add comments,
10914         mostly from Eric Blake.
10915
10916 2011-05-09  Eric Blake  <eblake@redhat.com>
10917
10918         openat: reduce syscalls in first probe of /proc
10919         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10920         be a directory.  Simplify the probe for .. bugs.
10921         * modules/openat (Depends-on): Drop same-inode.
10922         Reported by Bastien ROUCARIES.
10923
10924 2011-05-09  Jim Meyering  <meyering@redhat.com>
10925
10926         maint.mk: change semantics/name of tight_scope variables
10927         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10928         Rename variables to align with semantics that make them more useful.
10929
10930         maint.mk: tweak new rule's name not to impinge
10931         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10932         (sc_tight_scope): Use new rule name rather than $@-0.
10933
10934         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10935         * top/maint.mk (sc_tight_scope): New rule.
10936         (sc_tight_scope-0): New rule, ifdef'd out.
10937         (_gl_TS_dir): Default.
10938         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10939         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10940
10941 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10942
10943         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10944         Haible <bruno@clisp.org>.
10945
10946 2011-05-08  Bruno Haible  <bruno@clisp.org>
10947
10948         Comments.
10949         * m4/isnanf.m4: Add comment.
10950         * m4/isnanl.m4: Likewise.
10951
10952 2011-05-08  Bruno Haible  <bruno@clisp.org>
10953
10954         glob: Remove obsolete macro.
10955         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10956
10957 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10958
10959         intprops: Sun C 5.11 supports __typeof__
10960         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10961         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10962         which is new.
10963         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10964
10965         intprops: switch to usual gnulib indenting and naming
10966         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10967         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10968
10969         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10970
10971 2011-05-08  Jim Meyering  <meyering@redhat.com>
10972
10973         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10974         * top/maint.mk (release-prep): Use make's --no-print-directory
10975         option when generating the announcement.  This eliminates the
10976         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10977         generated announcement template.
10978
10979 2011-05-08  Bruno Haible  <bruno@clisp.org>
10980
10981         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10982         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10983         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10984
10985 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10986
10987         ignore-value, verify: Omit include files from lib_SOURCES.
10988         * modules/ignore-value, modules/verify (Makefile.am):
10989         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10990         that leads Automake to duplicate use of am__objects_... variables
10991         in Makefile.in.  See
10992         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10993
10994 2011-05-07  Bruno Haible  <bruno@clisp.org>
10995
10996         fclose: Simplify autoconf macro.
10997         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10998         defined.
10999
11000 2011-05-07  Bruno Haible  <bruno@clisp.org>
11001
11002         canonicalize-lgpl: Fix autoconf macro ordering bug.
11003         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11004         gl_STDLIB_H_DEFAULTS.
11005
11006 2011-05-06  Eric Blake  <eblake@redhat.com>
11007
11008         maintainer-makefile: make sc_po_check easier to tune
11009         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11010         to probe for strings, such as an alternate location for gnulib.
11011
11012         fclose: guarantee behavior on seekable stdin
11013         * modules/fclose (Depends-on): Add fflush.
11014         * doc/posix-functions/fclose.texi (fclose): Document this.
11015         * tests/test-fclose.c (main): Make test for this unconditional.
11016
11017 2011-05-06  Bruno Haible  <bruno@clisp.org>
11018
11019         fflush, fpurge: Relicense under LGPLv2+.
11020         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11021         * modules/fpurge (License): Likewise.
11022         With permission from Eric Blake and Jim Meyering.
11023         Suggested by Eric Blake.
11024
11025 2011-05-06  Karl Berry  <karl@gnu.org>
11026
11027         * MODULES.html.sh (func_all_modules): remove exit.
11028
11029 2011-05-06  Jim Meyering  <meyering@redhat.com>
11030
11031         maint.mk: use info-gnu@ as the default only for a stable release
11032         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11033         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11034         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11035         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11036
11037 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11038
11039         assert-h: new module, which supports C1X-style static_assert
11040         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11041         * lib/verify.h: Revamp so that this can be copied into assert.h,
11042         while retaining the ability to use it standalone as before.
11043         Rename private identifiers so as not to encroach on the
11044         standard C namespace, since this is now used by assert.h.
11045         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11046         the old verify_true.
11047         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11048         the old verify_true.  Use _GL_VERIFY_TYPE.
11049         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11050         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11051         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11052         defined when this file is copied into the replacement assert.h.
11053         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11054         and _Static_assert is not built in.
11055         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11056         defined, and use the new macros mentioned above.
11057         * doc/posix-headers/assert.texi: Document this.
11058
11059 2011-05-05  Bruno Haible  <bruno@clisp.org>
11060
11061         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11062         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11063         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11064         gl_REPLACE_FCLOSE here.
11065         * modules/fflush (Depends-on): Remove fclose.
11066         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11067         combination with module 'fclose'.
11068
11069 2011-05-05  Bruno Haible  <bruno@clisp.org>
11070
11071         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11072         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11073         gl_FUNC_FFLUSH.
11074         (gl_FUNC_FFLUSH): Use it.
11075         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11076         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11077         gl_REPLACE_FSEEKO here.
11078
11079 2011-05-05  Bruno Haible  <bruno@clisp.org>
11080
11081         tzset: Relicense under LGPL.
11082         * modules/tzset (License): Change to LGPL.
11083         No agreement needed; it's a no-op.
11084
11085         strtoimax, strtoumax: Relicense under LGPL.
11086         * modules/strtoimax (License): Change to LGPL.
11087         * modules/strtoumax (License): Likewise.
11088         With permission from Jim Meyering, Paul Eggert:
11089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11091
11092         getgroups: Relicense under LGPL.
11093         * modules/getgroups (License): Change to LGPL.
11094         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11098
11099         nanosleep: Relicense under LGPL.
11100         * modules/nanosleep (License): Change to LGPL.
11101         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11102         Haible:
11103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11107
11108         futimens: Relicense under LGPL.
11109         * modules/futimens (License): Change to LGPL.
11110         With permission from Eric Blake:
11111         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11112
11113         fflush: Relicense under LGPL.
11114         * modules/fflush (License): Change to LGPL.
11115         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11118         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11119
11120         tmpfile: Relicense under LGPL.
11121         * modules/tmpfile (License): Change to LGPL.
11122         With permission from Ben Pfaff:
11123         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11124
11125         isfinite: Relicense under LGPL.
11126         * modules/isfinite (License): Change to LGPL.
11127         With permission from Ben Pfaff, Bruno Haible:
11128         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11129         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11130
11131         acosl..tanl: Relicense under LGPL.
11132         * modules/acosl (License): Change to LGPL.
11133         * modules/asinl (License): Likewise.
11134         * modules/atanl (License): Likewise.
11135         * modules/cosl (License): Likewise.
11136         * modules/expl (License): Likewise.
11137         * modules/logl (License): Likewise.
11138         * modules/sinl (License): Likewise.
11139         * modules/sqrtl (License): Likewise.
11140         * modules/tanl (License): Likewise.
11141         Source code originally from glibc and Paolo Bonzini. Agreements:
11142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11143         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11144
11145 2011-05-05  Bruno Haible  <bruno@clisp.org>
11146
11147         signal: Define sighandler_t.
11148         * lib/signal.in.h (sighandler_t): New type.
11149         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11150         whether sighandler_t is defined.
11151         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11152         * modules/signal (Depends-on): Add extensions.
11153         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11154         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11155         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11156
11157 2011-05-05  Eric Blake  <eblake@redhat.com>
11158
11159         maint: remove useless REPLACE_*_H macros
11160         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11161         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11162         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11163         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11164         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11165         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11166         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11167         * m4/btowc.m4: Update callers.
11168         * m4/dirfd.m4: Likewise.
11169         * m4/duplocale.m4: Likewise.
11170         * m4/fchdir.m4: Likewise.
11171         * m4/fdopendir.m4: Likewise.
11172         * m4/inet_ntop.m4: Likewise.
11173         * m4/inet_pton.m4: Likewise.
11174         * m4/ioctl.m4: Likewise.
11175         * m4/mbrlen.m4: Likewise.
11176         * m4/mbrtowc.m4: Likewise.
11177         * m4/mbsinit.m4: Likewise.
11178         * m4/mbsnrtowcs.m4: Likewise.
11179         * m4/mbsrtowcs.m4: Likewise.
11180         * m4/poll.m4: Likewise.
11181         * m4/setlocale.m4: Likewise.
11182         * m4/wcrtomb.m4: Likewise.
11183         * m4/wcsnrtombs.m4: Likewise.
11184         * m4/wcsrtombs.m4: Likewise.
11185         * m4/wctob.m4: Likewise.
11186         * m4/wcwidth.m4: Likewise.
11187         * modules/posix_spawn: Likewise.
11188         * modules/posix_spawn_file_actions_addclose: Likewise.
11189         * modules/posix_spawn_file_actions_adddup2: Likewise.
11190         * modules/posix_spawn_file_actions_addopen: Likewise.
11191         * modules/posix_spawn_file_actions_destroy: Likewise.
11192         * modules/posix_spawn_file_actions_init: Likewise.
11193         * modules/posix_spawnattr_destroy: Likewise.
11194         * modules/posix_spawnattr_getflags: Likewise.
11195         * modules/posix_spawnattr_getpgroup: Likewise.
11196         * modules/posix_spawnattr_getschedparam: Likewise.
11197         * modules/posix_spawnattr_getschedpolicy: Likewise.
11198         * modules/posix_spawnattr_getsigdefault: Likewise.
11199         * modules/posix_spawnattr_getsigmask: Likewise.
11200         * modules/posix_spawnattr_init: Likewise.
11201         * modules/posix_spawnattr_setflags: Likewise.
11202         * modules/posix_spawnattr_setpgroup: Likewise.
11203         * modules/posix_spawnattr_setschedparam: Likewise.
11204         * modules/posix_spawnattr_setschedpolicy: Likewise.
11205         * modules/posix_spawnattr_setsigdefault: Likewise.
11206         * modules/posix_spawnattr_setsigmask: Likewise.
11207         * modules/posix_spawnp: Likewise.
11208
11209 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11210
11211         Add option to do-release-commit-and-tag to specify branch.
11212         * build-aux/do-release-commit-and-tag: Add --branch.
11213
11214 2011-05-03  Bruno Haible  <bruno@clisp.org>
11215
11216         Avoid unnecessary compilation units, through conditional dependencies.
11217         * modules/accept (Depends-on): Add conditions to the dependencies.
11218         * modules/acosl (Depends-on): Likewise.
11219         * modules/argz (Depends-on): Likewise.
11220         * modules/asinl (Depends-on): Likewise.
11221         * modules/atanl (Depends-on): Likewise.
11222         * modules/atoll (Depends-on): Likewise.
11223         * modules/bind (Depends-on): Likewise.
11224         * modules/btowc (Depends-on): Likewise.
11225         * modules/canonicalize-lgpl (Depends-on): Likewise.
11226         * modules/ceil (Depends-on): Likewise.
11227         * modules/ceilf (Depends-on): Likewise.
11228         * modules/ceill (Depends-on): Likewise.
11229         * modules/chdir-long (Depends-on): Likewise.
11230         * modules/chown (Depends-on): Likewise.
11231         * modules/close (Depends-on): Likewise.
11232         * modules/connect (Depends-on): Likewise.
11233         * modules/cosl (Depends-on): Likewise.
11234         * modules/dirfd (Depends-on): Likewise.
11235         * modules/dprintf (Depends-on): Likewise.
11236         * modules/dprintf-posix (Depends-on): Likewise.
11237         * modules/error (Depends-on): Likewise.
11238         * modules/euidaccess (Depends-on): Likewise.
11239         * modules/expl (Depends-on): Likewise.
11240         * modules/faccessat (Depends-on): Likewise.
11241         * modules/fchdir (Depends-on): Likewise.
11242         * modules/fclose (Depends-on): Likewise.
11243         * modules/fcntl (Depends-on): Likewise.
11244         * modules/fdopendir (Depends-on): Likewise.
11245         * modules/fflush (Depends-on): Likewise.
11246         * modules/floor (Depends-on): Likewise.
11247         * modules/floorf (Depends-on): Likewise.
11248         * modules/floorl (Depends-on): Likewise.
11249         * modules/fnmatch (Depends-on): Likewise.
11250         * modules/fopen (Depends-on): Likewise.
11251         * modules/fprintf-posix (Depends-on): Likewise.
11252         * modules/frexp (Depends-on): Likewise.
11253         * modules/frexp-nolibm (Depends-on): Likewise.
11254         * modules/frexpl (Depends-on): Likewise.
11255         * modules/frexpl-nolibm (Depends-on): Likewise.
11256         * modules/fseek (Depends-on): Likewise.
11257         * modules/fsusage (Depends-on): Likewise.
11258         * modules/ftell (Depends-on): Likewise.
11259         * modules/ftello (Depends-on): Likewise.
11260         * modules/futimens (Depends-on): Likewise.
11261         * modules/getcwd (Depends-on): Likewise.
11262         * modules/getcwd-lgpl (Depends-on): Likewise.
11263         * modules/getdelim (Depends-on): Likewise.
11264         * modules/getdomainname (Depends-on): Likewise.
11265         * modules/getgroups (Depends-on): Likewise.
11266         * modules/gethostname (Depends-on): Likewise.
11267         * modules/getline (Depends-on): Likewise.
11268         * modules/getlogin_r (Depends-on): Likewise.
11269         * modules/getopt-posix (Depends-on): Likewise.
11270         * modules/getpeername (Depends-on): Likewise.
11271         * modules/getsockname (Depends-on): Likewise.
11272         * modules/getsockopt (Depends-on): Likewise.
11273         * modules/getsubopt (Depends-on): Likewise.
11274         * modules/getusershell (Depends-on): Likewise.
11275         * modules/glob (Depends-on): Likewise.
11276         * modules/grantpt (Depends-on): Likewise.
11277         * modules/iconv_open (Depends-on): Likewise.
11278         * modules/iconv_open-utf (Depends-on): Likewise.
11279         * modules/inet_ntop (Depends-on): Likewise.
11280         * modules/inet_pton (Depends-on): Likewise.
11281         * modules/ioctl (Depends-on): Likewise.
11282         * modules/isapipe (Depends-on): Likewise.
11283         * modules/isfinite (Depends-on): Likewise.
11284         * modules/isinf (Depends-on): Likewise.
11285         * modules/lchown (Depends-on): Likewise.
11286         * modules/ldexpl (Depends-on): Likewise.
11287         * modules/link (Depends-on): Likewise.
11288         * modules/linkat (Depends-on): Likewise.
11289         * modules/listen (Depends-on): Likewise.
11290         * modules/logl (Depends-on): Likewise.
11291         * modules/lstat (Depends-on): Likewise.
11292         * modules/mbrlen (Depends-on): Likewise.
11293         * modules/mbrtowc (Depends-on): Likewise.
11294         * modules/mbsinit (Depends-on): Likewise.
11295         * modules/mbsnrtowcs (Depends-on): Likewise.
11296         * modules/mbsrtowcs (Depends-on): Likewise.
11297         * modules/mbtowc (Depends-on): Likewise.
11298         * modules/memcmp (Depends-on): Likewise.
11299         * modules/mkdir (Depends-on): Likewise.
11300         * modules/mkdtemp (Depends-on): Likewise.
11301         * modules/mkfifo (Depends-on): Likewise.
11302         * modules/mkfifoat (Depends-on): Likewise.
11303         * modules/mknod (Depends-on): Likewise.
11304         * modules/mkostemp (Depends-on): Likewise.
11305         * modules/mkostemps (Depends-on): Likewise.
11306         * modules/mkstemp (Depends-on): Likewise.
11307         * modules/mkstemps (Depends-on): Likewise.
11308         * modules/mktime (Depends-on): Likewise.
11309         * modules/nanosleep (Depends-on): Likewise.
11310         * modules/open (Depends-on): Likewise.
11311         * modules/openat (Depends-on): Likewise.
11312         * modules/perror (Depends-on): Likewise.
11313         * modules/poll (Depends-on): Likewise.
11314         * modules/popen (Depends-on): Likewise.
11315         * modules/posix_spawn (Depends-on): Likewise.
11316         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11317         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11318         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11319         * modules/posix_spawnp (Depends-on): Likewise.
11320         * modules/pread (Depends-on): Likewise.
11321         * modules/printf-posix (Depends-on): Likewise.
11322         * modules/ptsname (Depends-on): Likewise.
11323         * modules/putenv (Depends-on): Likewise.
11324         * modules/pwrite (Depends-on): Likewise.
11325         * modules/readline (Depends-on): Likewise.
11326         * modules/readlink (Depends-on): Likewise.
11327         * modules/readlinkat (Depends-on): Likewise.
11328         * modules/recv (Depends-on): Likewise.
11329         * modules/recvfrom (Depends-on): Likewise.
11330         * modules/regex (Depends-on): Likewise.
11331         * modules/remove (Depends-on): Likewise.
11332         * modules/rename (Depends-on): Likewise.
11333         * modules/renameat (Depends-on): Likewise.
11334         * modules/rmdir (Depends-on): Likewise.
11335         * modules/round (Depends-on): Likewise.
11336         * modules/roundf (Depends-on): Likewise.
11337         * modules/roundl (Depends-on): Likewise.
11338         * modules/rpmatch (Depends-on): Likewise.
11339         * modules/select (Depends-on): Likewise.
11340         * modules/send (Depends-on): Likewise.
11341         * modules/sendto (Depends-on): Likewise.
11342         * modules/setenv (Depends-on): Likewise.
11343         * modules/setlocale (Depends-on): Likewise.
11344         * modules/setsockopt (Depends-on): Likewise.
11345         * modules/shutdown (Depends-on): Likewise.
11346         * modules/sigaction (Depends-on): Likewise.
11347         * modules/signbit (Depends-on): Likewise.
11348         * modules/sigprocmask (Depends-on): Likewise.
11349         * modules/sinl (Depends-on): Likewise.
11350         * modules/sleep (Depends-on): Likewise.
11351         * modules/snprintf (Depends-on): Likewise.
11352         * modules/snprintf-posix (Depends-on): Likewise.
11353         * modules/socket (Depends-on): Likewise.
11354         * modules/sprintf-posix (Depends-on): Likewise.
11355         * modules/sqrtl (Depends-on): Likewise.
11356         * modules/stat (Depends-on): Likewise.
11357         * modules/strchrnul (Depends-on): Likewise.
11358         * modules/strdup-posix (Depends-on): Likewise.
11359         * modules/strerror (Depends-on): Likewise.
11360         * modules/strerror_r-posix (Depends-on): Likewise.
11361         * modules/strndup (Depends-on): Likewise.
11362         * modules/strnlen (Depends-on): Likewise.
11363         * modules/strptime (Depends-on): Likewise.
11364         * modules/strsep (Depends-on): Likewise.
11365         * modules/strsignal (Depends-on): Likewise.
11366         * modules/strstr-simple (Depends-on): Likewise.
11367         * modules/strtod (Depends-on): Likewise.
11368         * modules/strtoimax (Depends-on): Likewise.
11369         * modules/strtok_r (Depends-on): Likewise.
11370         * modules/strtoumax (Depends-on): Likewise.
11371         * modules/symlink (Depends-on): Likewise.
11372         * modules/symlinkat (Depends-on): Likewise.
11373         * modules/tanl (Depends-on): Likewise.
11374         * modules/tcgetsid (Depends-on): Likewise.
11375         * modules/tmpfile (Depends-on): Likewise.
11376         * modules/trunc (Depends-on): Likewise.
11377         * modules/truncf (Depends-on): Likewise.
11378         * modules/truncl (Depends-on): Likewise.
11379         * modules/uname (Depends-on): Likewise.
11380         * modules/unlink (Depends-on): Likewise.
11381         * modules/unlockpt (Depends-on): Likewise.
11382         * modules/unsetenv (Depends-on): Likewise.
11383         * modules/usleep (Depends-on): Likewise.
11384         * modules/utimensat (Depends-on): Likewise.
11385         * modules/vasprintf (Depends-on): Likewise.
11386         * modules/vdprintf (Depends-on): Likewise.
11387         * modules/vdprintf-posix (Depends-on): Likewise.
11388         * modules/vfprintf-posix (Depends-on): Likewise.
11389         * modules/vprintf-posix (Depends-on): Likewise.
11390         * modules/vsnprintf (Depends-on): Likewise.
11391         * modules/vsnprintf-posix (Depends-on): Likewise.
11392         * modules/vsprintf-posix (Depends-on): Likewise.
11393         * modules/wcrtomb (Depends-on): Likewise.
11394         * modules/wcscasecmp (Depends-on): Likewise.
11395         * modules/wcscspn (Depends-on): Likewise.
11396         * modules/wcsdup (Depends-on): Likewise.
11397         * modules/wcsncasecmp (Depends-on): Likewise.
11398         * modules/wcsnrtombs (Depends-on): Likewise.
11399         * modules/wcspbrk (Depends-on): Likewise.
11400         * modules/wcsrtombs (Depends-on): Likewise.
11401         * modules/wcsspn (Depends-on): Likewise.
11402         * modules/wcsstr (Depends-on): Likewise.
11403         * modules/wcstok (Depends-on): Likewise.
11404         * modules/wcswidth (Depends-on): Likewise.
11405         * modules/wctob (Depends-on): Likewise.
11406         * modules/wctomb (Depends-on): Likewise.
11407         * modules/wctype (Depends-on): Likewise.
11408         * modules/wcwidth (Depends-on): Likewise.
11409         * modules/write (Depends-on): Likewise.
11410
11411 2011-05-03  Bruno Haible  <bruno@clisp.org>
11412
11413         Support for conditional dependencies.
11414         * doc/gnulib.texi (Module description): Document the syntax of
11415         conditional dependencies.
11416         * gnulib-tool: New option --conditional-dependencies.
11417         (func_usage): Document it.
11418         (cond_dependencies): New variable.
11419         (func_get_automake_snippet_conditional,
11420         func_get_automake_snippet_unconditional): New functions, extracted from
11421         func_get_automake_snippet.
11422         (func_get_automake_snippet): Use them.
11423         (sed_first_32_chars): New variable.
11424         (func_module_shellfunc_name): New function.
11425         (func_module_shellvar_name): New function.
11426         (func_module_conditional_name): New function.
11427         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11428         func_cond_module_condition): New functions.
11429         (func_modules_transitive_closure): Add support for conditional
11430         dependencies.
11431         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11432         conditional automake snippet in an automake conditional.
11433         (func_emit_autoconf_snippets): Emit shell functions that contain the
11434         code for conditional modules.
11435         (func_import, func_create_testdir): Update specification.
11436
11437 2011-05-03  Eric Blake  <eblake@redhat.com>
11438
11439         test-getaddrinfo: report error information
11440         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11441
11442 2011-05-03  Jim Meyering  <meyering@redhat.com>
11443
11444         bootstrap: avoid build failure when $GZIP is set
11445         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11446         program name.  If defined at all, it is supposed to list gzip options.
11447         Reported by Alan Curry in http://debbugs.gnu.org/8609
11448
11449 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11450
11451         readme-release: new module with release instructions
11452         * modules/readme-release: New module.
11453         * top/README-release: New file, from coreutils, grep, diffutils.
11454         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11455
11456 2011-05-02  Eric Blake  <eblake@redhat.com>
11457
11458         fflush: also replace fclose when fixing fflush
11459         * modules/fflush (Depends-on): Add fclose.
11460         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11461         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11462         memstreams with no backing fd.
11463         * doc/posix-functions/fclose.texi (fclose): Document the use of
11464         fflush module to fix the bug.
11465         * tests/test-fclose.c (main): Relax test when fclose is used in
11466         isolation.
11467
11468         fclose: add some tests
11469         * modules/fclose-tests: New test module.
11470         * tests/test-fclose.c: New file.
11471         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11472
11473         fclose: reduced dependencies
11474         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11475         simpler lseek.
11476         * lib/fclose.c (rpl_fclose): Likewise.
11477         Reported by Simon Josefsson.
11478
11479         exit: drop remaining clients
11480         * modules/argmatch (Depends-on): Replace exit with stdlib.
11481         * modules/copy-file (Depends-on): Likewise.
11482         * modules/execute (Depends-on): Likewise.
11483         * modules/exitfail (Depends-on): Likewise.
11484         * modules/obstack (Depends-on): Likewise.
11485         * modules/pagealign_alloc (Depends-on): Likewise.
11486         * modules/pipe-filter-gi (Depends-on): Likewise.
11487         * modules/pipe-filter-ii (Depends-on): Likewise.
11488         * modules/savewd (Depends-on): Likewise.
11489         * modules/spawn-pipe (Depends-on): Likewise.
11490         * modules/wait-process (Depends-on): Likewise.
11491         * modules/xsetenv (Depends-on): Likewise.
11492         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11493         * modules/git-merge-changelog (Depends-on): Likewise.
11494         * modules/long-options (Depends-on): Likewise.
11495         * modules/pt_chown (Depends-on): Likewise.
11496         * modules/sysexits (Depends-on): Likewise.
11497
11498         freading: relax license from LGPLv3+ to LGPLv2+
11499         * modules/freading (License): Relax LGPL version.
11500
11501 2011-05-02  Bruno Haible  <bruno@clisp.org>
11502
11503         fchdir: Remove unused dependencies.
11504         * modules/fchdir (Depends-on): Remove include_next.
11505
11506 2011-05-02  Bruno Haible  <bruno@clisp.org>
11507
11508         gnulib-tool: Refactor.
11509         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11510         from func_emit_autoconf_snippets.
11511         (func_emit_autoconf_snippets): Use it.
11512
11513 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11514
11515         * NEWS: Document removal of 'exit'.
11516         * modules/exit: Remove file.
11517
11518 2011-05-01  Bruno Haible  <bruno@clisp.org>
11519
11520         Update DEPENDENCIES.
11521         * DEPENDENCIES (gettext): Recommend the newest release.
11522         Reported by Simon Josefsson.
11523
11524 2011-05-01  Bruno Haible  <bruno@clisp.org>
11525
11526         gnulib-tool: Reduce code duplication.
11527         * gnulib-tool (func_emit_autoconf_snippets): New function.
11528         (func_import, func_create_testdir): Use it.
11529
11530 2011-04-30  Eric Blake  <eblake@redhat.com>
11531
11532         fclose: don't fail on non-seekable input stream
11533         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11534         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11535         since fflush is allowed to fail in that case.
11536
11537 2011-04-30  Bruno Haible  <bruno@clisp.org>
11538
11539         dup3: cleanup
11540         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11541
11542 2011-04-30  Bruno Haible  <bruno@clisp.org>
11543
11544         netdb: Make it work in C++ mode.
11545         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11546         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11547         module.
11548         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11549         gl_MODULE_INDICATOR_FOR_TESTS.
11550         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11551         * modules/netdb-c++-tests: New file.
11552         * tests/test-netdb-c++.cc: New file.
11553
11554 2011-04-30  Bruno Haible  <bruno@clisp.org>
11555
11556         New modules 'vfscanf', 'vscanf'.
11557         * modules/vfscanf: New file.
11558         * modules/vscanf: New file.
11559         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11560         here.
11561         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11562         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11563
11564 2011-04-30  Bruno Haible  <bruno@clisp.org>
11565
11566         passfd: Add comments.
11567         * lib/passfd.c: Add comments about platforms.
11568
11569 2011-04-30  Bruno Haible  <bruno@clisp.org>
11570
11571         sys_uio: Make <sys/uio.h> self-contained.
11572         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11573         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11574
11575 2011-04-30  Bruno Haible  <bruno@clisp.org>
11576
11577         sys_socket: Ensure 'struct iovec' definition.
11578         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11579         <sys/socket.h>.
11580         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11581
11582 2011-04-30  Bruno Haible  <bruno@clisp.org>
11583
11584         sys_uio: Protect definition of 'struct iovec'.
11585         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11586         it as a C struct.
11587
11588 2011-04-30  Bruno Haible  <bruno@clisp.org>
11589
11590         manywarnings: fix indentation
11591         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11592
11593 2011-04-30  Pádraig Brady <P@draigBrady.com>
11594
11595         manywarnings: add -Wno-missing-field-initializers if needed.
11596         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11597         option if it's needed to allow initialization with { 0, }
11598
11599 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11600
11601         announce-gen: cosmetic improvement
11602         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11603
11604 2011-04-29  Jim Meyering  <meyering@redhat.com>
11605
11606         vc-list-files: indent with spaces, not TABs
11607         * build-aux/vc-list-files: Convert leading TABs to spaces,
11608         to match the style of most other files in gnulib.
11609
11610         announce-gen: indent with spaces, not TABs
11611         * build-aux/announce-gen: Convert all TABs to spaces, to match
11612         the style of most other files in gnulib.
11613
11614 2011-04-29  Eric Blake  <eblake@redhat.com>
11615
11616         quotearg: avoid uninitialized variable use
11617         * lib/quotearg.c (quoting_options_from_style): Initialize
11618         remaining fields, and ensure that custom styles are only used via
11619         quoting_options rather than quoting_style.
11620
11621 2011-04-29  Jim Meyering  <meyering@redhat.com>
11622
11623         maint.mk: remove unused VC-tag variable
11624         * top/maint.mk (VC-tag): Remove unused variable.
11625
11626 2011-04-29  Bruno Haible  <bruno@clisp.org>
11627
11628         netdb: fix gai_strerror replacements
11629         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11630         * modules/netdb: Substitute it.
11631
11632 2011-04-29  Jim Meyering  <meyering@redhat.com>
11633
11634         test-getcwd.c: avoid new set-but-not-used warning
11635         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11636         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11637         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11638         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11639
11640         test-hash.c: avoid a new shadowing warning
11641         * tests/test-hash.c (main): Don't shadow "dup".
11642
11643 2011-04-28  Eric Blake  <eblake@redhat.com>
11644
11645         getaddrinfo: fix gai_strerror signature
11646         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11647         and work around mingw with UNICODE defined.
11648         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11649         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11650         * modules/netdb (Makefile.am): Substitute it.
11651         * lib/netdb.in.h (gai_strerror): Declare replacement.
11652         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11653         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11654         the fix.
11655
11656         getsockopt: avoid compiler warning
11657         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11658         Reported by Matthias Bolte.
11659
11660         tests: drop unused link dependency
11661         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11662         * modules/dirent-safer-tests (Makefile.am): Likewise.
11663         * modules/fdopendir-tests (Makefile.am): Likewise.
11664         * modules/mkfifoat-tests (Makefile.am): Likewise.
11665         * modules/openat-safer-tests (Makefile.am): Likewise.
11666         * modules/openat-tests (Makefile.am): Likewise.
11667         * modules/readlinkat-tests (Makefile.am): Likewise.
11668         * modules/symlinkat-tests (Makefile.am): Likewise.
11669         * modules/linkat-tests (Makefile.am): Likewise.
11670         (Depends-on): Switch to filenamecat-lgpl.
11671         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11672         LIBINTL.
11673         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11674         * tests/test-linkat.c (main): Don't require xalloc.
11675
11676         hash, mgetgroups: drop xalloc dependency
11677         * lib/hash.c (includes): Adjust includes.
11678         * lib/mgetgroups.c (includes): Likewise.
11679         (xgetgroups): Move...
11680         * lib/xgetgroups.c: ...to new file.
11681         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11682         * modules/xgetgroups: New file, split from...
11683         * modules/mgetgroups: ...here.
11684         (Depends-on): Add xalloc-oversized.
11685         * modules/hash (Depends-on): Likewise.
11686         * modules/hash-tests (Depends-on): Drop xalloc.
11687         (test_hash_LDADD): Drop unused library.
11688         * tests/test-hash.c (main): Break xalloc dependency.
11689         (includes): Drop unused include.
11690
11691         xalloc-oversized: new module
11692         * modules/xalloc-oversized: New module.
11693         * modules/xalloc (Depends-on): Add it.
11694         * lib/xalloc.h (xalloc_oversized): Move...
11695         * lib/xalloc-oversized.h: ...into new file.
11696
11697         utimecmp: drop dependency on xmalloc
11698         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11699         due to memory pressure.
11700         * modules/utimecmp (Depends-on): Drop xalloc.
11701
11702 2011-04-27  Eric Blake  <eblake@redhat.com>
11703
11704         getcwd: fix mingw bugs
11705         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11706         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11707         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11708
11709 2011-04-27  Bruno Haible  <bruno@clisp.org>
11710
11711         mkstemps: Ensure declaration on MacOS X 10.5.
11712         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11713         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11714         MacOS X.
11715
11716 2011-04-27  Bruno Haible  <bruno@clisp.org>
11717
11718         mkstemp: More documentation.
11719         * doc/posix-functions/mkstemp.texi: Document header file problem on
11720         MacOS X.
11721
11722 2011-04-27  Bruno Haible  <bruno@clisp.org>
11723
11724         mkstemp: Tweak configure message when cross-compiling.
11725         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11726         result as a guess.
11727
11728 2011-04-27  Bruno Haible  <bruno@clisp.org>
11729
11730         clean-temp: Clarify what it does.
11731         * lib/clean-temp.h: Add more comments.
11732         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11733         module.
11734         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11735         * doc/glibc-functions/mkstemps.texi: Likewise.
11736         * doc/glibc-functions/mkostemps.texi: Likewise.
11737
11738 2011-04-27  Eric Blake  <eblake@redhat.com>
11739
11740         fchdir: avoid extra chdir and fix test
11741         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11742         getcwd-lgpl.
11743         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11744         have to be canonical.
11745         (canonicalize_file_name): Drop unused macro.
11746         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11747
11748         filenamecat-lgpl: fix licence
11749         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11750         when it was first created.
11751
11752         linkat, renameat: add missing dependency
11753         * modules/linkat (Depends-on): Require getcwd-lgpl.
11754         * modules/renameat (Depends-on): Likewise.
11755
11756         tests: reduce dependencies
11757         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11758         * tests/test-renameat.c (main): Likewise.
11759         * modules/linkat-tests (Depends-on): Relax dependency.
11760         * modules/renameat-tests (Depends-on): Likewise.
11761         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11762         dependency explicit.
11763
11764         save-cwd: reduce default dependency
11765         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11766         * lib/save-cwd.c: Update comments.
11767         * NEWS: Document the semantic change.
11768
11769         getcwd: enhance tests
11770         * tests/test-getcwd-lgpl.c: New file, taken from...
11771         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11772         repeat long path stress tests from m4 probe.
11773         * modules/getcwd-lgpl-tests: New module.
11774         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11775         * m4/getcwd-abort-bug.m4: Update comment.
11776         * m4/getcwd-path-max.m4: Likewise.
11777
11778         getcwd-lgpl: new module
11779         * modules/getcwd-lgpl: New module.
11780         * lib/getcwd-lgpl.c: New file.
11781         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11782         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11783         * modules/getcwd (configure.ac): Set C witness.
11784         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11785
11786         getcwd: tweak comments
11787         * m4/getcwd-abort-bug.m4: Fix comments.
11788         * m4/getcwd-path-max.m4: Likewise.
11789         * m4/getcwd.m4: Likewise.
11790
11791 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11792         and Eric Blake  <eblake@redhat.com>
11793
11794         mkstemp: replace if system version uses wrong permissions
11795         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11796         read/write mode bits set in file created by mkstemp.
11797         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11798
11799 2011-04-27  Eric Blake  <eblake@redhat.com>
11800
11801         passfd: avoid compiler warning
11802         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11803         Reported by Laine Stump.
11804
11805 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11806
11807         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11808         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11809
11810 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11811         and Eric Blake  <eblake@redhat.com>
11812
11813         mkstemp: mention clean-temp module
11814         * lib/mkstemp.c: Add comment.
11815         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11816
11817 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11818
11819         inttypes: also provide default values for 32-bit tests
11820         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11821         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11822
11823 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11824
11825         strtoumax: remove dependency on strtoimax
11826         This is like the strtoull change of yesterday.
11827         * modules/strtoumax (Files): Add lib/strtoimax.c.
11828         (Depends-on): Remove strtoimax and add verify.
11829
11830         inttypes-incomplete: new module
11831         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11832         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11833         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11834         of gl_INTTYPES_H.
11835         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11836         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11837         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11838         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11839         * modules/strtoumax, modules/xstrtol (Depends-on):
11840         Depend on inttypes-incomplete, not inttypes.
11841         * modules/inttypes-incomplete: New module, containing the contents
11842         of the old modules/inttypes module, except that the Files: section
11843         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11844         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11845         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11846         (Depends-on): Depend only on inttypes-incomplete.
11847         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11848
11849         inttypes: omit now-redundant strtoimax and strtoumax work
11850         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11851         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11852
11853         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11854         This supports apps that need pointers to strtoimax and strtoumax,
11855         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11856         nonexistent functions.  See
11857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11858         et seq.
11859         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11860         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11861         a macro.
11862         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11863
11864 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11865
11866         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11867
11868 2011-04-25  Bruno Haible  <bruno@clisp.org>
11869
11870         strtol, strtoul: Mark modules as obsolete.
11871         * modules/strtol (Status, Notice): New sections.
11872         * modules/strtoul (Status, Notice): New sections.
11873
11874 2011-04-25  Bruno Haible  <bruno@clisp.org>
11875
11876         strtod: Remove check for strtod, unless supporting old platforms.
11877         * modules/strtod-obsolete: New file.
11878         * m4/strtod-obsolete.m4: New file.
11879         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11880         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11881         * modules/strtod (Depends-on): Add strtod-obsolete.
11882         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11883
11884 2011-04-25  Bruno Haible  <bruno@clisp.org>
11885
11886         strcase: Make module obsolete.
11887         * modules/strcase (Status, Notice): New sections.
11888
11889 2011-04-25  Bruno Haible  <bruno@clisp.org>
11890
11891         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11892         * modules/dup2-obsolete: New file.
11893         * m4/dup2-obsolete.m4: New file.
11894         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11895         gl_FUNC_DUP2_OBSOLETE is not also defined.
11896         * modules/dup2 (Depends-on): Add dup2-obsolete.
11897         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11898
11899 2011-04-25  Bruno Haible  <bruno@clisp.org>
11900
11901         strnlen: Avoid memchr related link error on old obsolete platforms.
11902         * modules/memchr-obsolete: New file.
11903         * m4/memchr-obsolete.m4: New file.
11904         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11905         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11906         * modules/memchr (Depends-on): Add memchr-obsolete.
11907         * modules/strnlen (Depends-on): Likewise.
11908         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11909
11910 2011-04-25  Jim Meyering  <meyering@redhat.com>
11911
11912         maint.mk: makefile_at_at_check extend and clean up
11913         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11914         in addition to */Makefile.am.
11915         Exempt legitimate uses of @VAR@ notation, e.g.,
11916         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11917         Remove obsolete coreutils-specific comment.
11918         Prompted by discussion here:
11919         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11920
11921 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11922
11923         strtoul: remove dependency on strtol
11924         This is so that 'configure' need not check for strtol merely because
11925         the application needs strtoul.
11926         * modules/strtoul (Files): Add lib/strtol.c.
11927         (Depends-on): Remove strtol.
11928
11929         strtoull: remove dependency on strtoul
11930         This is like the strtoll change.
11931         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11932         (Depends-on): Remove strtoul.
11933
11934         strtoll: remove dependency on strtol
11935         This is so that 'configure' need not check for strtol merely because
11936         the application needs strtoll.
11937         * modules/strtoll (Files): Add lib/strtol.c.
11938         (Depends-on): Remove strtol.
11939
11940 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11941
11942         inttypes: Move some configure check to module 'imaxdiv'.
11943         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11944         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11945         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11946
11947 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11948
11949         inttypes: Move some configure check to module 'imaxabs'.
11950         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11951         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11952         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11953
11954 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11955
11956         inttypes: Remove configure tests that are not needed since 2009-12-31.
11957         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11958         gl_cv_header_working_inttypes_h.
11959
11960 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11961
11962         * modules/strnlen (Depends-on): Remove memchr.
11963         The strnlen implementation doesn't need the memchr module's fixes; see
11964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11965
11966         strtol: remove dependency on wchar
11967         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11968         * modules/strtol (Depends-on): Remove wchar.
11969
11970 2011-04-21  Eric Blake  <eblake@redhat.com>
11971
11972         passfd: fix test regression on Linux
11973         * modules/passfd-tests (configure.ac): Correct socketpair check.
11974
11975         passfd: speed up configure and drop unused code
11976         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11977         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11978         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11979         Instead of probing at configure for unix_scm_rights_bsd44_way,
11980         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11981         check to a struct member probe.
11982         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11983         (sendfd, recvfd): Update preprocessor checks.
11984         * modules/passfd (Files): Reflect rename, and drop unused file.
11985         (Depends-on): Drop unused dependency.
11986
11987         passfd: allow compilation on mingw
11988         * modules/sys_socket (Depends-on): Add sys_uio.
11989         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11990         iovec and a minimal struct msghdr.
11991         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11992         * tests/test-sys_socket.c (main): Enhance test.
11993         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11994         guaranteed to provide what we need.
11995         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11996         * modules/passfd-tests (Depends-on): Add sys_wait.
11997         * tests/test-passfd.c (main): Skip test on mingw, for now.
11998         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11999         partial 'struct msghdr' implementation.
12000
12001         sys_uio: new module
12002         * modules/sys_uio: New module.
12003         * modules/sys_uio-tests: Likewise.
12004         * lib/sys_uio.in.h: New file.
12005         * m4/sys_uio_h.m4: Likewise.
12006         * tests/test-sys_uio.c: Likewise.
12007         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12008         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12009
12010 2011-04-20  Jim Meyering  <meyering@redhat.com>
12011
12012         useless-if-before-free: avoid false-positive
12013         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12014         disjunct so that it too requires a terminating ";".  Without that,
12015         this script would identify as useless one statement from gcc that
12016         was not:
12017           if (aligned_ptr)
12018             free (((void **) aligned_ptr) [-1]);
12019
12020 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12021
12022         doc: update users.txt.
12023         * users.txt: Add barcode.
12024
12025 2011-04-19  Bruno Haible  <bruno@clisp.org>
12026
12027         ioctl: Remove link dependency on native Windows.
12028         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12029         (gl_close_fn, gl_ioctl_fn): New types.
12030         (struct fd_hook): Renamed from struct close_hook. Change type of
12031         private_close_fn field. Add private_ioctl_fn field.
12032         (close_hook_fn): Add parameter for primary close method.
12033         (execute_close_hooks, execute_all_close_hooks): Likewise.
12034         (ioctl_hook_fn): New type.
12035         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12036         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12037         argument.
12038         (unregister_fd_hook): Renamed from unregister_close_hook.
12039         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12040         Don't include <unistd.h>.
12041         (close): Remove undef.
12042         (anchor): Update.
12043         (execute_close_hooks): Add argument for primary close method.
12044         (execute_all_close_hooks): Likewise.
12045         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12046         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12047         argument. Allow each argument to be NULL.
12048         (unregister_fd_hook): Renamed from unregister_close_hook.
12049         * lib/close.c (rpl_close): Pass 'close' function pointer to
12050         execute_all_close_hooks.
12051         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12052         (primary_ioctl): New function.
12053         (ioctl): Don't call ioctlsocket here. Instead, call
12054         execute_all_ioctl_hooks.
12055         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12056         close method.
12057         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12058         (fd_sockets_hook): Renamed from close_sockets_hook.
12059         (gl_sockets_startup, gl_sockets_cleanup): Update.
12060         * modules/fd-hook: Renamed from modules/close-hook. Update.
12061         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12062         * modules/sockets (Depends-on): Likewise.
12063         * modules/ioctl (Depends-on): Add fd-hook.
12064         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12065         GNULIB_SOCKET.
12066
12067 2011-04-19  Bruno Haible  <bruno@clisp.org>
12068
12069         Move the support of O_NONBLOCK in open() to the 'open' module.
12070         * modules/nonblocking (Depends-on): Remove 'open'.
12071         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12072         gl_cv_have_open_O_NONBLOCK.
12073         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12074         O_NONBLOCK support.
12075         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12076
12077 2011-04-17  Bruno Haible  <bruno@clisp.org>
12078
12079         pipe2: Simplify code.
12080         * lib/pipe2.c (pipe2): Reduce code duplication.
12081
12082 2011-04-17  Bruno Haible  <bruno@clisp.org>
12083
12084         nonblocking: Add comment.
12085         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12086
12087 2011-04-17  Bruno Haible  <bruno@clisp.org>
12088
12089         nonblocking: Add tests for sockets.
12090         * tests/test-nonblocking-socket.sh: New file.
12091         * tests/test-nonblocking-socket-main.c: New file.
12092         * tests/test-nonblocking-socket-child.c: New file.
12093         * tests/test-nonblocking-socket.h: New file.
12094         * tests/socket-server.h: New file.
12095         * tests/socket-client.h: New file.
12096         * modules/nonblocking-socket-tests: New file.
12097         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12098
12099 2011-04-17  Bruno Haible  <bruno@clisp.org>
12100
12101         nonblocking: Add tests for pipes.
12102         * tests/test-nonblocking-pipe.sh: New file.
12103         * tests/test-nonblocking-pipe-main.c: New file.
12104         * tests/test-nonblocking-pipe-child.c: New file.
12105         * tests/test-nonblocking-pipe.h: New file.
12106         * tests/test-nonblocking-writer.h: New file.
12107         * tests/test-nonblocking-reader.h: New file.
12108         * tests/test-nonblocking-misc.h: New file.
12109         * modules/nonblocking-pipe-tests: New file.
12110         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12111
12112 2011-04-16  Bruno Haible  <bruno@clisp.org>
12113
12114         gettext: Clarify the needed programmer actions.
12115         * modules/gettext (Notice): New field.
12116         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12117
12118 2011-04-16  Bruno Haible  <bruno@clisp.org>
12119
12120         strchrnul: Tweak last commit.
12121         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12122         bug.
12123         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12124         as in _GL_FUNCDECL_SYS.
12125         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12126         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12127
12128 2011-04-15  Eric Blake  <eblake@redhat.com>
12129
12130         strchrnul: work around cygwin bug
12131         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12132         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12133         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12134         * modules/string (Makefile.am): Substitute it.
12135         * lib/string.in.h (strchrnul): Use it.
12136
12137 2011-04-15  Bruno Haible  <bruno@clisp.org>
12138
12139         Don't require lib/stdio-write.c when only module 'stdio' is used.
12140         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12141         invocation.
12142         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12143
12144 2011-04-14  Bruno Haible  <bruno@clisp.org>
12145
12146         Support non-blocking pipe I/O in read() on native Windows.
12147         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12148         (read): New declaration.
12149         * lib/read.c: New file.
12150         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12151         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12152         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12153         vscanf): New declarations.
12154         * lib/stdio-read.c: New file.
12155         * m4/read.m4: New file.
12156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12157         REPLACE_READ.
12158         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12159         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12160         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12161         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12162         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12163         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12164         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12165         * modules/read: New file.
12166         * modules/nonblocking (Files): Add lib/stdio-read.c.
12167         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12168         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12169         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12170         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12171         * modules/pread (Depends-on): Add read.
12172         * modules/safe-read (Depends-on): Likewise.
12173         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12174         gets, scanf, vfscanf, vscanf): Verify signatures.
12175         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12176         problem with non-blocking pipes.
12177         * doc/posix-functions/fgetc.texi: Likewise.
12178         * doc/posix-functions/fgets.texi: Likewise.
12179         * doc/posix-functions/fread.texi: Likewise.
12180         * doc/posix-functions/fscanf.texi: Likewise.
12181         * doc/posix-functions/getc.texi: Likewise.
12182         * doc/posix-functions/getchar.texi: Likewise.
12183         * doc/posix-functions/gets.texi: Likewise.
12184         * doc/posix-functions/scanf.texi: Likewise.
12185         * doc/posix-functions/vfscanf.texi: Likewise.
12186         * doc/posix-functions/vscanf.texi: Likewise.
12187
12188 2011-04-14  Bruno Haible  <bruno@clisp.org>
12189
12190         Support non-blocking pipe I/O in write() on native Windows.
12191         * lib/write.c (rpl_write): Split a write request that failed merely
12192         because the byte count was larger than the pipe buffer's size.
12193         * doc/posix-functions/write.texi: Mention the problem with large byte
12194         counts.
12195
12196 2011-04-14  Bruno Haible  <bruno@clisp.org>
12197
12198         wchar: Ensure that wchar_t gets defined on uClibc.
12199         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12200         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12201
12202 2011-04-13  Bruno Haible  <bruno@clisp.org>
12203
12204         safe-write, full-read: Avoid unnecessary compilation units.
12205         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12206         (Depends-on): Remove safe-read. Add ssize_t.
12207         * modules/full-read (Files): Add lib/full-write.c.
12208         (Depends-on): Add full-write.
12209
12210 2011-04-13  Bruno Haible  <bruno@clisp.org>
12211
12212         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12213         * modules/pwrite (Depends-on): Add 'write'.
12214
12215 2011-04-13  Bruno Haible  <bruno@clisp.org>
12216
12217         Support non-blocking pipe I/O in write() on native Windows.
12218         * lib/unistd.in.h (write): Enable replacement also if
12219         GNULIB_UNISTD_H_NONBLOCKING is 1.
12220         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12221         (rpl_write): When failing to write on a non-blocking pipe, change
12222         errno from ENOSPC to EAGAIN.
12223         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12224         putchar, puts, vfprintf, vprintf): Enable replacement also if
12225         GNULIB_STDIO_H_NONBLOCKING is 1.
12226         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12227         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12228         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12229         CALL_WITH_SIGPIPE_EMULATION.
12230         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12231         * m4/nonblocking.m4: New file.
12232         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12233         for non-blocking I/O support.
12234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12235         GNULIB_UNISTD_H_NONBLOCKING.
12236         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12237         required for non-blocking I/O support.
12238         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12239         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12240         lib/stdio-write.c, m4/asm-underscore.m4.
12241         (Depends-on): Add stdio, unistd.
12242         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12243         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12244         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12245         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12246         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12247         problem with non-blocking pipes.
12248         * doc/posix-functions/fputc.texi: Likewise.
12249         * doc/posix-functions/fputs.texi: Likewise.
12250         * doc/posix-functions/fwrite.texi: Likewise.
12251         * doc/posix-functions/printf.texi: Likewise.
12252         * doc/posix-functions/putc.texi: Likewise.
12253         * doc/posix-functions/putchar.texi: Likewise.
12254         * doc/posix-functions/puts.texi: Likewise.
12255         * doc/posix-functions/vfprintf.texi: Likewise.
12256         * doc/posix-functions/vprintf.texi: Likewise.
12257         * doc/posix-functions/write.texi: Likewise.
12258
12259 2011-04-10  Jim Meyering  <meyering@redhat.com>
12260
12261         maint.mk: prohibit doubled words
12262         Detect them also when they're separated by a newline.
12263         There are 3 ways to customize it:
12264           - disable the test on a per file basis, as usual with rules using
12265             $(VC_LIST_EXCEPT)
12266           - replace the default doubled-word-selecting regexp (affects all files)
12267           - ignore a particular file-vs-doubled-word match
12268         I nearly used that last one to ignore the "is is" match in
12269         coreutils' NEWS file, since the text was "ls -is is ..."
12270         To do that, I would have added this line to cfg.mk:
12271           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12272         but it would have ignored any "is is" match in NEWS.
12273         Low probability, but still...
12274         Instead, I changed the text, slightly:
12275           -  ls -is is now consistent with ls -lis in ignoring values returned
12276           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12277         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12278         (prohibit_doubled_word_): Define.
12279         (sc_prohibit_doubled_word): New rule.
12280         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12281
12282 2011-04-10  Jim Meyering  <meyering@redhat.com>
12283
12284         maint: fix doubled-word typo in comment
12285         * m4/gethostname.m4: s/is is/it is/
12286         * m4/getdomainname.m4: Likewise.
12287
12288 2011-04-10  Jim Meyering  <meyering@redhat.com>
12289
12290         maint: remove doubled word: s/it it/it/
12291         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12292
12293 2011-04-10  Jim Meyering  <meyering@redhat.com>
12294
12295         maint.mk: remove useless semicolon and backslash
12296         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12297         semicolon and backslash.
12298
12299 2011-04-10  Bruno Haible  <bruno@clisp.org>
12300
12301         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12302         * modules/stdint-tests (Depends-on): Add wchar.
12303
12304 2011-04-10  Jim Meyering  <meyering@redhat.com>
12305
12306         maint: remove doubled words in comments, e.g., s/a a/a/
12307         * lib/strptime.c (day_of_the_week): s/the the/the/
12308         * tests/test-chown.h (test_chown): s/a a/a/
12309
12310         test-chown.h: correct a cast
12311         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12312         when the destination is a stat.st_gid.
12313
12314 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12315
12316         getaddrinfo: Fix test for sa_len member.
12317         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12318         include <sys/types.h> before <sys/socket.h>.
12319
12320 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12321
12322         maint: change "can not" to "cannot"
12323         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12324         boundaries.
12325
12326 2011-04-09  Jim Meyering  <meyering@redhat.com>
12327
12328         maint: change "a a" to "a"
12329         * tests/test-lchown.h (test_lchown): s/a a/a/
12330
12331         maint.mk: prohibit \<the the\>
12332         * top/maint.mk (sc_prohibit_the_the): New rule.
12333
12334         maint: fix "the the" in comment
12335         * lib/count-one-bits.h: s/the the/the/
12336
12337         maint: change "can not" to "cannot"
12338         But do not change the occurrences in maintain.texi or in
12339         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12340         * doc/gnulib-tool.texi: s/can not/cannot/
12341         * doc/posix-functions/accept.texi (accept): Likewise.
12342         * doc/posix-functions/socket.texi (socket): Likewise.
12343         * lib/mbrtowc.c: Likewise.
12344
12345         maint.mk: prohibit use of "can not"
12346         * top/maint.mk (sc_prohibit_can_not): New rule.
12347         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12348
12349 2011-04-09  Bruno Haible  <bruno@clisp.org>
12350
12351         careadlinkat: Guard against misuse of careadlinkatcwd.
12352         * lib/careadlinkat.c: Include <stdlib.h>.
12353         (careadlinkatcwd): Check that the fd argument is as expected.
12354
12355 2011-04-09  Bruno Haible  <bruno@clisp.org>
12356
12357         careadlinkat: Use common coding style.
12358         * lib/careadlinkat.c: Move gnulib includes after system includes.
12359
12360 2011-04-09  Bruno Haible  <bruno@clisp.org>
12361
12362         careadlinkat: Clarify specification.
12363         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12364         (careadlinkatcwd): Add comment.
12365         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12366
12367 2011-04-09  Bruno Haible  <bruno@clisp.org>
12368
12369         areadlinkat: Avoid link error on many platforms.
12370         * modules/areadlinkat (Depends-on): Add areadlink.
12371
12372 2011-04-09  Bruno Haible  <bruno@clisp.org>
12373
12374         allocator, careadlinkat: Fix double-inclusion guard.
12375         * lib/allocator.h: Fix double-inclusion guard.
12376         * lib/careadlinkat.h: Likewise.
12377
12378 2011-04-09  Bruno Haible  <bruno@clisp.org>
12379
12380         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12381         * lib/relocwrapper.c: Update dependencies hierarchy.
12382         * build-aux/install-reloc: Update list of files to be compiled.
12383         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12384         lib/allocator.[hc].
12385
12386 2011-04-08  Eric Blake  <eblake@redhat.com>
12387
12388         strftime: silence gnulib-tool warning
12389         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12390
12391 2011-04-08  Bruno Haible  <bruno@clisp.org>
12392
12393         verify: Fix syntax error with GCC 4.6 in C++ mode.
12394         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12395         (HAVE_STATIC_ASSERT): New macro.
12396         (verify_true, verify): Use 'static_assert' if it is supported and
12397         '_Static_assert' is not supported.
12398
12399 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12400
12401         allocator: New module.
12402         * modules/allocator, lib/allocator.c: New files.
12403         * lib/allocator.h (stdlib_allocator): New decl.
12404         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12405         Remove.  Do not include <stdlib.h>.
12406         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12407         * modules/careadlinkat (Files): Remove lib/allocator.h.
12408         (Depends-on): Add allocator.
12409
12410         stdlib: let modules use system malloc, realloc
12411         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12412         if !_GL_USE_STDLIB_ALLOC.
12413         (malloc, realloc): Limit this change to a smaller scope.
12414
12415         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12416         (malloc, realloc): Don't #undef; no longer needed.
12417         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12418         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12419         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12420         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12421         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12422         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12423         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12424         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12425
12426         careadlinkat: rename members to avoid problem
12427         * lib/allocator.h (struct allocator): Rename members from
12428         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12429         and realloc are #define'd.  Reported by Eric Blake in
12430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12431         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12432
12433 2011-04-08  Eric Blake  <eblake@redhat.com>
12434
12435         nonblocking: reduce dependency
12436         * tests/test-nonblocking.c: Only test sockets when in use.
12437         * modules/nonblocking-tests (Depends-on): Drop socket.
12438         (Makefile.am): Link even if sockets are not present.
12439         * modules/pipe2-tests (Makefile.am): Likewise.
12440         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12441
12442         pipe2: fix O_NONBLOCK support on mingw
12443         * modules/pipe2 (Depends-on): Add nonblocking.
12444         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12445         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12446         * tests/test-nonblocking.c (main): Likewise.
12447         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12448
12449         fcntl-h: fix O_ACCMODE on cygwin
12450         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12451         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12452
12453         pipe-filter: drop O_NONBLOCK workarounds
12454         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12455         * modules/pipe-filter-ii (Depends-on): Likewise.
12456         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12457
12458         nonblocking: provide O_NONBLOCK for mingw
12459         * modules/nonblocking (Depends-on): Add open.
12460         (configure.ac): Set new witness macro.
12461         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12462         * modules/fcntl-h (Makefile.am): Substitute it.
12463         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12464         nonblocking module is in use.
12465         * lib/nonblocking.c: Adjust portability test.
12466         * lib/open.c (open): Don't let native open see gnulib flag.
12467         * tests/test-fcntl-h.c (main): Enhance test.
12468         * tests/test-open.h (test_open): Likewise.
12469         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12470
12471         careadlinkat: fix compilation error on mingw
12472         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12473         within struct allocator.
12474
12475 2011-04-06  Eric Blake  <eblake@redhat.com>
12476
12477         binary-io: relicense under LGPLv2+
12478         * modules/binary-io (License): Relax to LGPLv2+.
12479         Requested for libvirt, and required by pipe2.
12480
12481 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12482
12483         verify: use _Static_assert if available
12484         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12485         (verify_true, verify): Use it if available.  This generates better
12486         diagnostics with GCC 4.6.0 and later.
12487
12488 2011-04-05  Bruno Haible  <bruno@clisp.org>
12489
12490         Remove leftover generated .h files after config.status changed.
12491
12492         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12493         GL_GENERATE_ALLOCA_H.
12494         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12495         GL_GENERATE_ALLOCA_H evaluates to false.
12496
12497         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12498         GL_GENERATE_ARGZ_H.
12499         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12500         evaluates to false.
12501
12502         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12503         GL_GENERATE_BYTESWAP_H.
12504         * modules/byteswap (Makefile.am): Remove byteswap.h if
12505         GL_GENERATE_BYTESWAP_H evaluates to false.
12506
12507         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12508         GL_GENERATE_ERRNO_H.
12509         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12510         evaluates to false.
12511
12512         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12513         GL_GENERATE_FLOAT_H.
12514         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12515         evaluates to false.
12516
12517         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12518         GL_GENERATE_FNMATCH_H.
12519         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12520         GL_GENERATE_FNMATCH_H evaluates to false.
12521
12522         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12523         GL_GENERATE_GLOB_H.
12524         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12525         evaluates to false.
12526
12527         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12528         automake conditional GL_GENERATE_ICONV_H.
12529         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12530         evaluates to false.
12531
12532         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12533         GL_GENERATE_NETINET_IN_H.
12534         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12535         GL_GENERATE_NETINET_IN_H evaluates to false.
12536
12537         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12538         conditional GL_GENERATE_PTHREAD_H.
12539         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12540         * modules/pthread (Makefile.am): Remove pthread.h if
12541         GL_GENERATE_PTHREAD_H evaluates to false.
12542
12543         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12544         GL_GENERATE_SCHED_H.
12545         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12546         evaluates to false.
12547
12548         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12549         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12550         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12551         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12552
12553         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12554         GL_GENERATE_STDARG_H.
12555         * modules/stdarg (Makefile.am): Remove stdarg.h if
12556         GL_GENERATE_STDARG_H evaluates to false.
12557
12558         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12559         GL_GENERATE_STDBOOL_H.
12560         * modules/stdbool (Makefile.am): Remove stdbool.h if
12561         GL_GENERATE_STDBOOL_H evaluates to false.
12562
12563         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12564         conditional GL_GENERATE_STDDEF_H.
12565         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12566         * modules/stddef (Makefile.am): Remove stddef.h if
12567         GL_GENERATE_STDDEF_H evaluates to false.
12568
12569         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12570         GL_GENERATE_STDINT_H.
12571         * modules/stdint (Makefile.am): Remove stdint.h if
12572         GL_GENERATE_STDINT_H evaluates to false.
12573
12574         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12575         GL_GENERATE_SYSEXITS_H.
12576         * modules/sysexits (Makefile.am): Remove sysexits.h if
12577         GL_GENERATE_SYSEXITS_H evaluates to false.
12578
12579         Reported by Karl Berry and Ralf Wildenhues.
12580
12581 2011-04-05  Bruno Haible  <bruno@clisp.org>
12582
12583         Ensure to rebuild generated .h files when config.status has changed.
12584         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12585         config.status.
12586         * modules/ctype (Makefile.am): Likewise.
12587         * modules/dirent (Makefile.am): Likewise.
12588         * modules/errno (Makefile.am): Likewise.
12589         * modules/fcntl-h (Makefile.am): Likewise.
12590         * modules/float (Makefile.am): Likewise.
12591         * modules/getopt-posix (Makefile.am): Likewise.
12592         * modules/glob (Makefile.am): Likewise.
12593         * modules/iconv-h (Makefile.am): Likewise.
12594         * modules/inttypes (Makefile.am): Likewise.
12595         * modules/langinfo (Makefile.am): Likewise.
12596         * modules/locale (Makefile.am): Likewise.
12597         * modules/math (Makefile.am): Likewise.
12598         * modules/netdb (Makefile.am): Likewise.
12599         * modules/netinet_in (Makefile.am): Likewise.
12600         * modules/poll-h (Makefile.am): Likewise.
12601         * modules/pthread (Makefile.am): Likewise.
12602         * modules/pty (Makefile.am): Likewise.
12603         * modules/sched (Makefile.am): Likewise.
12604         * modules/search (Makefile.am): Likewise.
12605         * modules/selinux-h (Makefile.am): Likewise.
12606         * modules/signal (Makefile.am): Likewise.
12607         * modules/spawn (Makefile.am): Likewise.
12608         * modules/stdarg (Makefile.am): Likewise.
12609         * modules/stdbool (Makefile.am): Likewise.
12610         * modules/stddef (Makefile.am): Likewise.
12611         * modules/stdint (Makefile.am): Likewise.
12612         * modules/stdio (Makefile.am): Likewise.
12613         * modules/stdlib (Makefile.am): Likewise.
12614         * modules/string (Makefile.am): Likewise.
12615         * modules/strings (Makefile.am): Likewise.
12616         * modules/sys_file (Makefile.am): Likewise.
12617         * modules/sys_ioctl (Makefile.am): Likewise.
12618         * modules/sys_select (Makefile.am): Likewise.
12619         * modules/sys_socket (Makefile.am): Likewise.
12620         * modules/sys_stat (Makefile.am): Likewise.
12621         * modules/sys_time (Makefile.am): Likewise.
12622         * modules/sys_times (Makefile.am): Likewise.
12623         * modules/sys_utsname (Makefile.am): Likewise.
12624         * modules/sys_wait (Makefile.am): Likewise.
12625         * modules/sysexits (Makefile.am): Likewise.
12626         * modules/termios (Makefile.am): Likewise.
12627         * modules/time (Makefile.am): Likewise.
12628         * modules/unistd (Makefile.am): Likewise.
12629         * modules/wchar (Makefile.am): Likewise.
12630         * modules/wctype-h (Makefile.am): Likewise.
12631         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12632
12633 2011-04-05  Bruno Haible  <bruno@clisp.org>
12634
12635         pipe2: Relicense under LGPLv2+.
12636         * modules/pipe2 (License): Change to LGPLv2+.
12637         Requested by Eric Blake, for libvirt.
12638
12639 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12640
12641         bootstrap: compute gnulib_extra_files after updating build_aux
12642         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12643         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12644
12645 2011-04-05  Eric Blake  <eblake@redhat.com>
12646
12647         bootstrap: preserve git whitelist item sorting
12648         * build-aux/bootstrap (sort_patterns): New function.
12649         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12650
12651 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12652
12653         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12654         sc_space_tab check.
12655
12656 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12657
12658         areadlink, areadlinkat: rewrite in terms of careadlinkat
12659         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12660         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12661         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12662         (malloc, realloc): Remove #undefs.
12663         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12664         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12665         readlink, ssize_t, stdint, unistd.
12666         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12667         areadlink, stdint.
12668
12669         careadlinkat: new module
12670         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12671         * modules/careadlinkat: New files, written by me with
12672         a review and feedback from Ben Pfaff in
12673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12674
12675 2011-04-01  Bruno Haible  <bruno@clisp.org>
12676
12677         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12678         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12679         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12680         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12681         Reported by Bruce Korb <bruce.korb@gmail.com>.
12682
12683 2011-04-01  Bruno Haible  <bruno@clisp.org>
12684
12685         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12686         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12687         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12688         * modules/wcpcpy (Depends-on): Add extensions.
12689         * modules/wcpncpy (Depends-on): Likewise.
12690         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12691         systems.
12692         * doc/posix-functions/wcpncpy.texi: Likewise.
12693         * doc/posix-functions/wcwidth.texi: Likewise.
12694
12695 2011-03-31  Eric Blake  <eblake@redhat.com>
12696
12697         nonblocking: fix mingw test failures
12698         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12699         non-blocking flag on regular file.
12700         (get_nonblocking_flag): Set errno on invalid fd.
12701         * tests/test-nonblocking.c (main): Avoid test failure on
12702         directories if fchdir is not active.
12703         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12704
12705 2011-03-31  Bruno Haible  <bruno@clisp.org>
12706
12707         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12708         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12709         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12710         Reported by Simon Josefsson <simon@josefsson.org>.
12711
12712 2011-03-31  Bruno Haible  <bruno@clisp.org>
12713         and Eric Blake  <eblake@redhat.com>
12714
12715         nonblocking: new module
12716         * modules/nonblocking: New module.
12717         * modules/nonblocking-tests: Likewise.
12718         * lib/nonblocking.h: New file.
12719         * lib/nonblocking.c: Likewise.
12720         * tests/test-nonblocking.c: New test.
12721         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12722
12723 2011-03-30  Bruno Haible  <bruno@clisp.org>
12724
12725         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12726         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12727         instead of 'printf' format for GCC >= 4.4.
12728         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12729         (fprintf, printf, vfprintf, vprintf): Declare with
12730         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12731         the system's vfprintf() function.
12732         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12733
12734 2011-03-30  Eric Blake  <eblake@redhat.com>
12735
12736         passfd: fix scoping bug
12737         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12738         before sendmsg/recvmsg.
12739
12740         passfd: standardize coding conventions
12741         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12742         can be learned at compile time.
12743         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12744         ifdefs.
12745         (sendfd, recvfd): Follow gnulib code conventions.
12746
12747         passfd: fix incorrect sendmsg arguments
12748         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12749         incorrect msg_controllen value.
12750         * modules/passfd-tests (Depends-on): Check for alarm.
12751         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12752         Reported by Bastien ROUCARIES.
12753
12754 2011-03-30  Bruno Haible  <bruno@clisp.org>
12755
12756         c-strcasestr: Relicense under LGPLv2+.
12757         * modules/c-strcasestr (License): Change to LGPLv2+.
12758         Requested by Eric Blake, for libvirt.
12759
12760 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12761
12762         * users.txt: Add libidn2.  Fix libtasn1 link.
12763
12764 2011-03-30  Jim Meyering  <meyering@redhat.com>
12765
12766         tests: readlink* ("",... fails with EINVAL on newer kernels
12767         readlink and readlinkat have typically failed with ENOENT for
12768         the invalid, empty file name,  "".  However, with the advent
12769         of linux-2.6.39, they fail with EINVAL.
12770         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12771         when operating on the empty file name.
12772         * tests/test-readlink.h (test_readlink): Likewise.
12773
12774 2011-03-29  Bruno Haible  <bruno@clisp.org>
12775
12776         Relicense some modules under LGPLv2+, for libidn2.
12777         * modules/array-mergesort (License): Change to LGPLv2+.
12778         * modules/c-strcaseeq (License): Likewise.
12779         * modules/striconveh (License): Likewise.
12780         * modules/striconveha (License): Likewise.
12781         * modules/uniconv/base (License): Likewise.
12782         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12783         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12784         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12785         * modules/unictype/base (License): Likewise.
12786         * modules/unictype/bidiclass-of (License): Likewise.
12787         * modules/unictype/category-M (License): Likewise.
12788         * modules/unictype/category-none (License): Likewise.
12789         * modules/unictype/category-of (License): Likewise.
12790         * modules/unictype/category-test (License): Likewise.
12791         * modules/unictype/category-test-withtable (License): Likewise.
12792         * modules/unictype/combining-class (License): Likewise.
12793         * modules/unictype/joiningtype-of (License): Likewise.
12794         * modules/unictype/scripts (License): Likewise.
12795         * modules/uninorm/base (License): Likewise.
12796         * modules/uninorm/canonical-decomposition (License): Likewise.
12797         * modules/uninorm/composition (License): Likewise.
12798         * modules/uninorm/decompose-internal (License): Likewise.
12799         * modules/uninorm/decomposition-table (License): Likewise.
12800         * modules/uninorm/nfc (License): Likewise.
12801         * modules/uninorm/nfd (License): Likewise.
12802         * modules/uninorm/u32-normalize (License): Likewise.
12803         * modules/unistr/base (License): Likewise.
12804         * modules/unistr/u32-cpy (License): Likewise.
12805         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12806         * modules/unistr/u32-to-u8 (License): Likewise.
12807         * modules/unistr/u32-uctomb (License): Likewise.
12808         * modules/unistr/u8-check (License): Likewise.
12809         * modules/unistr/u8-mblen (License): Likewise.
12810         * modules/unistr/u8-mbtouc (License): Likewise.
12811         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12812         * modules/unistr/u8-mbtoucr (License): Likewise.
12813         * modules/unistr/u8-prev (License): Likewise.
12814         * modules/unistr/u8-strlen (License): Likewise.
12815         * modules/unistr/u8-to-u32 (License): Likewise.
12816         * modules/unistr/u8-uctomb (License): Likewise.
12817         * modules/unitypes (License): Likewise.
12818         Requested by Simon Josefsson.
12819
12820 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12821
12822         lib-symbol-visibility: Add a notice.
12823         * modules/lib-symbol-visibility (Notice): New field.
12824
12825 2011-03-29  Bruno Haible  <bruno@clisp.org>
12826
12827         getaddrinfo: Doc fix.
12828         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12829         section "fixed in Gnulib".
12830
12831 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12832
12833         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12834         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12835
12836 2011-03-26  Bruno Haible  <bruno@clisp.org>
12837
12838         unictype/property-byname: Reduce the number of load-time relocations.
12839         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12840         (UC_PROPERTY_INDEX_*): New enumeration values.
12841         (uc_property_byname): Convert an index from the lookup table to an
12842         uc_property_t.
12843         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12844         values.
12845
12846 2011-03-26  Bruno Haible  <bruno@clisp.org>
12847
12848         unictype/property-byname: Allow omitted word separators and aliases.
12849         * lib/unictype/pr_byname.gperf: Add property names without word
12850         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12851         for 'space'.
12852
12853 2011-03-26  Bruno Haible  <bruno@clisp.org>
12854
12855         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12856         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12857         also hyphens to space.
12858         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12859         without spaces.
12860         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12861
12862 2011-03-26  Bruno Haible  <bruno@clisp.org>
12863
12864         unictype/joiningtype-byname: Recognize long names as well.
12865         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12866         a long name.
12867         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12868         unictype/joiningtype_byname.h.
12869         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12870         * lib/unictype/joiningtype_byname.gperf: New file.
12871         * modules/unictype/joiningtype-byname (Files): Add
12872         lib/unictype/joiningtype_byname.gperf.
12873         (Depends-on): Add gperf.
12874         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12875         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12876         long names.
12877
12878         Tests for module 'unictype/joiningtype-longname'.
12879         * modules/unictype/joiningtype-longname-tests: New file.
12880         * tests/unictype/test-joiningtype_longname.c: New file.
12881
12882         New module 'unictype/joiningtype-longname'.
12883         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12884         * lib/unictype/joiningtype_longname.c: New file.
12885         * modules/unictype/joiningtype-longname: New file.
12886         * modules/unictype/joiningtype-all (Depends-on): Add
12887         unictype/joiningtype-longname.
12888
12889 2011-03-26  Bruno Haible  <bruno@clisp.org>
12890
12891         unictype/bidiclass-byname: Recognize long names as well.
12892         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12893         name.
12894         * lib/unictype/bidi_byname.c: Include <string.h>,
12895         unictype/bidi_byname.h.
12896         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12897         * lib/unictype/bidi_byname.gperf: New file.
12898         * modules/unictype/bidiclass-byname (Files): Add
12899         lib/unictype/bidi_byname.gperf.
12900         (Depends-on): Add gperf.
12901         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12902         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12903         long names.
12904
12905         Tests for module 'unictype/bidiclass-longname'.
12906         * modules/unictype/bidiclass-longname-tests: New file.
12907         * tests/unictype/test-bidi_longname.c: New file.
12908
12909         New module 'unictype/bidiclass-longname'.
12910         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12911         * lib/unictype/bidi_longname.c: New file.
12912         * modules/unictype/bidiclass-longname: New file.
12913         * modules/unictype/bidiclass-all (Depends-on): Add
12914         unictype/bidiclass-longname.
12915
12916 2011-03-26  Bruno Haible  <bruno@clisp.org>
12917
12918         unictype/bidi*: Rename modules.
12919         * modules/unictype/bidiclass-all: Renamed from
12920         modules/unictype/bidicategory-all.
12921         * modules/unictype/bidiclass-name: Renamed from
12922         modules/unictype/bidiclass-name.
12923         (Description): Update.
12924         * modules/unictype/bidiclass-name-tests: Renamed from
12925         modules/unictype/bidicategory-name-tests.
12926         * modules/unictype/bidiclass-byname: Renamed from
12927         modules/unictype/bidicategory-byname.
12928         (Description): Update.
12929         * modules/unictype/bidiclass-byname-tests: Renamed from
12930         modules/unictype/bidicategory-byname-tests.
12931         * modules/unictype/bidiclass-of: Renamed from
12932         modules/unictype/bidicategory-of.
12933         (Description): Update.
12934         * modules/unictype/bidiclass-of-tests: Renamed from
12935         modules/unictype/bidicategory-of-tests.
12936         * modules/unictype/bidiclass-test: Renamed from
12937         modules/unictype/bidicategory-test.
12938         (Description): Update.
12939         * modules/unictype/bidiclass-test-tests: Renamed from
12940         modules/unictype/bidicategory-test-tests.
12941         * modules/unictype/bidicategory-all: New file, a simple redirection.
12942         * modules/unictype/bidicategory-name: Likewise.
12943         * modules/unictype/bidicategory-byname: Likewise.
12944         * modules/unictype/bidicategory-of: Likewise.
12945         * modules/unictype/bidicategory-test: Likewise.
12946         * modules/unictype/property-bidi-* (Dependencies): Update.
12947         * lib/unictype/bidi_*.c: Update comment.
12948
12949 2011-03-26  Bruno Haible  <bruno@clisp.org>
12950
12951         unictype/bidi*: Rename functions, part 2.
12952         * modules/unictype/bidicategory-name (configure.ac): Update required
12953         libunistring version.
12954         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12955
12956 2011-03-25  Bruno Haible  <bruno@clisp.org>
12957
12958         New module 'unictype/combining-class-all'.
12959         * modules/unictype/combining-class-all: New file.
12960
12961         Tests for module 'unictype/combining-class-byname'.
12962         * modules/unictype/combining-class-byname-tests: New file.
12963         * tests/unictype/test-combiningclass_byname.c: New file.
12964
12965         New module 'unictype/combining-class-byname'.
12966         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12967         * lib/unictype/combiningclass_byname.c: New file.
12968         * lib/unictype/combiningclass_byname.gperf: New file.
12969         * modules/unictype/combining-class-byname: New file.
12970
12971         Tests for module 'unictype/combining-class-longname'.
12972         * modules/unictype/combining-class-longname-tests: New file.
12973         * tests/unictype/test-combiningclass_longname.c: New file.
12974
12975         New module 'unictype/combining-class-longname'.
12976         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12977         * lib/unictype/combiningclass_longname.c: New file.
12978         * modules/unictype/combining-class-longname: New file.
12979
12980         Tests for module 'unictype/combining-class-name'.
12981         * modules/unictype/combining-class-name-tests: New file.
12982         * tests/unictype/test-combiningclass_name.c: New file.
12983
12984         New module 'unictype/combining-class-name'.
12985         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12986         * lib/unictype/combiningclass_name.c: New file.
12987         * modules/unictype/combining-class-name: New file.
12988
12989 2011-03-25  Bruno Haible  <bruno@clisp.org>
12990
12991         unictype/combining-class: Rename source files.
12992         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12993         of unictype/combining.h.
12994         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12995         Update.
12996         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12997         * modules/unictype/combining-class (Description): Fix.
12998         (Files, Makefile.am): Update.
12999         * tests/unictype/test-combiningclass.c: Renamed from
13000         tests/unictype/test-combining.c.
13001         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13002
13003 2011-03-25  Bruno Haible  <bruno@clisp.org>
13004
13005         unictype: Update list of canonical combining classes.
13006         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13007
13008 2011-03-25  Bruno Haible  <bruno@clisp.org>
13009
13010         unictype/category-byname: Recognize long names as well.
13011         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13012         a long name.
13013         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13014         unictype/categ_byname.h.
13015         (UC_CATEGORY_INDEX_*): New enumeration values.
13016         (uc_general_category_byname): Use uc_general_category_lookup and
13017         convert from index to value.
13018         * lib/unictype/categ_byname.gperf: New file.
13019         * modules/unictype/category-byname (Files): Add
13020         lib/unictype/categ_byname.gperf.
13021         (Depends-on): Add gperf.
13022         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13023         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13024         long names.
13025
13026         Tests for module 'unictype/category-longname'.
13027         * modules/unictype/category-longname-tests: New file.
13028         * tests/unictype/test-categ_longname.c: New file.
13029
13030         New module 'unictype/category-longname'.
13031         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13032         * lib/unictype/categ_longname.c: New file.
13033         * modules/unictype/category-longname: New file.
13034         * modules/unictype/category-all (Depends-on): Add it.
13035
13036 2011-03-25  Bruno Haible  <bruno@clisp.org>
13037
13038         Tests for module 'unictype/category-LC'.
13039         * modules/unictype/category-LC-tests: New file.
13040         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13041
13042         New module 'unictype/category-LC'.
13043         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13044         (UC_CATEGORY_LC): New declaration.
13045         (UC_CASED_LETTER): New macro.
13046         * lib/gen-uni-tables.c (is_category_LC): New function.
13047         (output_categories): Also handle category LC.
13048         (UC_CATEGORY_MASK_LC): New enumeration value.
13049         (general_category_byname): Also handle category LC.
13050         * lib/unictype/categ_LC.c: New file.
13051         * lib/unictype/categ_LC.h: New file, automatically generated.
13052         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13053         category LC.
13054         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13055         * modules/unictype/category-LC: New file.
13056         * modules/unictype/category-byname (Depends-on): Add
13057         unictype/category-LC.
13058         * modules/unictype/category-all (Depends-on): Likewise.
13059
13060 2011-03-25  Eric Blake  <eblake@redhat.com>
13061
13062         xmalloc: revert yesterday's regression
13063         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13064         realloc's underlying behavior (allowing allocation of zero-size
13065         objects, especially if malloc-gnu is also in use).
13066
13067 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13068
13069         maint.mk: add missing version to VC-tag
13070         * top/maint.mk: git tag was missing actual tag name; add it.
13071
13072         valgrind: do leak checking, and exit with code 1 on error (not 0)
13073         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13074         to VALGRIND.
13075
13076 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13077
13078         posix-modules: say what it does.
13079         * posix-modules: Add a line to the --help output saying what it does.
13080
13081 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13082
13083         xmalloc: Do not leak if underlying realloc is C99 compatible.
13084         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13085         This avoids a leak on C99-based systems.  See
13086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13087
13088 2011-03-24  Eric Blake  <eblake@redhat.com>
13089
13090         realloc: document portability problem
13091         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13092         passing 0 size to realloc.
13093
13094 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13095
13096         doc: update users.txt
13097         * users.txt: Add cvsps, tmpwatch
13098
13099 2011-03-23  Matt Rice  <ratmice@gmail.com>
13100
13101         doc: update users.txt
13102         * users.txt: Add gdb.
13103
13104 2011-03-23  Jim Meyering  <meyering@redhat.com>
13105
13106         doc: update users.txt
13107         Looking through matches up to the following URL (there are still
13108         several more pages), I found several projects that use gnulib:
13109         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13110         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13111         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13112
13113 2011-03-22  Bruno Haible  <bruno@clisp.org>
13114
13115         unictype/bidi*: Rename functions.
13116         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13117         uc_bidi_class, uc_is_bidi_class): New declarations.
13118         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13119         uc_bidi_category_byname.
13120         (uc_bidi_category_byname): New function.
13121         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13122         u_bidi_category_name.
13123         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13124         (uc_bidi_category_name): New function.
13125         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13126         uc_bidi_category.
13127         (uc_bidi_category): New function.
13128         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13129         uc_is_bidi_category. Invoke uc_bidi_class.
13130         (uc_is_bidi_category): New function.
13131         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13132         instead of uc_bidi_category_byname.
13133         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13134         instead of uc_bidi_category_name.
13135         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13136         uc_bidi_category.
13137         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13138         instead of uc_is_bidi_category.
13139
13140 2011-03-21  Bruno Haible  <bruno@clisp.org>
13141
13142         New module 'unictype/joininggroup-all'.
13143         * modules/unictype/joininggroup-all: New file.
13144
13145         Tests for module 'unictype/joininggroup-of'.
13146         * modules/unictype/joininggroup-of-tests: New file.
13147         * tests/unictype/test-joininggroup_of.c: New file.
13148         * tests/unictype/test-joininggroup_of.h: New file, automatically
13149         generated by gen-uni-tables.
13150
13151         New module 'unictype/joininggroup-of'.
13152         * modules/unictype/joininggroup-of: New file.
13153         * lib/unictype/joininggroup_of.c: New file.
13154         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13155         gen-uni-tables.
13156
13157         Tests for module 'unictype/joininggroup-byname'.
13158         * modules/unictype/joininggroup-byname-tests: New file.
13159         * tests/unictype/test-joininggroup_byname.c: New file.
13160
13161         New module 'unictype/joininggroup-byname'.
13162         * modules/unictype/joininggroup-byname: New file.
13163         * lib/unictype/joininggroup_byname.c: New file.
13164         * lib/unictype/joininggroup_byname.gperf: New file.
13165
13166         Tests for module 'unictype/joininggroup-name'.
13167         * modules/unictype/joininggroup-name-tests: New file.
13168         * tests/unictype/test-joininggroup_name.c: New file.
13169
13170         New module 'unictype/joininggroup-name'.
13171         * modules/unictype/joininggroup-name: New file.
13172         * lib/unictype/joininggroup_name.c: New file.
13173         * lib/unictype/joininggroup_name.h: New file.
13174
13175         New module 'unictype/joiningtype-all'.
13176         * modules/unictype/joiningtype-all: New file.
13177
13178         Tests for module 'unictype/joiningtype-of'.
13179         * modules/unictype/joiningtype-of-tests: New file.
13180         * tests/unictype/test-joiningtype_of.c: New file.
13181         * tests/unictype/test-joiningtype_of.h: New file, automatically
13182         generated by gen-uni-tables.
13183
13184         New module 'unictype/joiningtype-of'.
13185         * modules/unictype/joiningtype-of: New file.
13186         * lib/unictype/joiningtype_of.c: New file.
13187         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13188         gen-uni-tables.
13189
13190         Tests for module 'unictype/joiningtype-byname'.
13191         * modules/unictype/joiningtype-byname-tests: New file.
13192         * tests/unictype/test-joiningtype_byname.c: New file.
13193
13194         New module 'unictype/joiningtype-byname'.
13195         * modules/unictype/joiningtype-byname: New file.
13196         * lib/unictype/joiningtype_byname.c: New file.
13197
13198         Tests for module 'unictype/joiningtype-name'.
13199         * modules/unictype/joiningtype-name-tests: New file.
13200         * tests/unictype/test-joiningtype_name.c: New file.
13201
13202         New module 'unictype/joiningtype-name'.
13203         * modules/unictype/joiningtype-name: New file.
13204         * lib/unictype/joiningtype_name.c: New file.
13205
13206         unictype: Add support for Arabic shaping properties.
13207         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13208         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13209         declarations.
13210         (UC_JOINING_GROUP_*): New enumeration values.
13211         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13212         declarations.
13213         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13214         (unicode_joining_type): New variable.
13215         (UC_JOINING_GROUP_*): New enumeration values.
13216         (unicode_joining_group): New variable.
13217         (fill_arabicshaping, joining_type_as_c_identifier,
13218         output_joining_type_test, output_joining_type,
13219         joining_group_as_c_identifier, output_joining_group_test,
13220         output_joining_group): New functions.
13221         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13222         fill_arabicshaping and output_joining_type_test, output_joining_type,
13223         output_joining_group_test, output_joining_group.
13224         Reported by Simon Josefsson.
13225
13226 2011-03-21  Jim Meyering  <meyering@redhat.com>
13227
13228         strftime: fix a bug in yesterday's change
13229         * lib/strftime.c (add): Accommodate width's initial value of -1.
13230         Otherwise, nstrftime would copy uninitialized data into
13231         the result buffer.
13232
13233 2011-03-21  Jim Meyering  <meyering@redhat.com>
13234
13235         tests: add strftime-tests module
13236         * tests/test-strftime.c: New file.
13237         * modules/strftime-tests: New module.
13238
13239 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13240
13241         strftime: don't assume a byte count fits in 'int'
13242         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13243         found this problem by static analysis, using gcc -Wstrict-overflow
13244         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13245         on an integer overflow having undefined behavior, but it turns out
13246         that the argument is a size, which might not fit in 'int' anyway,
13247
13248 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13249
13250         stdio: don't require ignore_value around fwrite
13251
13252         This patch works around libc bug 11959
13253         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13254         Without this patch, applications must often write
13255         ignore_value (fwrite (...)) even though the ignore_value is
13256         not helpful here.  It's common to write many objects, using
13257         fwrite/printf/etc., and then use ferror to detect output error.
13258
13259         I considered making this patch optional, but decided against it,
13260         because libc is obviously being inconsistent here: there is no
13261         reason libc should insist that user code must inspect fwrite
13262         return's value without also insisting that it inspect printf's,
13263         putchar's, etc.  If user code wants to have a strict style where
13264         all these functions' values are checked (so that ferror need not
13265         be checked), we could add support for that style in a new gnulib
13266         module, but in the meantime it's better to be consistent and to
13267         support common usage.
13268
13269         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13270         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13271         that we are compiling in checking mode, and if not C++, and
13272         if not already wrapping fwrite for some other reason.
13273         (fwrite): #define to rpl_fwrite if the latter is defined.
13274
13275 2011-03-20  Bruno Haible  <bruno@clisp.org>
13276
13277         verror: Fix compilation error introduced on 2011-02-13.
13278         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13279         instead of __attribute__.
13280         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13281
13282 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13283             Bruno Haible  <bruno@clisp.org>
13284
13285         socklen: do not depend on sys_socket
13286         While trying to modify Emacs to use gnulib's socklen module,
13287         I discovered a circular dependency: socklen depends on sys_socket
13288         and vice versa.  Emacs can use socklen, but it does not need
13289         sys_socket because it has its own substitute for sys/socket.h.
13290         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13291         gl_TYPE_SOCKLEN_T.
13292         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13293         gl_PREREQ_SYS_H_SOCKET.
13294         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13295         gl_PREREQ_SYS_H_SOCKET.
13296         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13297         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13298         * modules/socklen (Depends-on): Do not depend on sys_socket.
13299         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13300
13301 2011-03-20  Jim Meyering  <meyering@redhat.com>
13302
13303         maint.mk: sort file names *after* new transformation
13304         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13305         prefix would have led to an unwarranted failure in GNU parted.
13306         Sort after that transformation.
13307
13308 2011-03-19  Jim Meyering  <meyering@redhat.com>
13309
13310         maint.mk: fix po-file syntax-check rule
13311         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13312         Patch by Bruno Haible.
13313
13314 2011-03-19  Bruno Haible  <bruno@clisp.org>
13315
13316         socklen: Update comment.
13317         * m4/socklen.m4: Update comment about platforms.
13318
13319 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13320             Bruno Haible  <bruno@clisp.org>
13321
13322         inet_ntop, inet_pton: Simplify.
13323         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13324         documented to provide socklen_t and we already depend on sys_socket.
13325         * modules/inet_pton (Depends-on): Likewise.
13326         * lib/arpa_inet.in.h: Adjust comment.
13327
13328 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13329             Bruno Haible  <bruno@clisp.org>
13330
13331         netdb: Simplify.
13332         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13333         documented to provide socklen_t and we already depend on sys_socket.
13334         * lib/netdb.in.h: Adjust comment.
13335
13336 2011-03-19  Bruno Haible  <bruno@clisp.org>
13337
13338         sys_socket, netdb: Document problem with socklen_t.
13339         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13340         platforms.
13341         * doc/posix-headers/netdb.texi: Likewise.
13342
13343 2011-03-18  Eric Blake  <eblake@redhat.com>
13344
13345         maint.mk: let po check work in VPATH build
13346         * top/maint.mk (po_file): Allow cfg.mk override.
13347         (sc_po_check): Allow VPATH use.
13348         Reported by Jiri Denemark.
13349
13350 2011-03-16  Jim Meyering  <meyering@redhat.com>
13351
13352         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13353         Before, you would have had to create one .x-sc_ file per rule in order
13354         to exempt offending files.  Now, you may instead use a Make variable --
13355         usually defined in cfg.mk -- whose name identifies the affected rule.
13356         * top/maint.mk (_sc_excl): Define.
13357         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13358         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13359
13360 2011-03-13  Bruno Haible  <bruno@clisp.org>
13361
13362         ignore-value tests: Avoid warnings.
13363         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13364         empty for gcc < 3.4.
13365
13366 2011-03-13  Bruno Haible  <bruno@clisp.org>
13367
13368         passfd: Fix link error on Solaris.
13369         * modules/passfd (Description): Correct.
13370         (Depends-on): Add socketlib.
13371         (Link): New section.
13372         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13373
13374 2011-03-13  Bruno Haible  <bruno@clisp.org>
13375
13376         passfd: Fix link error on AIX 5.2.
13377         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13378
13379 2011-03-13  Bruno Haible  <bruno@clisp.org>
13380
13381         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13382         * lib/sys_socket.in.h: Include <stddef.h>.
13383         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13384         CMSG_FIRSTHDR. Remove unused variable.
13385
13386 2011-03-13  Bruno Haible  <bruno@clisp.org>
13387
13388         passfd: Fix compilation error on OpenBSD.
13389         * lib/passfd.c: Include <sys/uio.h>.
13390
13391 2011-03-13  Bruno Haible  <bruno@clisp.org>
13392
13393         passfd test: Fix warnings.
13394         * tests/test-passfd.c: Include <sys/wait.h>.
13395         (main): Fix typo.
13396
13397 2011-03-13  Bruno Haible  <bruno@clisp.org>
13398
13399         passfd module, part 4, tweaks.
13400         * tests/test-passfd.c: Reorder includes.
13401         (main): Fix perror and printf calls.
13402
13403 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13404
13405         passfd module, part 4.
13406         * modules/passfd-tests: New file.
13407         * tests/test-passfd.c: New file.
13408
13409 2011-03-13  Jim Meyering  <meyering@redhat.com>
13410
13411         Makefile: rely on GNU make; derive syntax-check rule names
13412         Rather than requiring that each sc_ rule be listed as a dependent
13413         of "check", use features of GNU make to derive the list.
13414         * Makefile (syntax-check-rules): Define.
13415         (check): Depend on the new variable, not the hard-coded list.
13416
13417 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13418             Bruno Haible  <bruno@clisp.org>
13419
13420         passfd module, part 3.
13421         * lib/passfd.h (recvfd): Add a flags argument.
13422         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13423         (recvfd): Add a flags argument.
13424         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13425         exists.
13426         * modules/passfd (Depends-on): Add cloexec.
13427         Suggested by Eric Blake.
13428
13429 2011-03-13  Bruno Haible  <bruno@clisp.org>
13430
13431         passfd module, part 2, tweaks.
13432         * modules/passfd (Files): Reorder.
13433         (Depends-on): Remove errno.
13434         (Include): Remove <sys/socket.h>, <sys/un.h>.
13435         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13436         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13437         specification header. Include <sys/socket.h> always. Don't include
13438         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13439         (sendfd): Clarify that it sets errno when it fails.
13440         (recvfd): Fix specification.
13441
13442 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13443
13444         passfd module, part 2.
13445         * modules/passfd: New file.
13446         * lib/passfd.h: New file.
13447         * lib/passfd.c: New file.
13448
13449 2011-03-12  Bruno Haible  <bruno@clisp.org>
13450
13451         wcswidth, mbswidth: Avoid integer overflow.
13452         * lib/wcswidth.c: Include <limits.h>.
13453         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13454         * lib/mbswidth.c: Include <limits.h>.
13455         (mbsnwidth): Avoid 'int' overflow.
13456         Reported by Jim Meyering.
13457
13458 2011-03-12  Bruno Haible  <bruno@clisp.org>
13459
13460         futimens, utimensat: Avoid endless recursion on Solaris 10.
13461         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13462         Solaris.
13463         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13464         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13465
13466 2011-03-11  Jim Meyering  <meyering@redhat.com>
13467
13468         maint.mk: relax a regexp to accommodate other formatting styles
13469         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13470         between "ngettext" and the following "(".
13471
13472 2011-03-11  Pádraig Brady <P@draigBrady.com>
13473
13474         maint.mk: suppress a false positive warning
13475         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13476         diagnostics are marked with ngettext.
13477
13478 2011-03-10  Eric Blake  <eblake@redhat.com>
13479
13480         wchar: add explicit dependencies, for Tru64
13481         * modules/mbmemcasecoll (Depends-on): Add wchar.
13482         * modules/mbtowc (Depends-on): Likewise.
13483         * modules/vasnprintf (Depends-on): Likewise.
13484         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13485         * modules/wctomb (Depends-on): Likewise.
13486         Reported by Peter O'Gorman.
13487
13488 2011-03-08  Bruno Haible  <bruno@clisp.org>
13489
13490         passfd module, part 1, tweaks.
13491         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13492         Improve indentation. Improve AC_MSG_CHECKING messages.
13493         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13494         gl_SOCKET_FAMILIES.
13495
13496 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13497
13498         passfd module, part 1.
13499         * m4/afunix.m4: New file.
13500         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13501         sockets.
13502
13503 2011-03-08  Bruno Haible  <bruno@clisp.org>
13504
13505         regex-quote: New API.
13506         * lib/regex-quote.h: Include <stdbool.h>.
13507         (struct regex_quote_spec): New type.
13508         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13509         New declarations.
13510         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13511         'const struct regex_quote_spec *' argument.
13512         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13513         (pcre_special): New constant.
13514         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13515         New functions.
13516         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13517         'const struct regex_quote_spec *' argument.
13518         * modules/regex-quote (Depends-on): Add stdbool.
13519         * tests/test-regex-quote.c (check): Update for new API. Add test for
13520         anchored results.
13521         * NEWS: Mention the API change.
13522         Reported by Reuben Thomas and Eric Blake.
13523
13524 2011-03-06  Bruno Haible  <bruno@clisp.org>
13525
13526         regex-quote: Fix creation of POSIX extended regular expressions.
13527         * lib/regex-quote.c (ere_special): Add grouping and alternation
13528         operators.
13529
13530 2011-03-05  Bruno Haible  <bruno@clisp.org>
13531
13532         doc: Improve doc regarding autopoint vs. gnulib.
13533         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13534         disable autopoint while running autoreconf.
13535         Suggested by Ralf Wildenhues.
13536
13537 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13538
13539         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13540         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13541
13542 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13543
13544         parse-duration: remove xalloc.h dependency
13545         * lib/parse-duration.c (parse_period): handle NULL return from
13546         strdup instead of calling xstrdup().
13547         * modules/parse-duration: remove "xalloc" dependency
13548
13549 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13550
13551         bootstrap: honor m4_base when running aclocal
13552         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13553
13554 2011-03-02  Jim Meyering  <meyering@redhat.com>
13555
13556         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13557         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13558         on request from Matt Booth.
13559
13560 2011-03-01  Eric Blake  <eblake@redhat.com>
13561
13562         test-link: work on Hurd
13563         * tests/test-link.h (test_link): Hurd rejects linking directories
13564         with EISDIR instead of the POSIX-mandated EPERM.
13565
13566 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13567
13568         stdio: simplify by moving files to printf-posix, sigpipe
13569         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13570         since this symbol is needed only if printf is replaced.
13571         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13572         Require gl_ASM_SYMBOL_PREFIX.
13573         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13574         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13575         (Depends-on): Add 'raise'.
13576         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13577         * modules/stdio (Files): Remove lib/stdio-write.c,
13578         m4/asm-underscore.m4.
13579         (Depends-on): Remove 'raise'.
13580
13581         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13582         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13583         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13584         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13585
13586 2011-02-28  Bruno Haible  <bruno@clisp.org>
13587
13588         localcharset: Assume ANSI C behaviour of free().
13589         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13590         calling free().
13591         Suggested by Simon Josefsson <simon@josefsson.org>.
13592
13593 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13594             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13595             Bruno Haible  <bruno@clisp.org>  (tiny change)
13596
13597         On Cygwin, use /proc file system instead of win32 API.
13598         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13599         Win32 file names.
13600         (DllMain): Simplify by removing Cygwin specific code.
13601         (find_shared_library_fullname): Use Linux specific implementation also
13602         for Cygwin.
13603         (get_shared_library_fullname): Update accordingly.
13604         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13605         Win32 file names.
13606         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13607         Cygwin specific code.
13608
13609 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13610             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13611
13612         Fix OpenMP flag detection for various Fortran compilers.
13613         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13614         OpenMP-conditional compilation construct, to force compile
13615         failure with missing OpenMP flag.
13616         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13617
13618 2011-02-25  Eric Blake  <eblake@redhat.com>
13619
13620         strstr: expand test coverage
13621         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13622         compilation.
13623         * tests/test-memmem.c (main): Duplicate tests.
13624         * tests/test-strcasestr.c (main): Likewise.
13625         * tests/test-c-strcasestr.c (main): Likewise.
13626
13627 2011-02-25  Jim Meyering  <meyering@redhat.com>
13628
13629         maint.mk: detect missing-NL-at-EOF, too
13630         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13631         it also detects when a file lacks a newline at EOF.
13632         (require_exactly_one_NL_at_EOF_): Renamed from
13633         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13634         since people may well have .x-sc_... file names tied to the
13635         existing name.  Suggested by Eric Blake.
13636
13637 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13638
13639         dirname: move m4/dos.m4 functionality into lib/dosname.h
13640
13641         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13642         extracts symbols from it, puts them into config.h; but it's much
13643         easier to use the symbols directly.  filename.h already does this,
13644         but it disagrees with dos.m4 in some respects.  This patch
13645         introduces a different include file dosname.h that packages up
13646         dos.m4, and then later we can work on merging filename.h and
13647         dosname.h.  Applications that need only the easy-to-configure
13648         symbols should consider including dosname.h rather than dirname.h.
13649         * NEWS: Mention incompatible changes.
13650         * m4/dos.m4: Remove.
13651         * lib/dosname.h, modules/dosname: New files.
13652         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13653         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13654         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13655         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13656         Include dosname.h, not dirname.h.
13657         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13658         Include dosname.h, for definitions of symbols like ISSLASH
13659         that used to be in config.h.
13660         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13661         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13662         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13663         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13664         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13665         * modules/rmdir (Files): Likewise.
13666         * modules/stat (Files): Likewise.
13667         * modules/unlink (Files): Likewise.
13668         * modules/dirname-lgpl (Depends-on): Add dosname.
13669         * modules/lstat (Depends-on): Likewise.
13670         * modules/openat (Depends-on): Likewise.
13671         * modules/rmdir (Depends-on): Likewise.
13672         * modules/savewd (Depends-on): Likewise.
13673         * modules/stat (Depends-on): Likewise.
13674         * modules/unlink (Depends-on): Likewise.
13675         * modules/openat (Depends-on): Remove dirname-lgpl.
13676         * modules/savewd (Depends-on): Likewise.
13677         * tests/test-dirname.c: Do not use removed symbols like
13678         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13679         the remaining symbols, e.g., ISSLASH ('\\').
13680
13681 2011-02-25  Eric Blake  <eblake@redhat.com>
13682
13683         strstr: revert patches that introduced bug and pessimization
13684         * lib/str-two-way.h: Add another reference.
13685         (two_way_short_needle, two_way_long_needle): Revert changes from
13686         2011-02-24; they pessimize search speed.
13687         (critical_factorization): Partially revert changes from
13688         2010-06-22; they violate the requirement that the left half of the
13689         needle be smaller than the period of the needle.
13690
13691 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13692
13693         filenamecat: remove unnecessary dependency on dirname-lgpl
13694         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13695         is no direct dependency, just an indirect one via filenamecat-lgpl.
13696
13697         remove: remove unnecessary use of m4/dos.m4
13698         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13699         * modules/remove (FILES): Remove m4/dos.m4.
13700
13701         * lib/openat-proc.c: Don't include dirname.h; not needed.
13702
13703         backupfile: remove unnecessary use of m4/dos.m4
13704         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13705         of its symbols are used by the backupfile code.  backupfile.c does
13706         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13707         for the rare case of programs that want all their backup file
13708         names to live within 8+3 limits, and dos.m4 doesn't address that.
13709         * modules/backupfile (Files): Remove m4/dos.m4.
13710
13711 2011-02-24  Jim Meyering  <meyering@redhat.com>
13712
13713         strstr: fix a bug whereby strstr would mistakenly return NULL
13714         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13715         in period calculation.
13716         (two_way_long_needle): Likewise.
13717         The original problem was reported by Mike Stump in
13718         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13719         Ralf Wildenhues provided the short needle and haystack.
13720         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13721         Add a more involved test to trigger the bug in two_way_long_needle.
13722
13723 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13724
13725         gnulib-tool: remove use of bold display in help screen
13726         * gnulib-tool (func_usage): Do not use bold display anymore in the
13727         help screen.  That was just meant to be a temporary emphasis for a
13728         backward-incompatible change.
13729
13730 2011-02-23  Bruno Haible  <bruno@clisp.org>
13731
13732         Fix misindentation of preprocessor directives.
13733         * lib/argp-namefrob.h: Reindent preprocessor directives.
13734         * lib/getopt_int.h (struct _getopt_data): Likewise.
13735         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13736         * lib/vasnprintf.c (decode_long_double): Likewise.
13737         * tests/test-argmatch.c: Insert blank lines, for clarity.
13738         * tests/test-exclude.c: Likewise.
13739
13740 2011-02-22  Bruno Haible  <bruno@clisp.org>
13741
13742         ioctl: Fix for MacOS X in 64-bit mode.
13743         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13744         value.
13745         Suggested by Eric Blake.
13746         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13747
13748 2011-02-22  Jim Meyering  <meyering@redhat.com>
13749
13750         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13751         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13752         in lib/.
13753
13754 2011-02-22  Eric Blake  <eblake@redhat.com>
13755
13756         maint: avoid any CDPATH issue
13757         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13758
13759         maint: adjust cpp indentation for my modules, as well
13760         * Makefile (sc_cpp_indent_check): Add my name.
13761         * lib/fbufmode.c: Filter through cppi.
13762         * lib/fpurge.c: Likewise.
13763         * lib/freadable.c: Likewise.
13764         * lib/freading.c: Likewise.
13765         * lib/fwritable.c: Likewise.
13766         * lib/fwriting.c: Likewise.
13767         * lib/sigaction.c: Likewise.
13768
13769 2011-02-22  Jim Meyering  <meyering@redhat.com>
13770
13771         maint: adjust cpp indentation to reflect nesting depth
13772         I.e., in a block of code that begins with an unnested "#if",
13773         put one space between the "#" in column 1 and following token.
13774         For example,
13775         -#include <sys/vfs.h>
13776         +# include <sys/vfs.h>
13777         Do this only in .c files that are part of a module I maintain.
13778         * lib/linkat.c: Filter through cppi.
13779         * lib/nanosleep.c: Likewise.
13780         * lib/openat.c: Likewise.
13781         * lib/openat-die.c: Likewise.
13782         * lib/dup3.c: Likewise.
13783         * lib/fchownat.c: Likewise.
13784         * lib/flock.c: Likewise.
13785         * lib/fsync.c: Likewise.
13786         * lib/fts.c: Likewise.
13787         * lib/getpass.c: Likewise.
13788         * lib/gettimeofday.c: Likewise.
13789         * lib/userspec.c: Likewise.
13790         * Makefile (sc_cpp_indent_check): New rule, to check this.
13791
13792 2011-02-22  Bruno Haible  <bruno@clisp.org>
13793
13794         New module 'wctomb'.
13795         * lib/stdlib.in.h (wctomb): New declaration.
13796         * lib/wctomb.c: New file.
13797         * lib/wctomb-impl.h: New file.
13798         * m4/wctomb.m4: New file.
13799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13800         REPLACE_WCTOMB.
13801         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13802         REPLACE_WCTOMB.
13803         * modules/wctomb: New file.
13804         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13805         * doc/posix-functions/wctomb.texi: Mention the new module.
13806         * modules/wctob (Depends-on): Add wctomb.
13807
13808 2011-02-22  Bruno Haible  <bruno@clisp.org>
13809
13810         New module 'mbtowc'.
13811         * lib/stdlib.in.h (mbtowc): New declaration.
13812         * lib/mbtowc.c: New file.
13813         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13814         * m4/mbtowc.m4: New file.
13815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13816         REPLACE_MBTOWC.
13817         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13818         REPLACE_MBTOWC.
13819         * modules/mbtowc: New file.
13820         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13821         * doc/posix-functions/mbtowc.texi: Mention the new module.
13822         * modules/btowc (Depends-on): Add mbtowc.
13823
13824 2011-02-22  Bruno Haible  <bruno@clisp.org>
13825
13826         wcrtomb: Add more tests for native Windows platforms.
13827         * tests/test-wcrtomb-w32-1.sh: New file.
13828         * tests/test-wcrtomb-w32-2.sh: New file.
13829         * tests/test-wcrtomb-w32-3.sh: New file.
13830         * tests/test-wcrtomb-w32-4.sh: New file.
13831         * tests/test-wcrtomb-w32-5.sh: New file.
13832         * tests/test-wcrtomb-w32.c: New file.
13833         * modules/wcrtomb-tests (Files): Add them.
13834         (Makefile.am): Arrange to run these tests.
13835         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13836         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13837
13838 2011-02-20  Bruno Haible  <bruno@clisp.org>
13839
13840         wcrtomb: Enhance test.
13841         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13842
13843 2011-02-20  Bruno Haible  <bruno@clisp.org>
13844
13845         mbrtowc: Tiny optimization.
13846         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13847
13848 2011-02-20  Jim Meyering  <meyering@redhat.com>
13849
13850         test-exclude.c: remove unmatched #endif
13851         * tests/test-exclude.c: Remove stray #endif, left over from
13852         the change of a week ago.
13853
13854 2011-02-19  Jim Meyering  <meyering@redhat.com>
13855
13856         git-version-gen: skip "-dirty" check when appropriate
13857         * build-aux/git-version-gen: Don't run any git commands when the
13858         version string comes from .tarball-version.  Prior to this, we
13859         would run git update-index --refresh even from a just-unpacked
13860         tarball directory, and that could affect a .git/ directory in a
13861         parent of the build directory.  Reported by Mike Frysinger.
13862
13863 2011-02-19  Bruno Haible  <bruno@clisp.org>
13864
13865         unictype/property-byname: Reduce the size of the 'data' segment.
13866         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13867
13868 2011-02-19  Bruno Haible  <bruno@clisp.org>
13869
13870         unictype/scripts: Reduce the size of the 'data' segment.
13871         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13872         '%pic'.
13873         * lib/unictype/scripts_byname.gperf: Regenerated.
13874
13875 2011-02-19  Bruno Haible  <bruno@clisp.org>
13876
13877         stdint: Update documentation.
13878         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13879
13880 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13881
13882         stdint: omit redundant check for wchar.h
13883         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13884         always tests whether wchar.h exists, so remove the now-redundant test.
13885
13886 2011-02-18  Bruno Haible  <bruno@clisp.org>
13887
13888         stdint: Cut dependency to module 'wchar'.
13889         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13890         include the necessary prerequisites.
13891         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13892         * modules/stdint (Depends-on): Remove wchar.
13893         (Makefile.am): Substitute HAVE_WCHAR_H.
13894         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13895
13896 2011-02-18  Eric Blake  <eblake@redhat.com>
13897
13898         longlong: skip, rather than fail, on cross-compilation
13899         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13900         when cross-compiling; regression from 2011-02-16.
13901
13902 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13903
13904         * NEWS: Mention 2011-02-08 change to stdlib.
13905
13906 2011-02-17  Bruno Haible  <bruno@clisp.org>
13907
13908         getloadavg: Add comments about platforms.
13909         * m4/getloadavg.m4: Add comment.
13910         * lib/getloadavg.c: Likewise.
13911
13912 2011-02-17  Bruno Haible  <bruno@clisp.org>
13913
13914         getloadavg: Fix link error on Solaris 2.6.
13915         * modules/getloadavg (Link): New section.
13916         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13917         linking test-getloadavg.
13918         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13919         getloadavg.
13920
13921 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13922
13923         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13924         It was 'int', but this doesn't match the IRIX 6.5 manual.
13925         Suggested by Bruno Haible in
13926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13927
13928 2011-02-17  Bruno Haible  <bruno@clisp.org>
13929
13930         havelib: Fix comments.
13931         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13932         change.
13933
13934 2011-02-17  Bruno Haible  <bruno@clisp.org>
13935
13936         havelib: Update config.rpath.
13937         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13938
13939 2011-02-17  Bruno Haible  <bruno@clisp.org>
13940
13941         getloadavg test: Add some plausibility checks.
13942         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13943         is improbable.
13944
13945 2011-02-16  Eric Blake  <eblake@redhat.com>
13946
13947         maintainer-makefile: make syntax-check a no-op from tarballs
13948         * top/maint.mk (no-vc-detected): New rule.
13949         (local-checks-available): Use it to avoid hanging if someone tries
13950         'make syntax-check' from a tarball.  Also append to any non-syntax
13951         checks already defined in cfg.mk.
13952
13953 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13954
13955         longlong: tune, particularly for common case of c99
13956
13957         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13958         or running anything if c99, or if unsigned long long int does not
13959         work.  In either case, we know the answer without further tests.
13960         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13961         it at most once, and use its results for both long long int and
13962         unsigned long long int.  This is more likely to be efficient in
13963         the common case where the program wants to check for both long
13964         long int and unsigned long long int.
13965         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13966         since the answer is already known.
13967
13968 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13969
13970         getloadavg: set errno
13971         * lib/getloadavg.c: Set errno when returning -1.  If no other
13972         error number looks appropriate, set it to ENOSYS if the getloadavg
13973         looks like it can't possibly ever work, ENOTSUP otherwise.
13974         Suggested by Bruno Haible in
13975         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13976
13977         getloadavg: trim unused parts and speed up 'configure'
13978         * NEWS: Document this.
13979         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13980         always compiled if getloadavg is absent.
13981         Move test code to ...
13982         * tests/test-getloadavg.c: New file, containing previous
13983         contents of test from lib/getloadavg.c.  It also contains
13984         suggestions by Bruno Haible in
13985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13986         * modules/getloadavg-tests: New file.
13987         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13988         Do tests in the same order as they're needed for getloadavg.c.
13989         Omit setgid-related tests that generate symbols KMEM_GROUP,
13990         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13991         Do only the tests that are needed to see whether the system has
13992         getloadavg, moving the other tests into ...
13993         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13994         NLIST_NAME_UNION; nobody should be using it.  Do not define
13995         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13996         relevant, as the user of this module shouldn't care how getloadavg
13997         is implemented.
13998
13999         getloadavg: omit unused var
14000         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14001
14002 2011-02-15  Jim Meyering  <meyering@redhat.com>
14003
14004         doc: update users.txt
14005         * users.txt: Update iwhd's URL.
14006
14007 2011-02-13  Bruno Haible  <bruno@clisp.org>
14008
14009         Consistent macro naming for macros that use GCC __attribute__.
14010         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14011         _ATTRIBUTE_NONNULL_.
14012         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14013         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14014         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14015         ATTRIBUTE_DEPRECATED.
14016         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14017         ATTRIBUTE_NORETURN.
14018         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14019         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14020         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14021         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14022         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14023         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14024         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14025         ATTRIBUTE_SENTINEL.
14026         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14027         ATTRIBUTE_RETURN_CHECK.
14028         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14029         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14030         ATTRIBUTE_NORETURN.
14031         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14032         Reported by Paul Eggert.
14033
14034 2011-02-13  Bruno Haible  <bruno@clisp.org>
14035
14036         Don't interfere with a program's definition of __attribute__.
14037         * lib/argp.h (__attribute__): Remove definition.
14038         (_GL_ATTRIBUTE_FORMAT): New macro.
14039         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14040         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14041         (_GL_ATTRIBUTE_FORMAT): New macro.
14042         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14043         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14044         GCC 3 or newer.
14045         * lib/error.h (__attribute__): Remove definition.
14046         (_GL_ATTRIBUTE_FORMAT): New macro.
14047         (error, error_at_line): Use it.
14048         * lib/hash.h (__attribute__): Remove definition.
14049         (ATTRIBUTE_WUR): Update definition. Define always.
14050         * lib/openat.h (__attribute__): Remove definition.
14051         (ATTRIBUTE_NORETURN): Update definition. Define always.
14052         * lib/sigpipe-die.h (__attribute__): Remove definition.
14053         (ATTRIBUTE_NORETURN): Update definition. Define always.
14054         * lib/vasnprintf.h (__attribute__): Remove definition.
14055         (_GL_ATTRIBUTE_FORMAT): New macro.
14056         (asnprintf, vasnprintf): Use it.
14057         * lib/xalloc.h (__attribute__): Remove definition.
14058         (ATTRIBUTE_NORETURN): Update definition. Define always.
14059         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14060         * lib/xmemdup0.h (__attribute__): Remove definition.
14061         (ATTRIBUTE_NORETURN): Update definition. Define always.
14062         * lib/xprintf.h (__attribute__): Remove definition.
14063         (_GL_ATTRIBUTE_FORMAT): New macro.
14064         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14065         * lib/xstrtol.h (__attribute__): Remove definition.
14066         (ATTRIBUTE_NORETURN): Update definition. Define always.
14067         * lib/xvasprintf.h (__attribute__): Remove definition.
14068         (_GL_ATTRIBUTE_FORMAT): New macro.
14069         (xasprintf, xvasprintf): Use it.
14070         * tests/test-argmatch.c (__attribute__): Remove definition.
14071         (ATTRIBUTE_NORETURN): Update definition. Define always.
14072         * tests/test-exclude.c (__attribute__): Remove definition.
14073         (ATTRIBUTE_NORETURN): Update definition. Define always.
14074         Reported by Paul Eggert.
14075
14076 2011-02-13  Bruno Haible  <bruno@clisp.org>
14077
14078         mbrtowc: Add more tests for native Windows platforms.
14079         * tests/test-mbrtowc-w32-1.sh: New file.
14080         * tests/test-mbrtowc-w32-2.sh: New file.
14081         * tests/test-mbrtowc-w32-3.sh: New file.
14082         * tests/test-mbrtowc-w32-4.sh: New file.
14083         * tests/test-mbrtowc-w32-5.sh: New file.
14084         * tests/test-mbrtowc-w32.c: New file.
14085         * modules/mbrtowc-tests (Files): Add them.
14086         (Makefile.am): Arrange to run these tests.
14087         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14088         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14089
14090 2011-02-13  Bruno Haible  <bruno@clisp.org>
14091
14092         mbrtowc: Work around native Windows bug.
14093         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14094         guess when no suitable locale for testing was found.
14095         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14096
14097 2011-02-13  Bruno Haible  <bruno@clisp.org>
14098
14099         mbsinit: Work around mingw bug.
14100         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14101         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14102         Windows.
14103         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14104
14105 2011-02-13  Bruno Haible  <bruno@clisp.org>
14106
14107         mbsinit: Don't crash for a NULL argument.
14108         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14109         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14110
14111 2011-02-13  Bruno Haible  <bruno@clisp.org>
14112
14113         Don't interfere with a program's definition of __attribute__.
14114         * lib/stdio.in.h (__attribute__): Remove definition.
14115         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14116         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14117         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14118         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14119         * lib/string.in.h (__attribute__): Remove definition.
14120         Reported by Paul Eggert.
14121
14122 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14123
14124         stdlib: don't get in the way of non-GCC __attribute__
14125         See thread starting at
14126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14127         Revert previous stdlib change, installing the following instead:
14128         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14129         to get in the way of a non-GCC compiler that supports __attribute__.
14130         (_GL_ATTRIBUTE_RETURN): New macro.
14131         (_Exit): Use it instead of __attribute__.
14132
14133 2011-02-12  Bruno Haible  <bruno@clisp.org>
14134
14135         quotearg test: Avoid test failure on mingw.
14136         * tests/test-quotearg.sh: Convert the locale identifier from native
14137         Windows syntax to Unix syntax.
14138
14139 2011-02-12  Bruno Haible  <bruno@clisp.org>
14140
14141         setlocale: Prefer gnulib's override over libintl's override.
14142         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14143         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14144         GNULIB_defined_setlocale is set.
14145
14146 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14147
14148         stdlib: support non-GCC __attribute__
14149
14150         Fix a serious and tricky problem encountered when attempting to
14151         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14152         5.5, but it crashed due to memory corruption on Solaris 10 with
14153         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14154         bits that are otherwise zero.  This tagging is optional inside
14155         Emacs but is preferred and is used when __attribute__ ((__aligned
14156         (8))) works, as it does with both recent-enough GCC and with Sun C
14157         5.11.  However, Sun C 5.11 is not GCC and does not #define
14158         __GNUC__ and __GNUC_MINOR__.
14159
14160         When I added the getloadavg module to Emacs, it brought in
14161         stdlib.in.h, which contained this fragment:
14162
14163            #ifndef __attribute__
14164            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14165            #  define __attribute__(Spec)   /* empty */
14166            # endif
14167            #endif
14168
14169         When files that include <stdlib.h> were compiled with Sun C 5.11,
14170         the above code disabled __attribute__ ((__aligned (8))), which
14171         caused variables to not be properly aligned, which eventually led
14172         to the pointer corruption mentioned above.  (This was a bit hard
14173         to diagnose, unfortunately.)
14174
14175         Several "#define __attribute__(X) /* empty */" code snippets need
14176         to be eradicated from Gnulib to work with non-GCC compilers that
14177         support __attribute__.  The Autoconf way to do this is to test for
14178         each kind of attribute that we want support for, and selectively
14179         enable that in source code.
14180
14181         Fix this problem just for stdlib.h, by adding a test for the
14182         __noreturn__ attribute, and change stdlib.in.h to use that test
14183         when needed.  This technique can be easily generalized to the
14184         other *.in.h files and attributes, and a similar technique can be
14185         used for *.h and *.c files.  This patch is enough to solve the
14186         problem for Emacs + getloadavg, and I thought I'd publish it for
14187         feedback before undertaking further, similar fixes in other
14188         modules.
14189
14190         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14191         because it's not needed for stdlib.h.  It merely substitutes the
14192         value directly into stdlib.h.  We may well need to #define it, or
14193         similar symbols, for other modules, but it's nice to also have an
14194         option to not #define it for applications like Emacs that do not
14195         need it.
14196
14197         * lib/stdlib.in.h (__attribute__): Do not #define.
14198         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14199         be defined only if the _Exit module is also used.
14200         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14202         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14203         platforms.
14204         * modules/_Exit (Files): Add m4/attribute.m4.
14205         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14206         * m4/attribute.m4: New file.
14207
14208 2011-02-12  Bruno Haible  <bruno@clisp.org>
14209
14210         wcsrtombs: Work around bug on native Windows.
14211         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14212         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14213         instead of len.
14214         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14215
14216 2011-02-12  Bruno Haible  <bruno@clisp.org>
14217
14218         mbsrtowcs: Work around bug on native Windows.
14219         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14220         against mingw bug.
14221         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14222
14223 2011-02-12  Bruno Haible  <bruno@clisp.org>
14224
14225         Avoid setlocale bugs in tests.
14226         * modules/btowc (Dependencies): Add setlocale.
14227         * modules/c-strcase (Dependencies): Likewise.
14228         * modules/mbmemcasecmp (Dependencies): Likewise.
14229         * modules/mbmemcasecoll (Dependencies): Likewise.
14230         * modules/mbrtowc (Dependencies): Likewise.
14231         * modules/mbscasecmp (Dependencies): Likewise.
14232         * modules/mbscasestr (Dependencies): Likewise.
14233         * modules/mbschr (Dependencies): Likewise.
14234         * modules/mbscspn (Dependencies): Likewise.
14235         * modules/mbsinit (Dependencies): Likewise.
14236         * modules/mbsncasecmp (Dependencies): Likewise.
14237         * modules/mbsnrtowcs (Dependencies): Likewise.
14238         * modules/mbspbrk (Dependencies): Likewise.
14239         * modules/mbspcasecmp (Dependencies): Likewise.
14240         * modules/mbsrchr (Dependencies): Likewise.
14241         * modules/mbsrtowcs (Dependencies): Likewise.
14242         * modules/mbsspn (Dependencies): Likewise.
14243         * modules/mbsstr (Dependencies): Likewise.
14244         * modules/nl_langinfo (Dependencies): Likewise.
14245         * modules/quotearg (Dependencies): Likewise.
14246         * modules/unicase/locale-language (Dependencies): Likewise.
14247         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14248         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14249         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14250         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14251         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14252         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14253         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14254         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14255         * modules/vasnprintf-posix (Dependencies): Likewise.
14256         * modules/wcrtomb (Dependencies): Likewise.
14257         * modules/wcsnrtombs (Dependencies): Likewise.
14258         * modules/wcsrtombs (Dependencies): Likewise.
14259
14260 2011-02-12  Bruno Haible  <bruno@clisp.org>
14261
14262         setlocale: Workaround native Windows bug.
14263         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14264         succeeds but sets LC_CTYPE to "C", report a failure.
14265         * tests/test-setlocale2.sh: New file.
14266         * tests/test-setlocale2.c: New file.
14267         * modules/setlocale-tests (Files): Add the new files.
14268         (Makefile.am): Enable test-setlocale2.sh test.
14269         * doc/posix-functions/setlocale.texi: Mention workaround.
14270
14271 2011-02-11  Bruno Haible  <bruno@clisp.org>
14272
14273         Tests for module 'setlocale'.
14274         * modules/setlocale-tests: New file.
14275         * tests/test-setlocale1.sh: New file.
14276         * tests/test-setlocale1.c: New file.
14277
14278         New module 'setlocale'.
14279         * lib/locale.in.h (setlocale): New declaration.
14280         * lib/setlocale.c: New file, based on
14281         gettext/gettext-runtime/intl/setlocale.c.
14282         * m4/setlocale.m4: New file.
14283         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14284         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14285         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14286         REPLACE_SETLOCALE.
14287         * modules/setlocale: New file.
14288         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14289         * doc/posix-functions/setlocale.texi: Mention the new module.
14290
14291 2011-02-11  Bruno Haible  <bruno@clisp.org>
14292
14293         Prepare for locale dependent tests on mingw.
14294         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14295         because it has the wrong locale encoding.
14296         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14297         French_France.1252 instead of "fr".
14298         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14299         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14300         because it has the wrong locale encoding.
14301         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14302         native Windows, try Turkish_Turkey.65001.
14303         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14304         Chinese_China.54936.
14305
14306         Prepare for locale dependent tests on mingw.
14307         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14308         differently.
14309         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14310         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14311         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14312         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14313
14314 2011-02-11  Eric Blake  <eblake@redhat.com>
14315
14316         strptime: avoid compiler warnings
14317         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14318         compiler warnings about dead code.
14319         Reported by Daniel P. Berrange.
14320
14321 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14322
14323         doc: update users.txt
14324         * users.txt: Add rcs.
14325
14326 2011-02-10  John W. Eaton  <jwe@gnu.org>
14327
14328         doc: update users.txt
14329         * users.txt: Add octave.
14330
14331 2011-02-10  Jim Meyering  <meyering@redhat.com>
14332
14333         doc: update users.txt
14334         * users.txt: Add iwhd.
14335
14336 2011-02-09  Bruno Haible  <bruno@clisp.org>
14337
14338         gnulib-tool: Make copyright notice adjustment more robust.
14339         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14340         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14341         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14342         License".
14343         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14344
14345 2011-02-06  Bruno Haible  <bruno@clisp.org>
14346
14347         New module 'towctrans'.
14348         * modules/towctrans: New file.
14349         * lib/wctype.in.h (towctrans): New declaration.
14350         * lib/towctrans.c: New file.
14351         * lib/towctrans-impl.h: New file.
14352         * m4/towctrans.m4: New file.
14353         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14354         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14355         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14356         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14357         * doc/posix-functions/towctrans.texi: Mention the new module.
14358
14359 2011-02-06  Bruno Haible  <bruno@clisp.org>
14360
14361         New module 'wctrans'.
14362         * modules/wctrans: New file.
14363         * lib/wctype.in.h (wctrans): New declaration.
14364         * lib/wctrans.c: New file.
14365         * lib/wctrans-impl.h: New file.
14366         * m4/wctrans.m4: New file.
14367         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14368         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14369         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14370         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14371         * doc/posix-functions/wctrans.texi: Mention the new module.
14372
14373 2011-02-06  Bruno Haible  <bruno@clisp.org>
14374
14375         New module 'iswctype'.
14376         * modules/iswctype: New file.
14377         * lib/wctype.in.h (iswctype): New declaration.
14378         * lib/iswctype.c: New file.
14379         * lib/iswctype-impl.h: New file.
14380         * m4/iswctype.m4: New file.
14381         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14382         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14383         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14384         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14385         * doc/posix-functions/iswctype.texi: Mention the new module and the
14386         HP-UX 11.00 problem.
14387
14388 2011-02-06  Bruno Haible  <bruno@clisp.org>
14389
14390         New module 'wctype'.
14391         * modules/wctype: Change to represent the wctype() substitute.
14392         * lib/wctype.in.h (wctype): New declaration.
14393         * lib/wctype.c: New file.
14394         * lib/wctype-impl.h: New file.
14395         * m4/wctype.m4: New file.
14396         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14397         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14398         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14399         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14400         * doc/posix-functions/wctype.texi: Mention the new module and the
14401         HP-UX 11.00 problem.
14402
14403 2011-02-06  Bruno Haible  <bruno@clisp.org>
14404
14405         wctype-h: Ensure wctype_t and wctrans_t are defined.
14406         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14407         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14408         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14409         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14410         HAVE_WCTRANS_T.
14411         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14412
14413 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14414
14415         flock: fix license typo
14416
14417         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14418         omitted.
14419
14420 2011-02-08  Bruno Haible  <bruno@clisp.org>
14421
14422         Split large sed scripts, for HP-UX sed.
14423         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14424         to avoid HP-UX limit of 99 commands, in the near future.
14425         * modules/stdlib (Makefile.am): Likewise.
14426         * modules/unistd (Makefile.am): Likewise.
14427         * modules/wchar (Makefile.am): Likewise.
14428         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14429         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14430         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14431
14432 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14433             Bruno Haible  <bruno@clisp.org>
14434
14435         stdlib: improve random_r modularization
14436         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14437         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14438         you also need the random_r module to get this material right.
14439         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14440         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14441         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14442
14443 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14444
14445         stdlib: don't depend on stdint
14446         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14447         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14448         be independent of whether stdint.h is needed.
14449         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14450         here, instead of ...
14451         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14452         struct random_data should be using the random_r module, not just
14453         the stdlib module (which wouldn't make sense: what package needs
14454         just struct random_data without also needing random_r?).
14455         * modules/stdlib (Depends-on): Remove stdint.
14456
14457         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14458         See the thread rooted at
14459         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14460         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14461         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14462         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14463         __VMS)); previously it was always included (via fcntl--.h).
14464         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14465         hand; this is good enough for load averages.  Also, do not use
14466         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14467         flags directly if available and don't bother otherwise.  (Packages
14468         that need the extra reliability should use the modules that define
14469         these flags on older platforms that lack them.)
14470         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14471         fcntl-safer.
14472
14473 2011-02-08  Jim Meyering  <meyering@redhat.com>
14474
14475         di-set.h, ino-map.h: add multiple-inclusion guard
14476         Technically, the guard is required only for ino-map.h, due to its
14477         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14478         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14479         * lib/ino-map.h: Likewise.
14480
14481 2011-02-06  Bruno Haible  <bruno@clisp.org>
14482
14483         iswblank: Ensure declaration on glibc systems.
14484         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14485         * modules/iswblank (Dependencies): Add 'extensions'.
14486         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14487
14488 2011-02-06  Bruno Haible  <bruno@clisp.org>
14489
14490         New module 'iswblank'.
14491         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14492         * modules/iswblank: New file.
14493         * modules/wctype-h (Files): Remove lib/iswblank.c.
14494         (Makefile.am): Substitute GNULIB_ISWBLANK.
14495         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14496         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14497         (gl_WCTYPE_H_DEFAULTS): New macro.
14498         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14499         * modules/iswblank-tests: New file.
14500         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14501         * tests/test-wctype-h.c (main): Remove iswblank tests.
14502         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14503         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14504         of 'wctype-h'.
14505         * NEWS: Mention the change.
14506         * modules/mbchar (Depends-on): Add iswblank.
14507
14508 2011-02-08  Bruno Haible  <bruno@clisp.org>
14509
14510         di-set tests: Refactor.
14511         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14512         unnecessary includes.
14513         (ASSERT): Remove macro.
14514         (main): Make C90 compliant by avoiding variable declaration after
14515         statement.
14516         * modules/di-set-tests (Files): Add tests/macros.h.
14517
14518 2011-02-08  Bruno Haible  <bruno@clisp.org>
14519
14520         ino-map tests: Refactor.
14521         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14522         unnecessary includes.
14523         (ASSERT): Remove macro.
14524         (main): Make C90 compliant by avoiding variable declaration after
14525         statement.
14526         * modules/ino-map-tests (Files): Add tests/macros.h.
14527
14528 2011-02-08  Jim Meyering  <meyering@redhat.com>
14529
14530         di-set: add "const" to a cast
14531         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14532         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14533
14534 2011-02-06  Bruno Haible  <bruno@clisp.org>
14535
14536         Rename module 'wctype' to 'wctype-h'.
14537         * modules/wctype-h: Renamed from modules/wctype.
14538         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14539         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14540         (Files, Depends-on, Makefile.am): Update.
14541         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14542         (Files, Makefile.am): Update.
14543         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14544         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14545         * doc/posix-headers/wctype.texi: Update.
14546         * doc/posix-functions/iswalnum.texi: Update.
14547         * doc/posix-functions/iswalpha.texi: Update.
14548         * doc/posix-functions/iswblank.texi: Update.
14549         * doc/posix-functions/iswcntrl.texi: Update.
14550         * doc/posix-functions/iswdigit.texi: Update.
14551         * doc/posix-functions/iswgraph.texi: Update.
14552         * doc/posix-functions/iswlower.texi: Update.
14553         * doc/posix-functions/iswprint.texi: Update.
14554         * doc/posix-functions/iswpunct.texi: Update.
14555         * doc/posix-functions/iswspace.texi: Update.
14556         * doc/posix-functions/iswupper.texi: Update.
14557         * doc/posix-functions/iswxdigit.texi: Update.
14558         * doc/posix-functions/towlower.texi: Update.
14559         * doc/posix-functions/towupper.texi: Update.
14560         * NEWS: Mention the change.
14561         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14562         * modules/mbchar (Dependencies): Likewise.
14563         * modules/mbswidth (Dependencies): Likewise.
14564         * modules/quotearg (Dependencies): Likewise.
14565         * modules/regex (Dependencies): Likewise.
14566         * modules/wcscasecmp (Dependencies): Likewise.
14567         * modules/wcsncasecmp (Dependencies): Likewise.
14568         * modules/wcwidth (Dependencies): Likewise.
14569
14570 2011-02-06  Bruno Haible  <bruno@clisp.org>
14571
14572         New module 'wcswidth'.
14573         * modules/wcswidth: New file.
14574         * lib/wchar.in.h (wcswidth): New declaration.
14575         * lib/wcswidth.c: New file.
14576         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14577         * m4/wcswidth.m4: New file.
14578         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14579         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14580         REPLACE_WCSWIDTH.
14581         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14582         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14583         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14584         * doc/posix-functions/wcswidth.texi: Mention the new module.
14585
14586 2011-02-06  Bruno Haible  <bruno@clisp.org>
14587
14588         New module 'wcstok'.
14589         * modules/wcstok: New file.
14590         * lib/wchar.in.h (wcstok): New declaration.
14591         * lib/wcstok.c: New file.
14592         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14593         * m4/wcstok.m4: New file.
14594         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14595         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14596         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14597         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14598         * doc/posix-functions/wcstok.texi: Mention the new module.
14599
14600 2011-02-06  Bruno Haible  <bruno@clisp.org>
14601
14602         New module 'wcsstr'.
14603         * modules/wcsstr: New file.
14604         * lib/wchar.in.h (wcsstr): New declaration.
14605         * lib/wcsstr.c: New file.
14606         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14607         * m4/wcsstr.m4: New file.
14608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14610         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14611         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14612         * doc/posix-functions/wcsstr.texi: Mention the new module.
14613
14614 2011-02-06  Bruno Haible  <bruno@clisp.org>
14615
14616         New module 'wcspbrk'.
14617         * modules/wcspbrk: New file.
14618         * lib/wchar.in.h (wcspbrk): New declaration.
14619         * lib/wcspbrk.c: New file.
14620         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14621         * m4/wcspbrk.m4: New file.
14622         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14623         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14624         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14625         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14626         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14627
14628 2011-02-06  Bruno Haible  <bruno@clisp.org>
14629
14630         New module 'wcsspn'.
14631         * modules/wcsspn: New file.
14632         * lib/wchar.in.h (wcsspn): New declaration.
14633         * lib/wcsspn.c: New file.
14634         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14635         * m4/wcsspn.m4: New file.
14636         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14637         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14638         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14639         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14640         * doc/posix-functions/wcsspn.texi: Mention the new module.
14641
14642 2011-02-06  Bruno Haible  <bruno@clisp.org>
14643
14644         New module 'wcscspn'.
14645         * modules/wcscspn: New file.
14646         * lib/wchar.in.h (wcscspn): New declaration.
14647         * lib/wcscspn.c: New file.
14648         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14649         * m4/wcscspn.m4: New file.
14650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14652         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14653         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14654         * doc/posix-functions/wcscspn.texi: Mention the new module.
14655
14656 2011-02-06  Bruno Haible  <bruno@clisp.org>
14657
14658         New module 'wcsrchr'.
14659         * modules/wcsrchr: New file.
14660         * lib/wchar.in.h (wcsrchr): New declaration.
14661         * lib/wcsrchr.c: New file.
14662         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14663         * m4/wcsrchr.m4: New file.
14664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14666         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14667         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14668         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14669
14670 2011-02-06  Bruno Haible  <bruno@clisp.org>
14671
14672         New module 'wcschr'.
14673         * modules/wcschr: New file.
14674         * lib/wchar.in.h (wcschr): New declaration.
14675         * lib/wcschr.c: New file.
14676         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14677         * m4/wcschr.m4: New file.
14678         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14679         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14680         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14681         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14682         * doc/posix-functions/wcschr.texi: Mention the new module.
14683
14684 2011-02-06  Bruno Haible  <bruno@clisp.org>
14685
14686         New module 'wcsdup'.
14687         * modules/wcsdup: New file.
14688         * lib/wchar.in.h (wcsdup): New declaration.
14689         * lib/wcsdup.c: New file.
14690         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14691         * m4/wcsdup.m4: New file.
14692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14694         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14695         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14696         * doc/posix-functions/wcsdup.texi: Mention the new module.
14697
14698 2011-02-06  Bruno Haible  <bruno@clisp.org>
14699
14700         New module 'wcsxfrm'.
14701         * modules/wcsxfrm: New file.
14702         * lib/wchar.in.h (wcsxfrm): New declaration.
14703         * lib/wcsxfrm.c: New file.
14704         * lib/wcsxfrm-impl.h: New file.
14705         * m4/wcsxfrm.m4: New file.
14706         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14707         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14708         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14709         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14710         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14711
14712 2011-02-06  Bruno Haible  <bruno@clisp.org>
14713
14714         New module 'wcscoll'.
14715         * modules/wcscoll: New file.
14716         * lib/wchar.in.h (wcscoll): New declaration.
14717         * lib/wcscoll.c: New file.
14718         * lib/wcscoll-impl.h: New file.
14719         * m4/wcscoll.m4: New file.
14720         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14721         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14722         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14723         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14724         * doc/posix-functions/wcscoll.texi: Mention the new module.
14725
14726 2011-02-06  Bruno Haible  <bruno@clisp.org>
14727
14728         New module 'wcsncasecmp'.
14729         * modules/wcsncasecmp: New file.
14730         * lib/wchar.in.h (wcsncasecmp): New declaration.
14731         * lib/wcsncasecmp.c: New file.
14732         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14733         * m4/wcsncasecmp.m4: New file.
14734         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14735         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14736         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14737         HAVE_WCSNCASECMP.
14738         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14739         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14740
14741 2011-02-06  Bruno Haible  <bruno@clisp.org>
14742
14743         New module 'wcscasecmp'.
14744         * modules/wcscasecmp: New file.
14745         * lib/wchar.in.h (wcscasecmp): New declaration.
14746         * lib/wcscasecmp.c: New file.
14747         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14748         * m4/wcscasecmp.m4: New file.
14749         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14750         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14751         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14752         HAVE_WCSCASECMP.
14753         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14754         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14755
14756 2011-02-05  Bruno Haible  <bruno@clisp.org>
14757
14758         New module 'wcsncmp'.
14759         * modules/wcsncmp: New file.
14760         * lib/wchar.in.h (wcsncmp): New declaration.
14761         * lib/wcsncmp.c: New file.
14762         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14763         * m4/wcsncmp.m4: New file.
14764         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14765         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14766         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14767         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14768         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14769
14770 2011-02-05  Bruno Haible  <bruno@clisp.org>
14771
14772         New module 'wcscmp'.
14773         * modules/wcscmp: New file.
14774         * lib/wchar.in.h (wcscmp): New declaration.
14775         * lib/wcscmp.c: New file.
14776         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14777         * m4/wcscmp.m4: New file.
14778         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14779         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14780         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14781         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14782         * doc/posix-functions/wcscmp.texi: Mention the new module.
14783
14784 2011-02-05  Bruno Haible  <bruno@clisp.org>
14785
14786         New module 'wcsncat'.
14787         * modules/wcsncat: New file.
14788         * lib/wchar.in.h (wcsncat): New declaration.
14789         * lib/wcsncat.c: New file.
14790         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14791         * m4/wcsncat.m4: New file.
14792         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14793         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14794         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14795         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14796         * doc/posix-functions/wcsncat.texi: Mention the new module.
14797
14798 2011-02-05  Bruno Haible  <bruno@clisp.org>
14799
14800         New module 'wcscat'.
14801         * modules/wcscat: New file.
14802         * lib/wchar.in.h (wcscat): New declaration.
14803         * lib/wcscat.c: New file.
14804         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14805         * m4/wcscat.m4: New file.
14806         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14807         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14808         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14809         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14810         * doc/posix-functions/wcscat.texi: Mention the new module.
14811
14812 2011-02-05  Bruno Haible  <bruno@clisp.org>
14813
14814         New module 'wcpncpy'.
14815         * modules/wcpncpy: New file.
14816         * lib/wchar.in.h (wcpncpy): New declaration.
14817         * lib/wcpncpy.c: New file.
14818         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14819         * m4/wcpncpy.m4: New file.
14820         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14821         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14822         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14823         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14824         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14825
14826 2011-02-05  Bruno Haible  <bruno@clisp.org>
14827
14828         New module 'wcsncpy'.
14829         * modules/wcsncpy: New file.
14830         * lib/wchar.in.h (wcsncpy): New declaration.
14831         * lib/wcsncpy.c: New file.
14832         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14833         * m4/wcsncpy.m4: New file.
14834         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14835         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14836         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14837         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14838         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14839
14840 2011-02-05  Bruno Haible  <bruno@clisp.org>
14841
14842         New module 'wcpcpy'.
14843         * modules/wcpcpy: New file.
14844         * lib/wchar.in.h (wcpcpy): New declaration.
14845         * lib/wcpcpy.c: New file.
14846         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14847         * m4/wcpcpy.m4: New file.
14848         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14849         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14850         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14851         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14852         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14853
14854 2011-02-05  Bruno Haible  <bruno@clisp.org>
14855
14856         New module 'wcscpy'.
14857         * modules/wcscpy: New file.
14858         * lib/wchar.in.h (wcscpy): New declaration.
14859         * lib/wcscpy.c: New file.
14860         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14861         * m4/wcscpy.m4: New file.
14862         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14863         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14864         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14865         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14866         * doc/posix-functions/wcscpy.texi: Mention the new module.
14867
14868 2011-02-05  Bruno Haible  <bruno@clisp.org>
14869
14870         New module 'wcsnlen'.
14871         * modules/wcsnlen: New file.
14872         * lib/wchar.in.h (wcsnlen): New declaration.
14873         * lib/wcsnlen.c: New file.
14874         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14875         * m4/wcsnlen.m4: New file.
14876         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14877         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14878         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14879         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14880         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14881
14882 2011-02-05  Bruno Haible  <bruno@clisp.org>
14883
14884         New module 'wcslen'.
14885         * modules/wcslen: New file.
14886         * lib/wchar.in.h (wcslen): New declaration.
14887         * lib/wcslen.c: New file.
14888         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14889         * m4/wcslen.m4: New file.
14890         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14891         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14892         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14893         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14894         * doc/posix-functions/wcslen.texi: Mention the new module.
14895
14896 2011-02-05  Bruno Haible  <bruno@clisp.org>
14897
14898         New module 'wmemset'.
14899         * modules/wmemset: New file.
14900         * lib/wchar.in.h (wmemset): New declaration.
14901         * lib/wmemset.c: New file.
14902         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14903         * m4/wmemset.m4: New file.
14904         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14905         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14906         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14907         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14908         * doc/posix-functions/wmemset.texi: Mention the new module.
14909
14910 2011-02-05  Bruno Haible  <bruno@clisp.org>
14911
14912         New module 'wmemmove'.
14913         * modules/wmemmove: New file.
14914         * lib/wchar.in.h (wmemmove): New declaration.
14915         * lib/wmemmove.c: New file.
14916         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14917         * m4/wmemmove.m4: New file.
14918         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14919         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14920         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14921         HAVE_WMEMMOVE.
14922         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14923         * doc/posix-functions/wmemmove.texi: Mention the new module.
14924
14925 2011-02-05  Bruno Haible  <bruno@clisp.org>
14926
14927         New module 'wmemcpy'.
14928         * modules/wmemcpy: New file.
14929         * lib/wchar.in.h (wmemcpy): New declaration.
14930         * lib/wmemcpy.c: New file.
14931         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14932         * m4/wmemcpy.m4: New file.
14933         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14934         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14935         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14936         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14937         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14938
14939 2011-02-05  Bruno Haible  <bruno@clisp.org>
14940
14941         New module 'wmemcmp'.
14942         * modules/wmemcmp: New file.
14943         * lib/wchar.in.h (wmemcmp): New declaration.
14944         * lib/wmemcmp.c: New file.
14945         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14946         * m4/wmemcmp.m4: New file.
14947         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14948         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14949         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14950         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14951         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14952
14953 2011-02-07  Jim Meyering  <meyering@redhat.com>
14954
14955         di-set, ino-map: new modules, from coreutils
14956         * lib/di-set.c: New file.
14957         * lib/di-set.h: Likewise.
14958         * lib/ino-map.c: Likewise.
14959         * lib/ino-map.h: Likewise.
14960         * modules/di-set: Likewise.
14961         * modules/di-set-tests: Likewise.
14962         * modules/ino-map: Likewise.
14963         * modules/ino-map-tests: Likewise.
14964         * tests/test-di-set.c: Likewise.
14965         * tests/test-ino-map.c: Likewise.
14966
14967 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14968
14969         getloadavg: merge minor changes from Emacs
14970
14971         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14972         (getloadavg): Use memset, not bzero.
14973
14974         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14975         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14976         clash (bug#86).
14977
14978 2010-11-14  Bruno Haible  <bruno@clisp.org>
14979
14980         Allow multiple gnulib generated replacements to coexist.
14981         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14982         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14983         * lib/langinfo.in.h (nl_item): Likewise.
14984         * lib/math.in.h (_NaN, NAN): Likewise.
14985         * lib/netdb.in.h (struct addrinfo): Likewise.
14986         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14987         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14988         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14989         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14990         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14991         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14992         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14993         pthread_mutexattr_init, pthread_mutexattr_settype,
14994         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14995         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14996         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14997         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14998         * lib/sched.in.h (struct sched_param): Likewise.
14999         * lib/se-selinux.in.h (security_class_t, security_context_t,
15000         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15001         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15002         lsetfilecon, fsetfilecon, security_check_context,
15003         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15004         Likewise.
15005         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15006         Likewise.
15007         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15008         _gl_function_taking_int_returning_void_t, union sigval,
15009         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15010         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15011         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15012         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15013         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15014         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15015         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15016         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15017         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15018         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15019         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15020         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15021         socklen_t, rpl_fd_isset): Likewise.
15022         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15023         * lib/sys_time.in.h (struct timeval): Likewise.
15024         * lib/sys_times.in.h (struct tms): Likewise.
15025         * lib/sys_utsname.in.h (struct utsname):
15026         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15027         * lib/unistd.in.h (getpagesize): Likewise.
15028         * lib/wchar.in.h (mbstate_t): Likewise.
15029         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15030         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15031         towlower, towupper): Likewise.
15032         Reported by Sam Steingold <sds@gnu.org>.
15033
15034 2011-02-05  Eric Blake  <eblake@redhat.com>
15035
15036         unsetenv: work around Haiku issues
15037         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15038         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15039
15040 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15041
15042         libposix: avoid calling error() within libposix
15043         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15044         is defined.
15045
15046 2011-02-05  Eric Blake  <eblake@redhat.com>
15047
15048         strerror_r-posix: port to cygwin
15049         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15050         implementation.
15051         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15052         * tests/test-strerror_r.c (main): Fix test.
15053         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15054         issue.
15055
15056 2011-02-05  Bruno Haible  <bruno@clisp.org>
15057
15058         New module 'wmemchr'.
15059         * modules/wmemchr: New file.
15060         * lib/wchar.in.h (wmemchr): New declaration.
15061         * lib/wmemchr.c: New file.
15062         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15063         * m4/wmemchr.m4: New file.
15064         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15065         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15066         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15067         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15068         * doc/posix-functions/wmemchr.texi: Mention the new module.
15069
15070 2011-02-04  Eric Blake  <eblake@redhat.com>
15071
15072         fdopendir: detect FreeBSD bug
15073         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15074         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15075
15076 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15077
15078         stdbool: do not define HAVE_STDBOOL_H
15079         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15080         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15081         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15082         imported from the latest Autoconf git.  It was motivated by Emacs,
15083         which uses gnulib but does not need HAVE_STDBOOL_H.
15084
15085 2011-02-04  Bruno Haible  <bruno@clisp.org>
15086
15087         wcsnrtombs: Prepare for new module wwcsnrtombs.
15088         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15089         * lib/wcsnrtombs.c: Include it.
15090         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15091
15092         wcsrtombs: Prepare for new module wwcsrtombs.
15093         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15094         * lib/wcsrtombs.c: Include it.
15095         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15096
15097         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15098         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15099         * lib/mbsnrtowcs.c: Include it.
15100         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15101
15102         mbsrtowcs: Prepare for new module mbsrtowwcs.
15103         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15104         * lib/mbsrtowcs.c: Include it.
15105         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15106
15107 2011-02-04  Bruno Haible  <bruno@clisp.org>
15108
15109         vasnprintf: Reduce use of malloc for small format strings.
15110         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15111         (arguments): Add room for the first 7 arguments.
15112         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15113         (char_directives, u8_directives, u16_directives, u32_directives): Add
15114         room for the first 7 directives.
15115         * lib/printf-parse.c: Include <string.h>.
15116         (PRINTF_PARSE): Change memory handling code so that it uses the first
15117         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15118         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15119         Reported by Pádraig Brady <P@draigbrady.com>.
15120
15121 2011-01-31  Eric Blake  <eblake@redhat.com>
15122
15123         dup2: work around Haiku bug
15124         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15125         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15126         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15127         * tests/test-dup2.c (main): Enhance test.
15128
15129 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15130
15131         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15132         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15133         declared by eglibc 2.11.2.
15134         * lib/stdio.in.h: Likewise.
15135
15136 2011-01-31  Eric Blake  <eblake@redhat.com>
15137
15138         ignore-value: add missing test dependency
15139         * tests/test-ignore-value.c: Revert previous change; stdio.h
15140         provides off_t.
15141         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15142
15143 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15144
15145         mktime: clarify long_int width checking
15146         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15147         the top level, to make it clearer that the assumption about
15148         long_int width is being checked.  See
15149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15150
15151 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15152
15153         ignore-value: Fix self-test.
15154         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15155
15156 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15157
15158         TYPE_MAXIMUM: avoid theoretically undefined behavior
15159         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15160         negative number, which the C Standard says has undefined behavior.
15161         In practice this is not a problem, but might as well do it by the book.
15162         Reported by Rich Felker and Eric Blake; see
15163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15164         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15165         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15166         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15167         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15168         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15169         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15170
15171         mktime: #undef mktime before #defining it
15172         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15173
15174         mktime: systematically normalize tm_isdst comparisons
15175         * lib/mktime.c (isdst_differ): New function.
15176         (__mktime_internal): Use it systematically for all isdst comparisons.
15177         This completes the fix for libc BZ #6723, and removes the need for
15178         normalizing tm_isdst.  See
15179         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15180         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15181
15182         mktime: fix some integer overflow issues and sidestep the rest
15183
15184         This was prompted by a bug report by Benjamin Lindner for MinGW
15185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15186         His bug is due to signed integer overflow (0 - INT_MIN), and I
15187         I scanned through mktime.c looking for other integer overflow
15188         problems, fixing all the bugs I found.
15189
15190         Although the C Standard says the resulting code is still not safe
15191         in the presence of integer overflow, in practice it should be good
15192         enough for all real-world two's-complement implementations, except
15193         for debugging environments that deliberately trap on integer
15194         overflow (e.g., gcc -ftrapv).
15195
15196         * lib/mktime.c (WRAPV): New macro.
15197         (SHR): Also check that long_int and time_t shift right in the
15198         usual way, before using the fast-but-unportable method.
15199         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15200         used.  The code already assumed two's complement, so there's
15201         no need to test for alternatives.  All uses removed.
15202         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15203         the C standard.  Problem reported by Rich Felker in
15204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15205         (twos_complement_arithmetic): Also check long_int and time_t.
15206         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15207         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15208         (__mktime_internal): Avoid integer overflow with unary subtraction
15209         in two instances where -1 - X is an adequate replacement for -X,
15210         since the calculations are approximate.
15211
15212 2011-01-29  Eric Blake  <eblake@redhat.com>
15213
15214         mktime: avoid infinite loop
15215         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15216         type; behavior is still undefined but portable to all known targets.
15217         Reported by Rich Felker.
15218
15219 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15220
15221         rename, unlink, same-inode: Relicense.
15222         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15223         * modules/unlink (License): Likewise.
15224         * modules/same-inode (License): Likewise.
15225
15226 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15227
15228         mktime: avoid problems on NetBSD 5 / i386
15229         * lib/mktime.c (long_int): New type.  This works around a problem
15230         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15231         but time_t is 64 bits, and where I expect the existing code is
15232         wrong in some cases.
15233         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15234         (ydhms_diff): Bring back the compile-time check for wide-enough
15235         year and yday.
15236
15237         mktime: fix misspelling in comment
15238         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15239         This merges all recent glibc changes of importance.
15240
15241 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15242
15243         move-if-change: cope with concurrent mv of identical file.
15244         * build-aux/move-if-change (CMPPROG): Accept environment
15245         variable as an override for `cmp'.
15246         (usage): Document CMPPROG.
15247         Adjust comparison to drop stdout.  Cope with failure of mv if
15248         the target file exists and is identical to the source, for
15249         parallel builds.
15250         Report from H.J. Lu against binutils in PR binutils/12283.
15251
15252 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15253
15254         * users.txt: Mention sharutils.
15255
15256 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15257
15258         * users.txt: Mention OATH Toolkit.
15259
15260 2011-01-27  Bruno Haible  <bruno@clisp.org>
15261
15262         Prepare for supporting FreeBSD 10.
15263         * build-aux/config.libpath: Remove handling of freebsd1*.
15264
15265 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15266
15267         Prepare for supporting FreeBSD 10.
15268         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15269         match FreeBSD 10.0.
15270
15271 2011-01-27  Bruno Haible  <bruno@clisp.org>
15272
15273         vma-iter, get-rusage-as: Add OpenBSD support.
15274         * modules/vma-iter (configure.ac): Test for mquery.
15275         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15276         * lib/vma-iter.c: Include <sys/mman.h>.
15277         (vma_iterate): Add an implementation based on mquery().
15278         * lib/resource-ext.h (get_rusage_as): Update comments.
15279         * lib/get-rusage-as.c: Likewise.
15280         * lib/get-rusage-data.c: Likewise.
15281
15282 2011-01-26  Karl Berry  <karl@gnu.org>
15283
15284         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15285         variables to make it easier to override the makeinfo program used.
15286
15287 2011-01-26  Eric Blake  <eblake@redhat.com>
15288
15289         fcntl: work around Haiku F_DUPFD bugs
15290         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15291         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15292         cloexec bit on duplication.
15293         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15294
15295 2011-01-26  Bruno Haible  <bruno@clisp.org>
15296
15297         Enable memory leak tests on AIX.
15298         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15299         * tests/test-fprintf-posix3.c (main): Likewise.
15300
15301 2011-01-26  Bruno Haible  <bruno@clisp.org>
15302
15303         Tests for module 'get-rusage-data'.
15304         * modules/get-rusage-data-tests: New file.
15305         * tests/test-get-rusage-data.c: New file.
15306
15307         New module 'get-rusage-data'.
15308         * lib/resource-ext.h (get_rusage_data): New declaration.
15309         * lib/get-rusage-data.c: New file.
15310         * modules/get-rusage-data: New file.
15311
15312 2011-01-25  Bruno Haible  <bruno@clisp.org>
15313
15314         get-rusage-as: Allow for easier testing.
15315         * lib/resource-ext.h (get_rusage_as): Add comment.
15316         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15317         (main): New function for interactive testing.
15318
15319 2011-01-25  Bruno Haible  <bruno@clisp.org>
15320
15321         vma-iter: Treat Haiku like BeOS.
15322         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15323         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15324
15325 2011-01-25  Eric Blake  <eblake@redhat.com>
15326
15327         c-stack: fix regression on cygwin when libsigsegv is present
15328         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15329
15330 2011-01-24  Bruno Haible  <bruno@clisp.org>
15331
15332         vma-iter: Avoid empty intervals.
15333         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15334         on an empty interval.
15335
15336 2011-01-24  Jim Meyering  <meyering@redhat.com>
15337
15338         u64: remove unnecessary #include
15339         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15340
15341 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15342
15343         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15344         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15345
15346 2011-01-23  Bruno Haible  <bruno@clisp.org>
15347
15348         New module 'vma-iter'.
15349         * lib/vma-iter.h: New file.
15350         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15351         * modules/vma-iter: New file.
15352         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15353         for get_rusage_as_via_iterator.
15354         (vma_iterate_callback): New function.
15355         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15356         * modules/get-rusage-as (Depends-on): Add vma-iter.
15357
15358 2011-01-23  Bruno Haible  <bruno@clisp.org>
15359
15360         uninorm: Tweak includes.
15361         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15362         Reported by Jim Meyering.
15363
15364 2011-01-23  Bruno Haible  <bruno@clisp.org>
15365
15366         get-rusage-as: Improve on NetBSD.
15367         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15368         /proc, like on FreeBSD.
15369
15370 2011-01-23  Jim Meyering  <meyering@redhat.com>
15371
15372         xreadlink.h: remove unnecessary #include
15373         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15374
15375         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15376         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15377
15378 2011-01-23  Bruno Haible  <bruno@clisp.org>
15379
15380         get-rusage-as: Fix bug.
15381         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15382         original limit when aborting the first loop.
15383
15384 2011-01-23  Bruno Haible  <bruno@clisp.org>
15385
15386         wctype: Ensure valid C syntax.
15387         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15388         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15389
15390 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15391
15392         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15393         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15394         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15395         as they are needed only for configure's test case.
15396         This removes two unnecessary symbols from config.h.
15397
15398         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15399         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15400         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15401         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15402         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15403         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15404         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15405         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15406         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15407         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15408         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15409         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15410         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15411         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15412         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15413         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15414         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15415         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15416
15417 2011-01-21  Eric Blake  <eblake@redhat.com>
15418
15419         maintainer-makefile: work with older git for submodule check
15420         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15421         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15422         Reported by Matthias Bolte.
15423
15424         bootstrap: minor portability fixes
15425         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15426         (usage): Omit leading capital and trailing . on help phrases, per
15427         GNU Coding Standards.
15428         (check_versions, top level): Prefix messages with script name.
15429
15430 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15431
15432         bootstrap: support --no-git option
15433         * build-aux/bootstrap: Add --no-git option, to be used when
15434         --gnulib-srcdir points to the exact desired checkout.
15435
15436 2011-01-21  Eric Blake  <eblake@redhat.com>
15437
15438         strerror_r-posix: work with glibc 2.13
15439         * lib/strerror_r.c (strerror_r): Fix return type.
15440
15441 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15442             Bruno Haible  <bruno@clisp.org>
15443
15444         uN_strstr: New unit tests.
15445         * modules/unistr/u8-strstr-tests: New file.
15446         * modules/unistr/u16-strstr-tests: New file.
15447         * modules/unistr/u32-strstr-tests: New file.
15448         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15449         * tests/unistr/test-u8-strstr.c: New file.
15450         * tests/unistr/test-u16-strstr.c: New file.
15451         * tests/unistr/test-u32-strstr.c: New file.
15452
15453 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15454             Bruno Haible  <bruno@clisp.org>
15455
15456         Make uN_strstr functions O(n) worst-case.
15457         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15458         16-bit and 32-bit unit cases, use the unibyte algorithm from
15459         lib/mbsstr.c.
15460         * lib/unistr/u8-strstr.c: Include <string.h>.
15461         (UNIT_IS_UINT8_T): New macro.
15462         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15463         (U_STRLEN, U_STRNLEN): New macros.
15464         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15465         (U_STRLEN, U_STRNLEN): New macros.
15466         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15467         (configure.ac): Update required libunistring version.
15468         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15469         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15470         malloca.
15471         (configure.ac): Update required libunistring version.
15472         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15473         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15474         malloca.
15475         (configure.ac): Update required libunistring version.
15476
15477 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15478             Bruno Haible  <bruno@clisp.org>
15479
15480         Prepare for faster uN_strstr functions.
15481         * lib/str-kmp.h: Support definable UNITs.
15482         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15483         needle_len argument.
15484         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15485         * lib/mbscasestr.c (mbscasestr): Likewise.
15486
15487 2011-01-21  Pádraig Brady <P@draigBrady.com>
15488
15489         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15490         * tests/test-malloca.c (main): Unset the environment variable
15491         to greatly speed up the test.
15492         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15493         * modules/malloca-tests: Depend on unsetenv.
15494
15495 2011-01-21  Pádraig Brady <P@draigBrady.com>
15496
15497         ignore-value: remove stdint dependency
15498         * lib/ignore-value.h: Remove <stdint.h>
15499         * modules/ignore-value: Remove stdint dependency.
15500
15501 2011-01-21  Jim Meyering  <meyering@redhat.com>
15502
15503         maint.mk: adjust variable name to be consistent with other gl_ vars
15504         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15505         to be lower case.
15506
15507 2011-01-20  Jim Meyering  <meyering@redhat.com>
15508
15509         maint.mk: make "check" depend on public-submodule-commit by default
15510         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15511
15512 2011-01-20  Bruno Haible  <bruno@clisp.org>
15513
15514         mbfile, mbiter: Complete change from 2008-12-21.
15515         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15516         * m4/mbiter.m4 (gl_MBITER): Likewise.
15517
15518 2011-01-20  Jim Meyering  <meyering@redhat.com>
15519
15520         init.sh: insert space between each function name and "()"
15521         * tests/init.sh: Make it a little easier to see that a function's
15522         name is "warn_", and not "warn" when looking at the first part of
15523         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15524
15525 2011-01-20  Jim Meyering  <meyering@redhat.com>
15526
15527         mountlist: clean up code formatting
15528         * lib/mountlist.c (read_file_system_list): Split a long line,
15529         correct bracing style, use NULL in place of "(struct statfs *)0",
15530         don't parenthesize return value, add spaces around "=" and after
15531         ";-in-for-stmt".
15532
15533 2011-01-14  Markus Duft <mduft@gentoo.org>
15534
15535         mountlist: add support for Interix
15536         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15537         Apply statvfs to all entries of /dev/fs.
15538         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15539         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15540
15541 2011-01-20  Jim Meyering  <meyering@redhat.com>
15542
15543         maint.mk: improve the public-submodule-commit rule
15544         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15545         to suppress printing of its commands... unless V=1.
15546         Add git submodule's --quiet option to suppress printing of e.g.,
15547         "Entering gnulib" output.
15548         "cd" into $(srcdir) before running git submodule.
15549
15550 2011-01-20  Bruno Haible  <bruno@clisp.org>
15551
15552         include_next: Fix bug introduced on 2011-01-18.
15553         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15554         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15555         ac_cv_header_... variable if the second argument is not 'check'.
15556         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15557         gl_NEXT_HEADERS_INTERNAL.
15558
15559 2011-01-20  Bruno Haible  <bruno@clisp.org>
15560
15561         Allow the user to avoid the GNULIB_TEST_* macros.
15562         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15563         Suggested by Paul Eggert.
15564
15565 2011-01-14  Jim Meyering  <meyering@redhat.com>
15566
15567         bootstrap: avoid failure when there is no .gitmodules file
15568         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15569         has been assigned to, even when its value is the empty string.
15570         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15571         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15572         Reported by John W. Eaton <jwe@gnu.org>.
15573
15574 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15575
15576         assume <ctype.h>, ..., <time.h> exist
15577         For years gnulib has been assuming the existence of the headers
15578         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15579         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15580         them, since they don't appear to be needed.
15581         * README (Portability guidelines): Document this.
15582         * lib/flock.c: Assume <fcntl.h> exists.
15583         * lib/regex_internal.h: Assume <locale.h> exists.
15584         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15585         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15586         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15587         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15588         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15589         * m4/regex.m4 (gl_REGEX): Likewise.
15590         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15591         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15592         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15593         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15594         * tests/test-argp.c: Likewise.
15595         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15596
15597         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15598         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15599         AA_APPLE_UNIVERSAL_BUILD.  See
15600         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15601         * NEWS: Document this.
15602
15603 2011-01-19  Eric Blake  <eblake@redhat.com>
15604
15605         c-stack: assume stack overflow if SA_SIGINFO unsupported
15606         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15607         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15608         sigaction will work.
15609         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15610         behavior match Linux.
15611         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15612
15613         stdbool-tests: accomodate Haiku
15614         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15615
15616         binary-io: fix O_TEXT on Haiku
15617         * modules/binary-io (Depends-on): Add fcntl-h.
15618         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15619         than blindly undefining O_TEXT.
15620         Reported by Scott McCreary.
15621
15622 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15623
15624         include_next: do not check for standard headers like stddef.h
15625
15626         I found this problem when modifying Emacs to use gnulib.
15627         I noticed that it added HAVE_STDDEF_H to config.h, even though
15628         gnulib always assumes <stddef.h> exists as per README and this
15629         symbol is unnecessary.
15630         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15631         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15632         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15633         faster for headers like stddef.h that are known to exist.
15634         (gl_CHECK_NEXT_HEADERS): Use it.
15635         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15636         rather than gl_CHECK_NEXT_HEADERS.
15637         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15638         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15639
15640 2011-01-18  Eric Blake  <eblake@redhat.com>
15641
15642         ansi-c++-opt: skip C++ dependency style if C++ is unused
15643         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15644         tests when we know C++ compilation is not desired.
15645         Reported by Scott McCreary.
15646
15647 2011-01-18  Bruno Haible  <bruno@clisp.org>
15648
15649         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15650         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15651         (main): Perform test also when getrlimit and setrlimit don't exist or
15652         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15653         limiting the address space size using setrlimit, compare the address
15654         space size before and after the the test.
15655         * tests/test-dprintf-posix2.c: Likewise.
15656         * tests/test-fprintf-posix3.sh: Update skip messages.
15657         * tests/test-dprintf-posix2.sh: Likewise.
15658         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15659         * modules/dprintf-posix-tests (Depends-on): Likewise.
15660         Reported by Bruce Korb <bkorb@gnu.org> and
15661         Gary V. Vaughan <gary@gnu.org>.
15662
15663 2011-01-18  Bruno Haible  <bruno@clisp.org>
15664
15665         get-rusage-as: Improvement for Cygwin.
15666         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15667         areas that are merely reserved.
15668
15669 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15670
15671         strftime: remove dependencies on multibyte modules
15672
15673         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15674         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15675         only if __osf__ is defined, and I suspect OSF doesn't need these
15676         other modules.  If my guess is wrong, we'll need to come up with a
15677         variant of strftime that doesn't need the multibyte modules.
15678
15679         I discovered this problem when attempting modify Emacs to use the
15680         strftime module.  With the previous gnulib, this caused Emacs to
15681         need 31 new files, ranging from lib/config.charset to
15682         m4/wint_t.m4.  This was overkill and I expect would be offputting
15683         to the Emacs maintainers.  After this change, only 6 new files are
15684         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15685         stdbool.m4, and tm_gmtoff.m4.
15686
15687         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15688         Suggested by Bruno Haible in
15689         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15690         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15691         and do not check for wchar.h.
15692         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15693         (Depends-on): Remove mbrlen, mbsinit, wchar.
15694
15695 2011-01-18  Bruno Haible  <bruno@clisp.org>
15696
15697         Tests for module 'get-rusage-as'.
15698         * modules/get-rusage-as-tests: New file.
15699         * tests/test-get-rusage-as.c: New file.
15700
15701         New module 'get-rusage-as'.
15702         * modules/get-rusage-as: New file.
15703         * lib/resource-ext.h: New file.
15704         * lib/get-rusage-as.c: New file.
15705
15706 2011-01-17  Eric Blake  <eblake@redhat.com>
15707
15708         sigaction: relax license from LGPLv3+ to LGPLv2+
15709         * modules/sigaction (License): Relax to LGPLv2+.
15710
15711 2011-01-14  Bruno Haible  <bruno@clisp.org>
15712
15713         filemode: Make function declarations usable in C++ mode.
15714         * lib/filemode.h: Enclose function declarations in extern "C" block.
15715         Reported by John W. Eaton <jwe@gnu.org>.
15716
15717 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15718
15719         save-cwd: no longer include "xgetcwd.h"
15720         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15721         This avoids a compilation failure in projects that use save-cwd
15722         without also using the xgetcwd module.
15723
15724 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15725
15726         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15727         This is so that a program like Emacs, which needs only dtoastr,
15728         does not have to bother with distributing and compiling ftoastr
15729         and ldtoastr.
15730         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15731         * modules/dtoastr, modules/ldtoastr: New files.
15732         * modules/ftoastr: Now works just for 'float'.
15733         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15734         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15735         dtoastr.c, ldtoastr.c.
15736
15737 2011-01-11  Jim Meyering  <meyering@redhat.com>
15738
15739         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15740         There is no need to work around the lack of the fchdir function,
15741         since gnulib can now provide a replacement when required.
15742         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15743         * modules/save-cwd (Depends-on): Add fchdir.
15744
15745 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15746
15747         openat, save-cwd: avoid xmalloc
15748
15749         This removes a direct (but undocumented) dependency of openat on
15750         xalloc, along with an indirect dependency via save-cwd.  It also
15751         removes a dependency of save-cwd on xgetcwd, and thereby
15752         indirectly on xalloc.  This change causes the openat substitute
15753         to fall back on save_cwd when memory is tight, and for save_cwd to
15754         fail instead of dying when memory is tight, but that's good enough.
15755         Problem and initial idea for fix reported by Bastien Roucaries in
15756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15757
15758         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15759         xalloc.h (for xmalloc).
15760         (openat_proc_name): Use malloc, not xmalloc.
15761         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15762         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15763
15764         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15765         This avoids heap allocation for file names whose lengths are in
15766         the range 512..1023, with the upper bound increasing to at most
15767         4031 depending on the platform's PATH_MAX.  (We do not want
15768         pathmax.h here as it might supply a non-constant PATH_MAX.)
15769         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15770         Perhaps they should be moved to malloca.h?
15771         (OPENAT_BUFFER_SIZE): Use them.
15772
15773 2011-01-10  Bruno Haible  <bruno@clisp.org>
15774
15775         doc: Update users.txt.
15776         * users.txt: Add recutils.
15777
15778 2011-01-09  Karl Berry  <karl@gnu.org>
15779
15780         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15781
15782         * doc/configmake.texi: New file.
15783         * doc/gnulib.texi: Include it.
15784         * modules/configmake: Move documentation from here.
15785
15786 2011-01-09  Bruno Haible  <bruno@clisp.org>
15787
15788         Update to Unicode 6.0.0.
15789         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15790         (get_lbp): Update for Unicode 6.0.0.
15791         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15792         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15793         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15794         U+11001, U+11038..U+11046. Remove U+06DE.
15795         (uc_width): Fix bounds of planes.
15796         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15797         lib/uniwidth/width.c.
15798         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15799         trailing whitespace removed.
15800         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15801         without comments, but with the original copyright notice.
15802         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15803         * lib/unicase/ignorable.h: Likewise.
15804         * lib/unicase/tocasefold.h: Likewise.
15805         * lib/unicase/tolower.h: Likewise.
15806         * lib/unicase/totitle.h: Likewise.
15807         * lib/unicase/toupper.h: Likewise.
15808         * lib/unictype/bidi_of.h: Likewise.
15809         * lib/unictype/blocks.h: Likewise.
15810         * lib/unictype/categ_C.h: Likewise.
15811         * lib/unictype/categ_Cn.h: Likewise.
15812         * lib/unictype/categ_L.h: Likewise.
15813         * lib/unictype/categ_Ll.h: Likewise.
15814         * lib/unictype/categ_Lm.h: Likewise.
15815         * lib/unictype/categ_Lo.h: Likewise.
15816         * lib/unictype/categ_Lu.h: Likewise.
15817         * lib/unictype/categ_M.h: Likewise.
15818         * lib/unictype/categ_Mc.h: Likewise.
15819         * lib/unictype/categ_Me.h: Likewise.
15820         * lib/unictype/categ_Mn.h: Likewise.
15821         * lib/unictype/categ_N.h: Likewise.
15822         * lib/unictype/categ_Nd.h: Likewise.
15823         * lib/unictype/categ_No.h: Likewise.
15824         * lib/unictype/categ_P.h: Likewise.
15825         * lib/unictype/categ_Po.h: Likewise.
15826         * lib/unictype/categ_S.h: Likewise.
15827         * lib/unictype/categ_Sc.h: Likewise.
15828         * lib/unictype/categ_Sk.h: Likewise.
15829         * lib/unictype/categ_Sm.h: Likewise.
15830         * lib/unictype/categ_So.h: Likewise.
15831         * lib/unictype/categ_of.h: Likewise.
15832         * lib/unictype/combining.h: Likewise.
15833         * lib/unictype/ctype_alnum.h: Likewise.
15834         * lib/unictype/ctype_alpha.h: Likewise.
15835         * lib/unictype/ctype_graph.h: Likewise.
15836         * lib/unictype/ctype_lower.h: Likewise.
15837         * lib/unictype/ctype_print.h: Likewise.
15838         * lib/unictype/ctype_punct.h: Likewise.
15839         * lib/unictype/ctype_upper.h: Likewise.
15840         * lib/unictype/decdigit.h: Likewise.
15841         * lib/unictype/digit.h: Likewise.
15842         * lib/unictype/numeric.h: Likewise.
15843         * lib/unictype/pr_alphabetic.h: Likewise.
15844         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15845         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15846         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15847         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15848         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15849         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15850         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15851         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15852         * lib/unictype/pr_case_ignorable.h: Likewise.
15853         * lib/unictype/pr_cased.h: Likewise.
15854         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15855         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15856         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15857         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15858         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15859         * lib/unictype/pr_combining.h: Likewise.
15860         * lib/unictype/pr_composite.h: Likewise.
15861         * lib/unictype/pr_currency_symbol.h: Likewise.
15862         * lib/unictype/pr_decimal_digit.h: Likewise.
15863         * lib/unictype/pr_deprecated.h: Likewise.
15864         * lib/unictype/pr_format_control.h: Likewise.
15865         * lib/unictype/pr_grapheme_base.h: Likewise.
15866         * lib/unictype/pr_grapheme_extend.h: Likewise.
15867         * lib/unictype/pr_grapheme_link.h: Likewise.
15868         * lib/unictype/pr_id_continue.h: Likewise.
15869         * lib/unictype/pr_id_start.h: Likewise.
15870         * lib/unictype/pr_ideographic.h: Likewise.
15871         * lib/unictype/pr_lowercase.h: Likewise.
15872         * lib/unictype/pr_math.h: Likewise.
15873         * lib/unictype/pr_numeric.h: Likewise.
15874         * lib/unictype/pr_other_alphabetic.h: Likewise.
15875         * lib/unictype/pr_other_id_continue.h: Likewise.
15876         * lib/unictype/pr_other_math.h: Likewise.
15877         * lib/unictype/pr_punctuation.h: Likewise.
15878         * lib/unictype/pr_sentence_terminal.h: Likewise.
15879         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15880         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15881         * lib/unictype/pr_unified_ideograph.h: Likewise.
15882         * lib/unictype/pr_uppercase.h: Likewise.
15883         * lib/unictype/pr_xid_continue.h: Likewise.
15884         * lib/unictype/pr_xid_start.h: Likewise.
15885         * lib/unictype/scripts.h: Likewise.
15886         * lib/unictype/scripts_byname.gperf: Likewise.
15887         * lib/unictype/sy_java_ident.h: Likewise.
15888         * lib/unigbrk/gbrkprop.h: Likewise.
15889         * lib/unilbrk/lbrkprop1.h: Likewise.
15890         * lib/unilbrk/lbrkprop2.h: Likewise.
15891         * lib/uninorm/decomposition-table2.h: Likewise.
15892         * lib/uniwbrk/wbrkprop.h: Likewise.
15893         * tests/unicase/test-cased.c: Likewise.
15894         * tests/unicase/test-ignorable.c: Likewise.
15895         * tests/unicase/test-uc_tolower.c: Likewise.
15896         * tests/unicase/test-uc_totitle.c: Likewise.
15897         * tests/unicase/test-uc_toupper.c: Likewise.
15898         * tests/unictype/test-categ_C.c: Likewise.
15899         * tests/unictype/test-categ_Cn.c: Likewise.
15900         * tests/unictype/test-categ_L.c: Likewise.
15901         * tests/unictype/test-categ_Ll.c: Likewise.
15902         * tests/unictype/test-categ_Lm.c: Likewise.
15903         * tests/unictype/test-categ_Lo.c: Likewise.
15904         * tests/unictype/test-categ_Lu.c: Likewise.
15905         * tests/unictype/test-categ_M.c: Likewise.
15906         * tests/unictype/test-categ_Mc.c: Likewise.
15907         * tests/unictype/test-categ_Me.c: Likewise.
15908         * tests/unictype/test-categ_Mn.c: Likewise.
15909         * tests/unictype/test-categ_N.c: Likewise.
15910         * tests/unictype/test-categ_Nd.c: Likewise.
15911         * tests/unictype/test-categ_No.c: Likewise.
15912         * tests/unictype/test-categ_P.c: Likewise.
15913         * tests/unictype/test-categ_Po.c: Likewise.
15914         * tests/unictype/test-categ_S.c: Likewise.
15915         * tests/unictype/test-categ_Sc.c: Likewise.
15916         * tests/unictype/test-categ_Sk.c: Likewise.
15917         * tests/unictype/test-categ_Sm.c: Likewise.
15918         * tests/unictype/test-categ_So.c: Likewise.
15919         * tests/unictype/test-ctype_alnum.c: Likewise.
15920         * tests/unictype/test-ctype_alpha.c: Likewise.
15921         * tests/unictype/test-ctype_graph.c: Likewise.
15922         * tests/unictype/test-ctype_lower.c: Likewise.
15923         * tests/unictype/test-ctype_print.c: Likewise.
15924         * tests/unictype/test-ctype_punct.c: Likewise.
15925         * tests/unictype/test-ctype_upper.c: Likewise.
15926         * tests/unictype/test-decdigit.h: Likewise.
15927         * tests/unictype/test-digit.h: Likewise.
15928         * tests/unictype/test-numeric.h: Likewise.
15929         * tests/unictype/test-pr_alphabetic.c: Likewise.
15930         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15931         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15932         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15933         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15934         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15935         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15936         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15937         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15938         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15939         * tests/unictype/test-pr_cased.c: Likewise.
15940         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15941         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15942         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15943         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15944         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15945         * tests/unictype/test-pr_combining.c: Likewise.
15946         * tests/unictype/test-pr_composite.c: Likewise.
15947         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15948         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15949         * tests/unictype/test-pr_deprecated.c: Likewise.
15950         * tests/unictype/test-pr_format_control.c: Likewise.
15951         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15952         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15953         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15954         * tests/unictype/test-pr_id_continue.c: Likewise.
15955         * tests/unictype/test-pr_id_start.c: Likewise.
15956         * tests/unictype/test-pr_ideographic.c: Likewise.
15957         * tests/unictype/test-pr_lowercase.c: Likewise.
15958         * tests/unictype/test-pr_math.c: Likewise.
15959         * tests/unictype/test-pr_numeric.c: Likewise.
15960         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15961         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15962         * tests/unictype/test-pr_other_math.c: Likewise.
15963         * tests/unictype/test-pr_punctuation.c: Likewise.
15964         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15965         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15966         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15967         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15968         * tests/unictype/test-pr_uppercase.c: Likewise.
15969         * tests/unictype/test-pr_xid_continue.c: Likewise.
15970         * tests/unictype/test-pr_xid_start.c: Likewise.
15971         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15972         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15973         changes.
15974         * lib/unictype/categ_Cc.h: Likewise.
15975         * lib/unictype/categ_Cf.h: Likewise.
15976         * lib/unictype/categ_Co.h: Likewise.
15977         * lib/unictype/categ_Cs.h: Likewise.
15978         * lib/unictype/categ_Lt.h: Likewise.
15979         * lib/unictype/categ_Nl.h: Likewise.
15980         * lib/unictype/categ_Pc.h: Likewise.
15981         * lib/unictype/categ_Pd.h: Likewise.
15982         * lib/unictype/categ_Pe.h: Likewise.
15983         * lib/unictype/categ_Pf.h: Likewise.
15984         * lib/unictype/categ_Pi.h: Likewise.
15985         * lib/unictype/categ_Ps.h: Likewise.
15986         * lib/unictype/categ_Z.h: Likewise.
15987         * lib/unictype/categ_Zl.h: Likewise.
15988         * lib/unictype/categ_Zp.h: Likewise.
15989         * lib/unictype/categ_Zs.h: Likewise.
15990         * lib/unictype/ctype_blank.h: Likewise.
15991         * lib/unictype/ctype_cntrl.h: Likewise.
15992         * lib/unictype/ctype_digit.h: Likewise.
15993         * lib/unictype/ctype_space.h: Likewise.
15994         * lib/unictype/ctype_xdigit.h: Likewise.
15995         * lib/unictype/mirror.h: Likewise.
15996         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15997         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15998         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15999         * lib/unictype/pr_bidi_control.h: Likewise.
16000         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16001         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16002         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16003         * lib/unictype/pr_bidi_pdf.h: Likewise.
16004         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16005         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16006         * lib/unictype/pr_dash.h: Likewise.
16007         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16008         * lib/unictype/pr_diacritic.h: Likewise.
16009         * lib/unictype/pr_extender.h: Likewise.
16010         * lib/unictype/pr_hex_digit.h: Likewise.
16011         * lib/unictype/pr_hyphen.h: Likewise.
16012         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16013         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16014         * lib/unictype/pr_ignorable_control.h: Likewise.
16015         * lib/unictype/pr_iso_control.h: Likewise.
16016         * lib/unictype/pr_join_control.h: Likewise.
16017         * lib/unictype/pr_left_of_pair.h: Likewise.
16018         * lib/unictype/pr_line_separator.h: Likewise.
16019         * lib/unictype/pr_logical_order_exception.h: Likewise.
16020         * lib/unictype/pr_non_break.h: Likewise.
16021         * lib/unictype/pr_not_a_character.h: Likewise.
16022         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16023         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16024         * lib/unictype/pr_other_id_start.h: Likewise.
16025         * lib/unictype/pr_other_lowercase.h: Likewise.
16026         * lib/unictype/pr_other_uppercase.h: Likewise.
16027         * lib/unictype/pr_paired_punctuation.h: Likewise.
16028         * lib/unictype/pr_paragraph_separator.h: Likewise.
16029         * lib/unictype/pr_pattern_syntax.h: Likewise.
16030         * lib/unictype/pr_pattern_white_space.h: Likewise.
16031         * lib/unictype/pr_private_use.h: Likewise.
16032         * lib/unictype/pr_quotation_mark.h: Likewise.
16033         * lib/unictype/pr_radical.h: Likewise.
16034         * lib/unictype/pr_soft_dotted.h: Likewise.
16035         * lib/unictype/pr_space.h: Likewise.
16036         * lib/unictype/pr_titlecase.h: Likewise.
16037         * lib/unictype/pr_variation_selector.h: Likewise.
16038         * lib/unictype/pr_white_space.h: Likewise.
16039         * lib/unictype/pr_zero_width.h: Likewise.
16040         * lib/unictype/sy_c_ident.h: Likewise.
16041         * lib/unictype/sy_c_whitespace.h: Likewise.
16042         * lib/unictype/sy_java_whitespace.h: Likewise.
16043         * lib/uninorm/composition-table.gperf: Likewise.
16044         * lib/uninorm/decomposition-table1.h: Likewise.
16045         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16046         LB8.
16047         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16048         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16049         * modules/unictype/*: Bump version number of expected libunistring
16050         version.
16051
16052 2011-01-09  Bruno Haible  <bruno@clisp.org>
16053
16054         Update to Unicode 5.2.0.
16055         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16056         trailing whitespace removed.
16057
16058 2011-01-09  Bruno Haible  <bruno@clisp.org>
16059
16060         New Unicode character properties, from Unicode 5.2.0.
16061         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16062         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16063         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16064         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16065         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16066         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16067         uc_is_property_cased, uc_is_property_case_ignorable,
16068         uc_is_property_changes_when_lowercased,
16069         uc_is_property_changes_when_uppercased,
16070         uc_is_property_changes_when_titlecased,
16071         uc_is_property_changes_when_casefolded,
16072         uc_is_property_changes_when_casemapped): New declarations.
16073         * lib/unictype/pr_byname.gperf: Add the new properties.
16074         * modules/unictype/property-byname (Depends-on): Depend on the new
16075         properties modules.
16076         * modules/unictype/property-all (Depends-on): Likewise.
16077         * MODULES.html.sh (Unicode string functions): Add
16078         unictype/property-case-ignorable, unictype/property-cased,
16079         unictype/property-changes-when-casefolded,
16080         unictype/property-changes-when-casemapped,
16081         unictype/property-changes-when-lowercased,
16082         unictype/property-changes-when-titlecased,
16083         unictype/property-changes-when-uppercased.
16084
16085         New module 'unictype/property-changes-when-casemapped'.
16086         * modules/unictype/property-changes-when-casemapped: New file.
16087         * lib/unictype/pr_changes_when_casemapped.c: New file.
16088         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16089         generated by gen-uni-tables.
16090         * modules/unictype/property-changes-when-casemapped-tests: New file.
16091         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16092         automatically generated by gen-uni-tables.
16093
16094         New module 'unictype/property-changes-when-casefolded'.
16095         * modules/unictype/property-changes-when-casefolded: New file.
16096         * lib/unictype/pr_changes_when_casefolded.c: New file.
16097         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16098         generated by gen-uni-tables.
16099         * modules/unictype/property-changes-when-casefolded-tests: New file.
16100         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16101         automatically generated by gen-uni-tables.
16102
16103         New module 'unictype/property-changes-when-titlecased'.
16104         * modules/unictype/property-changes-when-titlecased: New file.
16105         * lib/unictype/pr_changes_when_titlecased.c: New file.
16106         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16107         generated by gen-uni-tables.
16108         * modules/unictype/property-changes-when-titlecased-tests: New file.
16109         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16110         automatically generated by gen-uni-tables.
16111
16112         New module 'unictype/property-changes-when-uppercased'.
16113         * modules/unictype/property-changes-when-uppercased: New file.
16114         * lib/unictype/pr_changes_when_uppercased.c: New file.
16115         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16116         generated by gen-uni-tables.
16117         * modules/unictype/property-changes-when-uppercased-tests: New file.
16118         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16119         automatically generated by gen-uni-tables.
16120
16121         New module 'unictype/property-changes-when-lowercased'.
16122         * modules/unictype/property-changes-when-lowercased: New file.
16123         * lib/unictype/pr_changes_when_lowercased.c: New file.
16124         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16125         generated by gen-uni-tables.
16126         * modules/unictype/property-changes-when-lowercased-tests: New file.
16127         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16128         automatically generated by gen-uni-tables.
16129
16130         New module 'unictype/property-case-ignorable'.
16131         * modules/unictype/property-case-ignorable: New file.
16132         * lib/unictype/pr_case_ignorable.c: New file.
16133         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16134         by gen-uni-tables.
16135         * modules/unictype/property-case-ignorable-tests: New file.
16136         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16137         generated by gen-uni-tables.
16138
16139         New module 'unictype/property-cased'.
16140         * modules/unictype/property-cased: New file.
16141         * lib/unictype/pr_cased.c: New file.
16142         * lib/unictype/pr_cased.h: New file, automatically generated by
16143         gen-uni-tables.
16144         * modules/unictype/property-cased-tests: New file.
16145         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16146         gen-uni-tables.
16147
16148 2011-01-09  Bruno Haible  <bruno@clisp.org>
16149
16150         Update to Unicode 5.2.0.
16151         * lib/gen-uni-tables.c (output_predicate, output_category,
16152         output_combclass, output_bidi_category, output_decimal_digit_test,
16153         output_decimal_digit, output_digit_test, output_digit,
16154         output_numeric_test, output_numeric, output_mirror, output_scripts,
16155         output_scripts_byname, output_blocks, output_ident_category): Fix
16156         comment header.
16157         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16158         get_wbp.
16159         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16160         items.
16161         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16162         Changes_When_Lowercased, Changes_When_Uppercased,
16163         Changes_When_Titlecased, Changes_When_Casefolded,
16164         Changes_When_Casemapped.
16165         (is_property_alphabetic, is_property_default_ignorable_code_point):
16166         Update for Unicode 5.2.0.
16167         (is_property_cased, is_property_case_ignorable,
16168         is_property_changes_when_lowercased,
16169         is_property_changes_when_uppercased,
16170         is_property_changes_when_titlecased,
16171         is_property_changes_when_casefolded,
16172         is_property_changes_when_casemapped): New functions.
16173         (output_properties): Output also the properties cased, case_ignorable,
16174         changes_when_lowercased, changes_when_uppercased,
16175         changes_when_titlecased, changes_when_casefolded,
16176         changes_when_casemapped.
16177         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16178         Unicode TR#11 revision 17 -> 19.
16179         (LBP_CP): New enumeration value.
16180         (LBP_*): Adjust values accordingly.
16181         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16182         TR#14 revision 22 -> 24.
16183         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16184         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16185         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16186         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16187         is_WBP_MIDLETTER.
16188         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16189         the code1 and code2 of each composition rule.
16190         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16191         * lib/unicase/ignorable.h: Likewise.
16192         * lib/unicase/tocasefold.h: Likewise.
16193         * lib/unicase/tolower.h: Likewise.
16194         * lib/unicase/totitle.h: Likewise.
16195         * lib/unicase/toupper.h: Likewise.
16196         * lib/unictype/bidi_of.h: Likewise.
16197         * lib/unictype/blocks.h: Likewise.
16198         * lib/unictype/categ_C.h: Likewise.
16199         * lib/unictype/categ_Cf.h: Likewise.
16200         * lib/unictype/categ_Cn.h: Likewise.
16201         * lib/unictype/categ_L.h: Likewise.
16202         * lib/unictype/categ_Ll.h: Likewise.
16203         * lib/unictype/categ_Lm.h: Likewise.
16204         * lib/unictype/categ_Lo.h: Likewise.
16205         * lib/unictype/categ_Lu.h: Likewise.
16206         * lib/unictype/categ_M.h: Likewise.
16207         * lib/unictype/categ_Mc.h: Likewise.
16208         * lib/unictype/categ_Mn.h: Likewise.
16209         * lib/unictype/categ_N.h: Likewise.
16210         * lib/unictype/categ_Nd.h: Likewise.
16211         * lib/unictype/categ_Nl.h: Likewise.
16212         * lib/unictype/categ_No.h: Likewise.
16213         * lib/unictype/categ_P.h: Likewise.
16214         * lib/unictype/categ_Pd.h: Likewise.
16215         * lib/unictype/categ_Po.h: Likewise.
16216         * lib/unictype/categ_S.h: Likewise.
16217         * lib/unictype/categ_Sc.h: Likewise.
16218         * lib/unictype/categ_So.h: Likewise.
16219         * lib/unictype/categ_of.h: Likewise.
16220         * lib/unictype/combining.h: Likewise.
16221         * lib/unictype/ctype_alnum.h: Likewise.
16222         * lib/unictype/ctype_alpha.h: Likewise.
16223         * lib/unictype/ctype_graph.h: Likewise.
16224         * lib/unictype/ctype_lower.h: Likewise.
16225         * lib/unictype/ctype_print.h: Likewise.
16226         * lib/unictype/ctype_punct.h: Likewise.
16227         * lib/unictype/ctype_upper.h: Likewise.
16228         * lib/unictype/decdigit.h: Likewise.
16229         * lib/unictype/digit.h: Likewise.
16230         * lib/unictype/numeric.h: Likewise.
16231         * lib/unictype/pr_alphabetic.h: Likewise.
16232         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16233         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16234         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16235         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16236         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16237         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16238         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16239         * lib/unictype/pr_combining.h: Likewise.
16240         * lib/unictype/pr_composite.h: Likewise.
16241         * lib/unictype/pr_currency_symbol.h: Likewise.
16242         * lib/unictype/pr_dash.h: Likewise.
16243         * lib/unictype/pr_decimal_digit.h: Likewise.
16244         * lib/unictype/pr_deprecated.h: Likewise.
16245         * lib/unictype/pr_diacritic.h: Likewise.
16246         * lib/unictype/pr_extender.h: Likewise.
16247         * lib/unictype/pr_grapheme_base.h: Likewise.
16248         * lib/unictype/pr_grapheme_extend.h: Likewise.
16249         * lib/unictype/pr_grapheme_link.h: Likewise.
16250         * lib/unictype/pr_id_continue.h: Likewise.
16251         * lib/unictype/pr_id_start.h: Likewise.
16252         * lib/unictype/pr_ideographic.h: Likewise.
16253         * lib/unictype/pr_ignorable_control.h: Likewise.
16254         * lib/unictype/pr_logical_order_exception.h: Likewise.
16255         * lib/unictype/pr_lowercase.h: Likewise.
16256         * lib/unictype/pr_numeric.h: Likewise.
16257         * lib/unictype/pr_other_alphabetic.h: Likewise.
16258         * lib/unictype/pr_punctuation.h: Likewise.
16259         * lib/unictype/pr_sentence_terminal.h: Likewise.
16260         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16261         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16262         * lib/unictype/pr_unified_ideograph.h: Likewise.
16263         * lib/unictype/pr_uppercase.h: Likewise.
16264         * lib/unictype/pr_xid_continue.h: Likewise.
16265         * lib/unictype/pr_xid_start.h: Likewise.
16266         * lib/unictype/pr_zero_width.h: Likewise.
16267         * lib/unictype/scripts.h: Likewise.
16268         * lib/unictype/scripts_byname.gperf: Likewise.
16269         * lib/unictype/sy_java_ident.h: Likewise.
16270         * lib/unigbrk/gbrkprop.h: Likewise.
16271         * lib/unilbrk/lbrkprop1.h: Likewise.
16272         * lib/unilbrk/lbrkprop2.h: Likewise.
16273         * lib/unilbrk/lbrktables.h: Likewise.
16274         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16275         LBP_CP. Implement rule LB30.
16276         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16277         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16278         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16279         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16280         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16281         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16282         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16283         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16284         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16285         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16286         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16287         bits instead of 16 bits in the code1 and code2 of each composition
16288         rule.
16289         (uc_composition): Update for Unicode 5.2.0.
16290         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16291         * lib/uninorm/decomposition-table2.h: Likewise.
16292         * lib/uniwbrk/wbrkprop.h: Likewise.
16293         * tests/unicase/test-cased.c: Likewise.
16294         * tests/unicase/test-ignorable.c: Likewise.
16295         * tests/unicase/test-uc_tolower.c: Likewise.
16296         * tests/unicase/test-uc_totitle.c: Likewise.
16297         * tests/unicase/test-uc_toupper.c: Likewise.
16298         * tests/unictype/test-categ_C.c: Likewise.
16299         * tests/unictype/test-categ_Cf.c: Likewise.
16300         * tests/unictype/test-categ_Cn.c: Likewise.
16301         * tests/unictype/test-categ_L.c: Likewise.
16302         * tests/unictype/test-categ_Ll.c: Likewise.
16303         * tests/unictype/test-categ_Lm.c: Likewise.
16304         * tests/unictype/test-categ_Lo.c: Likewise.
16305         * tests/unictype/test-categ_Lu.c: Likewise.
16306         * tests/unictype/test-categ_M.c: Likewise.
16307         * tests/unictype/test-categ_Mc.c: Likewise.
16308         * tests/unictype/test-categ_Mn.c: Likewise.
16309         * tests/unictype/test-categ_N.c: Likewise.
16310         * tests/unictype/test-categ_Nd.c: Likewise.
16311         * tests/unictype/test-categ_Nl.c: Likewise.
16312         * tests/unictype/test-categ_No.c: Likewise.
16313         * tests/unictype/test-categ_P.c: Likewise.
16314         * tests/unictype/test-categ_Pd.c: Likewise.
16315         * tests/unictype/test-categ_Po.c: Likewise.
16316         * tests/unictype/test-categ_S.c: Likewise.
16317         * tests/unictype/test-categ_Sc.c: Likewise.
16318         * tests/unictype/test-categ_So.c: Likewise.
16319         * tests/unictype/test-ctype_alnum.c: Likewise.
16320         * tests/unictype/test-ctype_alpha.c: Likewise.
16321         * tests/unictype/test-ctype_graph.c: Likewise.
16322         * tests/unictype/test-ctype_lower.c: Likewise.
16323         * tests/unictype/test-ctype_print.c: Likewise.
16324         * tests/unictype/test-ctype_punct.c: Likewise.
16325         * tests/unictype/test-ctype_upper.c: Likewise.
16326         * tests/unictype/test-decdigit.h: Likewise.
16327         * tests/unictype/test-digit.h: Likewise.
16328         * tests/unictype/test-numeric.h: Likewise.
16329         * tests/unictype/test-pr_alphabetic.c: Likewise.
16330         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16331         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16332         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16333         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16334         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16335         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16336         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16337         * tests/unictype/test-pr_combining.c: Likewise.
16338         * tests/unictype/test-pr_composite.c: Likewise.
16339         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16340         * tests/unictype/test-pr_dash.c: Likewise.
16341         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16342         * tests/unictype/test-pr_deprecated.c: Likewise.
16343         * tests/unictype/test-pr_diacritic.c: Likewise.
16344         * tests/unictype/test-pr_extender.c: Likewise.
16345         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16346         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16347         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16348         * tests/unictype/test-pr_id_continue.c: Likewise.
16349         * tests/unictype/test-pr_id_start.c: Likewise.
16350         * tests/unictype/test-pr_ideographic.c: Likewise.
16351         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16352         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16353         * tests/unictype/test-pr_lowercase.c: Likewise.
16354         * tests/unictype/test-pr_numeric.c: Likewise.
16355         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16356         * tests/unictype/test-pr_punctuation.c: Likewise.
16357         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16358         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16359         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16360         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16361         * tests/unictype/test-pr_uppercase.c: Likewise.
16362         * tests/unictype/test-pr_xid_continue.c: Likewise.
16363         * tests/unictype/test-pr_xid_start.c: Likewise.
16364         * tests/unictype/test-pr_zero_width.c: Likewise.
16365         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16366         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16367         changed behaviour: line breaking is now disallowed between a letter
16368         or '=' and '('.
16369         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16370         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16371         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16372         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16373         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16374         lib/uniwidth/width.c.
16375         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16376         without comments, but with the original copyright notice.
16377         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16378         changes.
16379         * lib/unictype/categ_Cc.h: Likewise.
16380         * lib/unictype/categ_Co.h: Likewise.
16381         * lib/unictype/categ_Cs.h: Likewise.
16382         * lib/unictype/categ_Lt.h: Likewise.
16383         * lib/unictype/categ_Me.h: Likewise.
16384         * lib/unictype/categ_Pc.h: Likewise.
16385         * lib/unictype/categ_Pe.h: Likewise.
16386         * lib/unictype/categ_Pf.h: Likewise.
16387         * lib/unictype/categ_Pi.h: Likewise.
16388         * lib/unictype/categ_Ps.h: Likewise.
16389         * lib/unictype/categ_Sk.h: Likewise.
16390         * lib/unictype/categ_Sm.h: Likewise.
16391         * lib/unictype/categ_Z.h: Likewise.
16392         * lib/unictype/categ_Zl.h: Likewise.
16393         * lib/unictype/categ_Zp.h: Likewise.
16394         * lib/unictype/categ_Zs.h: Likewise.
16395         * lib/unictype/ctype_blank.h: Likewise.
16396         * lib/unictype/ctype_cntrl.h: Likewise.
16397         * lib/unictype/ctype_digit.h: Likewise.
16398         * lib/unictype/ctype_space.h: Likewise.
16399         * lib/unictype/ctype_xdigit.h: Likewise.
16400         * lib/unictype/mirror.h: Likewise.
16401         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16402         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16403         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16404         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16405         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16406         * lib/unictype/pr_bidi_control.h: Likewise.
16407         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16408         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16409         * lib/unictype/pr_bidi_pdf.h: Likewise.
16410         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16411         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16412         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16413         * lib/unictype/pr_format_control.h: Likewise.
16414         * lib/unictype/pr_hex_digit.h: Likewise.
16415         * lib/unictype/pr_hyphen.h: Likewise.
16416         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16417         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16418         * lib/unictype/pr_iso_control.h: Likewise.
16419         * lib/unictype/pr_join_control.h: Likewise.
16420         * lib/unictype/pr_left_of_pair.h: Likewise.
16421         * lib/unictype/pr_line_separator.h: Likewise.
16422         * lib/unictype/pr_math.h: Likewise.
16423         * lib/unictype/pr_non_break.h: Likewise.
16424         * lib/unictype/pr_not_a_character.h: Likewise.
16425         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16426         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16427         * lib/unictype/pr_other_id_continue.h: Likewise.
16428         * lib/unictype/pr_other_id_start.h: Likewise.
16429         * lib/unictype/pr_other_lowercase.h: Likewise.
16430         * lib/unictype/pr_other_math.h: Likewise.
16431         * lib/unictype/pr_other_uppercase.h: Likewise.
16432         * lib/unictype/pr_paired_punctuation.h: Likewise.
16433         * lib/unictype/pr_paragraph_separator.h: Likewise.
16434         * lib/unictype/pr_pattern_syntax.h: Likewise.
16435         * lib/unictype/pr_pattern_white_space.h: Likewise.
16436         * lib/unictype/pr_private_use.h: Likewise.
16437         * lib/unictype/pr_quotation_mark.h: Likewise.
16438         * lib/unictype/pr_radical.h: Likewise.
16439         * lib/unictype/pr_soft_dotted.h: Likewise.
16440         * lib/unictype/pr_space.h: Likewise.
16441         * lib/unictype/pr_titlecase.h: Likewise.
16442         * lib/unictype/pr_variation_selector.h: Likewise.
16443         * lib/unictype/pr_white_space.h: Likewise.
16444         * lib/unictype/sy_c_ident.h: Likewise.
16445         * lib/unictype/sy_c_whitespace.h: Likewise.
16446         * lib/unictype/sy_java_whitespace.h: Likewise.
16447         * modules/uni*/*: Bump version number of expected libunistring version.
16448         Reported by Simon Josefsson.
16449
16450 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16451
16452         useless-if-before-free: fix typo in --help and make the internal,
16453         automatic version date update process work once again.
16454         --help output contained a NUL character instead of the
16455         backslash-zero that was intended.  Also, the "must lie within
16456         the first 8 lines" line is on line 9, and hence not getting
16457         automatically updated.
16458         * build-aux/useless-if-before-free: Fix the former by adding a
16459         backslash, and the latter by condensing the three lines of what-it-does
16460         to a single line, leaving one line of slack for the future.
16461
16462 2011-01-09  Bruno Haible  <bruno@clisp.org>
16463
16464         uniwidth/width: Fix width of U+1D173..U+1D17A.
16465         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16466         symbolic_width, output_width_property_test): New functions.
16467         (main): Invoke output_nonspacing_property, output_width_property_test.
16468         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16469         U+1D173..U+1D17A.
16470         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16471         1.
16472         * modules/uniwidth/*: Bump version number of expected libunistring
16473         version.
16474         * modules/unilbrk/*: Likewise.
16475
16476 2011-01-08  Bruno Haible  <bruno@clisp.org>
16477
16478         uninorm tests: Preserve copyright of Unicode data file.
16479         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16480         Mention modifications.
16481
16482 2011-01-08  Bruno Haible  <bruno@clisp.org>
16483
16484         gen-uni-tables: Prepare for Unicode 5.2.0.
16485         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16486         (debug_output_lbp, output_lbp): Update.
16487
16488 2011-01-08  Bruno Haible  <bruno@clisp.org>
16489
16490         unilbrk: Clarify gen-uni-tables.c code.
16491         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16492         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16493         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16494
16495 2011-01-07  Bruno Haible  <bruno@clisp.org>
16496
16497         strtod: Restore errno when successfully parsing Infinity or NaN.
16498         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16499         restore the original errno.
16500
16501 2011-01-07  Bruno Haible  <bruno@clisp.org>
16502
16503         remove test: Avoid failure on HP-UX 11.
16504         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16505
16506 2011-01-07  Bruno Haible  <bruno@clisp.org>
16507
16508         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16509         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16510         error code.
16511
16512 2011-01-07  Pádraig Brady <P@draigBrady.com>
16513
16514         ignore-value: fixup comments, and add Eric Blake
16515         as an author since he rewrote the macros.
16516         * lib/ignore-value.h (ignore_value):  State that
16517         we now support aggregates.  Also specify exactly
16518         when the GCC warn_unused_result feature was added.
16519
16520 2011-01-06  Eric Blake  <eblake@redhat.com>
16521
16522         ignore-value: support aggregate types
16523         * lib/ignore-value.h (ignore_value): Provide separate gcc
16524         definition.
16525         * modules/ignore-value-tests: New test module.
16526         * tests/test-ignore-value.c: New test.
16527
16528         maint.mk: improve sc_prohibit_strcmp regex
16529         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16530         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16531         definition of STRNEQ.
16532
16533         signal: work around Haiku issue with SIGBUS
16534         * lib/siglist.h: Add comment.
16535         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16536         strsignal's favoring of SIGSEGV.
16537         * tests/test-signal.c (main): Avoid test failure.
16538         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16539         Reported by Scott McCreary.
16540
16541         maint.mk: add pre-release check to ensure submodule commits are public
16542         * top/maint.mk (public-submodule-commit): New rule.
16543         (submodule-checks): New variable.
16544         (alpha beta stable): Depend on the variable.
16545
16546 2011-01-05  Pádraig Brady <P@draigBrady.com>
16547         and Jim Meyering  <meyering@redhat.com>
16548
16549         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16550         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16551         (ATTRIBUTE_DEPRECATED): Define.
16552         (_ignore_case): New function.
16553         (ignore_value): New macro, to replace the old function.
16554         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16555         * modules/ignore-value (Depends-on): Add stdint.
16556
16557 2011-01-04  Eric Blake  <eblake@redhat.com>
16558
16559         doc: regenerate INSTALL
16560         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16561         @firstparagraphindent support, now that autoconf dropped it.
16562         (INSTALL_PRELUDE): Reinstate old macro.
16563         * doc/install.texi: Resync from autoconf.
16564         * doc/INSTALL: Reflect recent autoconf update.
16565         * doc/INSTALL.ISO: Likewise.
16566         * doc/INSTALL.UTF-8: Likewise.
16567         Reported by Karl Berry.
16568
16569 2011-01-04  Bruce Korb  <address@hidden>
16570
16571         git-version-gen: avoid a sub-shell
16572         * build-aux/git-version-gen: Redirect stderr in `...` via
16573         "exec 2>...", rather than via an added sub-shell.
16574
16575 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16576
16577         git-version-gen: use (...) rather than sh -c '...'
16578         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16579         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16580
16581 2011-01-03  Jim Meyering  <meyering@redhat.com>
16582
16583         git-version-gen: convert leading TABs to spaces
16584         * build-aux/git-version-gen: Expand leading TABs.
16585
16586         git-version-gen: handle failed "git rev-list"
16587         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16588         from git and proceeding as if it had succeeded but printed no SHA1
16589         checksums, suppress the diagnostic and handle the failure.
16590         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16591
16592         git-version-gen: include command name in one more diagnostic
16593         * build-aux/git-version-gen: When the required .tarball-version file
16594         was missing or unreadable, you might see the diagnostic from "cat",
16595         but no trace of the name of the invoking script.  Now, you still see
16596         the diagnostic from cat, but also get one from "git-version-gen: ".
16597         Inspired by a patch from Bruce Korb.
16598
16599         update-copyright: adjust test to match changed code
16600         * tests/test-update-copyright.sh: Change test's expected output
16601         to match new actual output.
16602
16603 2011-01-02  Bruno Haible  <bruno@clisp.org>
16604
16605         getlogin_r: Avoid test failure on HP-UX 11.
16606         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16607         ERANGE when the second argument is zero.
16608         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16609         portability problem.
16610
16611 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16612
16613         * build-aux/update-copyright: doc Simon's changes
16614
16615 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16616
16617         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16618         environment variable.
16619
16620 2011-01-02  Bruno Haible  <bruno@clisp.org>
16621
16622         unigbrk: Avoid gcc warnings.
16623         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16624         unused variable.
16625         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16626         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16627         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16628         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16629         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16630         Change type of first argument to 'const char *'.
16631         (main): Remove unused variable.
16632         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16633         type of first argument to 'const char *'.
16634         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16635         Likewise.
16636         (main): Change type of variable 's'.
16637         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16638         to 'int'.
16639
16640 2011-01-02  Bruno Haible  <bruno@clisp.org>
16641
16642         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16643         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16644         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16645         bug.
16646         * lib/pwrite.c: Undo 2010-12-31 patch.
16647         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16648
16649 2011-01-02  Bruno Haible  <bruno@clisp.org>
16650
16651         pread: Fix test whether it works.
16652         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16653
16654 2011-01-02  Bruno Haible  <bruno@clisp.org>
16655
16656         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16657         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16658         ends in "6". Don't require a specific month name. Try also the locale
16659         names found on HP-UX 11 and Solaris 7.
16660
16661 2011-01-02  Bruno Haible  <bruno@clisp.org>
16662
16663         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16664         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16665         C linkage.
16666         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16667
16668 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16669
16670         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16671         for consistency, since the "cluster" term is not used elsewhere.
16672         * lib/unigbrk.in.h: Update name.
16673         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16674         * lib/unigbrk/u16-grapheme-next.c: Update name.
16675         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16676         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16677         * lib/unigbrk/u32-grapheme-next.c: Update name.
16678         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16679         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16680         * lib/unigbrk/u8-grapheme-next.c: Update name.
16681         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16682         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16683         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16684         Suggested by Bruno Haible.
16685
16686 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16687
16688         Remove module 'u8-grapheme-len' as too redundant with
16689         'u8-grapheme-next'.
16690         * modules/unigbrk/u8-grapheme-len: Delete file.
16691         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16692         * lib/unigbrk.in.h: Remove prototype for deleted function.
16693         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16694         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16695
16696         Remove module 'u16-grapheme-len' as too redundant with
16697         'u16-grapheme-next'.
16698         * modules/unigbrk/u16-grapheme-len: Delete file.
16699         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16700         * lib/unigbrk.in.h: Remove prototype for deleted function.
16701         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16702         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16703
16704         Remove module 'u32-grapheme-len' as too redundant with
16705         'u32-grapheme-next'.
16706         * modules/unigbrk/u32-grapheme-len: Delete file.
16707         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16708         * lib/unigbrk.in.h: Remove prototype for deleted function.
16709         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16710         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16711
16712         Suggested by Bruno Haible.
16713
16714 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16715
16716         * unigbrk.in.h: Fix typo: "ben" => "been".
16717         Reported by Bruno Haible.
16718
16719 2011-01-01  Jim Meyering  <meyering@redhat.com>
16720
16721         maint: update almost all copyright ranges to include 2011
16722         Run the new "make update-copyright" rule.
16723
16724 2011-01-01  Jim Meyering  <meyering@redhat.com>
16725
16726         maint: update-copyright: exempt doc/INSTALL*
16727         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16728         since they are generated.  Suggested by Bruno Haible.
16729
16730 2011-01-01  Jim Meyering  <meyering@redhat.com>
16731
16732         maint: refine the update-copyright rule
16733         * Makefile (update-copyright): Also exclude any file that includes
16734         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16735         code that merely generates the comment.
16736
16737 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16738
16739         New module 'u8-grapheme-len'.
16740         * modules/unigbrk/u8-grapheme-len: New file.
16741         * modules/unigbrk/u8-grapheme-len-tests: New file.
16742         * lib/unigbrk.in.h: Add prototype for new function.
16743         * lib/unigbrk/u8-grapheme-len.c: New file.
16744         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16745
16746         New module 'u16-grapheme-len'.
16747         * modules/unigbrk/u16-grapheme-len: New file.
16748         * modules/unigbrk/u16-grapheme-len-tests: New file.
16749         * lib/unigbrk.in.h: Add prototype for new function.
16750         * lib/unigbrk/u16-grapheme-len.c: New file.
16751         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16752
16753         New module 'u32-grapheme-len'.
16754         * modules/unigbrk/u32-grapheme-len: New file.
16755         * modules/unigbrk/u32-grapheme-len-tests: New file.
16756         * lib/unigbrk.in.h: Add prototype for new function.
16757         * lib/unigbrk/u32-grapheme-len.c: New file.
16758         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16759
16760         New module 'u8-grapheme-next'.
16761         * modules/unigbrk/u8-grapheme-next: New file.
16762         * modules/unigbrk/u8-grapheme-next-tests: New file.
16763         * lib/unigbrk.in.h: Add prototype for new function.
16764         * lib/unigbrk/u8-grapheme-next.c: New file.
16765         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16766
16767         New module 'u16-grapheme-next'.
16768         * modules/unigbrk/u16-grapheme-next: New file.
16769         * modules/unigbrk/u16-grapheme-next-tests: New file.
16770         * lib/unigbrk.in.h: Add prototype for new function.
16771         * lib/unigbrk/u16-grapheme-next.c: New file.
16772         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16773
16774         New module 'u32-grapheme-next'.
16775         * modules/unigbrk/u32-grapheme-next: New file.
16776         * modules/unigbrk/u32-grapheme-next-tests: New file.
16777         * lib/unigbrk.in.h: Add prototype for new function.
16778         * lib/unigbrk/u32-grapheme-next.c: New file.
16779         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16780
16781         New module 'u8-grapheme-prev'.
16782         * modules/unigbrk/u8-grapheme-prev: New file.
16783         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16784         * lib/unigbrk.in.h: Add prototype for new function.
16785         * lib/unigbrk/u8-grapheme-prev.c: New file.
16786         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16787
16788         New module 'u16-grapheme-prev'.
16789         * modules/unigbrk/u16-grapheme-prev: New file.
16790         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16791         * lib/unigbrk.in.h: Add prototype for new function.
16792         * lib/unigbrk/u16-grapheme-prev.c: New file.
16793         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16794
16795         New module 'u32-grapheme-prev'.
16796         * modules/unigbrk/u32-grapheme-prev: New file.
16797         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16798         * lib/unigbrk.in.h: Add prototype for new function.
16799         * lib/unigbrk/u32-grapheme-prev.c: New file.
16800         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16801
16802         New module 'u8-grapheme-breaks'.
16803         * modules/unigbrk/u8-grapheme-breaks: New file.
16804         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16805         * lib/unigbrk.in.h: Add prototype for new function.
16806         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16807         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16808
16809         New module 'u16-grapheme-breaks'.
16810         * modules/unigbrk/u16-grapheme-breaks: New file.
16811         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16812         * lib/unigbrk.in.h: Add prototype for new function.
16813         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16814         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16815
16816         New module 'u32-grapheme-breaks'.
16817         * modules/unigbrk/u32-grapheme-breaks: New file.
16818         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16819         * lib/unigbrk.in.h: Add prototype for new function.
16820         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16821         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16822
16823         New module 'ulc-grapheme-breaks'.
16824         * modules/unigbrk/ulc-grapheme-breaks: New file.
16825         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16826         * m4/locale-ar.m4: New file.
16827         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16828         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16829         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16830
16831 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16832
16833         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16834         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16835         modified how this file was generated before I initially submitted
16836         the module, but failed to regenerate it.  This meant that several
16837         of the level2 entries were wrong.
16838         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16839         Remove the division-by-2 that is folded into the table now that
16840         gbrkprop.h has been regenerated properly.  Now -1 entries are
16841         handled correctly.
16842
16843         New module 'unigbrk/uc-gbrk-prop-tests'.
16844         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16845         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16846         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16847         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16848
16849 2011-01-01  Bruno Haible  <bruno@clisp.org>
16850
16851         Avoid use of hexadecimal escapes.
16852         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16853         instead of hexadecimal escapes.
16854
16855 2011-01-01  Jim Meyering  <meyering@redhat.com>
16856
16857         maint: new rule to update copyright year ranges
16858         * Makefile (update-copyright): New rule.
16859
16860         maint: indent with TABs in Makefile
16861         * Makefile: Expand leading sequences of spaces to TABs
16862
16863         version-etc: update the copyright year it reports
16864         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16865
16866 2010-12-31  Bruno Haible  <bruno@clisp.org>
16867
16868         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16869         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16870         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16871         zero.
16872
16873 2010-12-31  Bruno Haible  <bruno@clisp.org>
16874
16875         pwrite: Work around HP-UX 11.11 bug.
16876         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16877         works and set REPLACE_PWRITE if not.
16878         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16879         function.
16880         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16881
16882 2010-12-31  Bruno Haible  <bruno@clisp.org>
16883
16884         pread: Work around HP-UX 11 bugs.
16885         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16886         and set REPLACE_PREAD if not.
16887         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16888
16889 2010-12-31  Eric Blake  <eblake@redhat.com>
16890
16891         nl_langinfo: fix YESEXPR on Irix 6.5
16892         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16893         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16894         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16895         it.
16896
16897 2010-12-31  Bruno Haible  <bruno@clisp.org>
16898
16899         iconv: Document HP-UX 11 bug.
16900         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16901
16902 2010-12-31  Bruno Haible  <bruno@clisp.org>
16903
16904         ldexpl: Fix link error on HP-UX 11.
16905         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16906         LDEXPL_LIBM, using $ISNANL_LIBM.
16907
16908 2010-12-31  Eric Blake  <eblake@redhat.com>
16909
16910         ftello: avoid compilation failure with SunStudio c89
16911         * lib/ftello.c (ftello): Use lseek, not llseek.
16912
16913         tests: avoid failing coreutils tests on cygwin
16914         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16915         (create_exe_shims_): Return 0 when skipping.
16916
16917 2010-12-31  Bruno Haible  <bruno@clisp.org>
16918
16919         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16920         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16921
16922 2010-12-31  Bruno Haible  <bruno@clisp.org>
16923
16924         waitpid: Fix link error in C++ mode.
16925         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16926
16927 2010-12-31  Bruno Haible  <bruno@clisp.org>
16928
16929         isnan: Use GCC built-ins when possible.
16930         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16931         __builtin_isnan.
16932         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16933         (isnan): Define using GCC built-ins for GCC >= 4.0.
16934
16935 2010-12-31  Bruno Haible  <bruno@clisp.org>
16936
16937         isnand: Fix mistake.
16938         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16939         __builtin_isnand.
16940
16941 2010-12-31  Bruno Haible  <bruno@clisp.org>
16942
16943         open: Avoid C++ error on HP-UX 11.
16944         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16945
16946 2010-12-31  Bruno Haible  <bruno@clisp.org>
16947
16948         time_r: Add missing declarations on HP-UX 11.
16949         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16950         instead of HAVE_LOCALTIME_R.
16951         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16952         HAVE_LOCALTIME_R always.
16953         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16954         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16955         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16956         HAVE_LOCALTIME_R.
16957         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16958         * doc/posix-functions/localtime_r.texi: Likewise.
16959
16960 2010-12-29  Eric Blake  <eblake@redhat.com>
16961
16962         mountlist: tweak previous commit
16963         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16964         Reported by Paul Eggert.
16965
16966         mountlist: fix local drive detection on cygwin
16967         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16968         that works for cygwin.
16969
16970 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16971
16972         ftoastr, snprintf: ftoastr + snprintf module
16973         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16974         since the snprintf module now should be good enough here.
16975         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16976         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16977         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16978         GNULIB_SNPRINTF only for the test directory, and the latter
16979         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16980         seems to suffice by itself.
16981
16982 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16983
16984         alloca: one step towards thread-safety
16985         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16986         need for a static variable.  All callers changed.  This does not
16987         make the alloca replacement thread-safe, but it's one step.
16988
16989         tests: minor indenting change
16990         * tests/init.sh: Sync from coreutils housekeeping patch
16991         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16992         to keep lines within 80 columns.
16993
16994 2010-12-28  Jim Meyering  <meyering@redhat.com>
16995
16996         regex: don't infloop on persistent failing calloc
16997         * lib/regexec.c (build_trtable): Return failure indication upon
16998         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16999         In glibc, this was fixed for version 2.13:
17000         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17001
17002 2010-12-28  Bruno Haible  <bruno@clisp.org>
17003             Paul Eggert <eggert@cs.ucla.edu>
17004
17005         linkat: Make implementation robust against system behaviour variations.
17006         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17007         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17008         way, and to -2 if it needs a generic runtime test.
17009         * lib/linkat.c (solaris_optimized_link_immediate,
17010         solaris_optimized_link_follow): New functions.
17011         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17012         (check_same_link): Use it.
17013
17014 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17015
17016         New module 'unigbrk/base'.
17017         * modules/unigbrk/base: New file.
17018         * lib/unigbrk.in.h: New file.
17019
17020         New module 'unigbrk/uc-gbrk-prop'.
17021         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17022         * modules/unigbrk/uc-gbrk-prop: New file.
17023         * lib/unigbrk/gbrkprop.h: New file.
17024         * lib/unigbrk/uc-gbrk-prop.c: New file.
17025
17026         New module 'unigbrk/uc-is-grapheme-break'.
17027         * modules/unigbrk/uc-is-grapheme-break: New file.
17028         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17029         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17030         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17031         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17032         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17033
17034         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17035
17036 2010-12-27  Bruno Haible  <bruno@clisp.org>
17037
17038         linkat test: Avoid failure on Solaris 11 2010-11.
17039         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17040
17041 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17042
17043         utimens: work around glibc rounding bug on more platforms
17044         * lib/utimens.c (fdutimens): Work around rounding bug even if
17045         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17046         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17047
17048 2010-12-27  Bruno Haible  <bruno@clisp.org>
17049
17050         select tests: Improve comments.
17051         * tests/test-select.c (do_select): Add comments.
17052
17053 2010-12-27  Bruno Haible  <bruno@clisp.org>
17054
17055         select tests: Safer way of handling timeout.
17056         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17057         at every invocation.
17058
17059 2010-12-27  Bruno Haible  <bruno@clisp.org>
17060
17061         select tests: Use 'bool' where appropriate.
17062         * tests/test-select.c (connect_to_socket): Change argument type to
17063         'bool'.
17064
17065 2010-12-27  Bruno Haible  <bruno@clisp.org>
17066
17067         select tests: Use existing modules.
17068         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17069         (configure.ac): Don't test for unistd.h.
17070         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17071         declared in <unistd.h>.
17072
17073 2010-12-27  Bruno Haible  <bruno@clisp.org>
17074
17075         mbrtowc: Work around a Solaris 7 bug.
17076         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17077         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17078         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17079         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17080         MBRTOWC_NULL_ARG1_BUG.
17081         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17082         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17083         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17084         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17085
17086 2010-12-27  Jim Meyering  <meyering@redhat.com>
17087
17088         read-file.c: tweak syntax
17089         * lib/read-file.c (fread_file): Remove space after "*" in function
17090         definitions.
17091
17092 2010-12-27  Bruno Haible  <bruno@clisp.org>
17093
17094         times test: Avoid gcc warnings on OSF/1.
17095         * tests/test-times.c (main): Cast printf arguments from clock_t to
17096         'long int'.
17097
17098 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17099
17100         utimens: work around glibc rounding bug on older Linux kernels
17101         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17102         on Linux with a glibc whose utimes might not work, then work
17103         around a longstanding glibc bug involving rounding rather than
17104         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17105         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17106
17107 2010-12-26  Bruno Haible  <bruno@clisp.org>
17108
17109         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17110         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17111         _GL_CXXALIAS_SYS.
17112         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17113
17114 2010-12-26  Bruno Haible  <bruno@clisp.org>
17115
17116         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17117         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17118         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17119         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17120         looking for the declaration.
17121         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17122         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17123         problem.
17124         * doc/posix-functions/inet_pton.texi: Likewise.
17125
17126 2010-12-26  Bruno Haible  <bruno@clisp.org>
17127
17128         arpa_inet: Use the common idioms with C++ support.
17129         * lib/arpa_inet.in.h: Include c++defs.h.
17130         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17131         support.
17132         * modules/arpa_inet (Depends-on): Add c++defs.
17133         (Makefile.am): Substitute the contents of c++defs.h.
17134         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17135         * modules/arpa_inet-c++-tests: New file.
17136         * tests/test-arpa_inet-c++.cc: New file.
17137
17138 2010-12-25  Bruno Haible  <bruno@clisp.org>
17139
17140         Fix more C++ link errors on Solaris 8.
17141         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17142         $(LIB_EACCESS).
17143         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17144         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17145         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17146         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17147         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17148
17149 2010-12-25  Bruno Haible  <bruno@clisp.org>
17150
17151         printf-posix: Fix link error when a non-GCC compiler is used.
17152         * lib/stdio.in.h (printf): When not using GCC, override printf
17153         correctly.
17154         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17155
17156 2010-12-25  Bruno Haible  <bruno@clisp.org>
17157
17158         strerror_r-posix: Update doc.
17159         * doc/posix-functions/strerror_r.texi: Update doc about the return
17160         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17161
17162 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17163
17164         utimens: simplify the logic of the previous change
17165         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17166         This should not affect whether the test succeeds or fails.
17167
17168         utimens: configure better on hosts with NFS clock skew
17169         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17170         uses the clock of the local host.  It might use the clock of the
17171         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17172         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17173
17174 2010-12-25  Bruno Haible  <bruno@clisp.org>
17175
17176         ptsname test: Avoid failure on Solaris.
17177         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17178         open a pseudo-terminal; don't use BSD-style ptys.
17179         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17180
17181 2010-12-25  Bruno Haible  <bruno@clisp.org>
17182
17183         ptsname: Avoid ERANGE failure on some systems.
17184         * lib/ptsname.c (buffer): Increase size.
17185
17186 2010-12-25  Bruno Haible  <bruno@clisp.org>
17187
17188         rename, renameat: Avoid test failures at NFS mounted locations.
17189         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17190         so that subsequent mkdir calls succeed.
17191
17192 2010-12-25  Bruno Haible  <bruno@clisp.org>
17193
17194         iswblank: Fix C++ link error on Solaris 8.
17195         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17196         _GL_FUNCDECL_SYS.
17197
17198 2010-12-25  Bruno Haible  <bruno@clisp.org>
17199
17200         unistd: Fix C++ link error on Solaris 8.
17201         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17202
17203 2010-12-25  Bruno Haible  <bruno@clisp.org>
17204
17205         readlink doc: Mention an old glibc bug.
17206         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17207
17208 2010-12-25  Bruno Haible  <bruno@clisp.org>
17209
17210         fcntl-h: Fix for use of C++ on glibc systems.
17211         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17212         also on glibc systems in C++ mode.
17213         Reported by Gary V. Vaughan <gary@gnu.org>.
17214
17215 2010-12-25  Bruno Haible  <bruno@clisp.org>
17216
17217         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17218         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17219
17220 2010-12-25  Bruno Haible  <bruno@clisp.org>
17221
17222         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17223         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17224         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17225         test whether truncl works according to ISO C 99 with IEC 60559.
17226         * m4/truncl-ieee.m4: New file.
17227         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17228         m4/signbit.m4.
17229         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17230
17231 2010-12-25  Bruno Haible  <bruno@clisp.org>
17232
17233         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17234         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17235         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17236         test whether ceill works according to ISO C 99 with IEC 60559.
17237         * m4/ceill-ieee.m4: New file.
17238         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17239         m4/signbit.m4.
17240         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17241
17242 2010-12-25  Bruno Haible  <bruno@clisp.org>
17243
17244         Ensure all prerequisites of <wchar.h> are included.
17245         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17246         before <wchar.h>.
17247         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17248         gl_MBRLEN_NUL_RETVAL): Likewise.
17249         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17250         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17251         AC_FUNC_MBRTOWC): Likewise.
17252         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17253         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17254         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17255         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17256         Likewise.
17257         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17258         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17259         (gl_WCHAR_H): Improve comments.
17260         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17261
17262 2010-12-25  Bruno Haible  <bruno@clisp.org>
17263
17264         strtok_r: Fix C syntax error in autoconf macro.
17265         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17266         characters in test program.
17267
17268 2010-12-24  Bruno Haible  <bruno@clisp.org>
17269
17270         ceil, trunc, round: Fix gcc warnings.
17271         * lib/ceil.c (MIN): Undefine before redefining.
17272         * lib/trunc.c (MIN): Likewise.
17273         * lib/round.c (MIN): Likewise.
17274         Include <math.h> first.
17275
17276 2010-12-24  Bruno Haible  <bruno@clisp.org>
17277
17278         select tests: Avoid failures on OSF/1 5.1.
17279         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17280         failure of closing the last socket; it may fail with ECONNRESET.
17281
17282 2010-12-24  Eric Blake  <eblake@redhat.com>
17283
17284         stdint: avoid HP-UX 10.20 preprocessor bug
17285         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17286         than #if.
17287         * tests/test-floor2.c (main): Likewise.
17288         Reported by Peter O'Gorman.
17289
17290         pipe: make obsoletion transition easier
17291         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17292         * modules/pipe (Files): Include revived file.
17293         (Include): Drop reference, to mirror getdate's behavior.
17294
17295 2010-12-24  Bruno Haible  <bruno@clisp.org>
17296
17297         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17298         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17299         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17300         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17301
17302 2010-12-24  Bruno Haible  <bruno@clisp.org>
17303
17304         gethostname: Ensure declaration on NonStop Kernel.
17305         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17306         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17307
17308 2010-12-24  Bruno Haible  <bruno@clisp.org>
17309
17310         sys_select: Ensure all necessary types on NonStop Kernel.
17311         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17312         include <sys/time.h>.
17313         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17314         NonStop Kernel.
17315         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17316
17317 2010-12-24  Bruno Haible  <bruno@clisp.org>
17318
17319         sys_select: Remove unneeded include.
17320         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17321         have <sys/select.h>.
17322
17323 2010-12-24  Bruno Haible  <bruno@clisp.org>
17324
17325         gethostname: Provide a fallback for HOST_NAME_MAX.
17326         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17327         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17328         instead.
17329         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17330
17331 2010-12-24  Bruno Haible  <bruno@clisp.org>
17332
17333         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17334         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17335         (SA_RESTART): Likewise.
17336         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17337
17338 2010-12-24  Bruno Haible  <bruno@clisp.org>
17339
17340         signal: Define NSIG.
17341         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17342         * tests/test-signal.c (nsig): New variable.
17343         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17344
17345 2010-12-24  Bruno Haible  <bruno@clisp.org>
17346
17347         rename, renameat: Avoid test failures on OSF/1 5.1.
17348         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17349         alternative error codes.
17350         * tests/test-renameat.c (main): Likewise.
17351
17352 2010-12-24  Bruno Haible  <bruno@clisp.org>
17353
17354         *printf: Detect large precisions bug on Solaris 10/SPARC.
17355         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17356         by Paul Eggert.
17357         * tests/test-snprintf-posix.h (test_function): Add this test code here
17358         too.
17359         * tests/test-sprintf-posix.h (test_function): Likewise.
17360         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17361         * tests/test-vasprintf-posix.c (test_function): Likewise.
17362         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17363         around by gnulib.
17364         * doc/posix-functions/printf.texi: Likewise.
17365         * doc/posix-functions/snprintf.texi: Likewise.
17366         * doc/posix-functions/sprintf.texi: Likewise.
17367         * doc/posix-functions/vfprintf.texi: Likewise.
17368         * doc/posix-functions/vprintf.texi: Likewise.
17369         * doc/posix-functions/vsnprintf.texi: Likewise.
17370         * doc/posix-functions/vsprintf.texi: Likewise.
17371         * doc/posix-functions/dprintf.texi: Undo last commit.
17372         * doc/posix-functions/vdprintf.texi: Likewise.
17373
17374 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17375
17376         tests: port test-fdutimensat.c to Solaris 8
17377         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17378         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17379         On Solaris 8, it fails with errno == ENOSYS, because there is no
17380         futimens (so it can't use the fd), and there is no lutimens (so it
17381         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17382
17383         vsnprintf: make more consistent with snprintf; doc fixes
17384
17385         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17386         the byte count return problem was promoted from the snprintf-posix
17387         to the snprintf module.
17388         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17389         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17390         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17391         * tests/test-snprintf.c (main): Check the byte count returned.
17392         * tests/test-vsnprintf.c (main): Likewise.
17393
17394 2010-12-23  Eric Blake  <eblake@redhat.com>
17395
17396         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17397         * modules/sigpipe (License): Relax license.
17398
17399 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17400
17401         doc: document Solaris printf bug with large float precisions
17402         * doc/posix-functions/dprintf.texi (dprintf):
17403         * doc/posix-functions/fprintf.texi (fprintf):
17404         * doc/posix-functions/printf.texi (printf):
17405         * doc/posix-functions/snprintf.texi (snprintf):
17406         * doc/posix-functions/sprintf.texi (sprintf):
17407         * doc/posix-functions/vdprintf.texi (vdprintf):
17408         * doc/posix-functions/vfprintf.texi (vfprintf):
17409         * doc/posix-functions/vprintf.texi (vprintf):
17410         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17411         * doc/posix-functions/vsprintf.texi (vsprintf):
17412         Mention that these functions mishandle large floating point
17413         precisions on Solaris 10.  The same bug is also present in Solaris
17414         8, and I assume earlier.  This causes "cd gnulib-tests; make
17415         check" to fail on Solaris 8 (and I assume, later) when building
17416         the latest coreutils, in test-vasprintf-posix's call to
17417         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17418         the wide flavors (e.g., wprintf) so this patch just updates the
17419         documentation for the narrow ones.
17420
17421         test-posixtm.c: add two tests
17422         * tests/test-posixtm.c: Add two tests, to highlight the
17423         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17424         around this bug; this is merely to document it.
17425
17426 2010-12-22  Bruno Haible  <bruno@clisp.org>
17427
17428         getlogin_r: Work around portability problem on OSF/1.
17429         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17430         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17431         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17432         test for a truncated result.
17433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17434         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17435         * modules/getlogin_r (Depends-on): Add memchr.
17436         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17437
17438 2010-12-22  Bruno Haible  <bruno@clisp.org>
17439
17440         ptsname: Avoid test failure on OSF/1 5.1.
17441         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17442         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17443         (same_slave): New function.
17444         (main): Use it to compare ptsname's result with the expected file name.
17445
17446 2010-12-22  Bruno Haible  <bruno@clisp.org>
17447
17448         Port extended stdio modules to HP NonStop Kernel.
17449         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17450         macros.
17451         * lib/fbufmode.c: Update comments.
17452         * lib/fflush.c: Likewise.
17453         * lib/fpurge.c: Likewise.
17454         * lib/freadable.c: Likewise.
17455         * lib/freadahead.c: Likewise.
17456         * lib/freading.c: Likewise.
17457         * lib/freadptr.c: Likewise.
17458         * lib/freadseek.c: Likewise.
17459         * lib/fseeko.c: Likewise.
17460         * lib/fseterr.c: Likewise.
17461         * lib/fwritable.c: Likewise.
17462         * lib/fwriting.c: Likewise.
17463         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17464
17465 2010-12-22  Bruno Haible  <bruno@clisp.org>
17466
17467         ttyname_r: Work around bug on OSF/1 5.1.
17468         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17469         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17470         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17471         present.
17472         * lib/ttyname_r.c (ttyname_r): Update comments.
17473
17474 2010-12-22  Bruno Haible  <bruno@clisp.org>
17475
17476         round: Implement result sign according to IEEE 754.
17477         * lib/round.c (MIN, MINUS_ZERO): New macros.
17478         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17479         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17480         * tests/test-round-ieee.c (main): Likewise.
17481         * tests/test-roundl-ieee.c (main): Likewise.
17482
17483         trunc: Implement result sign according to IEEE 754.
17484         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17485         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17486         * tests/test-trunc2.c: Include minus-zero.h.
17487         (MINUS_ZERO): New macro.
17488         (trunc_reference): Keep in sync with lib/trunc.c.
17489         * tests/test-truncf2.c: Include minus-zero.h.
17490         (MINUS_ZERO): New macro.
17491         (truncf_reference): Keep in sync with lib/trunc.c.
17492         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17493         * tests/test-trunc-ieee.c (main): Likewise.
17494         * tests/test-truncl-ieee.c (main): Likewise.
17495
17496         ceil: Implement result sign according to IEEE 754.
17497         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17498         (FUNC): Return -0.0 for -1 < x < 0.
17499         * tests/test-ceil2.c: Include minus-zero.h.
17500         (MINUS_ZERO): New macro.
17501         (ceil_reference): Keep in sync with lib/ceil.c.
17502         * tests/test-ceilf2.c: Include minus-zero.h.
17503         (MINUS_ZERO): New macro.
17504         (ceilf_reference): Keep in sync with lib/ceil.c.
17505         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17506         * tests/test-ceil-ieee.c (main): Likewise.
17507         * tests/test-ceill-ieee.c (main): Likewise.
17508
17509         floor: Implement result sign according to IEEE 754.
17510         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17511         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17512         * tests/test-floorf2.c (floorf_reference): Likewise.
17513         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17514         * tests/test-floor-ieee.c (main): Likewise.
17515         * tests/test-floorl-ieee.c (main): Likewise.
17516
17517 2010-12-22  Bruno Haible  <bruno@clisp.org>
17518
17519         getaddrinfo: Update doc.
17520         * doc/posix-functions/gai_strerror.texi: Return type is also different
17521         on AIX and HP-UX.
17522
17523 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17524
17525         getaddrinfo, inet_ntop: Update doc for Solaris.
17526         * doc/posix-functions/gai_strerror.texi: Return type is also an
17527         issue on Solaris 9 and earlier.
17528         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17529         on Solaris 10 and earlier.
17530
17531 2010-12-21  Bruno Haible  <bruno@clisp.org>
17532
17533         New module 'roundl-ieee'.
17534         * modules/roundl-ieee: New file.
17535         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17536         test whether roundl works according to ISO C 99 with IEC 60559.
17537         * m4/roundl-ieee.m4: New file.
17538         * modules/roundl-ieee-tests: New file.
17539         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17540         * tests/test-roundl.c (main): Remove signbit tests.
17541         * modules/roundl-tests (Depends-on): Remove signbit.
17542         * doc/posix-functions/roundl.texi: Mention the new module.
17543
17544 2010-12-21  Bruno Haible  <bruno@clisp.org>
17545
17546         New module 'truncl-ieee'.
17547         * modules/truncl-ieee: New file.
17548         * modules/truncl-ieee-tests: New file.
17549         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17550         * tests/test-truncl.c (main): Remove signbit tests.
17551         * modules/truncl-tests (Depends-on): Remove signbit.
17552         * doc/posix-functions/truncl.texi: Mention the new module.
17553
17554 2010-12-21  Bruno Haible  <bruno@clisp.org>
17555
17556         New module 'ceill-ieee'.
17557         * modules/ceill-ieee: New file.
17558         * modules/ceill-ieee-tests: New file.
17559         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17560         * tests/test-ceill.c (main): Remove signbit tests.
17561         * modules/ceill-tests (Depends-on): Remove signbit.
17562         * doc/posix-functions/ceill.texi: Mention the new module.
17563
17564 2010-12-21  Bruno Haible  <bruno@clisp.org>
17565
17566         New module 'floorl-ieee'.
17567         * modules/floorl-ieee: New file.
17568         * modules/floorl-ieee-tests: New file.
17569         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17570         * tests/test-floorl.c (main): Remove signbit tests.
17571         * modules/floorl-tests (Depends-on): Remove signbit.
17572         * doc/posix-functions/floorl.texi: Mention the new module.
17573
17574 2010-12-21  Bruno Haible  <bruno@clisp.org>
17575
17576         New module 'round-ieee'.
17577         * modules/round-ieee: New file.
17578         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17579         whether round works according to ISO C 99 with IEC 60559.
17580         * m4/round-ieee.m4: New file.
17581         * modules/round-ieee-tests: New file.
17582         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17583         * tests/test-round1.c (main): Remove signbit tests.
17584         * modules/round-tests (Depends-on): Remove 'signbit'.
17585         * doc/posix-functions/round.texi: Mention the new module.
17586
17587 2010-12-21  Bruno Haible  <bruno@clisp.org>
17588
17589         New module 'trunc-ieee'.
17590         * modules/trunc-ieee: New file.
17591         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17592         whether trunc works according to ISO C 99 with IEC 60559.
17593         * m4/trunc-ieee.m4: New file.
17594         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17596         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17597         * modules/trunc-ieee-tests: New file.
17598         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17599         * tests/test-trunc1.c (main): Remove signbit tests.
17600         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17601         * doc/posix-functions/trunc.texi: Mention the new module.
17602
17603 2010-12-21  Bruno Haible  <bruno@clisp.org>
17604
17605         New module 'ceil-ieee'.
17606         * modules/ceil-ieee: New file.
17607         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17608         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17609         ISO C 99 with IEC 60559.
17610         * m4/ceil-ieee.m4: New file.
17611         * modules/ceil (Files): Add lib/ceil.c.
17612         (Depends-on): Add 'float'.
17613         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17614         * lib/math.in.h (ceil): New declaration.
17615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17616         REPLACE_CEIL.
17617         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17618         * modules/ceil-ieee-tests: New file.
17619         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17620         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17621         * doc/posix-functions/ceil.texi: Mention the new module.
17622
17623 2010-12-21  Bruno Haible  <bruno@clisp.org>
17624
17625         New module 'floor-ieee'.
17626         * modules/floor-ieee: New file.
17627         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17628         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17629         ISO C 99 with IEC 60559.
17630         * m4/floor-ieee.m4: New file.
17631         * modules/floor (Files): Add lib/floor.c.
17632         (Depends-on): Add 'float'.
17633         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17634         * lib/math.in.h (floor): New declaration.
17635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17636         REPLACE_FLOOR.
17637         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17638         * modules/floor-ieee-tests: New file.
17639         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17640         * tests/test-math-c++.cc: Check the signature of 'floor'.
17641         * doc/posix-functions/floor.texi: Mention the new module.
17642
17643 2010-12-21  Bruno Haible  <bruno@clisp.org>
17644
17645         New module 'roundf-ieee'.
17646         * modules/roundf-ieee: New file.
17647         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17648         test whether roundf works according to ISO C 99 with IEC 60559.
17649         * m4/roundf-ieee.m4: New file.
17650         * modules/roundf-ieee-tests: New file.
17651         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17652         * tests/test-roundf1.c (main): Remove signbit tests.
17653         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17654         * doc/posix-functions/roundf.texi: Mention the new module.
17655
17656 2010-12-21  Bruno Haible  <bruno@clisp.org>
17657
17658         New module 'truncf-ieee'.
17659         * modules/truncf-ieee: New file.
17660         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17661         test whether truncf works according to ISO C 99 with IEC 60559.
17662         * m4/truncf-ieee.m4: New file.
17663         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17664         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17665         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17666         * modules/truncf-ieee-tests: New file.
17667         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17668         * tests/test-truncf1.c (main): Remove signbit tests.
17669         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17670         * doc/posix-functions/truncf.texi: Mention the new module.
17671
17672 2010-12-21  Bruno Haible  <bruno@clisp.org>
17673
17674         New module 'ceilf-ieee'.
17675         * modules/ceilf-ieee: New file.
17676         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17677         test whether ceilf works according to ISO C 99 with IEC 60559.
17678         * m4/ceilf-ieee.m4: New file.
17679         * modules/ceilf-ieee-tests: New file.
17680         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17681         * tests/test-ceilf1.c (main): Remove signbit tests.
17682         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17683         * doc/posix-functions/ceilf.texi: Mention the new module.
17684
17685 2010-12-21  Bruno Haible  <bruno@clisp.org>
17686
17687         New module 'floorf-ieee'.
17688         * modules/floorf-ieee: New file.
17689         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17690         test whether floorf works according to ISO C 99 with IEC 60559.
17691         * m4/floorf-ieee.m4: New file.
17692         * modules/floorf-ieee-tests: New file.
17693         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17694         * tests/test-floorf1.c (main): Remove signbit tests.
17695         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17696         * doc/posix-functions/floorf.texi: Mention the new module.
17697
17698 2010-12-21  Bruno Haible  <bruno@clisp.org>
17699
17700         Support for minus zero in autoconf macros.
17701         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17702         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17703         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17704         * tests/minus-zero.h: Update comments.
17705
17706 2010-12-21  Bruno Haible  <bruno@clisp.org>
17707
17708         Tests for module 'ceil'.
17709         * modules/ceil-tests: New file.
17710         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17711         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17712
17713 2010-12-21  Bruno Haible  <bruno@clisp.org>
17714
17715         Tests for module 'floor'.
17716         * modules/floor-tests: New file.
17717         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17718         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17719
17720 2010-12-21  Bruno Haible  <bruno@clisp.org>
17721
17722         math: Fix indentation.
17723         * lib/math.in.h (floorf): Fix indentation.
17724
17725 2010-12-21  Bruno Haible  <bruno@clisp.org>
17726
17727         Fix cross-compilation guesses on Solaris.
17728         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17729         not match "solaris2.10".
17730         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17731         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17732         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17733
17734 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17735
17736         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17737         This fixes a problem observed with the latest coreutils snapshot
17738         that caused a test to fail on Solaris 8.  src/csplit.c's call
17739         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17740         earlier, instead of returning the number of bytes that would have
17741         been generated; this causes csplit to incorrectly report memory
17742         exhaustion.
17743         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17744         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17745         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17746         comments to match.
17747         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17748         Fix typo in matching older versions of Solaris: "solaris2.10"
17749         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17750         only for guessing while cross-compiling.
17751         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17752
17753 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17754
17755         ftoastr: fix comment again
17756         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17757         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17758         Also, simplify example a bit by using flags = 0.
17759
17760 2010-12-20  Bruno Haible  <bruno@clisp.org>
17761
17762         round*, trunc*: Update documentation regarding glibc.
17763         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17764         * doc/posix-functions/round.texi: Likewise.
17765         * doc/posix-functions/roundl.texi: Likewise.
17766         * doc/posix-functions/truncf.texi: Likewise.
17767         * doc/posix-functions/trunc.texi: Likewise.
17768         * doc/posix-functions/truncl.texi: Likewise.
17769
17770 2010-12-20  Bruno Haible  <bruno@clisp.org>
17771
17772         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17773         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17774         * doc/posix-functions/round.texi: Likewise.
17775         * doc/posix-functions/roundl.texi: Likewise.
17776
17777 2010-12-20  Bruno Haible  <bruno@clisp.org>
17778
17779         ttyname_r: Add missing declaration on HP-UX 11.
17780         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17781         HAVE_TTYNAME_R.
17782         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17783         declared. Set HAVE_TTYNAME_R always.
17784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17785         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17786         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17787         HAVE_TTYNAME_R.
17788         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17789
17790 2010-12-20  Bruno Haible  <bruno@clisp.org>
17791
17792         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17793         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17794         * doc/posix-functions/getlogin_r.texi: Likewise.
17795         * tests/test-getlogin.c: Include <errno.h>.
17796         (main): Avoid test failure on HP-UX 11.11.
17797         * tests/test-getlogin_r.c (main): Likewise.
17798
17799 2010-12-20  Bruno Haible  <bruno@clisp.org>
17800
17801         getlogin_r: Add missing declaration on HP-UX 11.
17802         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17803         declared also when it exists as a function.
17804         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17805
17806 2010-12-20  Bruno Haible  <bruno@clisp.org>
17807
17808         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17809         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17810         through wcrtomb.
17811
17812 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17813
17814         ftoastr: fix comment
17815         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17816         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17817
17818 2010-12-19  Bruno Haible  <bruno@clisp.org>
17819
17820         isnan: Ensure it is a macro.
17821         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17822         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17823         Solaris.
17824
17825 2010-12-19  Bruno Haible  <bruno@clisp.org>
17826
17827         ldexpl test: Fix link error on OSF/1 5.1.
17828         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17829
17830 2010-12-19  Bruno Haible  <bruno@clisp.org>
17831
17832         wctype: Make it work in C++ mode on OSF/1 5.1.
17833         * lib/wctype.in.h (iswblank): Declare but not define here.
17834         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17835         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17836         * modules/wctype (Files): Add lib/iswblank.c.
17837
17838 2010-12-19  Bruno Haible  <bruno@clisp.org>
17839
17840         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17841         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17842         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17843
17844 2010-12-19  Bruno Haible  <bruno@clisp.org>
17845
17846         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17847         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17848         _POSIX_PII_SOCKET.
17849         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17850         * doc/posix-functions/recvfrom.texi: Likewise.
17851         * doc/posix-functions/send.texi: Likewise.
17852         * doc/posix-functions/sendto.texi: Likewise.
17853
17854 2010-12-19  Bruno Haible  <bruno@clisp.org>
17855
17856         tcgetsid: Add missing declaration on OSF/1 5.1.
17857         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17858         HAVE_TCGETSID.
17859         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17860         Don't set HAVE_TCGETSID.
17861         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17862         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17863         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17864         HAVE_TCGETSID.
17865         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17866
17867 2010-12-19  Bruno Haible  <bruno@clisp.org>
17868
17869         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17870         * lib/stdio.in.h: During the include_next statement, let recursive
17871         includes of this file include only the system header file.
17872
17873 2010-12-19  Bruno Haible  <bruno@clisp.org>
17874
17875         iconv_open: Fix regression from 2010-12-04.
17876         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17877         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17878
17879 2010-12-19  Bruno Haible  <bruno@clisp.org>
17880
17881         stdbool test: Avoid a gcc warning.
17882         * tests/test-stdbool.c (main): Fail if e1 is false.
17883         Reported by Jim Meyering.
17884
17885 2010-12-19  Jim Meyering  <meyering@redhat.com>
17886
17887         setenv: restore to working order
17888         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17889         mistakenly removed.
17890         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17891         HAVE_SETENV.
17892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17893         HAVE_SETENV.
17894
17895 2010-12-19  Bruno Haible  <bruno@clisp.org>
17896
17897         Document some different function declarations on OSF/1 5.1.
17898         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17899         * doc/posix-functions/inet_ntop.texi: Likewise.
17900         * doc/posix-functions/gethostname.texi: Likewise.
17901         * lib/unistd.in.h (gethostname): Update comment.
17902
17903 2010-12-19  Bruno Haible  <bruno@clisp.org>
17904
17905         doc: Mention vasprintf-posix module.
17906         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17907         the 'vasprintf-posix' module.
17908         * doc/glibc-functions/vasprintf.texi: Likewise.
17909
17910 2010-12-19  Bruno Haible  <bruno@clisp.org>
17911
17912         unsetenv: Add missing declaration on OSF/1 5.1.
17913         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17914         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17915         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17917         not HAVE_UNSETENV.
17918         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17919         HAVE_UNSETENV.
17920         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17921
17922 2010-12-19  Bruno Haible  <bruno@clisp.org>
17923
17924         setenv: Add missing declaration on OSF/1 5.1.
17925         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17926         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17927         declared. Don't set HAVE_SETENV.
17928         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17929         not HAVE_SETENV.
17930         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17931         HAVE_SETENV.
17932         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17933
17934 2010-12-19  Bruno Haible  <bruno@clisp.org>
17935
17936         nl_langinfo tests: Avoid gcc warning.
17937         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17938
17939 2010-12-19  Bruno Haible  <bruno@clisp.org>
17940
17941         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17942         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17943         _GL_CXXALIAS_SYS.
17944
17945 2010-12-19  Bruno Haible  <bruno@clisp.org>
17946
17947         stdbool: Relax test.
17948         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17949         address to 'bool' work in static initializer, for compilers other than
17950         GCC.
17951
17952 2010-12-19  Bruno Haible  <bruno@clisp.org>
17953
17954         ftello: Add missing declaration on OSF/1 5.1.
17955         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17956         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17958         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17959         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17960
17961 2010-12-19  Bruno Haible  <bruno@clisp.org>
17962
17963         fseeko: Add missing declaration on OSF/1 5.1.
17964         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17965         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17967         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17968         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17969
17970 2010-12-19  Bruno Haible  <bruno@clisp.org>
17971
17972         fchdir: Add missing declaration on OSF/1 5.1.
17973         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17974         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17976         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17977         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17978
17979 2010-12-19  Bruno Haible  <bruno@clisp.org>
17980
17981         relocatable-prog-wrapper: Separate from relocatable-prog.
17982         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17983         uninstall-relocwrapper rule here.
17984         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17985         Reported by Ian Beckwith <ianb@erislabs.net>.
17986
17987 2010-12-19  Bruno Haible  <bruno@clisp.org>
17988
17989         unistr/u8-mbsnlen: Add missing dependency.
17990         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17991         Reported by Ian Beckwith <ianb@erislabs.net>.
17992
17993 2010-12-19  Bruno Haible  <bruno@clisp.org>
17994
17995         iconv: Make it possible again to use this module without 'iconv-h'.
17996         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17997         if it is not defined.
17998         Reported by Ian Beckwith <ianb@erislabs.net>.
17999
18000 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18001
18002         acl: port to Solaris 8 when copying from tmpfs to ufs
18003         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18004         error number.  Problem observed on Solaris 8 with latest
18005         coreutils, with "mv A B", where A is on a tmpfs file system and B
18006         is on a ufs file system.  This caused coreutils' mv/part-symlink
18007         test to fail.
18008
18009         tests: set fail=0 at start
18010         * tests/init.sh (setup_): Move fail=0 initialization here ...
18011         (mktempd_): ... from here, so that tests can rely on fail being
18012         set to 0 initially.  This fixes a problem in coreutils; see:
18013         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18014
18015 2010-12-18  Bruno Haible  <bruno@clisp.org>
18016
18017         memmem-simple: Stylistic changes.
18018         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18019         Fix preprocessor directive indentation.
18020
18021 2010-12-15  Pádraig Brady <P@draigBrady.com>
18022
18023         memmem, memmem-simple: reorganize and expand empty needle check
18024         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18025         functional checks to memmem-simple so that one has a fully functional
18026         memmem by using just this module.
18027         Restrict the performance only check to the memmem module.
18028         Also expand the empty needle check to ensure the correct
18029         pointer is returned, not just a non NULL pointer.
18030         * doc/glibc-functions/memmem.texi: Rearrange the portability
18031         documentation to correlate with the rearranged checks.
18032         Clarify exactly how the memmem and memmem-simple modules
18033         relate to each other.
18034
18035 2010-12-15  Pádraig Brady <P@draigBrady.com>
18036             Bruno Haible  <bruno@clisp.org>
18037
18038         Improve cross-compilation guesses for uClibc.
18039         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18040         that uClibc does not have the glibc bug.
18041         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18042         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18043
18044 2010-12-14  Eric Blake  <eblake@redhat.com>
18045
18046         configmake: provide fallbacks for oldest supported autotools
18047         * m4/configmake.m4: New file.
18048         * modules/configmake (Files): Ship it.
18049         (configure.ac): Use it to guarantee fallbacks.
18050
18051 2010-12-13  Pádraig Brady <P@draigBrady.com>
18052
18053         read-file: Improve handling of large files
18054         * lib/read-file.c (fread_file): Minimize realloc()s
18055         for regular files, and better manage sizes around SIZE_MAX.
18056
18057 2010-12-13  Eric Blake  <eblake@redhat.com>
18058
18059         cloexec, fcntl: relax license
18060         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18061         consent from all contributors.
18062         * modules/fcntl (License): Likewise.
18063
18064 2010-12-10  Bruno Haible  <bruno@clisp.org>
18065
18066         Tests for module 'pipe-posix'.
18067         * modules/pipe-posix-tests: New file.
18068         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18069
18070 2010-12-10  Bruno Haible  <bruno@clisp.org>
18071
18072         pipe-posix: Make it work in C++ mode.
18073         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18074         (pipe): Use common idiom, not a macro definition.
18075         * lib/pipe.c: New file.
18076         * m4/pipe.m4: New file.
18077         * modules/pipe-posix (Description): Enhance.
18078         (Files): Add lib/pipe.c, m4/pipe.m4.
18079         (configure.ac): Invoke gl_FUNC_PIPE.
18080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18081         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18082         * tests/test-unistd-c++.cc: Check the signature of pipe.
18083
18084 2010-12-10  Bruno Haible  <bruno@clisp.org>
18085
18086         Rename module 'pipe' to 'spawn-pipe'.
18087         * modules/spawn-pipe: New file, renamed from modules/pipe.
18088         (Files, configure.ac, Makefile.am): Update.
18089         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18090         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18091         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18092         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18093         "spawn-pipe.h" instead of "pipe.h".
18094         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18095         to gl_SPAWN_PIPE.
18096         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18097         (Files, Makefile.am): Update.
18098         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18099         Update.
18100         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18101         Include "spawn-pipe.h" instead of "pipe.h".
18102         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18103         * lib/javacomp.c: Likewise.
18104         * lib/javaversion.c: Likewise.
18105         * lib/pipe-filter-gi.c: Likewise.
18106         * lib/pipe-filter-ii.c: Likewise.
18107         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18108         * modules/javacomp (Depends-on): Likewise.
18109         * modules/javaversion (Depends-on): Likewise.
18110         * modules/pipe-filter-gi (Depends-on): Likewise.
18111         * modules/pipe-filter-ii (Depends-on): Likewise.
18112         * MODULES.html.sh (Executing programs): Update.
18113         * NEWS: Mention the change.
18114
18115 2010-12-10  Eric Blake  <eblake@redhat.com>
18116
18117         pipe-posix: new module
18118         * modules/pipe-posix: New file.
18119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18120         (gl_UNISTD_H): Check for declaration.
18121         * modules/unistd (Makefile.am): Substitute it.
18122         * lib/unistd.in.h (pipe): Provide it for mingw.
18123         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18124         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18125
18126 2010-12-07  Bruno Haible  <bruno@clisp.org>
18127
18128         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18129         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18130         u8_strcmp_gnu.
18131         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18132
18133 2010-12-06  Bruno Haible  <bruno@clisp.org>
18134
18135         Update internal documentation.
18136         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18137
18138 2010-12-04  Bruno Haible  <bruno@clisp.org>
18139
18140         Put more information about failed tests into the test return codes.
18141         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18142         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18143         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18144         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18145         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18146         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18147         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18148         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18149         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18151         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18152         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18153         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18154         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18155         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18156         returns a bit mask.
18157         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18158         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18159         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18160         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18161         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18162         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18163         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18164         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18165         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18166         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18167         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18168         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18169         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18170         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18171         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18172         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18173         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18174         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18175         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18176         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18177         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18178         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18179         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18180         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18181         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18182         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18183         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18184         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18185         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18186         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18187         gl_PRINTF_PRECISION): Likewise.
18188         * m4/regex.m4 (gl_REGEX): Likewise.
18189         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18190         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18191         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18192         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18193         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18194         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18195         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18196         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18197         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18198         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18199         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18200         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18201         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18202         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18203         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18204         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18205         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18206         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18207         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18208         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18209         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18210         enumerated value.
18211         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18212
18213 2010-12-04  Bruno Haible  <bruno@clisp.org>
18214
18215         Update for Solaris 11 2010-11.
18216         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18217         Express, released in November 2010.
18218
18219 2010-12-04  Bruno Haible  <bruno@clisp.org>
18220
18221         nproc: Relax license.
18222         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18223         and Paul Eggert.
18224         Requested by Ludovic Courtès <ludo@gnu.org>.
18225
18226 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18227
18228         utimecmp: fine-grained src to nearby coarse-grained dest
18229
18230         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18231         and the source is on a file system with higher-resolution time
18232         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18233         not work, and the time stamps are close together, the algorithm to
18234         determine the exact resolution from the read-back mtime was buggy:
18235         it had a "!=" where it should have had an "==".  This bug has been
18236         in the code ever since it was introduced to gnulib.
18237         Problem reported by Dan Jacobson in
18238         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18239
18240 2010-11-30  Bruno Haible  <bruno@clisp.org>
18241
18242         strerror_r-posix: Fix autoconf test.
18243         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18244
18245 2010-11-28  Bruno Haible  <bruno@clisp.org>
18246             Paul Eggert  <eggert@cs.ucla.edu>
18247
18248         Tests for module 'getdomainname'.
18249         * modules/getdomainname-tests: New file.
18250         * tests/test-getdomainname.c: New file, based on
18251         tests/test-gethostname.c.
18252
18253 2010-11-28  Bruno Haible  <bruno@clisp.org>
18254             Paul Eggert  <eggert@cs.ucla.edu>
18255
18256         getdomainname: Use the system function when possible.
18257         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18258         (getdomainname): Replace if needed. Provide the declaration if it is
18259         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18260         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18261         (getdomainname): When the system has getdomainname, call the system
18262         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18263         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18264         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18265         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18266         the function if its second argument is of type 'int' or if it is found
18267         in libnsl.
18268         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18269         <sys/systeminfo.h> and sysinfo().
18270         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18272         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18273         HAVE_GETDOMAINNAME.
18274         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18275         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18276         * doc/glibc-functions/getdomainname.texi: Document the problems with
18277         the getdomainname declaration.
18278
18279 2010-11-28  Bruno Haible  <bruno@clisp.org>
18280
18281         sys_socket: Ensure ss_family field on AIX.
18282         * lib/sys_socket.in.h (ss_family): New macro definition.
18283         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18284         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18285         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18286         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18287         * modules/sys_socket (Makefile.am): Substitute
18288         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18289         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18290
18291 2010-11-27  Bruno Haible  <bruno@clisp.org>
18292
18293         readline: Improve configure output.
18294         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18295         "checking for readline..." result understandable.
18296
18297 2010-11-27  Bruno Haible  <bruno@clisp.org>
18298
18299         *printf-posix: Detect a bug on Solaris 10/x86.
18300         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18301         for floating-point output.
18302         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18303         directive.
18304         * tests/test-snprintf-posix.h (test_function): Likewise.
18305         * tests/test-sprintf-posix.h (test_function): Likewise.
18306         * tests/test-vasprintf-posix.c (test_function): Likewise.
18307         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18308         * doc/posix-functions/printf.texi: Likewise.
18309         * doc/posix-functions/snprintf.texi: Likewise.
18310         * doc/posix-functions/sprintf.texi: Likewise.
18311         * doc/posix-functions/vfprintf.texi: Likewise.
18312         * doc/posix-functions/vprintf.texi: Likewise.
18313         * doc/posix-functions/vsnprintf.texi: Likewise.
18314         * doc/posix-functions/vsprintf.texi: Likewise.
18315         * doc/glibc-functions/obstack_printf.texi: Likewise.
18316         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18317
18318 2010-11-27  Bruno Haible  <bruno@clisp.org>
18319
18320         Fix link error when module libunistring-optional is in use.
18321         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18322         * modules/striconveha-tests (Makefile.am): Likewise.
18323
18324 2010-11-27  Bruno Haible  <bruno@clisp.org>
18325
18326         regex: Mention link dependencies.
18327         * modules/regex (Link): New section.
18328         * modules/rpmatch (Link): Likewise.
18329         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18330
18331 2010-11-27  Bruno Haible  <bruno@clisp.org>
18332
18333         ftoastr: Fix compilation error on Solaris.
18334         * lib/ftoastr.c: Include <config.h>.
18335
18336 2010-11-27  Bruno Haible  <bruno@clisp.org>
18337
18338         getloadavg: Update documentation.
18339         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18340
18341 2010-11-27  Bruno Haible  <bruno@clisp.org>
18342
18343         sys_socket: Fix test whether the functions are declared.
18344         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18345         not <sys/select.h>.
18346
18347 2010-11-27  Bruno Haible  <bruno@clisp.org>
18348
18349         getpass: Make sure to get system declaration on some platforms.
18350         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18351         gl_USE_SYSTEM_EXTENSIONS.
18352         * modules/getpass (Depends-on): Add extensions.
18353
18354 2010-11-26  Bruno Haible  <bruno@clisp.org>
18355
18356         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18357         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18358         'iconv' module is present.
18359         (ICONV_CONST): New macro.
18360         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18361         ICONV_CONST.
18362         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18363         set ICONV_CONST.
18364         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18365         here.
18366         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18367         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18368         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18369         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18370         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18371         present.
18372
18373 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18374
18375         ftoastr: comment fix
18376         * lib/ftoastr.c: "little" -> "little or no" in comment
18377
18378 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18379
18380         stdint: port to GCC 4.3 + OSX + Octave
18381         On this platform, stdint.h is buggy and defines int64_t to long
18382         long int.  The replacement defined it to long int, causing
18383         problems with C++ style name mangling.  Instead, trust the system
18384         definition if INT64_MAX is defined, and likewise for the unsigned
18385         variant.   Problem reported by Jarno Rajahalme in
18386         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18387         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18388         and don't mess with int64_t and INT64_MAX in this case.
18389         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18390
18391 2010-11-24  Bruno Haible  <bruno@clisp.org>
18392
18393         doc: Corrections regarding MacOS X 10.4 and 10.5.
18394         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18395         MacOS X.
18396         Reported by Simon Josefsson.
18397
18398 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18399
18400         Uninstall ".bin" files installed by relocwrapper.
18401         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18402         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18403         unless it is already there.
18404
18405 2010-11-21  Bruno Haible  <bruno@clisp.org>
18406
18407         Update for NetBSD 5.0.
18408         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18409         NetBSD; the test fails on NetBSD 5.0.
18410         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18411         about NetBSD.
18412
18413 2010-11-21  Bruno Haible  <bruno@clisp.org>
18414
18415         Update for HP-UX 11.23 and HP-UX 11.31.
18416         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18417         HP-UX.
18418
18419 2010-11-21  Bruno Haible  <bruno@clisp.org>
18420
18421         Update for MacOS X 10.5.
18422         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18423         MacOS X; the test fails on MacOS X 10.5.8.
18424         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18425         about MacOS X.
18426
18427 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18428
18429         bootstrap: add bootstrap_sync option.
18430         See discussion at
18431         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18432         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18433         * build-aux/bootstrap: Accept --bootstrap-sync to update
18434         bootstrap if it is not identical to the local gnulib's
18435         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18436         enable this by default.  Accept --no-bootstrap-sync to disable
18437         it.
18438
18439 2010-11-20  Bruno Haible  <bruno@clisp.org>
18440
18441         Ensure that <features.h> is included before __GLIBC__ is tested.
18442         * lib/printf-parse.h: Include <features.h>.
18443         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18444         Reported by Mike Frysinger <vapier@gentoo.org>.
18445
18446         Ensure that <features.h> is included before __GLIBC__ is tested.
18447         * lib/wchar.in.h: Include <features.h>.
18448         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18449         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18450         Reported by Mike Frysinger <vapier@gentoo.org>.
18451
18452         Ensure that <features.h> is included before __GLIBC__ is tested.
18453         * lib/arpa_inet.in.h: Include <features.h>.
18454         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18455         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18456         Reported by Mike Frysinger <vapier@gentoo.org>.
18457
18458         Ensure that <features.h> is included before __GLIBC__ is tested.
18459         * build-aux/link-warning.h: Include <features.h>.
18460         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18461         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18462         Reported by Mike Frysinger <vapier@gentoo.org>.
18463
18464         Ensure that <features.h> is included before __GLIBC__ is tested.
18465         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18466         Reported by Mike Frysinger <vapier@gentoo.org>.
18467
18468 2010-11-20  Bruno Haible  <bruno@clisp.org>
18469
18470         memmem: Fix autoconf test.
18471         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18472
18473 2010-11-20  Bruno Haible  <bruno@clisp.org>
18474
18475         Port to uClibc.
18476         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18477         * lib/fcntl.in.h: Likewise.
18478         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18479         * lib/mbrtowc.c (mbrtowc): Likewise.
18480         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18481         * lib/strerror_r.c: Likewise.
18482         * lib/unistr/u8-strnlen.c: Likewise.
18483         * lib/vasnprintf.c (decimal_point_char): Likewise.
18484         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18485         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18486         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18487         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18488         * tests/test-sigaction.c (handler, main): Likewise.
18489         * lib/freading.h: Treat uClibc like a non-glibc platform.
18490         * lib/freading.c: Likewise.
18491         * lib/gettext.h: Likewise.
18492         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18493         Likewise.
18494         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18495         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18496         * lib/propername.c (proper_name_utf8): Likewise.
18497         * lib/spawn.in.h: Likewise.
18498         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18499         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18500         mem_cd_iconveh_internal): Likewise.
18501         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18502         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18503         strstr, strcasestr): Likewise.
18504         * lib/unicodeio.c (unicode_to_mb): Likewise.
18505         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18506         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18507         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18508         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18509         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18510         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18511         * lib/unistr/u8-stpncpy.c: Likewise.
18512         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18513         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18514         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18515         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18516         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18517         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18518         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18519         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18520         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18521         Likewise.
18522         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18523         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18524         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18525         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18526         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18527         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18528         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18529         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18530         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18531         * tests/test-striconveha.c (main): Likewise.
18532         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18533         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18534         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18535         * doc/posix-functions/getline.texi: Likewise.
18536         Reported by Mike Frysinger <vapier@gentoo.org>.
18537
18538 2010-11-20  Bruno Haible  <bruno@clisp.org>
18539
18540         nproc: Fix condition.
18541         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18542         HAVE_PTHREAD_AFFINITY_NP.
18543
18544 2010-11-20  Bruno Haible  <bruno@clisp.org>
18545
18546         Fix a comment.
18547         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18548
18549 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18550
18551         ftoastr: don't assume snprintf
18552         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18553         Implement a subset of snprintf here, by using sprintf safely.
18554         * modules/ftoastr (Depends-on): Remove snprintf.
18555
18556 2010-11-19  Jim Meyering  <meyering@redhat.com>
18557
18558         test-rename.h: fix compilation failure
18559         * tests/test-rename.h (test_rename): Add omitted "}".
18560
18561 2010-11-17  Jim Meyering  <meyering@redhat.com>
18562
18563         maint.mk: add a URL discussing the no-@acronym policy
18564         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18565
18566 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18567
18568         ftoastr: depend on snprintf, improve comments
18569         * lib/ftoastr.c: Also mention Loitsch's draft.
18570         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18571         needed in the current implementation, but it might simplify
18572         speeding up the code later.
18573         * modules/ftoastr: Depend on snprintf; this improves portability.
18574         Suggested by Bruno Haible in the same email.
18575
18576         ftoastr: port to hosts lacking strtof and strtold
18577         Problem reported by Bruno Haible in
18578         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18579         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18580         environment and strtold (and presumably strtof) are not available.
18581         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18582         (configure.ac): Require gl_C99_STRTOLD.
18583
18584 2010-11-18  Bruno Haible  <bruno@clisp.org>
18585
18586         c-strtold: Avoid link error on AIX 7.
18587         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18588         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18589         (gl_C_STRTOLD): Test whether strtold_l exists.
18590         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18591
18592 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18593
18594         intprops: new macro INT_BITS_STRLEN_BOUND
18595         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18596         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18597         not exposed.  Also, it uses a slightly tighter bound than before;
18598         though this makes no practical difference, we might as well be as
18599         tight as we easily can.
18600
18601         ftoastr: new module, for lossless conversion of floats to short strings
18602         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18603         * modules/ftoastr: New files.
18604
18605 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18606
18607         bootstrap: port to Solaris sed
18608         * build-aux/bootstrap (get_version): Port to Solaris sed.
18609         See Ralf Wildenhues's note in
18610         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18611
18612 2010-11-14  Jim Meyering  <meyering@redhat.com>
18613
18614         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18615         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18616         and move definition closer to sole use.
18617
18618 2010-11-13  Jim Meyering  <meyering@redhat.com>
18619
18620         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18621         Now we require at least autoconf-2.59, which means the work-around
18622         is no longer needed.
18623         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18624         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18625         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18626         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18627         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18628
18629 2010-11-13  Bruno Haible  <bruno@clisp.org>
18630
18631         rename, renameat: Avoid test failures at NFS mounted locations.
18632         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18633         functions.
18634         (test_rename): Use assert_nonexistent.
18635         * tests/test-rename.c: Include <dirent.h>.
18636         * tests/test-renameat.c: Likewise.
18637         Reported by Gary V. Vaughan <gary@gnu.org>.
18638
18639         rename, renameat: Document Linux bug with NFS
18640         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18641         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18642         * doc/posix-functions/renameat.texi: Likewise.
18643         Suggested by Eric Blake.
18644
18645 2010-11-13  Bruno Haible  <bruno@clisp.org>
18646
18647         rename test: Add comments.
18648         * tests/test-rename.h (test_rename): Add structure and comments.
18649
18650 2010-11-13  Eric Blake  <eblake@redhat.com>
18651
18652         maintainer-makefile: cover a few more files
18653         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18654         scripts generated within C files, for libvirt.
18655
18656 2010-11-13  Bruno Haible  <bruno@clisp.org>
18657
18658         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18659         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18660         character, return the number of bytes that belong together, not always
18661         1.
18662         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18663         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18664         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18665         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18666         number of bytes of an invalid character.
18667         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18668         (main): Invoke it.
18669         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18670         results.
18671         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18672         malformed byte sequences.
18673         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18674         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18675         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18676         Reported by Ben Pfaff and Paolo Bonzini.
18677
18678 2010-11-13  Bruno Haible  <bruno@clisp.org>
18679
18680         openat: Work around glibc bug with fchownat() and empty file names.
18681         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18682         (gl_FUNC_FCHOWNAT): Invoke it.
18683         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18684         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18685         Reported by Gary V. Vaughan <gary@gnu.org>.
18686
18687 2010-11-13  Bruno Haible  <bruno@clisp.org>
18688
18689         openat: Ensure autoconf macro ordering.
18690         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18691         gl_USE_SYSTEM_EXTENSIONS.
18692         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18693
18694 2010-11-13  Bruno Haible  <bruno@clisp.org>
18695
18696         Update comments.
18697         * lib/unistr/u8-check.c: Update file name in comments.
18698         * lib/unistr/u8-mblen.c: Likewise.
18699         * lib/unistr/u8-prev.c: Likewise.
18700         * lib/unistr/u8-strmblen.c: Likewise.
18701         * lib/unistr/u8-strmbtouc.c: Likewise.
18702
18703 2010-11-13  Jim Meyering  <meyering@redhat.com>
18704
18705         tests: avoid test failure on Solaris 10 due to lack of PATH export
18706         * tests/test-update-copyright.sh: Don't forget to export PATH.
18707
18708         init.sh: ensure that IFS is defined, just in case...
18709         * tests/init.sh (setup_): Ensure that IFS is defined,
18710         so that saving and restoring it works as expected.  This
18711         appears to be useful at least for an old version of dash
18712         from a long time ago (RH 6).  See here for details:
18713         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18714
18715         maint.mk: tighten "test a == b" check
18716         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18717         test to files that contain something like #!/bin/sh.
18718         Without this, coreutils would get two false positives in
18719         the comments of C source files.
18720
18721 2010-11-12  Eric Blake  <eblake@redhat.com>
18722
18723         bootstrap: fix typo in previous attempt
18724         * build-aux/bootstrap (buildreq): Correct the grouping.
18725         Reported by Paul Eggert.
18726
18727         maintainer-makefile: prohibit test x == x
18728         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18729         Based on a report by Matthias Bolte.
18730
18731         bootstrap: allow FreeBSD gzip
18732         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18733         which has no '.' and goes to stderr.
18734         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18735         Reported by Matthias Bolte.
18736
18737         maintainer-makefile: check for i18n setup
18738         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18739         will likely work.
18740
18741 2010-11-12  Bruno Haible  <bruno@clisp.org>
18742
18743         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18744         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18745         * lib/nanosleep.c (nanosleep): Likewise.
18746
18747 2010-11-11  Bruno Haible  <bruno@clisp.org>
18748
18749         fcntl-h: Fix for use of C++ on glibc systems.
18750         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18751         also on glibc systems in C++ mode.
18752         Reported by Gary V. Vaughan <gary@gnu.org>.
18753
18754 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18755
18756         mknod: avoid false failure with dash
18757         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18758
18759 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18760
18761         unlink: Fix "is it should" typo in diagnostic.
18762         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18763         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18764
18765 2010-11-11  Bruno Haible  <bruno@clisp.org>
18766
18767         Tests for module 'strerror_r-posix'.
18768         * modules/strerror_r-posix-tests: New file.
18769         * tests/test-strerror_r.c: New file.
18770         * tests/test-string-c++.cc: Check the signature of strerror_r.
18771
18772         New module 'strerror_r-posix'.
18773         * lib/string.in.h (strerror_r): New declaration.
18774         * lib/strerror_r.c: New file.
18775         * m4/strerror_r.m4: New file.
18776         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18777         of strerror_r.
18778         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18779         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18780         * modules/strerror_r-posix: New file.
18781         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18782         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18783         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18784         portability problems.
18785
18786 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18787
18788         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18789         line is also considered for output. Quoted function name in shell
18790         command, so temporary files for functions like MyClass::operator()
18791         are removed correctly without errors.
18792
18793 2010-11-09  Bruno Haible  <bruno@clisp.org>
18794
18795         * doc/posix-functions/strerror.texi: List more failing platforms.
18796
18797         * doc/posix-functions/strerror.texi: Add a comment.
18798
18799 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18800
18801         fdopendir: fix bug on MacOS X when low on file descriptors
18802
18803         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18804         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18805         All callers changed.
18806         (fdopendir): Invoke save_cwd at the top level, not after using
18807         multiple dup() calls to use up file descriptors.  Then retry
18808         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18809         less than the maximum number of open file descriptors, because
18810         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18811         on Mac OS X 10.6.4 for tar 1.24
18812         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18813         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18814         and for tar 1.25
18815         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18816
18817 2010-11-07  Bruno Haible  <bruno@clisp.org>
18818
18819         vasnprintf: Support I flag on glibc systems.
18820         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18821         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18822         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18823         snprintf function.
18824         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18825         glibc systems.
18826         * tests/test-vasnprintf-posix3.c: New file.
18827         * modules/vasnprintf-posix-tests (Files): Add it.
18828         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18829
18830 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18831
18832         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18833         * MODULES.html.sh: For compiler warnings, use name
18834         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18835
18836 2010-11-05  Eric Blake  <eblake@redhat.com>
18837
18838         ceil, floor: avoid spurious failure with icc
18839         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18840         [denormals-as-zero] when optimizing without -mieee-fp option.
18841         * tests/test-floorf2.c (floorf_reference): Likewise.
18842         * tests/test-ceilf1.c (dummy): New function.
18843         (main): Use it to outsmart icc's optimization.
18844         * tests/test-floorf1.c (dummy, main): Likewise.
18845
18846         tests: require working signbit
18847         * modules/ceilf-tests (Depends-on): Add signbit.
18848         * modules/ceill-tests (Depends-on): Likewise.
18849         * modules/floorf-tests (Depends-on): Likewise.
18850         * modules/floorl-tests (Depends-on): Likewise.
18851         * modules/round-tests (Depends-on): Likewise.
18852         * modules/roundf-tests (Depends-on): Likewise.
18853         * modules/roundl-tests (Depends-on): Likewise.
18854         * modules/trunc-tests (Depends-on): Likewise.
18855         * modules/truncf-tests (Depends-on): Likewise.
18856         * modules/truncl-tests (Depends-on): Likewise.
18857
18858         strtod: work around icc bug
18859         * lib/strtod.c (minus_zero): Define to working value.
18860         (strtod): Use it to avoid icc bug.
18861
18862         copysign: enhance tests
18863         * modules/copysign-tests (Files): Add minus-zero.h.
18864         * tests/test-copysign.c (main): Also test zeros.
18865
18866 2010-11-04  Eric Blake  <eblake@redhat.com>
18867
18868         ceil, floor, round, trunc: enhance tests of -0
18869         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18870         * tests/test-ceill.c (main): Likewise.
18871         * tests/test-floorf1.c (main): Likewise.
18872         * tests/test-floorl.c (main): Likewise.
18873         * tests/test-round1.c (main): Likewise.
18874         * tests/test-roundf1.c (main): Likewise.
18875         * tests/test-roundl.c (main): Likewise.
18876         * tests/test-trunc1.c (main): Likewise.
18877         * tests/test-truncf1.c (main): Likewise.
18878         * tests/test-truncl.c (main): Likewise.
18879
18880 2010-11-04  Eric Blake  <eblake@redhat.com>
18881
18882         frexp, tests: work around ICC bug with -zero
18883         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18884         works with more compilers.
18885         * tests/minus-zero.h: New file.
18886         * modules/ceilf-tests (Files): Include it.
18887         * modules/ceill-tests (Files): Likewise.
18888         * modules/floorf-tests (Files): Likewise.
18889         * modules/floorl-tests (Files): Likewise.
18890         * modules/frexp-nolibm-tests (Files): Likewise.
18891         * modules/frexp-tests (Files): Likewise.
18892         * modules/frexpl-nolibm-tests (Files): Likewise.
18893         * modules/frexpl-tests (Files): Likewise.
18894         * modules/isnan-tests (Files): Likewise.
18895         * modules/isnand-nolibm-tests (Files): Likewise.
18896         * modules/isnand-tests (Files): Likewise.
18897         * modules/isnanf-nolibm-tests (Files): Likewise.
18898         * modules/isnanf-tests (Files): Likewise.
18899         * modules/isnanl-nolibm-tests (Files): Likewise.
18900         * modules/isnanl-tests (Files): Likewise.
18901         * modules/round-tests (Files): Likewise.
18902         * modules/roundf-tests (Files): Likewise.
18903         * modules/roundl-tests (Files): Likewise.
18904         * modules/ldexpl-tests (Files): Likewise.
18905         * modules/signbit-tests (Files): Likewise.
18906         * modules/snprintf-posix-tests (Files): Likewise.
18907         * modules/sprintf-posix-tests (Files): Likewise.
18908         * modules/strtod-tests (Files): Likewise.
18909         * modules/trunc-tests (Files): Likewise.
18910         * modules/truncf-tests (Files): Likewise.
18911         * modules/truncl-tests (Files): Likewise.
18912         * modules/vsnprintf-posix-tests (Files): Likewise.
18913         * modules/vsprintf-posix-tests (Files): Likewise.
18914         * modules/vasnprintf-posix-tests (Files): Likewise.
18915         * modules/vasprintf-posix-tests (Files): Likewise.
18916         * tests/test-ceilf1.c (main): Use it.
18917         * tests/test-ceill.c (main): Likewise.
18918         * tests/test-floorf1.c (main): Likewise.
18919         * tests/test-floorl.c (main): Likewise.
18920         * tests/test-frexp.c (main): Likewise.
18921         * tests/test-frexpl.c (main): Likewise.
18922         * tests/test-isnan.c (main): Likewise.
18923         * tests/test-isnand.h (main): Likewise.
18924         * tests/test-isnanf.h (main): Likewise.
18925         * tests/test-isnanl.h (main): Likewise.
18926         * tests/test-ldexpl.c (main): Likewise.
18927         * tests/test-round.c (main): Likewise.
18928         * tests/test-roundf.c (main): Likewise.
18929         * tests/test-roundl.c (main): Likewise.
18930         * tests/test-signbit.c (test_signbitf, test_signbitd)
18931         (test_signbitl): Likewise.
18932         * tests/test-snprintf-posix.h (test_function): Likewise.
18933         * tests/test-sprintf-posix.h (test_function): Likewise.
18934         * tests/test-strtod.c (main): Likewise.
18935         * tests/test-trunc1.c (main): Likewise.
18936         * tests/test-truncf1.c (main): Likewise.
18937         * tests/test-truncl.c (main): Likewise.
18938
18939         isnanl: work around icc bug
18940         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18941
18942 2010-11-03  Eric Blake  <eblake@redhat.com>
18943
18944         tests: fix compiler warnings
18945         * tests/test-getopt.h (test_getopt): Fix condition.
18946         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18947         * tests/test-pipe2.c (main): Likewise.
18948         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18949
18950         utimens: fix broken m4 test
18951         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18952
18953 2010-10-28  Bruno Haible  <bruno@clisp.org>
18954
18955         posix_spawn*, getdtablesize: Relax license.
18956         * modules/posix_spawn (License): Change to LGPLv2+.
18957         * modules/posix_spawnp (License): Likewise.
18958         * modules/posix_spawn-internal (License): Likewise.
18959         * modules/posix_spawnattr_init (License): Likewise.
18960         * modules/posix_spawnattr_getflags (License): Likewise.
18961         * modules/posix_spawnattr_setflags (License): Likewise.
18962         * modules/posix_spawnattr_getpgroup (License): Likewise.
18963         * modules/posix_spawnattr_setpgroup (License): Likewise.
18964         * modules/posix_spawnattr_getschedparam (License): Likewise.
18965         * modules/posix_spawnattr_setschedparam (License): Likewise.
18966         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18967         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18968         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18969         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18970         * modules/posix_spawnattr_getsigmask (License): Likewise.
18971         * modules/posix_spawnattr_setsigmask (License): Likewise.
18972         * modules/posix_spawnattr_destroy (License): Likewise.
18973         * modules/posix_spawn_file_actions_init (License): Likewise.
18974         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18975         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18976         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18977         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18978         * modules/getdtablesize (License): Likewise.
18979         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18980
18981 2010-10-26  Bruno Haible  <bruno@clisp.org>
18982
18983         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18984         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18985         Cygwin and mingw.
18986         Suggested by Eric Blake.
18987
18988 2010-10-26  Bruno Haible  <bruno@clisp.org>
18989
18990         stdio: Work around compilation error due to renameat() on Solaris 10.
18991         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18992         * lib/renameat.c: Don't include <unistd.h> here.
18993         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18994         Reported by Paul Eggert and Eric Blake.
18995
18996 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18997
18998         renameat: port to Solaris 10, which declares renameat in unistd.h
18999
19000         * lib/renameat.c: Include unistd.h before stdio.h, because
19001         Solaris 10 declares renameat in unistd.h.  Problem encountered
19002         when building GNU tar 1.24 on Solaris 10.
19003
19004 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19005
19006         fdopendir: fix C89 compilation
19007         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19008         compilers.
19009
19010 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19011
19012         inttostr: simplify by removing unnecessary redundancy
19013         * lib/anytostr.c: Don't include verify.h.
19014         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19015         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19016         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19017         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19018         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19019         Likewise.
19020         * modules/inttostr (Depends-on): Remove 'verify'.
19021
19022 2010-10-23  Bruno Haible  <bruno@clisp.org>
19023
19024         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19025         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19026         Reported by Eric Blake.
19027
19028 2010-10-23  Bruno Haible  <bruno@clisp.org>
19029
19030         Tests: Fix LOCALE_JA on MirBSD 10.
19031         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19032         to an UTF-8 locale.
19033         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19034         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19035         Reported by Eric Blake.
19036
19037 2010-10-21  Bruno Haible  <bruno@clisp.org>
19038
19039         nl_langinfo test: Avoid test failure on NetBSD 5.
19040         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19041         Reported by Eric Blake.
19042
19043 2010-10-21  Eric Blake  <eblake@redhat.com>
19044
19045         c-stack: work around libsigsegv 2.8 bug
19046         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19047         overflow on at least PowerPC64.
19048
19049 2010-10-17  Bruno Haible  <bruno@clisp.org>
19050
19051         userspec: Drop redundant file.
19052         * modules/userspec (Files): Remove lib/inttostr.h.
19053
19054 2010-10-17  Bruno Haible  <bruno@clisp.org>
19055
19056         nl_langinfo tests: Silence some warnings.
19057         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19058         Reported by Jim Meyering.
19059
19060 2010-10-17  Bruno Haible  <bruno@clisp.org>
19061
19062         Make use of GCC's attribute __alloc_size__.
19063         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19064         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19065         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19066         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19067         __alloc_size__.
19068         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19069         Suggested by Jim Meyering.
19070
19071 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19072
19073         bootstrap: anchor .gitignore entries.
19074         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19075         with...
19076         (insert_vc_ignore): ... this new function, which prepends `/' to
19077         all .gitignore entries before passing them to
19078         insert_sorted_if_absent.
19079
19080 2010-10-16  Bruno Haible  <bruno@clisp.org>
19081
19082         nextafter: Fix configure check.
19083         * modules/nextafter (configure.ac): Correct expected prototype.
19084
19085 2010-10-16  Bruno Haible  <bruno@clisp.org>
19086
19087         termios: Update documentation.
19088         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19089
19090 2010-10-16  Bruno Haible  <bruno@clisp.org>
19091
19092         tests: Make them compile with TinyCC.
19093         * tests/test-strstr.c (main): Remove parentheses around array
19094         initializer.
19095
19096 2010-10-15  Eric Blake  <eblake@redhat.com>
19097
19098         ignore-value: make header idempotent
19099         * lib/ignore-value.h: Add double-inclusion guards.
19100         Reported by Stefan Berger.
19101
19102 2010-10-15  Jim Meyering  <meyering@redhat.com>
19103
19104         GNUmakefile: handle "stable" target, not "major"
19105         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19106         lists in maint.mk and announce-gen.  Without this, "make stable"
19107         would fail to ensure that $(VERSION) is up to date.
19108
19109 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19110
19111         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19112         & co.
19113
19114 2010-10-14  Bruno Haible  <bruno@clisp.org>
19115
19116         vasnprintf: Don't set errno to 0.
19117         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19118         block that sets it to 0.
19119         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19120
19121 2010-10-14  Bruno Haible  <bruno@clisp.org>
19122
19123         socketlib: Fix.
19124         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19125         gl_PREREQ_SYS_H_WINSOCK2.
19126         Reported by Ian Beckwith <ianb@erislabs.net>.
19127
19128 2010-10-13  Jim Meyering  <meyering@redhat.com>
19129
19130         test-select-stdin.c: avoid warn_unused_result warnings
19131         * tests/test-select-stdin.c: Include "macros.h".
19132         ASSERT that read and fflush succeed.
19133
19134 2010-10-13  Jim Meyering  <meyering@redhat.com>
19135
19136         git-version-gen: do require git-VC'd files in cwd
19137         * build-aux/git-version-gen: Reject a git version string
19138         if there are no commits associated with the current directory.
19139         This avoids an unlikely false-positive (unrelated dir whose parent
19140         repository also contains a tag matching v*), as pointed out
19141         by Giuseppe Scrivano in
19142         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19143
19144 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19145
19146         argv-iter: omit nonconforming declaration
19147         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19148         enum arg_iter_err declaration, which doesn't conform to C99.
19149         Solaris 10 cc warns about this.
19150
19151 2010-10-13  Eric Blake  <eblake@redhat.com>
19152
19153         termios: fix compilation on mingw
19154         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19155         (gl_TERMIOS_H): Adjust it on mingw.
19156         * modules/termios (Makefile.am): Substitute new key.
19157         * lib/termios.in.h (includes): Make include_next conditional.
19158         * doc/posix-headers/termios.texi (termios.h): Update
19159         documentation.
19160         Reported by Daniel P. Berrange.
19161
19162 2010-10-13  Jim Meyering  <meyering@redhat.com>
19163
19164         git-version-gen: don't require that .git/ be in the current dir
19165         * build-aux/git-version-gen: Adjust this script so that it works
19166         when run from any working directory beneath the top-level .git/-
19167         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19168         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19169
19170         test-select: avoid warn_unused_result warnings
19171         * tests/test-select.c: Include "macros.h".
19172         ASSERT that each call to read, write, and pipe succeeds.
19173         While not technically required, also check each "close".
19174         * modules/select-tests (Files): Add tests/macros.h.
19175
19176         test-symlinkat: remove declaration of unused local
19177         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19178
19179         test-inttostr: avoid shadowing warnings
19180         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19181         and use malloc rather than the stack for the same reason as
19182         mentioned in the comment justifying the other allocation.
19183
19184 2010-10-11  Bruno Haible  <bruno@clisp.org>
19185
19186         stdlib: Allow multiple gnulib generated replacements to coexist.
19187         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19188         Reported by Sam Steingold <sds@gnu.org>.
19189
19190 2010-10-11  Jim Meyering  <meyering@redhat.com>
19191
19192         fix a documentation typo
19193         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19194
19195 2010-10-11  Eric Blake  <eblake@redhat.com>
19196
19197         futimens: work around Solaris 11 bug
19198         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19199         * tests/test-futimens.h (test_futimens): Enhance, rather than
19200         weaken test.
19201         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19202
19203 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19204
19205         Indentation.
19206         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19207         higher-level operators more to the left.
19208
19209 2010-10-11  Jim Meyering  <meyering@redhat.com>
19210
19211         test-futimens: avoid unwarranted test failure on Solaris 5.11
19212         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19213         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19214         because it tries to dereference the NULL name argument.
19215
19216 2010-10-11  Bruno Haible  <bruno@clisp.org>
19217
19218         Indentation.
19219         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19220         indentation.
19221
19222 2010-10-11  Jim Meyering  <meyering@redhat.com>
19223
19224         spawn.in.h: make indentation consistent with parentheses
19225         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19226         Make indentation consistent with parentheses.
19227
19228 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19229
19230         Fix mismatched parens in previous commit
19231         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19232         parens.
19233
19234 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19235
19236         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19237
19238         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19239         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19240         * lib/malloca.c: Include "verify.h".
19241         (verify1): Remove, replacing with a verify call.
19242         * lib/relocwrapper.c (verify1): Likewise.
19243         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19244         Likewise.
19245         * modules/malloca (Depends-on): Add 'verify'.
19246         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19247         * modules/vasnprintf (Depends-on): Add 'verify'.
19248         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19249         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19250         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19251         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19252         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19253         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19254         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19255
19256         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19257
19258         Formerly the style was sometimes 2*X - 1, because the C standard
19259         was wrongly thought to disallow ?: in integral constant expressions.
19260         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19261         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19262         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19263         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19264         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19265         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19266         verify that time_t cannot be floating.
19267
19268 2010-10-08  Eric Blake  <eblake@redhat.com>
19269
19270         time: enforce recent POSIX ruling that time_t is integral
19271         * lib/time.in.h (__time_t_must_be_integral): Detect any
19272         problematic systems, allowing the rest of gnulib to assume POSIX.
19273
19274 2010-10-08  Jim Meyering  <meyering@redhat.com>
19275
19276         fdopendir: fix a bug on systems lacking openat and /proc support
19277         OpenBSD 4.7 is one such system.  The most noticeable effect was
19278         failure of any application making nontrivial use of fts: rm, du,
19279         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19280           ./rm: traversal failed: `a': Bad file descriptor
19281         Debugging that, you see that even though FD 6 was closed just
19282         prior to the opendir call in fd_clone_opendir, its resulting
19283         dir->dd_fd was 8, rather than the expected value of 6:
19284
19285         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19286         93                close (fd);
19287         (gdb) n
19288         94                dir = fd_clone_opendir (dupfd);
19289         (gdb) n
19290         95                saved_errno = errno;
19291         (gdb) p dir->dd_fd
19292         $11 = 8
19293
19294         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19295         The problem is that on OpenBSD, fd_clone_opendir has to resort
19296         to using the old-style save/restore CWD mechanism, due to its
19297         lack of openat/proc support, and *that* would steal the FD (6)
19298         that opendir was supposed to use.
19299
19300         The fix is to squirrel away the desired FD so that save_cwd uses a
19301         different one, and then free the dest FD right before calling opendir.
19302         That guarantees opendir will use the required file descriptor.
19303
19304         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19305
19306 2010-10-08  Bruno Haible  <bruno@clisp.org>
19307
19308         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19309         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19310
19311 2010-10-08  Bruno Haible  <bruno@clisp.org>
19312
19313         nanosleep: Make replacement POSIX compliant.
19314         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19315         is out of range.
19316         Reported by Jim Meyering.
19317
19318 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19319
19320         bootstrap: add hook for altering gnulib.mk, for Bison
19321         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19322         the Bison bootstrapping process can rewrite file names and variables
19323         in this file before later parts of 'bootstrap' use the file.
19324         Bison wants to include lib/gnulib.mk from the top-level makefile,
19325         so it needs the file names in this file to be relative to the top
19326         level, not relative to lib; plus it needs variable names to be
19327         rewritten.
19328         (slurp): Use the new function.
19329
19330         bootstrap: reformat for readability
19331         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19332
19333 2010-10-08  Eric Blake  <eblake@redhat.com>
19334
19335         docs: update cygwin progress
19336         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19337         1.7.7.
19338         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19339         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19340         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19341         * doc/posix-functions/carg.texi (carg): Likewise.
19342         * doc/posix-functions/cargf.texi (cargf): Likewise.
19343         * doc/posix-functions/casin.texi (casin): Likewise.
19344         * doc/posix-functions/casinf.texi (casinf): Likewise.
19345         * doc/posix-functions/casinh.texi (casinh): Likewise.
19346         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19347         * doc/posix-functions/catan.texi (catan): Likewise.
19348         * doc/posix-functions/catanf.texi (catanf): Likewise.
19349         * doc/posix-functions/catanh.texi (catanh): Likewise.
19350         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19351         * doc/posix-functions/ccos.texi (ccos): Likewise.
19352         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19353         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19354         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19355         * doc/posix-functions/cexp.texi (cexp): Likewise.
19356         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19357         * doc/posix-functions/cimag.texi (cimag): Likewise.
19358         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19359         * doc/posix-functions/clog.texi (clog): Likewise.
19360         * doc/posix-functions/clogf.texi (clogf): Likewise.
19361         * doc/posix-functions/conj.texi (conj): Likewise.
19362         * doc/posix-functions/conjf.texi (conjf): Likewise.
19363         * doc/posix-functions/cpow.texi (cpow): Likewise.
19364         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19365         * doc/posix-functions/cproj.texi (cproj): Likewise.
19366         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19367         * doc/posix-functions/creal.texi (creal): Likewise.
19368         * doc/posix-functions/crealf.texi (crealf): Likewise.
19369         * doc/posix-functions/csin.texi (csin): Likewise.
19370         * doc/posix-functions/csinf.texi (csinf): Likewise.
19371         * doc/posix-functions/csinh.texi (csinh): Likewise.
19372         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19373         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19374         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19375         * doc/posix-functions/ctan.texi (ctan): Likewise.
19376         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19377         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19378         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19379         * doc/posix-headers/complex.texi (complex.h): Likewise.
19380
19381 2010-10-07  Jim Meyering  <meyering@redhat.com>
19382
19383         parse-datetime: avoid compilation failure on OpenBSD 4.7
19384         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19385         This works around a compilation failure on OpenBSD 4.7:
19386         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19387
19388 2010-10-07  Eric Blake  <eblake@redhat.com>
19389
19390         docs: update cygwin progress
19391         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19392         1.7.6.
19393         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19394         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19395         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19396         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19397         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19398         Likewise.
19399         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19400         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19401         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19402         Likewise.
19403         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19404         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19405         Likewise.
19406         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19407         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19408         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19409         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19410         Likewise.
19411         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19412         Likewise.
19413         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19414
19415         docs: update parse-datetime history
19416         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19417         documentation of this function's history and alternatives.
19418
19419         cygwin: use more robust version check
19420         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19421         exclude an eventual cygwin 1.9.1.
19422         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19423         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19424         (gl_FUNC_STRCASESTR): Likewise.
19425         Reported by Bruno Haible.
19426
19427 2010-10-06  Bruno Haible  <bruno@clisp.org>
19428
19429         string, sys_select: Avoid #including large headers unless necessary.
19430         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19431         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19432         OSF/1, BeOS, Haiku.
19433         Reported by Jim Meyering.
19434
19435 2010-10-05  Eric Blake  <eblake@redhat.com>
19436
19437         memmem, strstr, strcasestr: fix bug with long periodic needle
19438         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19439         periodic needle having false positive.
19440         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19441         and cygwin 1.7.7.
19442         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19443         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19444         (gl_FUNC_STRCASESTR): Likewise.
19445         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19446         * tests/test-memmem.c (main): Expose the bug.
19447         * tests/test-strcasestr.c (main): Likewise.
19448         * tests/test-strstr.c (main): Likewise.
19449         * tests/test-c-strcasestr.c (main): Likewise.
19450         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19451         * doc/posix-functions/strstr.texi (strstr): Likewise.
19452         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19453         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19454
19455 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19456
19457         parse-datetime: do some more renaming
19458         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19459         parse_datetime, not get_date.  Mention the renaming.
19460         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19461         in comments.
19462         * m4/bison.m4: Likewise.
19463
19464 2010-10-05  Eric Blake  <eblake@redhat.com>
19465
19466         parse-datetime: better name than get_date
19467         * NEWS: Reword the deprecation notice.
19468         * modules/get_date: Rename to modules/parse-datetime.
19469         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19470         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19471         * lib/get_date.y: Rename to lib/parse-datetime.y.
19472         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19473         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19474         * doc/getdate.texi: Provide fallback wrapper.
19475         * lib/getdate.h: Move guts, and wrap...
19476         * lib/parse-datetime.h: ...new file.
19477         * lib/parse-datetime.y (get_date): Rename...
19478         (parse_datetime): ...to this.
19479         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19480         (gl_PARSE_DATETIME): ...to this.
19481         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19482         documentation.
19483         * modules/getdate (Files): Provide fallback docs and header.
19484         (Notice, Depends-on): Update references.
19485         * tests/test-parse-datetime.c: Likewise.
19486         * DEPENDENCIES: Likewise.
19487         * MODULES.html.sh (Date and time <time.h>): Likewise.
19488         * doc/parse-datetime.texi (Date input formats)
19489         (Authors of parse_datetime): Likewise.
19490         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19491         (Include): Likewise.
19492         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19493         * gnulib-tool: Likewise.
19494         * m4/bison.m4 (gl_BISON): Likewise.
19495         Suggested by Bruno Haible.
19496
19497 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19498
19499         more ports to Solaris tr, which needs [] around ranges
19500         * gnulib-tool: Solaris tr needs [] around ranges.
19501         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19502         * tests/test-pipe-filter-gi1.c (main): Likewise.
19503         * tests/test-pipe-filter-ii1.c (main): Likewise.
19504
19505 2010-10-05  Eric Blake  <eblake@redhat.com>
19506
19507         bootstrap: fix Solaris regression
19508         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19509         around ranges.
19510         Reported by Pádraig Brady.
19511
19512         bootstrap: work with pkg-config
19513         * build-aux/bootstrap (check_versions): Also transliterate - in
19514         prerequisite name.
19515         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19516         prerequisites that were already found, to avoid confusion.
19517         Reported by Justin Clift.
19518
19519         faccessat: remove unused wrappers
19520         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19521         presence of these wrappers dragged in -lgen on Solaris.
19522         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19523
19524 2010-10-05  Jim Meyering  <meyering@redhat.com>
19525
19526         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19527         * Makefile (sc_pragma_columns): New syntax-check rule.
19528
19529 2010-10-04  Bruno Haible  <bruno@clisp.org>
19530
19531         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19532         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19533         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19534         Reported by Bruce Korb and Eric Blake.
19535
19536 2010-10-04  Bruno Haible  <bruno@clisp.org>
19537
19538         threadlib: Make option --with-libpth-prefix work.
19539         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19540         use $LIBPTH, not just -lpth.
19541
19542 2010-10-04  Bruno Haible  <bruno@clisp.org>
19543
19544         Avoid line length limitation from HP NonStop system header files.
19545         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19546         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19547         * lib/ctype.in.h: Likewise.
19548         * lib/dirent.in.h: Likewise.
19549         * lib/errno.in.h: Likewise.
19550         * lib/fcntl.in.h: Likewise.
19551         * lib/float.in.h: Likewise.
19552         * lib/getopt.in.h: Likewise.
19553         * lib/iconv.in.h: Likewise.
19554         * lib/inttypes.in.h: Likewise.
19555         * lib/langinfo.in.h: Likewise.
19556         * lib/locale.in.h: Likewise.
19557         * lib/math.in.h: Likewise.
19558         * lib/netdb.in.h: Likewise.
19559         * lib/netinet_in.in.h: Likewise.
19560         * lib/poll.in.h: Likewise.
19561         * lib/pthread.in.h: Likewise.
19562         * lib/pty.in.h: Likewise.
19563         * lib/sched.in.h: Likewise.
19564         * lib/se-selinux.in.h: Likewise.
19565         * lib/search.in.h: Likewise.
19566         * lib/signal.in.h: Likewise.
19567         * lib/spawn.in.h: Likewise.
19568         * lib/stdarg.in.h: Likewise.
19569         * lib/stddef.in.h: Likewise.
19570         * lib/stdint.in.h: Likewise.
19571         * lib/stdio.in.h: Likewise.
19572         * lib/stdlib.in.h: Likewise.
19573         * lib/string.in.h: Likewise.
19574         * lib/strings.in.h: Likewise.
19575         * lib/sys_file.in.h: Likewise.
19576         * lib/sys_ioctl.in.h: Likewise.
19577         * lib/sys_select.in.h: Likewise.
19578         * lib/sys_socket.in.h: Likewise.
19579         * lib/sys_stat.in.h: Likewise.
19580         * lib/sys_time.in.h: Likewise.
19581         * lib/sys_times.in.h: Likewise.
19582         * lib/sys_utsname.in.h: Likewise.
19583         * lib/sys_wait.in.h: Likewise.
19584         * lib/sysexits.in.h: Likewise.
19585         * lib/termios.in.h: Likewise.
19586         * lib/time.in.h: Likewise.
19587         * lib/unistd.in.h: Likewise.
19588         * lib/wchar.in.h: Likewise.
19589         * lib/wctype.in.h: Likewise.
19590         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19591         * modules/ctype (Makefile.am): Likewise.
19592         * modules/dirent (Makefile.am): Likewise.
19593         * modules/errno (Makefile.am): Likewise.
19594         * modules/fcntl-h (Makefile.am): Likewise.
19595         * modules/float (Makefile.am): Likewise.
19596         * modules/getopt-posix (Makefile.am): Likewise.
19597         * modules/iconv-h (Makefile.am): Likewise.
19598         * modules/inttypes (Makefile.am): Likewise.
19599         * modules/langinfo (Makefile.am): Likewise.
19600         * modules/locale (Makefile.am): Likewise.
19601         * modules/math (Makefile.am): Likewise.
19602         * modules/netdb (Makefile.am): Likewise.
19603         * modules/netinet_in (Makefile.am): Likewise.
19604         * modules/poll-h (Makefile.am): Likewise.
19605         * modules/pthread (Makefile.am): Likewise.
19606         * modules/pty (Makefile.am): Likewise.
19607         * modules/sched (Makefile.am): Likewise.
19608         * modules/search (Makefile.am): Likewise.
19609         * modules/selinux-h (Makefile.am): Likewise.
19610         * modules/signal (Makefile.am): Likewise.
19611         * modules/spawn (Makefile.am): Likewise.
19612         * modules/stdarg (Makefile.am): Likewise.
19613         * modules/stddef (Makefile.am): Likewise.
19614         * modules/stdint (Makefile.am): Likewise.
19615         * modules/stdio (Makefile.am): Likewise.
19616         * modules/stdlib (Makefile.am): Likewise.
19617         * modules/string (Makefile.am): Likewise.
19618         * modules/strings (Makefile.am): Likewise.
19619         * modules/sys_file (Makefile.am): Likewise.
19620         * modules/sys_ioctl (Makefile.am): Likewise.
19621         * modules/sys_select (Makefile.am): Likewise.
19622         * modules/sys_socket (Makefile.am): Likewise.
19623         * modules/sys_stat (Makefile.am): Likewise.
19624         * modules/sys_time (Makefile.am): Likewise.
19625         * modules/sys_times (Makefile.am): Likewise.
19626         * modules/sys_utsname (Makefile.am): Likewise.
19627         * modules/sys_wait (Makefile.am): Likewise.
19628         * modules/sysexits (Makefile.am): Likewise.
19629         * modules/termios (Makefile.am): Likewise.
19630         * modules/time (Makefile.am): Likewise.
19631         * modules/unistd (Makefile.am): Likewise.
19632         * modules/wchar (Makefile.am): Likewise.
19633         * modules/wctype (Makefile.am): Likewise.
19634
19635 2010-10-04  Bruno Haible  <bruno@clisp.org>
19636
19637         read-file tests: Avoid a test failure on NonStop Kernel.
19638         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19639         a regular file.
19640         Reported by Joachim Schmitz <schmitz@hp.com>.
19641
19642 2010-10-03  Bruno Haible  <bruno@clisp.org>
19643
19644         gnulib-tool: Fixes for --create-testdir with --libtool.
19645         * gnulib-tool (func_get_automake_snippet): Don't augment
19646         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19647         an executable.
19648         (func_create_testdir): Handle module 'alloca' like func_import.
19649         Reported by Bruce Korb <bruce.korb@gmail.com>.
19650
19651 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19652
19653         Avoid some lines longer than 80 characters.
19654         * lib/stdint.in.h: Break long comment lines.
19655         * lib/math.in.h: Likewise.
19656         (_GL_NUM_UINT_WORDS): New macro, for readability.
19657         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19658         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19659         * lib/stdlib.in.h: Likewise.
19660         * lib/spawn.in.h: Likewise.
19661         * lib/sys_socket.in.h: Update an URL.
19662         * lib/sys_stat.in.h: Break long line.
19663
19664 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19665
19666         Improve pmccabe2html.
19667         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19668         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19669         when the sources change. Remove the line in the HTML about "Used
19670         ranges" (which implied that there might be other unused ranges),
19671         rename "Resume" to "Summary" (easier to understand for more users).
19672         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19673         styles, and some unnecessary blank lines.
19674
19675 2010-10-03  Bruno Haible  <bruno@clisp.org>
19676             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19677
19678         acl: Add support for ACLs on NonStop Kernel.
19679         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19680         Check whether the function aclsort() exists.
19681         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19682         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19683         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19684         (acl_nontrivial [HAVE_ACLSORT]: New function.
19685         (file_has_acl): Implement for NonStop Kernel.
19686         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19687         (qset_acl): Implement for NonStop Kernel.
19688         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19689         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19690         (main): Implement for NonStop Kernel.
19691         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19692         Kernel. Handle this flavor.
19693         * tests/test-set-mode-acl.sh: Likewise.
19694         * tests/test-copy-acl.sh: Likewise.
19695         * tests/test-copy-file.sh: Likewise.
19696
19697 2010-10-03  Bruno Haible  <bruno@clisp.org>
19698
19699         Info about ACLs on NonStop Kernel.
19700         * doc/acl-resources.txt: Add info about NonStop Kernel.
19701         References by Joachim Schmitz <schmitz@hp.com>.
19702
19703 2010-10-02  Bruno Haible  <bruno@clisp.org>
19704
19705         Define missing EDQUOT on NonStop Kernel.
19706         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19707         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19708         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19709         missing.
19710         * doc/posix-headers/errno.texi: Mention the NSK bug.
19711         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19712         Reported by Joachim Schmitz <schmitz@hp.com>.
19713
19714 2010-10-02  Bruno Haible  <bruno@clisp.org>
19715
19716         Update doc for POSIX:2008.
19717         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19718         Update URL of POSIX specification.
19719
19720 2010-10-02  Bruno Haible  <bruno@clisp.org>
19721
19722         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19723         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19724         from gnulib, not from Automake.
19725
19726 2010-10-02  Bruno Haible  <bruno@clisp.org>
19727
19728         New module 'system-posix'.
19729         * modules/system-posix: New file.
19730         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19731         module is present.
19732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19733         GNULIB_SYSTEM_POSIX.
19734         * modules/stdlib (Depends-on): Remove sys_wait.
19735         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19736         * doc/posix-functions/system.texi: Mention the new module.
19737         * doc/posix-headers/stdlib.texi: Likewise.
19738         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19739         define test_sys_wait_macros to a no-op.
19740         Reported by Sam Steingold <sds@gnu.org>.
19741
19742 2010-09-30  Bruno Haible  <bruno@clisp.org>
19743
19744         More renaming from 'getdate' to 'get_date'.
19745         * doc/get_date.texi: Renamed from doc/getdate.texi.
19746         * modules/get_date (Files): Update.
19747         * MODULES.html.sh (Date and time <time.h>): Update.
19748         * DEPENDENCIES: Update.
19749         * gnulib-tool: Update comment.
19750         * m4/bison.m4 (gl_BISON): Likewise.
19751         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19752
19753 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19754
19755         bootstrap: support ACLOCAL_FLAGS during aclocal
19756         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19757         can add additional -I dir for third-party .m4 files.
19758
19759 2010-09-30  Eric Blake  <eblake@redhat.com>
19760
19761         bootstrap: use glibtoolize on MacOS
19762         * build-aux/bootstrap (check_versions): Convert libtool into
19763         libtoolize.
19764         (tool search): Move libtool check earlier, and look for
19765         glibtoolize for MacOS.
19766         (gnulib_tool_options): Auto-add --libtool when appropriate.
19767         Reported by Justin Clift.
19768
19769         poll: fix typo that broke test on MacOS
19770         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19771         Reported by Justin Clift.
19772
19773         getdate: rename to get_date
19774         Note: getdate.h is not renamed, to minimize client impact.
19775         * modules/getdate: Mark obsolete.  Move old contents...
19776         * modules/get_date: ...to new module name.
19777         * modules/getdate-tests: Move...
19778         * modules/get_date-tests: ...here.
19779         * m4/getdate.m4: Move...
19780         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19781         * lib/getdate.y: Move...
19782         * lib/get_date.y: ...here.
19783         * tests/test-getdate.c: Move...
19784         * tests/test-get_date.c: ...here.
19785         * doc/posix-functions/getdate.texi (getdate): Update name.
19786         * NEWS: Mention the change.
19787
19788 2010-09-29  Bruno Haible  <bruno@clisp.org>
19789
19790         Separate the module 'waitpid' from the module 'sys_wait'.
19791         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19792         present.
19793         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19794         gl_MODULE_INDICATOR_FOR_TESTS.
19795         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19796         * modules/sys_wait (Depends-on): Remove waitpid.
19797         (Makefile.am): Substitute GNULIB_WAITPID.
19798         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19799         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19800         signature only if the 'waitpid' module is present.
19801         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19802         * NEWS: Mention the change.
19803         * modules/grantpt (Depends-on): Add waitpid.
19804         * modules/wait-process (Depends-on): Likewise.
19805
19806 2010-09-29  Bruno Haible  <bruno@clisp.org>
19807
19808         More tests for module 'sys_wait'.
19809         * modules/sys_wait-c++-tests: New file.
19810         * tests/test-sys_wait-c++.cc: New file.
19811         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19812         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19813
19814 2010-09-29  Bruno Haible  <bruno@clisp.org>
19815
19816         New module 'waitpid'.
19817         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19818         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19819         Don't include <process.h>.
19820         (waitpid): Declare only, using modern idiom.
19821         * m4/waitpid.m4: New file.
19822         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19823         * modules/waitpid: New file.
19824         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19825         (Makefile.am): Update.
19826         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19827
19828 2010-09-28  Bruno Haible  <bruno@clisp.org>
19829
19830         poll: Assume ANSI C.
19831         * lib/poll.c (poll): Use an ANSI C declaration.
19832
19833 2010-09-28  Bruno Haible  <bruno@clisp.org>
19834
19835         poll-h: Create poll.h on all platforms.
19836         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19837         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19838         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19839         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19840         (gl_REPLACE_POLL_H): Don't set POLL_H.
19841         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19842         * modules/poll-h (Depends-on): Add include_next.
19843         (Makefile.am): Create poll.h unconditionally. Substitute also
19844         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19845
19846 2010-09-28  Bruno Haible  <bruno@clisp.org>
19847
19848         Tests for module 'poll-h'.
19849         * modules/poll-h-c++-tests: New file.
19850         * tests/test-poll-h-c++.cc: New file.
19851
19852         Tests for module 'poll-h'.
19853         * modules/poll-h-tests: New file.
19854         * tests/test-poll-h.c: New file.
19855
19856 2010-09-28  Bruno Haible  <bruno@clisp.org>
19857
19858         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19859         * modules/poll-h (Depends-on): Add 'extensions'.
19860
19861 2010-09-28  Bruno Haible  <bruno@clisp.org>
19862
19863         New module 'poll-h'.
19864         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19865         (poll): Use modern idiom.
19866         * modules/poll-h: New file.
19867         * modules/poll (Files): Remove lib/poll.in.h.
19868         (Depends-on): Add poll-h.
19869         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19870         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19871         * m4/poll_h.m4: New file.
19872         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19873         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19874         and invoke gl_REPLACE_POLL_H.
19875         * lib/poll.c: Use common idiom.
19876         * tests/test-poll.c: Likewise.
19877         * doc/posix-headers/poll.texi: Mention the poll-h module.
19878         Suggested by Eric Blake.
19879
19880 2010-09-26  Bruno Haible  <bruno@clisp.org>
19881
19882         sys_wait: Implement WSTOPSIG.
19883         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19884         Reported by Simon Josefsson.
19885
19886 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19887
19888         stdlib, sys_wait: Avoid compilation error on mingw.
19889         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19890
19891 2010-09-26  Bruno Haible  <bruno@clisp.org>
19892
19893         stdlib tests: Avoid code duplication.
19894         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19895         * modules/sys_wait-tests (Files): Likewise.
19896         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19897         * tests/test-stdlib.c: Include test-sys_wait.h.
19898         (main): Invoke test_sys_wait_macros.
19899         * tests/test-sys_wait.c: Include test-sys_wait.h.
19900         (main): Invoke test_sys_wait_macros.
19901
19902 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19903
19904         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19905         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19906         sure Windows sockets are working before calling getaddrinfo.
19907         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19908         * doc/gnulib.texi (Windows sockets): Fix typo.
19909
19910 2010-09-25  Bruno Haible  <bruno@clisp.org>
19911
19912         Tests for module 'regex-quote'.
19913         * modules/regex-quote-tests: New file.
19914         * tests/test-regex-quote.c: New file.
19915
19916         New module 'regex-quote'.
19917         * lib/regex-quote.h: New file.
19918         * lib/regex-quote.c: New file.
19919         * modules/regex-quote: New file.
19920         Suggested by Reuben Thomas <rrt@sc3d.org>.
19921
19922 2010-09-24  Bruno Haible  <bruno@clisp.org>
19923
19924         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19925         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19926
19927 2010-09-23  Bruno Haible  <bruno@clisp.org>
19928
19929         setenv: Relax license.
19930         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19931         Blake.
19932         Requested by Eric Blake.
19933
19934 2010-09-22  Bruno Haible  <bruno@clisp.org>
19935
19936         termios: Relax license.
19937         * modules/termios (License): Change to LGPLv2+.
19938         Requested by Eric Blake.
19939
19940 2010-09-22  Bruno Haible  <bruno@clisp.org>
19941
19942         threadlib: Allow the package to change the default to 'no'.
19943         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19944         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19945         Reported by Paul Eggert.
19946
19947 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19948             Bruno Haible  <bruno@clisp.org>
19949
19950         Fix endless loop in mbmemcasecoll.
19951         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19952         byte.
19953         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19954
19955 2010-09-22  Bruno Haible  <bruno@clisp.org>
19956
19957         Tests for module 'memcoll'.
19958         * modules/memcoll-tests: New file.
19959         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19960
19961         memcoll, xmemcoll: Clarify size vs. length.
19962         * modules/memcoll.c (memcoll0): Clarify specification.
19963         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19964         passed to collate_error.
19965
19966 2010-09-22  Bruno Haible  <bruno@clisp.org>
19967
19968         Tests for module 'memcasecmp'.
19969         * modules/memcasecmp-tests: New file.
19970         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19971
19972 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19973
19974         * lib/pthread.in.h: Add split double-inclusion guard, and include
19975         system <pthread.h> if there is one.  Use @@-style as in other
19976         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19977         pthread.h doesn't.
19978         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19979         (pthread_mutexattr_settype, pthread_mutex_trylock):
19980         New static inline functions, if there's no system <pthread.h>.
19981         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19982         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19983         Approximate with mutexes if the system lacks spinlocks, as in
19984         MacOS.
19985         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19986         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19987         @@-style.  Check for spinlocks separately.
19988         (gl_PTHREAD_DEFAULTS): New macro.
19989         * modules/pthread: Redo to use a more typical style for in.h files.
19990
19991 2010-09-21  Eric Blake  <eblake@redhat.com>
19992
19993         net_if: enhance tests
19994         * tests/test-net_if.c (main): Move signature checks earlier.
19995         Print failures to stderr.
19996         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19997         Document the bug that we do not yet fix.
19998
19999 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20000
20001         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20002         about gnulib, not GSS.
20003
20004 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20005
20006         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20007         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20008         for Emacs.
20009         * build-aux/pmccabe2html: Make Makefile.am example code more
20010         cut-and-paste friendly.
20011
20012 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20013
20014         * tests/test-net_if.c: New file.
20015         * modules/net_if-tests: New file.
20016
20017 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20018
20019         pthread: add pthread_spin_destroy
20020         * lib/pthread.in.h (pthread_spin_destroy): New function.
20021
20022 2010-09-19  Bruno Haible  <bruno@clisp.org>
20023
20024         gnulib-tool: Fix --help output.
20025         * gnulib-tool (func_usage): Fix help message.
20026         Reported by Reuben Thomas <rrt@sc3d.org>.
20027
20028 2010-09-18  Jim Meyering  <meyering@redhat.com>
20029
20030         maint.mk: avoid unexpanded \n in two diagnostics
20031         * top/maint.mk (sc_prohibit_always_true_header_tests):
20032         Don't use a literal \n in a halt=... assignment.  It would not be
20033         expanded, and the two \n bytes would appear in the diagnostic output
20034         rather than the desired newline.  Use halt=$$(printf ... instead.
20035         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20036
20037 2010-09-18  Bruno Haible  <bruno@clisp.org>
20038
20039         netinet_in: Doc tweak.
20040         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20041         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20042
20043 2010-09-18  Jim Meyering  <meyering@redhat.com>
20044
20045         init.sh: correct an outdated comment
20046         * tests/init.sh (create_exe_shims_):  s/function/alias/
20047
20048         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20049         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20050         a file named "*.exe" is removed between the glob expansion and the
20051         processing of that oddly named file.
20052
20053 2010-09-17  Eric Blake  <eblake@redhat.com>
20054
20055         mirbsd: add some more support
20056         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20057         in BSD family.
20058         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20059         devices as OpenBSD.
20060         * m4/host-os.m4 (mirbsd): Add MirBSD.
20061
20062         tests: fix unportable assumption on sys/wait.h
20063         * tests/test-sys_wait.c (main): Relax test.
20064         * tests/test-stdlib.c (main): Likewise.
20065
20066         init.sh: accomodate directory with no .exes
20067         * tests/init.sh: Accomodate directory containing only scripts.
20068
20069         tests: avoid compiler warning
20070         * tests/test-stdlib.c (main): Use the variable.
20071
20072         fdutimens, fdutimensat: update signature, again
20073         * lib/utimens.h (gl_futimens): Delete, and move signature...
20074         (fdutimens): ...here.
20075         (fdutimensat): Rearrange signature.
20076         (lutimensat): Rename variable for clarity.
20077         * lib/fdutimensat.c (fdutimensat): Update signature.
20078         * lib/utimens.c (fdutimens): Likewise.
20079         (gl_futimens): Delete.
20080         (utimens, lutimens): Update callers.
20081         * lib/futimens.c (futimens): Likewise.
20082         * tests/test-fdutimensat.c: Likewise.
20083         * tests/test-utimens.c: Likewise.
20084         * tests/test-futimens.h: Update comment.
20085         * NEWS: Mention this.
20086         Suggested by Paul Eggert.
20087
20088 2010-09-17  Bruno Haible  <bruno@clisp.org>
20089
20090         Take over the maintenance of some older macros from Autoconf.
20091         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20092         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20093         GNU Autoconf.
20094         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20095         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20096
20097 2010-09-17  Eric Blake  <eblake@redhat.com>
20098
20099         fdutimensat: drop atflag validation
20100         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20101         with valid fd, to close a race scenario where futimens is
20102         unsupported and FILE was replaced by a symlink.
20103         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20104         accordingly.
20105         Suggested by Paul Eggert.
20106
20107 2010-09-16  Bruno Haible  <bruno@clisp.org>
20108
20109         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20110         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20111
20112 2010-09-16  Bruno Haible  <bruno@clisp.org>
20113
20114         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20115         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20116         login_tty exists.
20117         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20118
20119 2010-09-16  Bruno Haible  <bruno@clisp.org>
20120
20121         login_tty: Make the replacement code work on BSD systems.
20122         * lib/login_tty.c: Include <sys/ioctl.h>.
20123         (login_tty): Use ioctl TIOCSCTTY when available.
20124         * modules/login_tty (Depends-on): Add sys_ioctl.
20125         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20126
20127 2010-09-16  Bruno Haible  <bruno@clisp.org>
20128
20129         login_tty: Stricter unit test.
20130         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20131         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20132         and tcgetsid() after login_tty.
20133         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20134
20135 2010-09-16  Bruno Haible  <bruno@clisp.org>
20136
20137         New module 'tcgetsid'.
20138         * lib/tcgetsid.c: New file.
20139         * m4/tcgetsid.m4: New file.
20140         * modules/tcgetsid: New file.
20141         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20142         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20143         GNULIB_TCGETSID, HAVE_TCGETSID.
20144         * lib/termios.in.h: Include <sys/types.h>.
20145         (tcgetsid): New declaration.
20146         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20147         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20148         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20149         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20150
20151 2010-09-16  Bruno Haible  <bruno@clisp.org>
20152
20153         Tests for module 'termios'.
20154         * modules/termios-c++-tests: New file.
20155         * modules/termios-tests: New file.
20156         * tests/test-termios-c++.cc: New file.
20157         * tests/test-termios.c: New file.
20158
20159         New module 'termios'.
20160         * modules/termios: New file.
20161         * lib/termios.in.h: New file.
20162         * m4/termios_h.m4: New file.
20163         * doc/posix-headers/termios.texi: Mention the new module.
20164
20165 2010-09-16  Eric Blake  <eblake@redhat.com>
20166
20167         fdutimensat: add an atflag parameter
20168         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20169         * lib/utimens.h (fdutimensat): Update prototype.
20170         * tests/test-fdutimensat.c: Adjust test to match.
20171         * NEWS: Document the change.
20172         Suggested by Paul Eggert.
20173
20174 2010-09-16  Bruno Haible  <bruno@clisp.org>
20175
20176         Fix typos in comments.
20177         * lib/striconveh.h: Fix typo in comment.
20178         * lib/login_tty.c (login_tty): Likewise.
20179
20180 2010-09-15  Bruno Haible  <bruno@clisp.org>
20181
20182         stdlib: clarify MirBSD WEXITSTATUS bug
20183         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20184         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20185
20186 2010-09-15  Eric Blake  <eblake@redhat.com>
20187
20188         stdlib: work around MirBSD WEXITSTATUS bug
20189         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20190         * modules/stdlib (Depends-on): Add sys_wait.
20191         * tests/test-sys_wait.c (main): Enhance test.
20192         * tests/test-stdlib.c (main): Likewise.
20193         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20194
20195         docs: mention MacOS issue with WEXITSTATUS(constant)
20196         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20197         issue.
20198         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20199
20200         strnlen: add tests
20201         * modules/strnlen-tests: New file.
20202         * tests/test-strnlen.c: Likewise.
20203
20204 2010-09-14  Bruno Haible  <bruno@clisp.org>
20205
20206         unistr/base: Avoid link errors when module 'libunistring' is also used.
20207         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20208         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20209         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20210         Declare also when HAVE_LIBUNISTRING is set.
20211         Reported by Pádraig Brady <P@draigbrady.com>.
20212
20213 2010-09-14  Eric Blake  <eblake@redhat.com>
20214
20215         test-rawmemchr: make more robust
20216         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20217         (Depends-on, configure.ac): Add needed prerequisites to use it.
20218         * modules/memchr-tests (Files, Depends-on, configure.ac):
20219         Likewise, to avoid implicit reliance on memchr module prereqs.
20220         * tests/test-memchr.c (main): Ensure proper masking.
20221         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20222         reads.
20223
20224         memchr: detect glibc Alpha bug
20225         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20226         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20227         Alpha.
20228         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20229         * tests/test-memchr.c (main): Enhance test.
20230         Reported by Nelson H. F. Beebe.
20231
20232 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20233
20234         fts, getcwd, glob: audit for dirfd returning -1
20235         * lib/fts.c (opendir): Remove #define; no longer used.
20236         (opendirat): New arg PDIR_FD.  All callers changed.
20237         (fts_build, _opendir2): Use new opendirat to avoid the need for
20238         dirfd, or for checking whether dirfd returns a negative value.
20239         Don't use opendir; always use openat followed by fdopendir.
20240         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20241         it.
20242         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20243         returns -1 here.
20244         * modules/fts (Depends-on): Remove dirfd.
20245         * modules/getcwd (Depends-on): Likewise.
20246
20247 2010-09-13  Eric Blake  <eblake@redhat.com>
20248
20249         float: fix broken MirBSD header
20250         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20251         * doc/posix-headers/float.texi (float.h): Document it.
20252
20253 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20254
20255         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20256         * lib/fts.c (opendirat): New arg extra_flags.
20257         (__opendir2): Use it to avoid following symlinks when opening
20258         a directory, if symlinks are not supposed to be followed.  See
20259         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20260
20261         fdopendir: preserve argument fd before returning
20262         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20263         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20264         (fdopendir): Use them, arranging for FD to be open to the same
20265         directory that it was when it started.  (It might be temporarily
20266         closed while fdopendir is running, so this not thread- or
20267         signal-safe.)  Be careful to do the right thing even when file
20268         descriptors are scarce and dup fails with errno == EMFILE.  See
20269         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20270
20271 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20272
20273         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20274         * NEWS: Document change.
20275         * m4/regex.m4: Disable test for regoff_t size.
20276
20277 2010-09-13  Jim Meyering  <meyering@redhat.com>
20278
20279         fts: don't operate on an invalid file descriptor after failed dup
20280         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20281         negative file descriptor.
20282
20283 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20284
20285         savedir: add streamsavedir, deprecate fdsavedir
20286         * NEWS: Mention deprecation of fdsavedir.
20287         * lib/savedir.c (streamsavedir): New extern function, whose name
20288         ends in "savedir" to be consistent with the others.  This differs
20289         from savedirstream in that it doesn't close its argument.  The
20290         next version of GNU tar will use this instead of fdsavedir, to
20291         avoid some race conditions and conserve file descriptors.
20292         (savedirstream): Reimplement as a wrapper around streamsavedir.
20293         (fdsavedir): Add a comment deprecating this function.  As far as
20294         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20295         * lib/savedir.h (streamsavedir): New decl.
20296         (fdsavedir): Add a comment deprecating this.
20297
20298 2010-09-10  Bruno Haible  <bruno@clisp.org>
20299
20300         langinfo: Fix last commit.
20301         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20302         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20303         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20304
20305 2010-09-10  Bruno Haible  <bruno@clisp.org>
20306
20307         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20308         * lib/progreloc.c (O_EXEC): Define fallback.
20309
20310 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20311
20312         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20313         * NEWS: Document recent changes to fcntl-h.
20314         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20315         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20316         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20317         Similarly for O_SEARCH; this last was already true, but not documented.
20318         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20319         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20320         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20321         Likewise.
20322         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20323         is zero, not whether it is defined.
20324         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20325         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20326         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20327
20328 2010-09-10  Bruno Haible  <bruno@clisp.org>
20329
20330         langinfo, nl_langinfo: Fix for IRIX 5.3.
20331         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20332         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20333         HAVE_LANGINFO_YESEXPR.
20334         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20335         HAVE_LANGINFO_YESEXPR.
20336         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20337         HAVE_LANGINFO_T_FMT_AMPM is 0.
20338         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20339         HAVE_LANGINFO_YESEXPR is 0.
20340         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20341         NOEXPR.
20342         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20343         * doc/posix-functions/nl_langinfo.texi: Likewise.
20344         Reported by Eric Blake.
20345
20346 2010-09-10  Bruno Haible  <bruno@clisp.org>
20347
20348         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20349         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20350         on FreeBSD 8.0 and OpenBSD 4.6.
20351         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20352         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20353         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20354         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20355         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20356         ac_includes_default.
20357         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20358
20359 2010-09-09  Eric Blake  <eblake@redhat.com>
20360
20361         strsignal: work around NetBSD bug
20362         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20363         * lib/string.in.h (includes): Likewise.
20364         * doc/posix-functions/strsignal.texi (strsignal): Document the
20365         bug.
20366         Reported by Nelson H. F. Beebe.
20367
20368         gnulib-tool: work with NetBSD /bin/sh
20369         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20370         (func_get_description, func_get_comment, func_get_status)
20371         (func_get_notice, func_get_applicability, func_get_filelist)
20372         (func_get_dependencies, func_get_autoconf_early_snippet)
20373         (func_get_autoconf_snippet, func_get_automake_snippet)
20374         (func_get_include_directive, func_get_link_directive)
20375         (func_get_license, func_get_maintainer, func_import): Avoid
20376         shell syntax errors from parsing syntax extensions.
20377
20378 2010-09-09  Bruno Haible  <bruno@clisp.org>
20379
20380         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20381         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20382         a reliable way to determine whether the 'alias' command works.
20383
20384 2010-09-08  Jim Meyering  <meyering@redhat.com>
20385
20386         init.sh: penalize a set-x-impaired shell; don't disqualify it
20387         * tests/init.sh: Too many shells corrupt application stderr when
20388         you set -x, so we can't afford to disqualify them, since at least
20389         on Irix-6.5, that would disqualify all bourne shells.
20390         Instead, use a two-pass approach.
20391         On the first pass, try to find a shell that meets the stricter
20392         condition that set -x does not corrupt stderr.
20393         If no shell meets the stricter condition, retest each candidate
20394         shell, but without that extra condition.  Finally, when
20395         VERBOSE=yes is requested and set -x might cause trouble, simply
20396         issue a warning and refrain from enabling debug output.
20397
20398 2010-09-08  Eric Blake  <eblake@redhat.com>
20399
20400         unsetenv: fix OpenBSD bug
20401         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20402         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20403         documentation.
20404         Reported by Jim Meyering.
20405
20406         strtod: work around IRIX 6.5 bug
20407         * lib/strtod.c (strtod): Reparse number on shorter string if
20408         exponent parse was invalid.
20409         * tests/test-strtod.c (main): Add check for "0x1p 2".
20410         Reported by Tom G. Christensen.
20411
20412         getopt: optimize previous patch
20413         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20414         empty variable.  Speed up awk script.
20415         Reported by Paolo Bonzini.
20416
20417 2010-09-08  Jim Meyering  <meyering@redhat.com>
20418
20419         test.sh: disqualify shells for which set -x corrupts stderr
20420         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20421         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20422         appear in stderr output.  For example, this command:
20423             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20424         prints "P=1" on those two systems:
20425
20426 2010-09-08  Bruno Haible  <bruno@clisp.org>
20427
20428         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20429         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20430         commands, because some shells ignore redirections when there is an
20431         error in the command lookup.
20432         Reported by Eric Blake.
20433
20434 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20435
20436         * lib/regex.h: Fix a mention of `regex_compile' (should be
20437         `re_compile_pattern').
20438         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20439         (re_set_registers): Correct name of parameter in comment.
20440
20441         * doc/regex.texi: Add documentation for missing syntax flags.
20442         Remove commented-out documentation of defunct syntax option
20443         RE_NO_EMPTY_ALTS.
20444         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20445         Add documentation of re_set_registers.
20446         Document trick to re-use a pattern buffer by setting fastmap manually.
20447         Update documentation of struct re_pattern_buffer per public members.
20448         Uncomment documentation of equivalence class operators and
20449         collating symbol operators, since they are now implemented,
20450         Explain leftmost-longest matching in relation to alternatives.
20451         Tidy documentation of substring matching.
20452         Remove POSIX documentation, which is done better in
20453         glibc, and refer the reader there. Keep BSD API documentation, as
20454         that is not readily available elsewhere.
20455
20456 2010-09-07  Eric Blake  <eblake@redhat.com>
20457
20458         getopt: handle POSIXLY_CORRECT set but not exported
20459         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20460         export state of POSIXLY_CORRECT, due to bash set -o posix.
20461         Reported by Dustin J. Mitchell.
20462
20463 2010-09-05  Bruno Haible  <bruno@clisp.org>
20464
20465         gnulib-tool: Highlight the changed options.
20466         * gnulib-tool (func_usage): Display the --import, --add-import,
20467         --remove-import explanations in bold font.
20468
20469 2010-09-06  Karl Berry  <karl@gnu.org>
20470
20471         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20472
20473 2010-09-05  Bruno Haible  <bruno@clisp.org>
20474
20475         uniwidth/width: Update comment.
20476         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20477         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20478
20479 2010-09-05  Bruno Haible  <bruno@clisp.org>
20480
20481         isinf, isnan: Relax license.
20482         * modules/isinf (License): Change from GPL to LGPL, with consent from
20483         Ben Pfaff.
20484         * modules/isnan (License): Likewise.
20485         Requested by Ludovic Courtès.
20486
20487 2010-09-04  Bruno Haible  <bruno@clisp.org>
20488
20489         gnulib-tool: Help migration from --import to --add-import or --update.
20490         * gnulib-tool: Emit a verbose error message when --import is used
20491         without any module name.
20492
20493 2010-09-04  Bruno Haible  <bruno@clisp.org>
20494
20495         Update doc about gnulib-tool.
20496         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20497         'gnulib-tool --update' in more detail.
20498         Reported by Eric Blake.
20499
20500 2010-09-04  Bruno Haible  <bruno@clisp.org>
20501
20502         gnulib-tool: Change --import. New options --add/remove-import.
20503         * gnulib-tool: New options --add-import, --remove-import.
20504         (func_usage): Document them.
20505         (have_associative): Define always.
20506         (func_import): In import mode, don't merge the specified settings with
20507         the cached settings. Implement remove-import mode.
20508         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20509         Explain when to use them versus --import.
20510         (Simple update): Use --add-import instead of --import.
20511         * NEWS: Mention the change.
20512
20513 2010-09-04  Bruno Haible  <bruno@clisp.org>
20514
20515         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20516         separate gnulib.mk.
20517
20518 2010-09-04  Bruno Haible  <bruno@clisp.org>
20519
20520         gnulib-tool: Don't talk about CVS any more.
20521         * gnulib-tool (func_usage, func_import): Write "version control"
20522         instead of CVS.
20523
20524 2010-09-04  Jim Meyering  <meyering@redhat.com>
20525
20526         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20527         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20528         false positives (whose names may be ill-chosen) when searching
20529         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20530         would cause a false-positive.
20531
20532         avoid coreutils "make distcheck" failure
20533         Coreutils tests with an absolute build directory name that contains
20534         a space.  Not quoting this directory name caused a failure.
20535         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20536         * tests/test-vc-list-files-cvs.sh: Likewise.
20537
20538 2010-09-04  Bruno Haible  <bruno@clisp.org>
20539
20540         gnulib-tool: Avoid error when run in a package without Makefile.am.
20541         * gnulib-tool: When collecting the m4dirs in a package that does not
20542         have a Makefile.am, eliminate those directories that contain no
20543         gnulib-cache.m4. Fix expression that counts these directories.
20544
20545 2010-09-04  Bruno Haible  <bruno@clisp.org>
20546
20547         update-copyright test: Improve output when perl is missing or too old.
20548         * tests/test-update-copyright.sh: Move test of Perl version down after
20549         the test whether Perl exists. Provide an explanation relating Perl's
20550         error message to Automake's SKIP: message.
20551
20552 2010-09-04  Bruno Haible  <bruno@clisp.org>
20553
20554         Don't augment PATH in TESTS_ENVIRONMENT.
20555         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20556         set abs_aux_dir instead of augmenting PATH.
20557         * modules/vc-list-files-tests (Makefile.am): Likewise.
20558         * tests/test-update-copyright.sh: Augment PATH here.
20559         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20560         path_prepend_.
20561         * tests/test-vc-list-files-git.sh: Likewise.
20562
20563 2010-09-04  Jim Meyering  <meyering@redhat.com>
20564
20565         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20566         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20567
20568 2010-09-04  Bruno Haible  <bruno@clisp.org>
20569
20570         strdup: Fix compilation error in C++ mode.
20571         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20572         the macro.
20573
20574 2010-09-04  Bruno Haible  <bruno@clisp.org>
20575
20576         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20577         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20578         macro into a function.
20579         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20580
20581 2010-09-04  Bruno Haible  <bruno@clisp.org>
20582
20583         Set PATH_SEPARATOR the same way autoconf does.
20584         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20585         the value of PATH_SEPARATOR the same way autoconf-generated configure
20586         scripts do.
20587         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20588         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20589
20590 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20591
20592         Set PATH_SEPARATOR the same way autoconf does.
20593         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20594         the same way autoconf-generated configure scripts do.
20595         * posix-modules: Likewise.
20596
20597 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20598
20599         hash: fix safe_hasher const typo
20600         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20601         const; otherwise, there is a type error later.
20602
20603 2010-09-02  Jim Meyering  <meyering@redhat.com>
20604
20605         test-update-copyright.sh: require perl 5.8.0
20606         * tests/test-update-copyright.sh: Require 5.8.0,
20607         which Tom G. Christensen has confirmed is adequate,
20608         while 5.6.1 is not.
20609
20610 2010-09-02  Eric Blake  <eblake@redhat.com>
20611
20612         tests: init.sh improvements for re-exec'ing with zsh
20613         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20614         -vx through shell re-exec.
20615         Reported by Tom G. Christensen.
20616
20617         wctype: fix typo in previous commit
20618         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20619         Reported by Ludovic Courtès.
20620
20621 2010-09-02  Jim Meyering  <meyering@redhat.com>
20622
20623         test-update-copyright.sh: skip test if Perl is too old
20624         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20625         Reported by Tom G. Christensen.
20626
20627 2010-09-02  Bruno Haible  <bruno@clisp.org>
20628
20629         wctype: Avoid compilation error on IRIX 6.5.30.
20630         * lib/wctype.in.h (iswblank): Declare with a replacement if
20631         REPLACE_ISWBLANK is set.
20632         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20633         declared. Set REPLACE_ISWBLANK.
20634         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20635         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20636         * doc/posix-headers/wctype.texi: Likewise.
20637         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20638
20639 2010-09-01  Bruno Haible  <bruno@clisp.org>
20640
20641         New module 'socketlib'.
20642         * modules/socketlib: New file.
20643         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20644         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20645         * modules/sockets (Depends-on): Add socketlib.
20646         Suggested by Sam Steingold <sds@gnu.org>.
20647
20648 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20649
20650         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20651
20652         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20653         when one needs search access to a directory but not read access.
20654         On systems where it is available, it works in some cases where
20655         O_RDONLY does not, namely on directories that are searchable but
20656         not readable, and which need only to be searchable.  If O_SEARCH
20657         is not available, fall back to the traditional method of using
20658         O_RDONLY.
20659
20660         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20661         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20662         when opening a directory that needs only to be searchable.
20663         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20664         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20665         * lib/openat-proc.c (openat_proc_name): Likewise.
20666         * lib/openat.c (openat_needs_fchdir): Likewise.
20667         * lib/save-cwd.c (save_cwd): Likewise.
20668         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20669
20670 2010-08-28  Bruno Haible  <bruno@clisp.org>
20671
20672         New module 'host-cpu-c-abi'.
20673         * modules/host-cpu-c-abi: New file.
20674         * m4/host-cpu-c-abi.m4: New file, based on part of
20675         clisp/src/m4/general.m4.
20676         Requested by Sam Steingold <sds@gnu.org>.
20677
20678 2010-08-31  Eric Blake  <eblake@redhat.com>
20679         and Jim Meyering  <meyering@redhat.com>
20680
20681         hash: factor, and guard against misbehaving hasher function
20682         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20683         of table->hasher's return value.  Also protect against a hash value
20684         so large that adding it to table->bucket results in a NULL pointer.
20685         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20686         Use it in place of open-coded check-and-abort.
20687
20688 2010-08-30  Bruno Haible  <bruno@clisp.org>
20689
20690         hash: silence spurious clang warning
20691         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20692         Reported by Eric Blake.
20693
20694 2010-08-30  Eric Blake  <eblake@redhat.com>
20695
20696         strstr, memmem, strcasestr: avoid leaked shell message
20697         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20698         FreeBSD.
20699         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20700         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20701
20702         tests: silence clang warning
20703         * tests/test-malloca.c (do_allocation): Avoid dead store.
20704
20705 2010-08-29  Bruno Haible  <bruno@clisp.org>
20706
20707         gettext: Fix recent mistake.
20708         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20709
20710 2010-08-29  Bruno Haible  <bruno@clisp.org>
20711
20712         selinux-h: Offer a --without-selinux option.
20713         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20714         --without-selinux was specified, skip all tests and define
20715         HAVE_SELINUX_SELINUX_H to 0.
20716         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20717         set LIB_SELINUX to empty.
20718         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20719         gl_LIBSELINUX. If --without-selinux was specified, replace
20720         selinux/context.h.
20721         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20722
20723 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20724             Bruno Haible  <bruno@clisp.org>
20725
20726         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20727         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20728         of HAVE_REALLOC.
20729         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20730         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20731         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20732         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20733
20734 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20735             Bruno Haible  <bruno@clisp.org>
20736
20737         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20738         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20739         HAVE_CALLOC.
20740         * lib/xmalloc.c: Update accordingly.
20741         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20742         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20743         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20744
20745 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20746             Bruno Haible  <bruno@clisp.org>
20747
20748         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20749         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20750         HAVE_MALLOC.
20751         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20752         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20753         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20754
20755 2010-08-29  Bruno Haible  <bruno@clisp.org>
20756
20757         Update modules list.
20758         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20759         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20760         (String handling <string.h>): Add astrxfrm.
20761         (File system functions): Add readlinkat.
20762
20763 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20764
20765         Tests for module 'realloc-gnu'.
20766         * modules/realloc-gnu-tests: New file.
20767         * tests/test-realloc-gnu.c: New file.
20768
20769         Tests for module 'calloc-gnu'.
20770         * modules/calloc-gnu-tests: New file.
20771         * tests/test-calloc-gnu.c: New file.
20772
20773         Tests for module 'malloc-gnu'.
20774         * modules/malloc-gnu-tests: New file.
20775         * tests/test-malloc-gnu.c: New file.
20776
20777 2010-08-28  Bruno Haible  <bruno@clisp.org>
20778
20779         Rename module 'realloc' -> 'realloc-gnu'.
20780         * modules/realloc-gnu: New file, copied from modules/realloc.
20781         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20782         obsolete.
20783         * modules/mgetgroups (Depends-on): Update.
20784         * doc/posix-functions/realloc.texi: Update.
20785         * NEWS: Mention the change.
20786
20787         Rename module 'calloc' -> 'calloc-gnu'.
20788         * modules/calloc-gnu: New file, copied from modules/calloc.
20789         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20790         obsolete.
20791         * doc/posix-functions/calloc.texi: Update.
20792         * NEWS: Mention the change.
20793
20794         Rename module 'malloc' -> 'malloc-gnu'.
20795         * modules/malloc-gnu: New file, copied from modules/malloc.
20796         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20797         obsolete.
20798         * modules/argp (Depends-on): Update.
20799         * modules/regex (Depends-on): Update.
20800         * doc/posix-functions/malloc.texi: Update.
20801         * NEWS: Mention the change.
20802
20803 2010-08-28  Eric Blake  <eblake@redhat.com>
20804
20805         pread, pwrite: add missing dependency
20806         * modules/pread (Depends-on): Add extensions.
20807         * modules/pwrite (Depends-on): Likewise.
20808
20809 2010-08-28  Bruno Haible  <bruno@clisp.org>
20810
20811         unistr/u*-strchr: Fix tests dependencies.
20812         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20813         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20814         Reported by Ian Beckwith <ianb@erislabs.net>.
20815
20816 2010-08-28  Bruno Haible  <bruno@clisp.org>
20817
20818         read-file: Don't occupy too much unused memory.
20819         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20820
20821 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20822             Eric Blake  <eblake@redhat.com>
20823             Bruno Haible  <bruno@clisp.org>
20824
20825         read-file: Avoid memory reallocations with regular files.
20826         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20827         (fread_file): With regular files, use the remaining length as the
20828         initial buffer size.  Check against overflow.
20829         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20830         sys_stat.
20831
20832 2010-08-28  Bruno Haible  <bruno@clisp.org>
20833
20834         ftello: Relax license.
20835         * modules/ftello (License): Relax to LGPLv2+.
20836         Reported by Eric Blake.
20837
20838 2010-08-28  Bruno Haible  <bruno@clisp.org>
20839
20840         Avoid relocwrapper link errors due to gnulib replacement functions.
20841         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20842         function.
20843         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20844
20845 2010-08-28  Bruno Haible  <bruno@clisp.org>
20846
20847         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20848         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20849         defined.
20850         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20851         Suggested by Eric Blake.
20852
20853 2010-08-28  Bruno Haible  <bruno@clisp.org>
20854
20855         sys_socket, netdb: Ensure socklen_t gets defined.
20856         * modules/sys_socket (Depends-on): Add socklen.
20857         * modules/netdb (Depends-on): Likewise.
20858         * modules/getaddrinfo (Depends-on): Remove socklen.
20859         * modules/getsockopt (Depends-on): Likewise.
20860         * modules/setsockopt (Depends-on): Likewise.
20861         * tests/test-sys_socket.c: Check that socklen_t is defined.
20862         * tests/test-netdb.c: Likewise.
20863         * m4/socklen.m4: Update comments.
20864         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20865
20866 2010-08-27  Eric Blake  <eblake@redhat.com>
20867
20868         login_tty: add missing dependency
20869         * modules/login_tty (Depends-on): Add pty.
20870
20871 2010-08-26  Eric Blake  <eblake@redhat.com>
20872
20873         lib-symbol-versions: fix m4 quoting
20874         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20875         format for AC_LINK_IFELSE.
20876
20877         glob: fix compile test
20878         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20879
20880         btowc: fix missing file
20881         * modules/btowc (Files): Also ship locale-fr.m4.
20882
20883         lseek: fix link test
20884         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20885         AC_LINK_IFELSE.
20886
20887         include_next: silence autoconf 2.68 warning
20888         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20889         AC_COMPILE_IFELSE as special.
20890         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20891         autoconf < 2.68.
20892
20893         acl: fix compilation test
20894         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20895         AC_COMPILE_IFELSE.
20896
20897 2010-08-26  Bruno Haible  <bruno@clisp.org>
20898
20899         Modernize AC_TRY_RUN invocations.
20900         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20901         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20902         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20903         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20904         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20905         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20906         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20907         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20908         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20909         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20910         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20911         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20912         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20913         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20914         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20915         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20916         gl_MBRLEN_NUL_RETVAL): Likewise.
20917         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20918         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20919         Likewise.
20920         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20921         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20922         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20923         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20924         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20925         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20926         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20927         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20928         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20929         Likewise.
20930         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20931         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20932         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20933         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20934         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20935         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20936         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20937         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20938         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20939         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20940
20941 2010-08-26  Bruno Haible  <bruno@clisp.org>
20942
20943         Modernize AC_TRY_LINK invocations.
20944         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20945         AC_TRY_LINK.
20946         * m4/argp.m4 (gl_ARGP): Likewise.
20947         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20948         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20949         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20950         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20951         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20952         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20953         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20954         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20955         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20956         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20957         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20958         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20959         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20960         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20961         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20962         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20963         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20964         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20965         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20966         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20967         Likewise.
20968         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20969         Likewise.
20970         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20971         Likewise.
20972         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20973         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20974         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20975         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20976         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20977         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20978         * m4/servent.m4 (gl_SERVENT): Likewise.
20979         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20980         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20981         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20982         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20983         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20984         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20985         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20986         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20987         * modules/tsearch-tests (configure.ac): Likewise.
20988
20989 2010-08-26  Bruno Haible  <bruno@clisp.org>
20990
20991         Modernize AC_TRY_COMPILE invocations.
20992         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20993         AC_TRY_COMPILE.
20994         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20995         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20996         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20997         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20998         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20999         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21000         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21001         * m4/lock.m4 (gl_LOCK): Likewise.
21002         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21003         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21004         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21005         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21006         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21007         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21008         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21009         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21010         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21011         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21012         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21013         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21014         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21015         extraneous semicolon.
21016
21017 2010-08-26  Jim Meyering  <meyering@redhat.com>
21018
21019         stat-time: relax license LGPL
21020         * modules/stat-time (License): Change from GPL to LGPL,
21021         with consent from all contributors, for use in libguile.
21022         Requested by Ludovic Courtès.
21023
21024 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21025
21026         poll: return immediately on POLLHUP.
21027         * lib/poll.c (poll): Always set timeout before wait_timeout is
21028         computed.
21029
21030 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21031
21032         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21033         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21034         rmdir ("dir/.//"), unlinkat.
21035
21036 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21037
21038         stdbool: avoid spurious failure with modern xlc
21039         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21040
21041 2010-08-24  Bruno Haible  <bruno@clisp.org>
21042
21043         getloadavg: simplify code
21044         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21045         gl_have_func. Update comments.
21046
21047 2010-08-24  Eric Blake  <eblake@redhat.com>
21048
21049         getloadavg: don't define SVR4 on cygwin
21050         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21051         only define SVR4 when -lkvm is required.
21052         Reported by Yaakov Selkowitz.
21053
21054 2010-08-24  Bruno Haible  <bruno@clisp.org>
21055
21056         priv-set: fix comment
21057         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21058
21059 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21060
21061         priv-set: fix comments
21062         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21063         to match code, as suggested by David Bartley in:
21064         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21065
21066 2010-08-23  Eric Blake  <eblake@redhat.com>
21067
21068         stdbool: avoid rejecting clang
21069         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21070         * tests/test-stdbool.c: Enable more tests if using the system
21071         <stdbool.h> instead of the gnulib replacement.
21072         (main): Move xlc bug test to a runtime test for all compilers.
21073         Reported by Anders Kaseorg.
21074
21075         argz: fix shell quoting issue
21076         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21077         Reported by Charles Wilson.
21078
21079 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21080             Erik Faye-Lund <kusmabite@gmail.com>
21081
21082         poll, select: handle ERROR_BROKEN_PIPE.
21083         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21084         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21085         * lib/select.c (win32_compute_revents): Do not mark a pipe
21086         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21087
21088 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21089
21090         fts: allow compilation with C++
21091         * lib/fts_.h: Specify extern "C" linkage with C++.
21092
21093 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21094
21095         Fix gnulib-tool sed script de-commentation for AIX sed.
21096         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21097         sed.
21098
21099 2010-08-17  Eric Blake  <eblake@redhat.com>
21100
21101         test-stddef: test for (some) offsetof bugs
21102         * tests/test-stddef.c: Enhance test to ensure correct type of
21103         offsetof.
21104         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21105         that we are not fixing at this time.
21106
21107 2010-08-15  Bruno Haible  <bruno@clisp.org>
21108
21109         stpncpy: Allow stpncpy to be defined as a macro.
21110         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21111         if it's already correctly declared.
21112         * lib/string.in.h (stpncpy): Undefine before redefining.
21113         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21114
21115 2010-08-14  Bruno Haible  <bruno@clisp.org>
21116
21117         Rename module 'memxfrm' to 'amemxfrm'.
21118         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21119         (amemxfrm): Renamed from memxfrm.
21120         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21121         (amemxfrm): Renamed from memxfrm.
21122         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21123         * NEWS: Mention the change.
21124         * MODULES.html.sh (String handling <string.h>): Update.
21125         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21126         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21127         * lib/unicase/u16-casexfrm.c: Likewise.
21128         * lib/unicase/u32-casexfrm.c: Likewise.
21129         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21130         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21131         * lib/uninorm/u16-normxfrm.c: Likewise.
21132         * lib/uninorm/u32-normxfrm.c: Likewise.
21133         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21134         memxfrm.
21135         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21136         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21137         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21138         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21139         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21140         Suggested by Paul Eggert.
21141
21142 2010-08-14  Bruno Haible  <bruno@clisp.org>
21143
21144         Tests for module 'astrxfrm'.
21145         * modules/astrxfrm-tests: New file.
21146         * tests/test-astrxfrm.c: New file.
21147
21148         New module 'astrxfrm'.
21149         * lib/astrxfrm.h: New file.
21150         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21151         * modules/astrxfrm: New file.
21152
21153 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21154
21155         regex: Tweak doc.
21156         * doc/regex.texi (Overview): Don't mention regex.c.
21157         (GNU Regular Expression Compiling): Likewise.
21158         (Match-end-of-line Operator): Mention 'not_eol'.
21159
21160 2010-08-14  Brian Gough  <bjg@gnu.org>
21161             Bruno Haible  <bruno@clisp.org>
21162
21163         git-merge-changelog: add doc relating to use with bzr and hg.
21164         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21165
21166 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21167
21168         pthread: fix pthread.h creation for srcdir != builddir
21169         * modules/pthread (Makefile.am): Fix the rule to work also in a
21170         non-srcdir build.
21171
21172 2010-08-13  Karl Berry  <karl@gnu.org>
21173
21174         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21175         * doc/posix-*/*: force line break before @url of POSIX
21176         specifications.
21177         Suggested by Werner Lemberg.
21178
21179 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21180
21181         strtod: fix const diagnostic
21182         * lib/strtod.c (strtod): Don't assign const char * to char *,
21183         as this elicits a warning from GCC when warnings are enabled.
21184
21185 2010-08-10  Pádraig Brady <P@draigbrady.com>
21186         and Eric Blake  <eblake@redhat.com>
21187
21188         copy-acl: ignore ENOTSUP on HP-UX
21189         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21190         so that it is available for HP-UX.
21191         * lib/copy-acl.c (qcopy_acl): Use it.
21192         Reported by Patrick M. Callahan.
21193
21194 2010-08-10  Eric Blake  <eblake@redhat.com>
21195
21196         open, chown: relax license
21197         * modules/open (License): Change to LGPLv2+, with consent by all
21198         authors, for use in augeas.
21199         * modules/chown (License): Likewise.
21200         * modules/lchown (Likewise): Likewise.
21201         Requested by Adam Stokes.
21202
21203 2010-08-09  Karl Berry  <karl@gnu.org>
21204
21205         * build-aux/ar-lib: new file, import from Automake.
21206         * config/srclist.txt: autocheck for updates.
21207
21208 2010-08-09  Eric Blake  <eblake@redhat.com>
21209
21210         readlinkat: adjust client modules
21211         * modules/areadlinkat (Depends-on): Use readlinkat, not
21212         symlinkat.
21213         * modules/areadlinkat-with-size (Depends-on): Likewise.
21214
21215         mknod: be more vocal about danger of running tests as root
21216         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21217         root, since that is just asking for problems.
21218         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21219
21220         readlinkat: split into its own module
21221         * modules/symlinkat: Split readlinkat...
21222         * modules/readlinkat: ...into separate module.
21223         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21224         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21225         * lib/symlinkat.c (readlinkat): Move...
21226         * lib/readlinkat.c: ...into new file.
21227         * modules/symlinkat-tests: Split readlinkat test...
21228         * modules/readlinkat-tests: ...into separate module.
21229         * tests/test-symlinkat.c: Split...
21230         * tests/test-readlinkat.c: ...into new file.
21231         * NEWS: Document the split.
21232         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21233         * lib/unistd.in.h (readlinkat): Likewise.
21234         Suggested by Bruno Haible.
21235
21236 2010-08-08  Bruno Haible  <bruno@clisp.org>
21237
21238         memxfrm: Speed up.
21239         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21240         that usually only one call to strxfrm is necessary for each string
21241         part.
21242         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21243
21244 2010-08-07  Karl Berry  <karl@gnu.org>
21245
21246         * doc/posix-headers/limits.texi,
21247         * doc/posix-functions/malloc.texi,
21248         * doc/posix-functions/strsignal.texi: missing @item.
21249         * doc/ld-version-script.texi: spurious leading i.
21250         * doc/regex.texi (Interval Operators): no commas inside @var.
21251
21252 2010-08-01  Bruno Haible  <bruno@clisp.org>
21253
21254         Integrate the regex documentation.
21255         * doc/gnulib.texi: Define 'cn' index.
21256         (Regular expressions): New a chapter that includes regex.texi and
21257         regexprops-generic.texi.
21258         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21259         syntax.
21260
21261         Whitespace cleanup.
21262         * doc/regex.texi: Remove trailing spaces.
21263
21264         Add regex documentation.
21265         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21266         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21267         Written by Kathy A. Hargreaves and Karl Berry.
21268
21269 2010-08-01  Bruno Haible  <bruno@clisp.org>
21270
21271         link: Update documentation.
21272         * doc/posix-functions/link.texi: Update regarding Solaris.
21273
21274 2010-07-31  Bruno Haible  <bruno@clisp.org>
21275
21276         Update modules list.
21277         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21278         (String handling <string.h>): Add memcmp2, memxfrm.
21279         (Container data structures): Add xlist, xsublist, xoset.
21280         (Core language properties): Add alignof, unused-parameter.
21281         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21282         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21283         (Unibyte characters <ctype.h>): New section.
21284         (String handling <string.h>): New section.
21285         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21286         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21287         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21288         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21289         tan, tanh, tanl, y0, y1, yn.
21290         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21291         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21292         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21293         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21294         unlockpt, vdprintf, vdprintf-posix.
21295         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21296         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21297         xconcat-filename.
21298         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21299         getdtablesize, pipe2, pipe2-safer.
21300         (Security): New section.
21301         (Networking functions): Add accept4.
21302         (Signal handling): Add sigpipe.
21303         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21304         mbmemcasecoll.
21305         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21306         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21307         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21308         pipe-filter-ii.
21309         (Misc): Add argp-version-etc, login_tty, parse-duration.
21310
21311 2010-07-31  Bruno Haible  <bruno@clisp.org>
21312
21313         Improve doc in MODULES.html.
21314         * modules/linkat (Description): Add the word "function".
21315         * modules/mkfifo (Description): Likewise.
21316         * modules/mknod (Description): Likewise.
21317         * modules/remove (Description): Likewise.
21318         * modules/renameat (Description): Likewise.
21319         * modules/stat (Description): Likewise.
21320         * modules/symlink (Description): Likewise.
21321         * modules/unlink (Description): Likewise.
21322
21323 2010-07-31  Bruno Haible  <bruno@clisp.org>
21324
21325         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21326         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21327         option --enable/disable-c++ instead of --enable/disable-cxx.
21328         * NEWS: Mention the change.
21329
21330 2010-07-31  Bruno Haible  <bruno@clisp.org>
21331
21332         readlink, areadlink: Relax test a bit.
21333         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21334         alternative to ENOTDIR.
21335         * tests/test-areadlink.h (test_areadlink): Likewise.
21336         Reported by Rainer Tammer.
21337
21338 2010-07-31  Bruno Haible  <bruno@clisp.org>
21339
21340         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21341         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21342         character, perform the search using U_STRCHR.
21343         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21344         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21345         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21346         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21347         Suggested by Paolo Bonzini.
21348
21349 2010-07-31  Bruno Haible  <bruno@clisp.org>
21350
21351         unistr/u*-strstr: Fix dependencies.
21352         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21353         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21354         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21355
21356 2010-07-31  Bruno Haible  <bruno@clisp.org>
21357
21358         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21359         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21360         the beginning of the loop.
21361         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21362         cases in 'switch' statement.
21363
21364         unistr/u8-strchr: Fix several bugs.
21365         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21366         the string. When not found, return NULL, not a pointer near the end.
21367
21368         More tests for unistr/u8-strchr.
21369         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21370         that the function does not read past the first occurrence of the byte
21371         being searched.
21372         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21373         * tests/unistr/test-u16-strchr.c (main): New function.
21374         * tests/unistr/test-u32-strchr.c (main): New function.
21375
21376 2010-07-31  Bruno Haible  <bruno@clisp.org>
21377
21378         posix-modules: Ignore backup files of documentation files.
21379         * posix-modules: grep only through files named *.texi.
21380
21381 2010-07-31  Bruno Haible  <bruno@clisp.org>
21382
21383         symlinkat: Fix documentation.
21384         * doc/posix-functions/readlinkat.texi: Fix module name.
21385
21386 2010-07-31  Bruno Haible  <bruno@clisp.org>
21387
21388         fchownat: Replace also when chown has the trailing slash bug.
21389         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21390         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21391         introduced on 2010-04-10.
21392         Reported by Rainer Tammer.
21393
21394 2010-07-31  Bruno Haible  <bruno@clisp.org>
21395
21396         linkat: Work around AIX 7.1 bug.
21397         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21398         whether linkat handles trailing slash correctly. If not, replace linkat
21399         and define LINKAT_TRAILING_SLASH_BUG.
21400         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21401         check whether (fd1,file1) points to a directory if file1 or file2 ends
21402         in a slash. Code taken from lib/link.c.
21403         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21404         Reported by Rainer Tammer.
21405
21406 2010-07-31  Bruno Haible  <bruno@clisp.org>
21407
21408         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21409         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21410         This disables an xlc optimization that was causing wrong test results.
21411         Reported by Rainer Tammer.
21412
21413 2010-07-31  Bruno Haible  <bruno@clisp.org>
21414
21415         iconv: Work around AIX 6.1..7.1 bug.
21416         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21417         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21418         cross-compiling, guess no on all versions of AIX.
21419         Reported by Rainer Tammer.
21420
21421 2010-07-31  Bruno Haible  <bruno@clisp.org>
21422
21423         readlink: Relax test a bit.
21424         * tests/test-readlink.h (test_readlink): Allow different errno value
21425         when readlink is called with a file name that ends in / and refers to
21426         a file.
21427         Suggested by Eric Blake.
21428         Reported by Rainer Tammer.
21429
21430 2010-07-31  Bruno Haible  <bruno@clisp.org>
21431
21432         copysign: Does not require -lm on glibc systems.
21433         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21434         gl_COMMON_DOUBLE_MATHFUNC.
21435         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21436
21437 2010-07-31  Bruno Haible  <bruno@clisp.org>
21438
21439         duplocale: Work around AIX 7.1 bug.
21440         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21441         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21442         * lib/duplocale.c (rpl_duplocale): Update comment.
21443         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21444         Reported by Rainer Tammer.
21445
21446 2010-07-30  Bruno Haible  <bruno@clisp.org>
21447
21448         dirfd: Avoid link error on AIX 7.1.
21449         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21450         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21451         exist, set REPLACE_DIRFD.
21452         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21453         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21454         * doc/posix-functions/dirfd.texi: Update.
21455         Reported by Rainer Tammer.
21456
21457 2010-07-30  Eric Blake  <eblake@redhat.com>
21458
21459         strtod: next round of AIX fixes
21460         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21461         exponent.
21462         * tests/test-strtod.c (main): Enhance tests.
21463         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21464         Reported by Rainer Tammer.
21465
21466         futimens: fix configure check
21467         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21468         Reported by Bruno Haible.
21469
21470 2010-07-30  Bruno Haible  <bruno@clisp.org>
21471
21472         getline: Update regarding AIX.
21473         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21474         Reported by Rainer Tammer.
21475
21476 2010-07-30  Bruno Haible  <bruno@clisp.org>
21477
21478         wcwidth: Drop replacement on AIX 7.
21479         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21480         AIX 7.
21481         Reported by Rainer Tammer.
21482
21483 2010-07-30  Bruno Haible  <bruno@clisp.org>
21484
21485         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21486         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21487         a 'char *'.
21488         Reported by Rainer Tammer.
21489
21490 2010-07-30  Bruno Haible  <bruno@clisp.org>
21491
21492         unlink: Update regarding AIX.
21493         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21494         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21495         Reported by Rainer Tammer.
21496
21497 2010-07-30  Bruno Haible  <bruno@clisp.org>
21498
21499         symlink: Update regarding AIX.
21500         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21501         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21502         Reported by Rainer Tammer.
21503
21504 2010-07-30  Bruno Haible  <bruno@clisp.org>
21505
21506         strndup: Update regarding AIX.
21507         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21508         AIX 7.
21509         Reported by Rainer Tammer.
21510
21511 2010-07-30  Bruno Haible  <bruno@clisp.org>
21512
21513         stat: Update regarding AIX.
21514         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21515         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21516         Reported by Rainer Tammer.
21517
21518 2010-07-30  Bruno Haible  <bruno@clisp.org>
21519
21520         truncl: Fix autoconf test.
21521         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21522         whether truncl works.
21523         Reported by Rainer Tammer.
21524
21525 2010-07-30  Bruno Haible  <bruno@clisp.org>
21526
21527         round: Update regarding AIX.
21528         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21529         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21530         Reported by Rainer Tammer.
21531
21532 2010-07-30  Bruno Haible  <bruno@clisp.org>
21533
21534         rename: Update regarding AIX.
21535         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21536         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21537         Reported by Rainer Tammer.
21538
21539 2010-07-30  Bruno Haible  <bruno@clisp.org>
21540
21541         printf.m4: Update regarding AIX.
21542         * m4/printf.m4: Update comments regarding AIX.
21543         Reported by Rainer Tammer.
21544
21545 2010-07-30  Bruno Haible  <bruno@clisp.org>
21546
21547         iconv: Update regarding AIX.
21548         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21549         AIX 7.
21550         Reported by Rainer Tammer.
21551
21552 2010-07-30  Bruno Haible  <bruno@clisp.org>
21553
21554         getopt: Update regarding AIX.
21555         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21556         no on AIX.
21557         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21558         Reported by Rainer Tammer.
21559
21560 2010-07-30  Bruno Haible  <bruno@clisp.org>
21561
21562         ldexpl; Update regarding AIX.
21563         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21564         on AIX 7.
21565         Reported by Rainer Tammer.
21566
21567 2010-07-30  Bruno Haible  <bruno@clisp.org>
21568
21569         frexpl: Update regarding AIX.
21570         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21571         on AIX 7.
21572         Reported by Rainer Tammer.
21573
21574 2010-07-30  Bruno Haible  <bruno@clisp.org>
21575
21576         open, fopen: Update regarding AIX.
21577         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21578         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21579         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21580         * doc/posix-functions/fopen.texi: Likewise.
21581         Reported by Rainer Tammer.
21582
21583 2010-07-30  Bruno Haible  <bruno@clisp.org>
21584
21585         chown: Update doc regarding AIX.
21586         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21587         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21588         Reported by Rainer Tammer.
21589
21590 2010-07-30  Eric Blake  <eblake@redhat.com>
21591
21592         strtod: fix bug in replacement function on AIX
21593         * lib/strtod.c (strtod): Special case broken "0x" parse in
21594         underlying strtod.
21595         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21596         * doc/posix-functions/strtod.texi (strtod): Likewise.
21597         Reported by Rainer Tammer.
21598
21599 2010-07-30  Bruno Haible  <bruno@clisp.org>
21600
21601         mbrlen: Fix cross-compilation guess for AIX.
21602         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21603         guess. Leftover from 2008-12-22.
21604
21605 2010-07-30  Bruno Haible  <bruno@clisp.org>
21606
21607         mbrtowc: Fix cross-compilation guess for AIX.
21608         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21609         guess. Leftover from 2008-12-21.
21610
21611 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21612
21613         init.sh: work around trap limitation of some shells
21614         * tests/init.sh (setup_): Move exit trap outside of shell function.
21615
21616 2010-07-29  Eric Blake  <eblake@redhat.com>
21617
21618         strtod: aid debugging
21619         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21620         understanding why strtod is rejected.
21621
21622 2010-07-28  Bruno Haible  <bruno@clisp.org>
21623
21624         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21625         * lib/unistr/u8-chr.c: Include <string.h>.
21626         * tests/unistr/test-u8-chr.c: Likewise.
21627         * tests/unistr/test-u16-chr.c: Likewise.
21628         * tests/unistr/test-u32-chr.c: Likewise.
21629         * tests/unistr/test-u8-strchr.c: Likewise.
21630         * tests/unistr/test-u16-strchr.c: Likewise.
21631         * tests/unistr/test-u32-strchr.c: Likewise.
21632         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21633         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21634         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21635         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21636
21637 2010-07-28  Bruno Haible  <bruno@clisp.org>
21638
21639         Use spaces for indentation, not tabs.
21640         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21641
21642 2010-07-27  Bruno Haible  <bruno@clisp.org>
21643
21644         mbspcasecmp: Fix function specification.
21645         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21646         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21647         Reported by Eric Blake <eblake@redhat.com>.
21648
21649 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21650
21651         timespec: use cast and not conditional, as truncation isn't possible
21652         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21653         instead of a conditional.  Comment about the situation in more detail.
21654         This undoes most of the 2009-10-29 patch.
21655
21656 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21657
21658         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21659         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21660         * lib/unistr/u8-strchr.c: Likewise.
21661         * modules/unistr/u8-chr: Depend on memchr.
21662
21663         unistr/u*-strchr: add tests
21664         * modules/unistr/u8-strchr-tests: New file.
21665         * modules/unistr/u16-strchr-tests: New file.
21666         * modules/unistr/u32-strchr-tests: New file.
21667         * tests/unistr/test-strchr.h: New file.
21668         * tests/unistr/test-u8-strchr.c: New file.
21669         * tests/unistr/test-u16-strchr.c: New file.
21670         * tests/unistr/test-u32-strchr.c: New file.
21671
21672         unistr/u*-chr: test multibyte sequences more
21673         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21674         test vector.
21675         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21676         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21677         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21678
21679         unistr/u*-chr: test multibyte sequences
21680         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21681
21682         unistr/u*-chr: prepare for multibyte tests
21683         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21684         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21685         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21686         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21687         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21688         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21689
21690 2010-07-18  Bruno Haible  <bruno@clisp.org>
21691
21692         unistr/u8-strchr: Optimize non-ASCII argument case.
21693         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21694         because the first byte often matches anyway.
21695         Reported by Pádraig Brady <P@draigbrady.com>.
21696
21697 2010-07-15  Karl Berry  <karl@gnu.org>
21698
21699         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21700
21701 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21702
21703         getcwd: on Solaris, work better if ancestors are inaccessible
21704         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21705         buffer and size, try again with a large buffer.  This works better
21706         on Solaris, since its getcwd succeeds even if the path to the root
21707         is inaccessible, and this is helpful in common cases such as .zfs
21708         hidden directories.  Problem reported by J Chapman Flack in
21709         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21710         Use system getcwd if it's declared, not merely if it's partly
21711         working; use the partly-working test only to avoid needless effort
21712         if the system getcwd fails.
21713         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21714         comment that was already obsolete and is now even more obsolete.
21715         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21716         now might call strdup.
21717
21718 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21719
21720         pthread: Add enough so that coreutils/src/sort.c compiles.
21721         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21722         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21723         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21724         Include <sys/types.h>, in case it defines pthread_t.
21725         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21726         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21727         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21728         (pthread_rwlockattr_t, pthread_spinlock_t):
21729         New typedefs, if HAVE_PTHREAD_T is not defined.
21730         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21731         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21732         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21733         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21734         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21735         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21736         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21737         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21738         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21739         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21740         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21741         New macros.
21742         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21743         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21744         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21745         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21746         (pthread_spin_unlock): New dummy functions.
21747         (pthread_create): Return EAGAIN; don't set errno.
21748         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21749         require AC_C_INLINE.
21750         * modules/pthread (Depends-on): Add sched, time.
21751         (pthread.h): Use AM_V_GEN.
21752
21753 2010-07-13  Bruno Haible  <bruno@clisp.org>
21754
21755         striconveh: Don't malloc memory if the result buffer is sufficient.
21756         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21757         buffer if its size is sufficient.
21758         Reported by Ludovic Courtès <ludo@gnu.org>.
21759
21760 2010-07-13  Bruno Haible  <bruno@clisp.org>
21761
21762         strtod: Add safety check.
21763         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21764
21765 2010-07-12  Bruno Haible  <bruno@clisp.org>
21766
21767         Unify tests that set gl_cv_func_ldexpl_no_libm.
21768         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21769         gl_FUNC_LDEXPL.
21770         (gl_FUNC_LDEXPL): Invoke it.
21771         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21772
21773 2010-07-12  Bruno Haible  <bruno@clisp.org>
21774
21775         Unify tests that set gl_cv_func_ldexp_no_libm.
21776         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21777         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21778         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21779         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21780         * modules/strtod (Files): Add m4/ldexp.m4.
21781
21782 2010-07-12  Bruno Haible  <bruno@clisp.org>
21783
21784         Unify tests that set gl_cv_func_frexpl_no_libm.
21785         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21786         gl_FUNC_FREXPL_NO_LIBM.
21787         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21788         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21789
21790 2010-07-12  Bruno Haible  <bruno@clisp.org>
21791
21792         Unify tests that set gl_cv_func_frexp_no_libm.
21793         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21794         gl_FUNC_FREXP_NO_LIBM.
21795         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21796         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21797
21798 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21799
21800         memcoll: clarify sizes versus lengths, document better, and tweak perf
21801         * lib/memcoll.c (strcoll_loop, memcoll0):
21802         Improve quality of descriptive comments.  Name variables
21803         consistently as to whether they are lengths (which do not include
21804         terminating null) versus sizes (which do).
21805         * lib/xmemcoll.c (xmemcoll0): Likewise.
21806         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21807         returned when s1size == 0; this is easier to compile and saves
21808         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21809
21810 2010-07-12  Bruno Haible  <bruno@clisp.org>
21811
21812         Tests for module '_Exit'.
21813         * modules/_Exit-tests: New file.
21814         * tests/test-_Exit.sh: New file.
21815         * tests/test-_Exit.c: New file.
21816
21817         New module '_Exit'.
21818         * lib/stdlib.in.h (__attribute__): New macro.
21819         (_Exit): New declaration.
21820         * lib/_Exit.c: New file.
21821         * m4/_Exit.m4: New file.
21822         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21823         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21824         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21825         * modules/_Exit: New file.
21826         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21827         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21828
21829 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21830
21831         strtod: make it more-accurate typically, and don't require libm
21832         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21833         Include limits.h.  Don't include string.h.
21834         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21835         (locale_isspace): New function, so that no casts are needed to
21836         check whether *s is a space.
21837         (ldexp): Provide an unused dummy if not available.
21838         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21839         (strtod): Use them.  This implementation prefers to use the
21840         underlying strtod if available, falling back on our own code
21841         only to fix known bugs.  This is more likely to produce an
21842         accurate result.  Also, it avoids the use of libm functions.
21843         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21844         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21845         was absent, but it caused a test failure with coreutils.
21846         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21847         with libm.
21848         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21849         * modules/strtod-tests (Makefile.am): Likewise.
21850
21851 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21852             Bruno Haible  <bruno@clisp.org>
21853
21854         unistr/u8-strchr: Optimize ASCII argument case.
21855         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21856
21857 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21858
21859         (x)memcoll: minor tweaks
21860         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21861         is after the type that it qualifies.
21862         (memcoll0): Likewise.
21863         * lib/memcoll.h (memcoll0): Likewise.
21864         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21865         * lib/xmemcoll.h (xmemcoll0): Likewise.
21866         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21867         differs from memcoll in that the NUL byte is part of the argument.
21868         Omit the abort-checks, as performance is a real issue here.  Plus,
21869         the checks were wrong anyway (an off-by-one error).  Omit local
21870         variable 'diff', as it's a bit clearer that way.
21871         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21872         no longer needed.
21873
21874 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21875
21876         (x)memcoll: speedup when input is known to be NUL delimited
21877         * lib/memcoll.c: Include stdlib.
21878         (memcoll0): New function.
21879         (strcoll_loop): New function, refactored for use in both memcoll
21880         and memcoll0.
21881         * lib/memcoll.h (memcoll0): Add prototype.
21882         * lib/xmemcoll.c (xmemcoll0): New function.
21883         (collate_error): New function, refactored for use in both xmemcoll
21884         and xmemcoll0.
21885         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21886         * m4/memcoll.m4: add inline invocation.
21887
21888 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21889
21890         * build-aux/bootstrap: Remove any local translations
21891         from the translation project synchronization directory,
21892         so that local only translations are not distributed.
21893
21894 2010-07-04  Bruno Haible  <bruno@clisp.org>
21895
21896         fsusage: Clarify which code applies to which platforms.
21897         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21898         platform.
21899         * lib/fsusage.c (get_fs_usage): Likewise.
21900
21901 2010-07-04  Bruno Haible  <bruno@clisp.org>
21902
21903         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21904         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21905         Reported by Martin Lambers <marlam@marlam.de>.
21906
21907 2010-07-04  Jim Meyering  <meyering@redhat.com>
21908
21909         hash: once again explicitly disallow insertion of NULL
21910         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21911         inserting a NULL pointer cannot work with these functions.
21912         Add a comment with details.
21913         This reverts part of the 2010-07-01 commit, 5bef1a35
21914         "hash: extend module to deal with non-pointer keys".
21915
21916 2010-07-01  Bruno Haible  <bruno@clisp.org>
21917
21918         stdbool: Update doc.
21919         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21920         Info from Christian Weisgerber <naddy@mips.inka.de>.
21921
21922 2010-07-01  Jim Meyering  <meyering@redhat.com>
21923
21924         hash: extend module to deal with non-pointer keys
21925         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21926         but that allows insertion of non-pointer entries.
21927         Do not disallow an ENTRY value of NULL.
21928         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21929         * lib/hash.h (hash_insert0): Declare.
21930
21931 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21932
21933         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21934         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21935         not present (i.e. with autoconf 2.59 and when using gettextize, not
21936         gnulib), require AC_GNU_SOURCE instead.
21937
21938 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21939
21940         idpriv-drop: Fix tests.
21941         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21942         not to the test-idpriv-droptemp program.
21943
21944 2010-06-29  Bruno Haible  <bruno@clisp.org>
21945
21946         string: Fix syntax error with g++ 2.96.
21947         * lib/string.in.h (__pure__): Remove definition.
21948         (_GL_ATTRIBUTE_PURE): New macro.
21949         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21950         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21951         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21952
21953 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21954
21955         unitypes: Fix bug introduced on 2010-05-18.
21956         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21957
21958 2010-06-22  Eric Blake  <eblake@redhat.com>
21959
21960         memmem: slight optimization
21961         * lib/str-two-way.h (critical_factorization): Update comments.
21962         Reduce work during factorization phase.
21963         Reported by Carlos Bueno <carlos@bueno.org>.
21964
21965 2010-06-21  Bruno Haible  <bruno@clisp.org>
21966
21967         Fix HAVE_CALLOC_POSIX misnomer.
21968         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21969         !HAVE_CALLOC_POSIX.
21970         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21971         HAVE_CALLOC_POSIX.
21972         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21973         instead of HAVE_CALLOC_POSIX.
21974         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21975         HAVE_CALLOC_POSIX.
21976
21977         Use modern idiom for calloc() replacement.
21978         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21979         AC_FUNC_CALLOC.
21980         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21981         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21982         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21983         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21984         (gl_REPLACE_CALLOC): New macro.
21985
21986 2010-06-21  Bruno Haible  <bruno@clisp.org>
21987
21988         Fix HAVE_REALLOC_POSIX misnomer.
21989         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21990         !HAVE_REALLOC_POSIX.
21991         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21992         HAVE_REALLOC_POSIX.
21993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21994         instead of HAVE_REALLOC_POSIX.
21995         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21996         HAVE_REALLOC_POSIX.
21997
21998         Use modern idiom for realloc() replacement.
21999         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22000         AC_FUNC_REALLOC.
22001         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22002         Autoconf's AC_FUNC_REALLOC.
22003         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22004         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22005         (gl_REPLACE_REALLOC): New macro.
22006         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22007
22008 2010-06-21  Bruno Haible  <bruno@clisp.org>
22009
22010         Fix HAVE_MALLOC_POSIX misnomer.
22011         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22012         !HAVE_MALLOC_POSIX.
22013         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22014         HAVE_MALLOC_POSIX.
22015         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22016         instead of HAVE_MALLOC_POSIX.
22017         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22018         HAVE_MALLOC_POSIX.
22019
22020         Use modern idiom for malloc() replacement.
22021         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22022         AC_FUNC_MALLOC.
22023         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22024         Autoconf's AC_FUNC_MALLOC.
22025         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22026         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22027         (gl_REPLACE_MALLOC): New macro.
22028         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22029
22030 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22031
22032         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22033         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22034         This macro takes 3 arguments, not 4.
22035
22036 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22037
22038         ipv6: fix detection under mingw
22039         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22040         in6_addr.
22041
22042 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22043
22044         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22045         that strtod() works when cross-compiling to a glibc version known
22046         to work.
22047
22048 2010-06-15  Bruno Haible  <bruno@clisp.org>
22049
22050         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22051
22052 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22053
22054         select: Correct timeout.
22055         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22056
22057 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22058
22059         git-version-gen: init shell var to avoid env var influence
22060         * build-aux/git-version-gen (v): Init shell var to empty.
22061
22062 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22063
22064         priv-set: Don't assume that priv.h exists merely because getppriv does.
22065         See Jan Andersen's bug report about AIX 5L in
22066         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22067         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22068         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22069         * lib/priv-set.h: Likewise.
22070         * tests/test-priv-set.c: Likewise.
22071
22072 2010-06-13  Bruno Haible  <bruno@clisp.org>
22073
22074         relocatable: Make it easier to test whether to install wrappers.
22075         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22076         RELOCATABLE_VIA_WRAPPER.
22077
22078 2010-06-13  Bruno Haible  <bruno@clisp.org>
22079
22080         gnulib-tool: Display specified modules and dependencies differently.
22081         * gnulib-tool (func_show_module_list): New function.
22082         (func_import, func_create_testdir): Invoke it.
22083         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22084
22085 2010-06-13  Bruno Haible  <bruno@clisp.org>
22086
22087         gnulib-tool: Align code of func_import and func_create_testdir.
22088         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22089         specified_modules.
22090
22091 2010-06-12  Jim Meyering  <meyering@redhat.com>
22092
22093         test-inttostr: avoid spurious failure on Solaris 9
22094         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22095         to accept "%ju".  Reported by Bruno Haible.
22096
22097 2010-06-11  Jim Meyering  <meyering@redhat.com>
22098
22099         test-sys_socket: mark variables as used more readably
22100         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22101         as "used" explicitly via (void) statement casts.  This is more
22102         readable than using them in an artificial return expression.
22103         Suggestion from Bruno Haible.
22104
22105 2010-06-11  Bruno Haible  <bruno@clisp.org>
22106
22107         Avoid some more warnings from "gcc -Wwrite-strings".
22108         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22109         to 'const char *'.
22110         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22111         * tests/test-c-strcasestr.c (main): Likewise.
22112         * tests/test-mbscasestr1.c (main): Likewise.
22113         * tests/test-mbscasestr2.c (main): Likewise.
22114         * tests/test-memmem.c (main): Likewise.
22115         * tests/test-strstr.c (main): Likewise.
22116         * tests/test-strcasestr.c (main): Likewise.
22117
22118 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22119
22120         init.sh: change framework_failure_ to fail with status 99, not 1
22121         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22122         automake's parallel-tests rule that this is an unexpected failure,
22123         even if the test is listed in XFAIL_TESTS.
22124
22125 2010-06-11  Jim Meyering  <meyering@redhat.com>
22126
22127         test-inttostr: avoid warnings about 4-6KB literal strings
22128         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22129         Include "macros.h", for its definition of ASSERT.
22130         (CK): s/assert/ASSERT/
22131         * modules/inttostr-tests (Files): Add macros.h.
22132
22133         init.sh: don't use $ME_ or skip_ before they are defined
22134         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22135         their first uses.  Also hoist their companions: warn_, fail_,
22136         framework_failure_, $stderr_fileno.  Prompted by a patch from
22137         Stefano Lattarini.
22138
22139         test-sys_socket: avoid set-but-not-used warnings from gcc
22140         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22141         avoid warning about set-but-not-used variables.
22142
22143         test-xvasprintf: avoid 'const' discard warnings
22144         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22145         "const" when assigning from literal strings.
22146         (test_xasprintf): Add "void" in function argument list to placate
22147         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22148
22149         tests: avoid compilation warnings in argmatch and exclude tests...
22150         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22151         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22152         Since it always exits, declare with the "noreturn" attribute.
22153         * tests/test-argmatch.c: Likewise.
22154
22155         tests: avoid 'const' discard warnings in mbsstr tests
22156         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22157         * tests/test-mbsstr2.c (main): Likewise.
22158
22159         test-verify: avoid warning from gcc's -Wmissing-declarations
22160         * tests/test-verify.c (function): Declare to be static.
22161
22162         test-inttostr.c: include <string.h> for use of strcmp
22163         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22164
22165         test-linkat: avoid failed assertion on "other" architectures
22166         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22167         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22168         sparc: https://bugs.launchpad.net/bugs/591968
22169
22170 2010-06-11  Jim Meyering  <meyering@redhat.com>
22171
22172         printf.m4: avoid autoconf's "Expanded Before Required" warning
22173         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22174         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22175         autoconf warning.
22176
22177 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22178
22179         Replacement header templates are now named with ".in", not "_".
22180         * doc/gnulib-intro.texi: Correct.
22181
22182 2010-06-10  Jim Meyering  <meyering@redhat.com>
22183
22184         inttostr-tests: depend on snprintf, not snprintf-posix
22185         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22186         snprintf-posix, to avoid this aclocal failure:
22187           missing file gnulib-tests/vasnprintf.c
22188           configure.ac:45: error: expected source file, required through \
22189           AC_LIBSOURCES, not found
22190
22191 2010-06-10  Jim Meyering  <meyering@redhat.com>
22192
22193         inttostr: add a new function, inttostr, and tests
22194         The namesake function was not available.  The existence of the
22195         template file, inttostr.c makes its addition nontrivial.
22196         * lib/anytostr.c: Rename from inttostr.c.
22197         (anytostr): Rename from inttostr.
22198         * lib/inttostr.c: New file.
22199         * modules/inttostr (Files): Add anytostr.c.
22200         (Makefile.am): Set lib_SOURCES instead of ...
22201         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22202         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22203         * lib/offtostr.c: Likewise.
22204         * lib/uinttostr.c: Likewise.
22205         * lib/umaxtostr.c: Likewise.
22206         * modules/inttostr-tests: New file.
22207         * tests/test-inttostr.c: New file.  Test these functions.
22208
22209 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22210             Bruno Haible  <bruno@clisp.org>
22211
22212         Add "Extending Gnulib" chapter to manual.
22213         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22214         chapter.
22215         (Extending Gnulib): New chapter.
22216         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22217         chapter.
22218
22219 2010-06-09  Bruno Haible  <bruno@clisp.org>
22220
22221         Avoid relocwrapper link errors due to gnulib replacement functions.
22222         * lib/areadlink.c: Use the system's malloc, realloc functions.
22223         (areadlink): Set errno to ENOMEM explicitly.
22224         * modules/areadlink (Depends-on): Remove malloc-posix.
22225         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22226
22227 2010-06-09  Bruno Haible  <bruno@clisp.org>
22228
22229         Avoid relocwrapper link errors due to gnulib replacement functions.
22230         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22231         * lib/malloca.c: Likewise.
22232         * lib/relocatable.c: Likewise.
22233         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22234         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22235         * lib/setenv.c: Use the system's malloc, realloc functions.
22236         * lib/strerror.c: Use the system's sprintf function.
22237         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22238
22239 2010-06-04  Bruno Haible  <bruno@clisp.org>
22240
22241         Prefer documented low-level autoconf macro names.
22242         * m4/lib-link.m4: Use m4_translit instead of translit.
22243         * m4/environ.m4: Likewise.
22244         * m4/mathfunc.m4: Likewise.
22245         * m4/onceonly.m4: Likewise.
22246         * m4/stdint.m4: Likewise.
22247         Suggested by Eric Blake.
22248
22249 2010-06-04  Martin Lambers  <marlam@marlam.de>
22250             Bruno Haible  <bruno@clisp.org>
22251
22252         havelib: Allow library names with '+' characters.
22253         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22254         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22255
22256 2010-06-09  Bruno Haible  <bruno@clisp.org>
22257
22258         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22259         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22260         realloc failed.
22261
22262 2010-06-08  Peter Simons  <simons@cryp.to>
22263
22264         maint.mk: make the news-check rule more configurable
22265         * top/maint.mk (news-check-lines-spec): New variable.
22266         (news-check): Use "sed -n 1,10p" in place of "head".
22267
22268 2010-06-07  Jim Meyering  <meyering@redhat.com>
22269
22270         do-release-commit-and-tag: fix typo in --help
22271         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22272
22273         regex: avoid new dead-code warning with gcc-4.6.0
22274         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22275         if-block containing a while-loop.  It's been unused for at least
22276         5 years.
22277
22278 2010-06-05  Bruno Haible  <bruno@clisp.org>
22279
22280         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22281         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22282
22283 2010-06-04  Bruno Haible  <bruno@clisp.org>
22284
22285         Update to GNU gettext 0.18.1.
22286         * modules/gettext (configure.ac): Require gettext infrastructure from
22287         version 0.18.1.
22288
22289 2010-06-03  Bruno Haible  <bruno@clisp.org>
22290
22291         Don't use AC_LIBOBJ with file names in subdirectories.
22292         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22293         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22294         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22295         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22296         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22297         gl_LIBUNISTRING_LIBSOURCE.
22298         (Makefile.am): Augment lib_SOURCES here, conditionally.
22299         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22300
22301 2010-06-03  Bruno Haible  <bruno@clisp.org>
22302
22303         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22304         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22305         expansion does not end with a newline.
22306         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22307         unnecessary newline.
22308
22309 2010-06-03  Bruno Haible  <bruno@clisp.org>
22310
22311         Reduce dependencies.
22312         * tests/test-quotearg.h: New file, extracted from
22313         tests/test-quotearg.c.
22314         * tests/test-quotearg-simple.c: New file, extracted from
22315         tests/test-quotearg.c.
22316         * tests/test-quotearg.c: Don't include <ctype.h>.
22317         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22318         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22319         use_quote_double_quotes, use_quotearg_colon): Moved to
22320         tests/test-quotearg.h.
22321         (results_g, flag_results, custom_quotes, custom_results): Moved
22322         to tests/test-quotearg-simple.c.
22323         (main): Moved the part that does not depend on gettext to
22324         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22325         performed.
22326         * modules/quotearg-simple: New file.
22327         * modules/quotearg-simple-tests: New file.
22328         * modules/quotearg (Depends-on): Add quotearg-simple.
22329         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22330         (Files): Add tests/test-quotearg.h.
22331         Reported by Paolo Bonzini.
22332
22333 2010-06-03  Bruno Haible  <bruno@clisp.org>
22334
22335         Reduce dependencies.
22336         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22337
22338 2010-06-03  Bruno Haible  <bruno@clisp.org>
22339
22340         time: Undefine more broken macros.
22341         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22342         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22343         Reported by Eric Blake.
22344
22345 2010-06-03  Bruno Haible  <bruno@clisp.org>
22346
22347         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22348         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22349         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22350         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22351         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22352         Reported by Ludovic Courtès <ludo@gnu.org>.
22353
22354 2010-06-02  Eric Blake  <eblake@redhat.com>
22355
22356         time: work with mingw + pthreads-win32 library
22357         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22358         if timespec is defined only in pthread.h.
22359         * modules/time (Makefile.am): Substitute it.
22360         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22361         <pthread.h>, when needed.
22362         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22363         from the library.
22364
22365 2010-05-31  Bruno Haible  <bruno@clisp.org>
22366
22367         Avoid expanding two macros in the wrong order.
22368         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22369         gl_LIBUNISTRING if it is defined.
22370         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22371         autoconf >= 2.64.
22372         Reported by Ludovic Courtès <ludo@gnu.org>.
22373
22374 2010-05-27  Jim Meyering  <meyering@redhat.com>
22375
22376         maint.mk: also prohibit "#undef" of always-defined symbols
22377         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22378         Allow more than one space before the symbol name.
22379         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22380         the regexp uses alternation.
22381
22382 2010-05-26  Eric Blake  <eblake@redhat.com>
22383
22384         maint.mk: avoid echo -e
22385         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22386         Convert all uses of echo -* to printf.
22387         Reported by Matthias Bolte.
22388
22389 2010-05-25  Bruno Haible  <bruno@clisp.org>
22390
22391         Update to GNU gettext 0.18, part 2.
22392         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22393         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22394
22395 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22396
22397         Add missing include in test-pwrite.c.
22398         * tests/test-pwrite.c: Include string.h, for strcmp.
22399
22400 2010-05-24  Bruno Haible  <bruno@clisp.org>
22401
22402         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22403
22404 2010-05-24  Bruno Haible  <bruno@clisp.org>
22405
22406         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22407         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22408         iconveh_error argument.
22409         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22410         U_STRCONV_TO_LOCALE.
22411         * lib/unistr/u16-strcoll.c: Likewise.
22412         * lib/unistr/u32-strcoll.c: Likewise.
22413         * modules/unistr/u8-strcoll (Depends-on): Add
22414         uniconv/u8-strconv-to-enc, localcharset. Remove
22415         uniconv/u8-strconv-to-locale.
22416         (configure.ac): Bump version number.
22417         * modules/unistr/u16-strcoll (Depends-on): Add
22418         uniconv/u16-strconv-to-enc, localcharset. Remove
22419         uniconv/u16-strconv-to-locale.
22420         (configure.ac): Bump version number.
22421         * modules/unistr/u32-strcoll (Depends-on): Add
22422         uniconv/u32-strconv-to-enc, localcharset. Remove
22423         uniconv/u32-strconv-to-locale.
22424         (configure.ac): Bump version number.
22425
22426 2010-05-24  Bruno Haible  <bruno@clisp.org>
22427
22428         Avoid a test failure on NetBSD 5.0.
22429         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22430         an iconv() bug.
22431
22432 2010-05-24  Bruno Haible  <bruno@clisp.org>
22433
22434         Adjust #include directive style.
22435         * modules/regex (Includes): Recommend to write <regex.h>.
22436
22437 2010-05-24  Bruno Haible  <bruno@clisp.org>
22438
22439         regex: Don't require alloca.
22440         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22441         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22442         only inside if (0).
22443
22444 2010-05-23  Jim Meyering  <meyering@redhat.com>
22445
22446         test-renameat.c: include <sys/stat.h>
22447         * tests/test-renameat.c: Include <sys/stat.h>; required for
22448         definition of S_IS* macros.
22449
22450 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22451
22452         Update maintainer documentation for 'relocatable-prog' module.
22453         * doc/relocatable-maint.texi: Update.
22454         Comments by Bruno Haible.
22455
22456 2010-05-23  Bruno Haible  <bruno@clisp.org>
22457
22458         git-merge-changelog: Enable --split-merged-entry by default.
22459         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22460         (usage): Don't mention this option any more.
22461         Reported by Ralf Wildenhues.
22462
22463 2010-05-23  Jim Meyering  <meyering@redhat.com>
22464
22465         test-pwrite: do not leave behind a test file named "out"
22466         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22467         The trivial-looking use of init.sh is really necessary.
22468         It ensures that the temporary file, "out", is created in
22469         a temporary directory, and removed upon termination.
22470         * tests/test-pwrite.sh: Re-add file.
22471         * modules/pwrite-tests: Reference it.
22472
22473 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22474
22475         Fix output redirection buglet in init.sh.
22476         * tests/init.sh: Fix redirection of stderr.
22477
22478 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22479
22480         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22481
22482 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22483
22484         * modules/valgrind-tests: New file.
22485         * m4/valgrind-tests.m4: New file.
22486         * doc/valgrind-tests.texi: New file.
22487         * doc/gnulib.texi (Running self-tests under valgrind): New
22488         section.
22489
22490 2010-05-19  Bruno Haible  <bruno@clisp.org>
22491
22492         Clean up dead code in recent commit.
22493         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22494         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22495         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22496         Suggested by Paolo Bonzini.
22497
22498 2010-05-19  Bruno Haible  <bruno@clisp.org>
22499
22500         Avoid valgrind error reports from libunistring.
22501         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22502         * modules/libunistring (Files): Add it.
22503         * modules/libunistring-optional (Files): Likewise.
22504
22505 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22506             Bruno Haible  <bruno@clisp.org>
22507
22508         New module 'libunistring-optional'.
22509         * modules/libunistring-optional: New file.
22510         * m4/libunistring-base.m4: New file.
22511         * m4/libunistring-optional.m4: New file.
22512         * lib/unicase.in.h: Renamed from lib/unicase.h.
22513         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22514         * lib/unictype.in.h: Renamed from lib/unictype.h.
22515         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22516         * lib/uniname.in.h: Renamed from lib/uniname.h.
22517         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22518         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22519         * lib/unistr.in.h: Renamed from lib/unistr.h.
22520         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22521         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22522         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22523         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22524         gl_LIBUNISTRING. If the library was found, determine the installed
22525         version and set LIBUNISTRING_VERSION.
22526         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22527         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22528         handle a configuration option --with-included-libunistring.
22529         * modules/libunistring (Files): Add m4/absolute-header.m4.
22530         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22531         Add m4/libunistring-base.m4.
22532         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22533         (Makefile.am): Build unicase.h from unicase.in.h.
22534         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22535         Add m4/libunistring-base.m4.
22536         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22537         (Makefile.am): Build uniconv.h from uniconv.in.h.
22538         * modules/unictype/base (Files): Use unictype.in.h instead of
22539         unictype.h. Add m4/libunistring-base.m4.
22540         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22541         (Makefile.am): Build unictype.h from unictype.in.h.
22542         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22543         Add m4/libunistring-base.m4.
22544         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22545         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22546         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22547         Add m4/libunistring-base.m4.
22548         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22549         (Makefile.am): Build uniname.h from uniname.in.h.
22550         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22551         Add m4/libunistring-base.m4.
22552         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22553         (Makefile.am): Build uninorm.h from uninorm.in.h.
22554         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22555         unistdio.h. Add m4/libunistring-base.m4.
22556         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22557         (Makefile.am): Build unistdio.h from unistdio.in.h.
22558         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22559         Add m4/libunistring-base.m4.
22560         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22561         (Makefile.am): Build unistr.h from unistr.in.h.
22562         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22563         Add m4/libunistring-base.m4.
22564         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22565         (Makefile.am): Build unitypes.h from unitypes.in.h.
22566         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22567         Add m4/libunistring-base.m4.
22568         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22569         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22570         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22571         uniwidth.h. Add m4/libunistring-base.m4.
22572         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22573         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22574         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22575         instead of augmenting lib_SOURCES.
22576         * modules/unicase/empty-suffix-context: Likewise.
22577         * modules/unicase/locale-language: Likewise.
22578         * modules/unicase/tolower: Likewise.
22579         * modules/unicase/totitle: Likewise.
22580         * modules/unicase/toupper: Likewise.
22581         * modules/unicase/u8-casecmp: Likewise.
22582         * modules/unicase/u8-casecoll: Likewise.
22583         * modules/unicase/u8-casefold: Likewise.
22584         * modules/unicase/u8-casexfrm: Likewise.
22585         * modules/unicase/u8-ct-casefold: Likewise.
22586         * modules/unicase/u8-ct-tolower: Likewise.
22587         * modules/unicase/u8-ct-totitle: Likewise.
22588         * modules/unicase/u8-ct-toupper: Likewise.
22589         * modules/unicase/u8-is-cased: Likewise.
22590         * modules/unicase/u8-is-casefolded: Likewise.
22591         * modules/unicase/u8-is-lowercase: Likewise.
22592         * modules/unicase/u8-is-titlecase: Likewise.
22593         * modules/unicase/u8-is-uppercase: Likewise.
22594         * modules/unicase/u8-prefix-context: Likewise.
22595         * modules/unicase/u8-suffix-context: Likewise.
22596         * modules/unicase/u8-tolower: Likewise.
22597         * modules/unicase/u8-totitle: Likewise.
22598         * modules/unicase/u8-toupper: Likewise.
22599         * modules/unicase/u16-casecmp: Likewise.
22600         * modules/unicase/u16-casecoll: Likewise.
22601         * modules/unicase/u16-casefold: Likewise.
22602         * modules/unicase/u16-casexfrm: Likewise.
22603         * modules/unicase/u16-ct-casefold: Likewise.
22604         * modules/unicase/u16-ct-tolower: Likewise.
22605         * modules/unicase/u16-ct-totitle: Likewise.
22606         * modules/unicase/u16-ct-toupper: Likewise.
22607         * modules/unicase/u16-is-cased: Likewise.
22608         * modules/unicase/u16-is-casefolded: Likewise.
22609         * modules/unicase/u16-is-lowercase: Likewise.
22610         * modules/unicase/u16-is-titlecase: Likewise.
22611         * modules/unicase/u16-is-uppercase: Likewise.
22612         * modules/unicase/u16-prefix-context: Likewise.
22613         * modules/unicase/u16-suffix-context: Likewise.
22614         * modules/unicase/u16-tolower: Likewise.
22615         * modules/unicase/u16-totitle: Likewise.
22616         * modules/unicase/u16-toupper: Likewise.
22617         * modules/unicase/u32-casecmp: Likewise.
22618         * modules/unicase/u32-casecoll: Likewise.
22619         * modules/unicase/u32-casefold: Likewise.
22620         * modules/unicase/u32-casexfrm: Likewise.
22621         * modules/unicase/u32-ct-casefold: Likewise.
22622         * modules/unicase/u32-ct-tolower: Likewise.
22623         * modules/unicase/u32-ct-totitle: Likewise.
22624         * modules/unicase/u32-ct-toupper: Likewise.
22625         * modules/unicase/u32-is-cased: Likewise.
22626         * modules/unicase/u32-is-casefolded: Likewise.
22627         * modules/unicase/u32-is-lowercase: Likewise.
22628         * modules/unicase/u32-is-titlecase: Likewise.
22629         * modules/unicase/u32-is-uppercase: Likewise.
22630         * modules/unicase/u32-prefix-context: Likewise.
22631         * modules/unicase/u32-suffix-context: Likewise.
22632         * modules/unicase/u32-tolower: Likewise.
22633         * modules/unicase/u32-totitle: Likewise.
22634         * modules/unicase/u32-toupper: Likewise.
22635         * modules/unicase/ulc-casecmp: Likewise.
22636         * modules/unicase/ulc-casecoll: Likewise.
22637         * modules/unicase/ulc-casexfrm: Likewise.
22638         * modules/uniconv/u8-conv-from-enc: Likewise.
22639         * modules/uniconv/u8-conv-to-enc: Likewise.
22640         * modules/uniconv/u8-strconv-from-enc: Likewise.
22641         * modules/uniconv/u8-strconv-from-locale: Likewise.
22642         * modules/uniconv/u8-strconv-to-enc: Likewise.
22643         * modules/uniconv/u8-strconv-to-locale: Likewise.
22644         * modules/uniconv/u16-conv-from-enc: Likewise.
22645         * modules/uniconv/u16-conv-to-enc: Likewise.
22646         * modules/uniconv/u16-strconv-from-enc: Likewise.
22647         * modules/uniconv/u16-strconv-from-locale: Likewise.
22648         * modules/uniconv/u16-strconv-to-enc: Likewise.
22649         * modules/uniconv/u16-strconv-to-locale: Likewise.
22650         * modules/uniconv/u32-conv-from-enc: Likewise.
22651         * modules/uniconv/u32-conv-to-enc: Likewise.
22652         * modules/uniconv/u32-strconv-from-enc: Likewise.
22653         * modules/uniconv/u32-strconv-from-locale: Likewise.
22654         * modules/uniconv/u32-strconv-to-enc: Likewise.
22655         * modules/uniconv/u32-strconv-to-locale: Likewise.
22656         * modules/unictype/bidicategory-byname: Likewise.
22657         * modules/unictype/bidicategory-name: Likewise.
22658         * modules/unictype/bidicategory-of: Likewise.
22659         * modules/unictype/bidicategory-test: Likewise.
22660         * modules/unictype/block-list: Likewise.
22661         * modules/unictype/block-test: Likewise.
22662         * modules/unictype/category-C: Likewise.
22663         * modules/unictype/category-Cc: Likewise.
22664         * modules/unictype/category-Cf: Likewise.
22665         * modules/unictype/category-Cn: Likewise.
22666         * modules/unictype/category-Co: Likewise.
22667         * modules/unictype/category-Cs: Likewise.
22668         * modules/unictype/category-L: Likewise.
22669         * modules/unictype/category-Ll: Likewise.
22670         * modules/unictype/category-Lm: Likewise.
22671         * modules/unictype/category-Lo: Likewise.
22672         * modules/unictype/category-Lt: Likewise.
22673         * modules/unictype/category-Lu: Likewise.
22674         * modules/unictype/category-M: Likewise.
22675         * modules/unictype/category-Mc: Likewise.
22676         * modules/unictype/category-Me: Likewise.
22677         * modules/unictype/category-Mn: Likewise.
22678         * modules/unictype/category-N: Likewise.
22679         * modules/unictype/category-Nd: Likewise.
22680         * modules/unictype/category-Nl: Likewise.
22681         * modules/unictype/category-No: Likewise.
22682         * modules/unictype/category-P: Likewise.
22683         * modules/unictype/category-Pc: Likewise.
22684         * modules/unictype/category-Pd: Likewise.
22685         * modules/unictype/category-Pe: Likewise.
22686         * modules/unictype/category-Pf: Likewise.
22687         * modules/unictype/category-Pi: Likewise.
22688         * modules/unictype/category-Po: Likewise.
22689         * modules/unictype/category-Ps: Likewise.
22690         * modules/unictype/category-S: Likewise.
22691         * modules/unictype/category-Sc: Likewise.
22692         * modules/unictype/category-Sk: Likewise.
22693         * modules/unictype/category-Sm: Likewise.
22694         * modules/unictype/category-So: Likewise.
22695         * modules/unictype/category-Z: Likewise.
22696         * modules/unictype/category-Zl: Likewise.
22697         * modules/unictype/category-Zp: Likewise.
22698         * modules/unictype/category-Zs: Likewise.
22699         * modules/unictype/category-and: Likewise.
22700         * modules/unictype/category-and-not: Likewise.
22701         * modules/unictype/category-byname: Likewise.
22702         * modules/unictype/category-name: Likewise.
22703         * modules/unictype/category-none: Likewise.
22704         * modules/unictype/category-of: Likewise.
22705         * modules/unictype/category-or: Likewise.
22706         * modules/unictype/category-test: Likewise.
22707         * modules/unictype/combining-class: Likewise.
22708         * modules/unictype/ctype-alnum: Likewise.
22709         * modules/unictype/ctype-alpha: Likewise.
22710         * modules/unictype/ctype-blank: Likewise.
22711         * modules/unictype/ctype-cntrl: Likewise.
22712         * modules/unictype/ctype-digit: Likewise.
22713         * modules/unictype/ctype-graph: Likewise.
22714         * modules/unictype/ctype-lower: Likewise.
22715         * modules/unictype/ctype-print: Likewise.
22716         * modules/unictype/ctype-punct: Likewise.
22717         * modules/unictype/ctype-space: Likewise.
22718         * modules/unictype/ctype-upper: Likewise.
22719         * modules/unictype/ctype-xdigit: Likewise.
22720         * modules/unictype/decimal-digit: Likewise.
22721         * modules/unictype/digit: Likewise.
22722         * modules/unictype/mirror: Likewise.
22723         * modules/unictype/numeric: Likewise.
22724         * modules/unictype/property-alphabetic: Likewise.
22725         * modules/unictype/property-ascii-hex-digit: Likewise.
22726         * modules/unictype/property-bidi-arabic-digit: Likewise.
22727         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22728         * modules/unictype/property-bidi-block-separator: Likewise.
22729         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22730         * modules/unictype/property-bidi-common-separator: Likewise.
22731         * modules/unictype/property-bidi-control: Likewise.
22732         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22733         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22734         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22735         * modules/unictype/property-bidi-european-digit: Likewise.
22736         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22737         * modules/unictype/property-bidi-left-to-right: Likewise.
22738         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22739         * modules/unictype/property-bidi-other-neutral: Likewise.
22740         * modules/unictype/property-bidi-pdf: Likewise.
22741         * modules/unictype/property-bidi-segment-separator: Likewise.
22742         * modules/unictype/property-bidi-whitespace: Likewise.
22743         * modules/unictype/property-byname: Likewise.
22744         * modules/unictype/property-combining: Likewise.
22745         * modules/unictype/property-composite: Likewise.
22746         * modules/unictype/property-currency-symbol: Likewise.
22747         * modules/unictype/property-dash: Likewise.
22748         * modules/unictype/property-decimal-digit: Likewise.
22749         * modules/unictype/property-default-ignorable-code-point: Likewise.
22750         * modules/unictype/property-deprecated: Likewise.
22751         * modules/unictype/property-diacritic: Likewise.
22752         * modules/unictype/property-extender: Likewise.
22753         * modules/unictype/property-format-control: Likewise.
22754         * modules/unictype/property-grapheme-base: Likewise.
22755         * modules/unictype/property-grapheme-extend: Likewise.
22756         * modules/unictype/property-grapheme-link: Likewise.
22757         * modules/unictype/property-hex-digit: Likewise.
22758         * modules/unictype/property-hyphen: Likewise.
22759         * modules/unictype/property-id-continue: Likewise.
22760         * modules/unictype/property-id-start: Likewise.
22761         * modules/unictype/property-ideographic: Likewise.
22762         * modules/unictype/property-ids-binary-operator: Likewise.
22763         * modules/unictype/property-ids-trinary-operator: Likewise.
22764         * modules/unictype/property-ignorable-control: Likewise.
22765         * modules/unictype/property-iso-control: Likewise.
22766         * modules/unictype/property-join-control: Likewise.
22767         * modules/unictype/property-left-of-pair: Likewise.
22768         * modules/unictype/property-line-separator: Likewise.
22769         * modules/unictype/property-logical-order-exception: Likewise.
22770         * modules/unictype/property-lowercase: Likewise.
22771         * modules/unictype/property-math: Likewise.
22772         * modules/unictype/property-non-break: Likewise.
22773         * modules/unictype/property-not-a-character: Likewise.
22774         * modules/unictype/property-numeric: Likewise.
22775         * modules/unictype/property-other-alphabetic: Likewise.
22776         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22777         * modules/unictype/property-other-grapheme-extend: Likewise.
22778         * modules/unictype/property-other-id-continue: Likewise.
22779         * modules/unictype/property-other-id-start: Likewise.
22780         * modules/unictype/property-other-lowercase: Likewise.
22781         * modules/unictype/property-other-math: Likewise.
22782         * modules/unictype/property-other-uppercase: Likewise.
22783         * modules/unictype/property-paired-punctuation: Likewise.
22784         * modules/unictype/property-paragraph-separator: Likewise.
22785         * modules/unictype/property-pattern-syntax: Likewise.
22786         * modules/unictype/property-pattern-white-space: Likewise.
22787         * modules/unictype/property-private-use: Likewise.
22788         * modules/unictype/property-punctuation: Likewise.
22789         * modules/unictype/property-quotation-mark: Likewise.
22790         * modules/unictype/property-radical: Likewise.
22791         * modules/unictype/property-sentence-terminal: Likewise.
22792         * modules/unictype/property-soft-dotted: Likewise.
22793         * modules/unictype/property-space: Likewise.
22794         * modules/unictype/property-terminal-punctuation: Likewise.
22795         * modules/unictype/property-test: Likewise.
22796         * modules/unictype/property-titlecase: Likewise.
22797         * modules/unictype/property-unassigned-code-value: Likewise.
22798         * modules/unictype/property-unified-ideograph: Likewise.
22799         * modules/unictype/property-uppercase: Likewise.
22800         * modules/unictype/property-variation-selector: Likewise.
22801         * modules/unictype/property-white-space: Likewise.
22802         * modules/unictype/property-xid-continue: Likewise.
22803         * modules/unictype/property-xid-start: Likewise.
22804         * modules/unictype/property-zero-width: Likewise.
22805         * modules/unictype/scripts: Likewise.
22806         * modules/unictype/syntax-c-ident: Likewise.
22807         * modules/unictype/syntax-c-whitespace: Likewise.
22808         * modules/unictype/syntax-java-ident: Likewise.
22809         * modules/unictype/syntax-java-whitespace: Likewise.
22810         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22811         * modules/unilbrk/u8-width-linebreaks: Likewise.
22812         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22813         * modules/unilbrk/u16-width-linebreaks: Likewise.
22814         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22815         * modules/unilbrk/u32-width-linebreaks: Likewise.
22816         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22817         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22818         * modules/uniname/uniname: Likewise.
22819         * modules/uninorm/canonical-decomposition: Likewise.
22820         * modules/uninorm/composition: Likewise.
22821         * modules/uninorm/decomposing-form: Likewise.
22822         * modules/uninorm/decomposition: Likewise.
22823         * modules/uninorm/filter: Likewise.
22824         * modules/uninorm/nfc: Likewise.
22825         * modules/uninorm/nfd: Likewise.
22826         * modules/uninorm/nfkc: Likewise.
22827         * modules/uninorm/nfkd: Likewise.
22828         * modules/uninorm/u8-normalize: Likewise.
22829         * modules/uninorm/u8-normcmp: Likewise.
22830         * modules/uninorm/u8-normcoll: Likewise.
22831         * modules/uninorm/u8-normxfrm: Likewise.
22832         * modules/uninorm/u16-normalize: Likewise.
22833         * modules/uninorm/u16-normcmp: Likewise.
22834         * modules/uninorm/u16-normcoll: Likewise.
22835         * modules/uninorm/u16-normxfrm: Likewise.
22836         * modules/uninorm/u32-normalize: Likewise.
22837         * modules/uninorm/u32-normcmp: Likewise.
22838         * modules/uninorm/u32-normcoll: Likewise.
22839         * modules/uninorm/u32-normxfrm: Likewise.
22840         * modules/unistdio/u8-asnprintf: Likewise.
22841         * modules/unistdio/u8-asprintf: Likewise.
22842         * modules/unistdio/u8-snprintf: Likewise.
22843         * modules/unistdio/u8-sprintf: Likewise.
22844         * modules/unistdio/u8-u8-asnprintf: Likewise.
22845         * modules/unistdio/u8-u8-asprintf: Likewise.
22846         * modules/unistdio/u8-u8-snprintf: Likewise.
22847         * modules/unistdio/u8-u8-sprintf: Likewise.
22848         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22849         * modules/unistdio/u8-u8-vasprintf: Likewise.
22850         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22851         * modules/unistdio/u8-u8-vsprintf: Likewise.
22852         * modules/unistdio/u8-vasnprintf: Likewise.
22853         * modules/unistdio/u8-vasprintf: Likewise.
22854         * modules/unistdio/u8-vsnprintf: Likewise.
22855         * modules/unistdio/u8-vsprintf: Likewise.
22856         * modules/unistdio/u16-asnprintf: Likewise.
22857         * modules/unistdio/u16-asprintf: Likewise.
22858         * modules/unistdio/u16-snprintf: Likewise.
22859         * modules/unistdio/u16-sprintf: Likewise.
22860         * modules/unistdio/u16-u16-asnprintf: Likewise.
22861         * modules/unistdio/u16-u16-asprintf: Likewise.
22862         * modules/unistdio/u16-u16-snprintf: Likewise.
22863         * modules/unistdio/u16-u16-sprintf: Likewise.
22864         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22865         * modules/unistdio/u16-u16-vasprintf: Likewise.
22866         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22867         * modules/unistdio/u16-u16-vsprintf: Likewise.
22868         * modules/unistdio/u16-vasnprintf: Likewise.
22869         * modules/unistdio/u16-vasprintf: Likewise.
22870         * modules/unistdio/u16-vsnprintf: Likewise.
22871         * modules/unistdio/u16-vsprintf: Likewise.
22872         * modules/unistdio/u32-asnprintf: Likewise.
22873         * modules/unistdio/u32-asprintf: Likewise.
22874         * modules/unistdio/u32-snprintf: Likewise.
22875         * modules/unistdio/u32-sprintf: Likewise.
22876         * modules/unistdio/u32-u32-asnprintf: Likewise.
22877         * modules/unistdio/u32-u32-asprintf: Likewise.
22878         * modules/unistdio/u32-u32-snprintf: Likewise.
22879         * modules/unistdio/u32-u32-sprintf: Likewise.
22880         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22881         * modules/unistdio/u32-u32-vasprintf: Likewise.
22882         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22883         * modules/unistdio/u32-u32-vsprintf: Likewise.
22884         * modules/unistdio/u32-vasnprintf: Likewise.
22885         * modules/unistdio/u32-vasprintf: Likewise.
22886         * modules/unistdio/u32-vsnprintf: Likewise.
22887         * modules/unistdio/u32-vsprintf: Likewise.
22888         * modules/unistdio/ulc-asnprintf: Likewise.
22889         * modules/unistdio/ulc-asprintf: Likewise.
22890         * modules/unistdio/ulc-fprintf: Likewise.
22891         * modules/unistdio/ulc-snprintf: Likewise.
22892         * modules/unistdio/ulc-sprintf: Likewise.
22893         * modules/unistdio/ulc-vasnprintf: Likewise.
22894         * modules/unistdio/ulc-vasprintf: Likewise.
22895         * modules/unistdio/ulc-vfprintf: Likewise.
22896         * modules/unistdio/ulc-vsnprintf: Likewise.
22897         * modules/unistdio/ulc-vsprintf: Likewise.
22898         * modules/unistr/u8-check: Likewise.
22899         * modules/unistr/u8-chr: Likewise.
22900         * modules/unistr/u8-cmp: Likewise.
22901         * modules/unistr/u8-cmp2: Likewise.
22902         * modules/unistr/u8-cpy: Likewise.
22903         * modules/unistr/u8-cpy-alloc: Likewise.
22904         * modules/unistr/u8-endswith: Likewise.
22905         * modules/unistr/u8-mblen: Likewise.
22906         * modules/unistr/u8-mbsnlen: Likewise.
22907         * modules/unistr/u8-mbtouc: Likewise.
22908         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22909         * modules/unistr/u8-mbtoucr: Likewise.
22910         * modules/unistr/u8-move: Likewise.
22911         * modules/unistr/u8-next: Likewise.
22912         * modules/unistr/u8-prev: Likewise.
22913         * modules/unistr/u8-set: Likewise.
22914         * modules/unistr/u8-startswith: Likewise.
22915         * modules/unistr/u8-stpcpy: Likewise.
22916         * modules/unistr/u8-stpncpy: Likewise.
22917         * modules/unistr/u8-strcat: Likewise.
22918         * modules/unistr/u8-strchr: Likewise.
22919         * modules/unistr/u8-strcmp: Likewise.
22920         * modules/unistr/u8-strcoll: Likewise.
22921         * modules/unistr/u8-strcpy: Likewise.
22922         * modules/unistr/u8-strcspn: Likewise.
22923         * modules/unistr/u8-strdup: Likewise.
22924         * modules/unistr/u8-strlen: Likewise.
22925         * modules/unistr/u8-strmblen: Likewise.
22926         * modules/unistr/u8-strmbtouc: Likewise.
22927         * modules/unistr/u8-strncat: Likewise.
22928         * modules/unistr/u8-strncmp: Likewise.
22929         * modules/unistr/u8-strncpy: Likewise.
22930         * modules/unistr/u8-strnlen: Likewise.
22931         * modules/unistr/u8-strpbrk: Likewise.
22932         * modules/unistr/u8-strrchr: Likewise.
22933         * modules/unistr/u8-strspn: Likewise.
22934         * modules/unistr/u8-strstr: Likewise.
22935         * modules/unistr/u8-strtok: Likewise.
22936         * modules/unistr/u8-to-u16: Likewise.
22937         * modules/unistr/u8-to-u32: Likewise.
22938         * modules/unistr/u8-uctomb: Likewise.
22939         * modules/unistr/u16-check: Likewise.
22940         * modules/unistr/u16-chr: Likewise.
22941         * modules/unistr/u16-cmp: Likewise.
22942         * modules/unistr/u16-cmp2: Likewise.
22943         * modules/unistr/u16-cpy: Likewise.
22944         * modules/unistr/u16-cpy-alloc: Likewise.
22945         * modules/unistr/u16-endswith: Likewise.
22946         * modules/unistr/u16-mblen: Likewise.
22947         * modules/unistr/u16-mbsnlen: Likewise.
22948         * modules/unistr/u16-mbtouc: Likewise.
22949         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22950         * modules/unistr/u16-mbtoucr: Likewise.
22951         * modules/unistr/u16-move: Likewise.
22952         * modules/unistr/u16-next: Likewise.
22953         * modules/unistr/u16-prev: Likewise.
22954         * modules/unistr/u16-set: Likewise.
22955         * modules/unistr/u16-startswith: Likewise.
22956         * modules/unistr/u16-stpcpy: Likewise.
22957         * modules/unistr/u16-stpncpy: Likewise.
22958         * modules/unistr/u16-strcat: Likewise.
22959         * modules/unistr/u16-strchr: Likewise.
22960         * modules/unistr/u16-strcmp: Likewise.
22961         * modules/unistr/u16-strcoll: Likewise.
22962         * modules/unistr/u16-strcpy: Likewise.
22963         * modules/unistr/u16-strcspn: Likewise.
22964         * modules/unistr/u16-strdup: Likewise.
22965         * modules/unistr/u16-strlen: Likewise.
22966         * modules/unistr/u16-strmblen: Likewise.
22967         * modules/unistr/u16-strmbtouc: Likewise.
22968         * modules/unistr/u16-strncat: Likewise.
22969         * modules/unistr/u16-strncmp: Likewise.
22970         * modules/unistr/u16-strncpy: Likewise.
22971         * modules/unistr/u16-strnlen: Likewise.
22972         * modules/unistr/u16-strpbrk: Likewise.
22973         * modules/unistr/u16-strrchr: Likewise.
22974         * modules/unistr/u16-strspn: Likewise.
22975         * modules/unistr/u16-strstr: Likewise.
22976         * modules/unistr/u16-strtok: Likewise.
22977         * modules/unistr/u16-to-u32: Likewise.
22978         * modules/unistr/u16-to-u8: Likewise.
22979         * modules/unistr/u16-uctomb: Likewise.
22980         * modules/unistr/u32-check: Likewise.
22981         * modules/unistr/u32-chr: Likewise.
22982         * modules/unistr/u32-cmp: Likewise.
22983         * modules/unistr/u32-cmp2: Likewise.
22984         * modules/unistr/u32-cpy: Likewise.
22985         * modules/unistr/u32-cpy-alloc: Likewise.
22986         * modules/unistr/u32-endswith: Likewise.
22987         * modules/unistr/u32-mblen: Likewise.
22988         * modules/unistr/u32-mbsnlen: Likewise.
22989         * modules/unistr/u32-mbtouc: Likewise.
22990         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22991         * modules/unistr/u32-mbtoucr: Likewise.
22992         * modules/unistr/u32-move: Likewise.
22993         * modules/unistr/u32-next: Likewise.
22994         * modules/unistr/u32-prev: Likewise.
22995         * modules/unistr/u32-set: Likewise.
22996         * modules/unistr/u32-startswith: Likewise.
22997         * modules/unistr/u32-stpcpy: Likewise.
22998         * modules/unistr/u32-stpncpy: Likewise.
22999         * modules/unistr/u32-strcat: Likewise.
23000         * modules/unistr/u32-strchr: Likewise.
23001         * modules/unistr/u32-strcmp: Likewise.
23002         * modules/unistr/u32-strcoll: Likewise.
23003         * modules/unistr/u32-strcpy: Likewise.
23004         * modules/unistr/u32-strcspn: Likewise.
23005         * modules/unistr/u32-strdup: Likewise.
23006         * modules/unistr/u32-strlen: Likewise.
23007         * modules/unistr/u32-strmblen: Likewise.
23008         * modules/unistr/u32-strmbtouc: Likewise.
23009         * modules/unistr/u32-strncat: Likewise.
23010         * modules/unistr/u32-strncmp: Likewise.
23011         * modules/unistr/u32-strncpy: Likewise.
23012         * modules/unistr/u32-strnlen: Likewise.
23013         * modules/unistr/u32-strpbrk: Likewise.
23014         * modules/unistr/u32-strrchr: Likewise.
23015         * modules/unistr/u32-strspn: Likewise.
23016         * modules/unistr/u32-strstr: Likewise.
23017         * modules/unistr/u32-strtok: Likewise.
23018         * modules/unistr/u32-to-u16: Likewise.
23019         * modules/unistr/u32-to-u8: Likewise.
23020         * modules/unistr/u32-uctomb: Likewise.
23021         * modules/uniwbrk/u8-wordbreaks: Likewise.
23022         * modules/uniwbrk/u16-wordbreaks: Likewise.
23023         * modules/uniwbrk/u32-wordbreaks: Likewise.
23024         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23025         * modules/uniwbrk/wordbreak-property: Likewise.
23026         * modules/uniwidth/u8-strwidth: Likewise.
23027         * modules/uniwidth/u8-width: Likewise.
23028         * modules/uniwidth/u16-strwidth: Likewise.
23029         * modules/uniwidth/u16-width: Likewise.
23030         * modules/uniwidth/u32-strwidth: Likewise.
23031         * modules/uniwidth/u32-width: Likewise.
23032         * modules/uniwidth/width: Likewise.
23033         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23034         with $(LIBUNISTRING).
23035         * modules/unicase/ignorable-tests: Likewise.
23036         * modules/unicase/locale-language-tests: Likewise.
23037         * modules/unicase/tolower-tests: Likewise.
23038         * modules/unicase/totitle-tests: Likewise.
23039         * modules/unicase/toupper-tests: Likewise.
23040         * modules/unicase/u8-casecmp-tests: Likewise.
23041         * modules/unicase/u8-casecoll-tests: Likewise.
23042         * modules/unicase/u8-casefold-tests: Likewise.
23043         * modules/unicase/u8-is-cased-tests: Likewise.
23044         * modules/unicase/u8-is-casefolded-tests: Likewise.
23045         * modules/unicase/u8-is-lowercase-tests: Likewise.
23046         * modules/unicase/u8-is-titlecase-tests: Likewise.
23047         * modules/unicase/u8-is-uppercase-tests: Likewise.
23048         * modules/unicase/u8-tolower-tests: Likewise.
23049         * modules/unicase/u8-totitle-tests: Likewise.
23050         * modules/unicase/u8-toupper-tests: Likewise.
23051         * modules/unicase/u16-casecmp-tests: Likewise.
23052         * modules/unicase/u16-casecoll-tests: Likewise.
23053         * modules/unicase/u16-casefold-tests: Likewise.
23054         * modules/unicase/u16-is-cased-tests: Likewise.
23055         * modules/unicase/u16-is-casefolded-tests: Likewise.
23056         * modules/unicase/u16-is-lowercase-tests: Likewise.
23057         * modules/unicase/u16-is-titlecase-tests: Likewise.
23058         * modules/unicase/u16-is-uppercase-tests: Likewise.
23059         * modules/unicase/u16-tolower-tests: Likewise.
23060         * modules/unicase/u16-totitle-tests: Likewise.
23061         * modules/unicase/u16-toupper-tests: Likewise.
23062         * modules/unicase/u32-casecmp-tests: Likewise.
23063         * modules/unicase/u32-casecoll-tests: Likewise.
23064         * modules/unicase/u32-casefold-tests: Likewise.
23065         * modules/unicase/u32-is-cased-tests: Likewise.
23066         * modules/unicase/u32-is-casefolded-tests: Likewise.
23067         * modules/unicase/u32-is-lowercase-tests: Likewise.
23068         * modules/unicase/u32-is-titlecase-tests: Likewise.
23069         * modules/unicase/u32-is-uppercase-tests: Likewise.
23070         * modules/unicase/u32-tolower-tests: Likewise.
23071         * modules/unicase/u32-totitle-tests: Likewise.
23072         * modules/unicase/u32-toupper-tests: Likewise.
23073         * modules/unicase/ulc-casecmp-tests: Likewise.
23074         * modules/unicase/ulc-casecoll-tests: Likewise.
23075         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23076         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23077         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23078         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23079         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23080         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23081         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23082         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23083         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23084         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23085         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23086         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23087         * modules/unictype/bidicategory-byname-tests: Likewise.
23088         * modules/unictype/bidicategory-name-tests: Likewise.
23089         * modules/unictype/bidicategory-of-tests: Likewise.
23090         * modules/unictype/bidicategory-test-tests: Likewise.
23091         * modules/unictype/block-list-tests: Likewise.
23092         * modules/unictype/block-of-tests: Likewise.
23093         * modules/unictype/block-test-tests: Likewise.
23094         * modules/unictype/category-C-tests: Likewise.
23095         * modules/unictype/category-Cc-tests: Likewise.
23096         * modules/unictype/category-Cf-tests: Likewise.
23097         * modules/unictype/category-Cn-tests: Likewise.
23098         * modules/unictype/category-Co-tests: Likewise.
23099         * modules/unictype/category-Cs-tests: Likewise.
23100         * modules/unictype/category-L-tests: Likewise.
23101         * modules/unictype/category-Ll-tests: Likewise.
23102         * modules/unictype/category-Lm-tests: Likewise.
23103         * modules/unictype/category-Lo-tests: Likewise.
23104         * modules/unictype/category-Lt-tests: Likewise.
23105         * modules/unictype/category-Lu-tests: Likewise.
23106         * modules/unictype/category-M-tests: Likewise.
23107         * modules/unictype/category-Mc-tests: Likewise.
23108         * modules/unictype/category-Me-tests: Likewise.
23109         * modules/unictype/category-Mn-tests: Likewise.
23110         * modules/unictype/category-N-tests: Likewise.
23111         * modules/unictype/category-Nd-tests: Likewise.
23112         * modules/unictype/category-Nl-tests: Likewise.
23113         * modules/unictype/category-No-tests: Likewise.
23114         * modules/unictype/category-P-tests: Likewise.
23115         * modules/unictype/category-Pc-tests: Likewise.
23116         * modules/unictype/category-Pd-tests: Likewise.
23117         * modules/unictype/category-Pe-tests: Likewise.
23118         * modules/unictype/category-Pf-tests: Likewise.
23119         * modules/unictype/category-Pi-tests: Likewise.
23120         * modules/unictype/category-Po-tests: Likewise.
23121         * modules/unictype/category-Ps-tests: Likewise.
23122         * modules/unictype/category-S-tests: Likewise.
23123         * modules/unictype/category-Sc-tests: Likewise.
23124         * modules/unictype/category-Sk-tests: Likewise.
23125         * modules/unictype/category-Sm-tests: Likewise.
23126         * modules/unictype/category-So-tests: Likewise.
23127         * modules/unictype/category-Z-tests: Likewise.
23128         * modules/unictype/category-Zl-tests: Likewise.
23129         * modules/unictype/category-Zp-tests: Likewise.
23130         * modules/unictype/category-Zs-tests: Likewise.
23131         * modules/unictype/category-and-not-tests: Likewise.
23132         * modules/unictype/category-and-tests: Likewise.
23133         * modules/unictype/category-byname-tests: Likewise.
23134         * modules/unictype/category-name-tests: Likewise.
23135         * modules/unictype/category-none-tests: Likewise.
23136         * modules/unictype/category-of-tests: Likewise.
23137         * modules/unictype/category-or-tests: Likewise.
23138         * modules/unictype/category-test-withtable-tests: Likewise.
23139         * modules/unictype/combining-class-tests: Likewise.
23140         * modules/unictype/ctype-alnum-tests: Likewise.
23141         * modules/unictype/ctype-alpha-tests: Likewise.
23142         * modules/unictype/ctype-blank-tests: Likewise.
23143         * modules/unictype/ctype-cntrl-tests: Likewise.
23144         * modules/unictype/ctype-digit-tests: Likewise.
23145         * modules/unictype/ctype-graph-tests: Likewise.
23146         * modules/unictype/ctype-lower-tests: Likewise.
23147         * modules/unictype/ctype-print-tests: Likewise.
23148         * modules/unictype/ctype-punct-tests: Likewise.
23149         * modules/unictype/ctype-space-tests: Likewise.
23150         * modules/unictype/ctype-upper-tests: Likewise.
23151         * modules/unictype/ctype-xdigit-tests: Likewise.
23152         * modules/unictype/decimal-digit-tests: Likewise.
23153         * modules/unictype/digit-tests: Likewise.
23154         * modules/unictype/mirror-tests: Likewise.
23155         * modules/unictype/numeric-tests: Likewise.
23156         * modules/unictype/property-alphabetic-tests: Likewise.
23157         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23158         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23159         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23160         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23161         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23162         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23163         * modules/unictype/property-bidi-control-tests: Likewise.
23164         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23165         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23166         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23167         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23168         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23169         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23170         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23171         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23172         * modules/unictype/property-bidi-pdf-tests: Likewise.
23173         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23174         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23175         * modules/unictype/property-byname-tests: Likewise.
23176         * modules/unictype/property-combining-tests: Likewise.
23177         * modules/unictype/property-composite-tests: Likewise.
23178         * modules/unictype/property-currency-symbol-tests: Likewise.
23179         * modules/unictype/property-dash-tests: Likewise.
23180         * modules/unictype/property-decimal-digit-tests: Likewise.
23181         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23182         * modules/unictype/property-deprecated-tests: Likewise.
23183         * modules/unictype/property-diacritic-tests: Likewise.
23184         * modules/unictype/property-extender-tests: Likewise.
23185         * modules/unictype/property-format-control-tests: Likewise.
23186         * modules/unictype/property-grapheme-base-tests: Likewise.
23187         * modules/unictype/property-grapheme-extend-tests: Likewise.
23188         * modules/unictype/property-grapheme-link-tests: Likewise.
23189         * modules/unictype/property-hex-digit-tests: Likewise.
23190         * modules/unictype/property-hyphen-tests: Likewise.
23191         * modules/unictype/property-id-continue-tests: Likewise.
23192         * modules/unictype/property-id-start-tests: Likewise.
23193         * modules/unictype/property-ideographic-tests: Likewise.
23194         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23195         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23196         * modules/unictype/property-ignorable-control-tests: Likewise.
23197         * modules/unictype/property-iso-control-tests: Likewise.
23198         * modules/unictype/property-join-control-tests: Likewise.
23199         * modules/unictype/property-left-of-pair-tests: Likewise.
23200         * modules/unictype/property-line-separator-tests: Likewise.
23201         * modules/unictype/property-logical-order-exception-tests: Likewise.
23202         * modules/unictype/property-lowercase-tests: Likewise.
23203         * modules/unictype/property-math-tests: Likewise.
23204         * modules/unictype/property-non-break-tests: Likewise.
23205         * modules/unictype/property-not-a-character-tests: Likewise.
23206         * modules/unictype/property-numeric-tests: Likewise.
23207         * modules/unictype/property-other-alphabetic-tests: Likewise.
23208         * modules/unictype/property-other-default-ignorable-code-point-tests:
23209         Likewise.
23210         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23211         * modules/unictype/property-other-id-continue-tests: Likewise.
23212         * modules/unictype/property-other-id-start-tests: Likewise.
23213         * modules/unictype/property-other-lowercase-tests: Likewise.
23214         * modules/unictype/property-other-math-tests: Likewise.
23215         * modules/unictype/property-other-uppercase-tests: Likewise.
23216         * modules/unictype/property-paired-punctuation-tests: Likewise.
23217         * modules/unictype/property-paragraph-separator-tests: Likewise.
23218         * modules/unictype/property-pattern-syntax-tests: Likewise.
23219         * modules/unictype/property-pattern-white-space-tests: Likewise.
23220         * modules/unictype/property-private-use-tests: Likewise.
23221         * modules/unictype/property-punctuation-tests: Likewise.
23222         * modules/unictype/property-quotation-mark-tests: Likewise.
23223         * modules/unictype/property-radical-tests: Likewise.
23224         * modules/unictype/property-sentence-terminal-tests: Likewise.
23225         * modules/unictype/property-soft-dotted-tests: Likewise.
23226         * modules/unictype/property-space-tests: Likewise.
23227         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23228         * modules/unictype/property-test-tests: Likewise.
23229         * modules/unictype/property-titlecase-tests: Likewise.
23230         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23231         * modules/unictype/property-unified-ideograph-tests: Likewise.
23232         * modules/unictype/property-uppercase-tests: Likewise.
23233         * modules/unictype/property-variation-selector-tests: Likewise.
23234         * modules/unictype/property-white-space-tests: Likewise.
23235         * modules/unictype/property-xid-continue-tests: Likewise.
23236         * modules/unictype/property-xid-start-tests: Likewise.
23237         * modules/unictype/property-zero-width-tests: Likewise.
23238         * modules/unictype/scripts-tests: Likewise.
23239         * modules/unictype/syntax-c-ident-tests: Likewise.
23240         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23241         * modules/unictype/syntax-java-ident-tests: Likewise.
23242         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23243         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23244         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23245         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23246         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23247         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23248         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23249         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23250         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23251         * modules/uniname/uniname-tests: Likewise.
23252         * modules/uninorm/canonical-decomposition-tests: Likewise.
23253         * modules/uninorm/compat-decomposition-tests: Likewise.
23254         * modules/uninorm/composition-tests: Likewise.
23255         * modules/uninorm/decomposing-form-tests: Likewise.
23256         * modules/uninorm/decomposition-tests: Likewise.
23257         * modules/uninorm/filter-tests: Likewise.
23258         * modules/uninorm/nfc-tests: Likewise.
23259         * modules/uninorm/nfd-tests: Likewise.
23260         * modules/uninorm/nfkc-tests: Likewise.
23261         * modules/uninorm/nfkd-tests: Likewise.
23262         * modules/uninorm/u8-normcmp-tests: Likewise.
23263         * modules/uninorm/u8-normcoll-tests: Likewise.
23264         * modules/uninorm/u16-normcmp-tests: Likewise.
23265         * modules/uninorm/u16-normcoll-tests: Likewise.
23266         * modules/uninorm/u32-normcmp-tests: Likewise.
23267         * modules/uninorm/u32-normcoll-tests: Likewise.
23268         * modules/unistdio/u8-asnprintf-tests: Likewise.
23269         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23270         * modules/unistdio/u8-vasprintf-tests: Likewise.
23271         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23272         * modules/unistdio/u8-vsprintf-tests: Likewise.
23273         * modules/unistdio/u16-asnprintf-tests: Likewise.
23274         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23275         * modules/unistdio/u16-vasprintf-tests: Likewise.
23276         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23277         * modules/unistdio/u16-vsprintf-tests: Likewise.
23278         * modules/unistdio/u32-asnprintf-tests: Likewise.
23279         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23280         * modules/unistdio/u32-vasprintf-tests: Likewise.
23281         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23282         * modules/unistdio/u32-vsprintf-tests: Likewise.
23283         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23284         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23285         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23286         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23287         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23288         * modules/unistr/u8-check-tests: Likewise.
23289         * modules/unistr/u8-chr-tests: Likewise.
23290         * modules/unistr/u8-cmp-tests: Likewise.
23291         * modules/unistr/u8-cmp2-tests: Likewise.
23292         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23293         * modules/unistr/u8-cpy-tests: Likewise.
23294         * modules/unistr/u8-mblen-tests: Likewise.
23295         * modules/unistr/u8-mbsnlen-tests: Likewise.
23296         * modules/unistr/u8-mbtouc-tests: Likewise.
23297         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23298         * modules/unistr/u8-mbtoucr-tests: Likewise.
23299         * modules/unistr/u8-move-tests: Likewise.
23300         * modules/unistr/u8-next-tests: Likewise.
23301         * modules/unistr/u8-prev-tests: Likewise.
23302         * modules/unistr/u8-set-tests: Likewise.
23303         * modules/unistr/u8-stpcpy-tests: Likewise.
23304         * modules/unistr/u8-stpncpy-tests: Likewise.
23305         * modules/unistr/u8-strcat-tests: Likewise.
23306         * modules/unistr/u8-strcmp-tests: Likewise.
23307         * modules/unistr/u8-strcoll-tests: Likewise.
23308         * modules/unistr/u8-strcpy-tests: Likewise.
23309         * modules/unistr/u8-strdup-tests: Likewise.
23310         * modules/unistr/u8-strlen-tests: Likewise.
23311         * modules/unistr/u8-strmblen-tests: Likewise.
23312         * modules/unistr/u8-strmbtouc-tests: Likewise.
23313         * modules/unistr/u8-strncat-tests: Likewise.
23314         * modules/unistr/u8-strncmp-tests: Likewise.
23315         * modules/unistr/u8-strncpy-tests: Likewise.
23316         * modules/unistr/u8-strnlen-tests: Likewise.
23317         * modules/unistr/u8-to-u16-tests: Likewise.
23318         * modules/unistr/u8-to-u32-tests: Likewise.
23319         * modules/unistr/u8-uctomb-tests: Likewise.
23320         * modules/unistr/u16-check-tests: Likewise.
23321         * modules/unistr/u16-chr-tests: Likewise.
23322         * modules/unistr/u16-cmp-tests: Likewise.
23323         * modules/unistr/u16-cmp2-tests: Likewise.
23324         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23325         * modules/unistr/u16-cpy-tests: Likewise.
23326         * modules/unistr/u16-mblen-tests: Likewise.
23327         * modules/unistr/u16-mbsnlen-tests: Likewise.
23328         * modules/unistr/u16-mbtouc-tests: Likewise.
23329         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23330         * modules/unistr/u16-mbtoucr-tests: Likewise.
23331         * modules/unistr/u16-move-tests: Likewise.
23332         * modules/unistr/u16-next-tests: Likewise.
23333         * modules/unistr/u16-prev-tests: Likewise.
23334         * modules/unistr/u16-set-tests: Likewise.
23335         * modules/unistr/u16-stpcpy-tests: Likewise.
23336         * modules/unistr/u16-stpncpy-tests: Likewise.
23337         * modules/unistr/u16-strcat-tests: Likewise.
23338         * modules/unistr/u16-strcmp-tests: Likewise.
23339         * modules/unistr/u16-strcoll-tests: Likewise.
23340         * modules/unistr/u16-strcpy-tests: Likewise.
23341         * modules/unistr/u16-strdup-tests: Likewise.
23342         * modules/unistr/u16-strlen-tests: Likewise.
23343         * modules/unistr/u16-strmblen-tests: Likewise.
23344         * modules/unistr/u16-strmbtouc-tests: Likewise.
23345         * modules/unistr/u16-strncat-tests: Likewise.
23346         * modules/unistr/u16-strncmp-tests: Likewise.
23347         * modules/unistr/u16-strncpy-tests: Likewise.
23348         * modules/unistr/u16-strnlen-tests: Likewise.
23349         * modules/unistr/u16-to-u32-tests: Likewise.
23350         * modules/unistr/u16-to-u8-tests: Likewise.
23351         * modules/unistr/u16-uctomb-tests: Likewise.
23352         * modules/unistr/u32-check-tests: Likewise.
23353         * modules/unistr/u32-chr-tests: Likewise.
23354         * modules/unistr/u32-cmp-tests: Likewise.
23355         * modules/unistr/u32-cmp2-tests: Likewise.
23356         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23357         * modules/unistr/u32-cpy-tests: Likewise.
23358         * modules/unistr/u32-mblen-tests: Likewise.
23359         * modules/unistr/u32-mbsnlen-tests: Likewise.
23360         * modules/unistr/u32-mbtouc-tests: Likewise.
23361         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23362         * modules/unistr/u32-mbtoucr-tests: Likewise.
23363         * modules/unistr/u32-move-tests: Likewise.
23364         * modules/unistr/u32-next-tests: Likewise.
23365         * modules/unistr/u32-prev-tests: Likewise.
23366         * modules/unistr/u32-set-tests: Likewise.
23367         * modules/unistr/u32-stpcpy-tests: Likewise.
23368         * modules/unistr/u32-stpncpy-tests: Likewise.
23369         * modules/unistr/u32-strcat-tests: Likewise.
23370         * modules/unistr/u32-strcmp-tests: Likewise.
23371         * modules/unistr/u32-strcoll-tests: Likewise.
23372         * modules/unistr/u32-strcpy-tests: Likewise.
23373         * modules/unistr/u32-strdup-tests: Likewise.
23374         * modules/unistr/u32-strlen-tests: Likewise.
23375         * modules/unistr/u32-strmblen-tests: Likewise.
23376         * modules/unistr/u32-strmbtouc-tests: Likewise.
23377         * modules/unistr/u32-strncat-tests: Likewise.
23378         * modules/unistr/u32-strncmp-tests: Likewise.
23379         * modules/unistr/u32-strncpy-tests: Likewise.
23380         * modules/unistr/u32-strnlen-tests: Likewise.
23381         * modules/unistr/u32-to-u16-tests: Likewise.
23382         * modules/unistr/u32-to-u8-tests: Likewise.
23383         * modules/unistr/u32-uctomb-tests: Likewise.
23384         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23385         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23386         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23387         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23388         * modules/uniwidth/u8-strwidth-tests: Likewise.
23389         * modules/uniwidth/u8-width-tests: Likewise.
23390         * modules/uniwidth/u16-strwidth-tests: Likewise.
23391         * modules/uniwidth/u16-width-tests: Likewise.
23392         * modules/uniwidth/u32-strwidth-tests: Likewise.
23393         * modules/uniwidth/u32-width-tests: Likewise.
23394         * modules/uniwidth/width-tests: Likewise.
23395
23396 2010-05-18  Richard Jones  <rjones@redhat.com>
23397
23398         doc: users.txt: list hivex
23399         * users.txt: Add hivex.
23400
23401 2010-05-18  Richard Jones  <rjones@redhat.com>
23402
23403         doc: users.txt: list febootstrap
23404         * users.txt: Add febootstrap.
23405
23406 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23407
23408         bootstrap: fix an error when gnulib is not used as a git submodule
23409         * build-aux/bootstrap (gnulib_path): If its length is zero then
23410         assign "gnulib" to it.
23411         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23412
23413 2010-05-16  Bruno Haible  <bruno@clisp.org>
23414
23415         Avoid autoconf warnings about AM_ICONV.
23416         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23417         2.64.
23418
23419 2010-05-16  Bruno Haible  <bruno@clisp.org>
23420
23421         absolute-header: Make the macro usable in more situations.
23422         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23423         from gl_ABSOLUTE_HEADER.
23424         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23425
23426 2010-05-16  James Youngman  <jay@gnu.org>
23427
23428         doc: update users.txt
23429         * users.txt: Add CSSC.
23430
23431 2010-05-16  Jim Meyering  <meyering@redhat.com>
23432
23433         init.sh: fix an error in the previous change; add more comments
23434         * tests/init.sh: Compare exit code in loop against 9, not 2.
23435         Patch by Bruno Haible.
23436         Make the two tests more similar by adding an empty "then" clause.
23437         Add comments.
23438
23439         init.sh: avoid unnecessary shell re-exec
23440         * tests/init.sh: Improve the re-exec-required check to first test the
23441         current shell.  If it passes the test, do not search for a shell that
23442         does pass, and do not re-exec.  This test is particularly contorted to
23443         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23444         of $(...) evokes a syntax error and causes immediate shell exit with
23445         status 2.  Bruno Haible reported that the re-exec made it impossible
23446         to single-step through any init.sh-using script.
23447
23448 2010-05-16  Bruno Haible  <bruno@clisp.org>
23449
23450         Fix collision between gnulib's and libintl's printf replacements.
23451         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23452         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23453         (printf): When using GNU C, map the __printf__ function to rpl_printf
23454         via __asm__. When not using GNU C, define rpl_printf instead of
23455         __printf__.
23456         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23457         commit.
23458         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23459         commit.
23460         * m4/asm-underscore.m4: New file.
23461         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23462         * modules/stdio (Files): Add m4/asm-underscore.m4.
23463         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23464         Reported by Ben Pfaff.
23465
23466 2010-05-16  Bruno Haible  <bruno@clisp.org>
23467
23468         verify: Avoid skipping the test on openSUSE 11.0.
23469         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23470
23471 2010-05-13  Bruno Haible  <bruno@clisp.org>
23472
23473         Avoid useless warnings from G++.
23474         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23475         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23476         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23477
23478 2010-05-11  Jim Meyering  <meyering@redhat.com>
23479
23480         maint.mk: tweak preceding change
23481         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23482         regexps tighter by anchoring at EOL, and make the new group "shy"
23483         for slightly decreased overhead.
23484
23485 2010-05-11  Eric Blake  <eblake@redhat.com>
23486
23487         maint.mk: gnulib doesn't guarantee NSIG
23488         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23489
23490 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23491
23492         test-pwrite.c: Remove unused variable declaration.
23493         * tests/test-pwrite.c (main): Remove read_buf declaration.
23494
23495         Remove useless test-pwrite.sh file.
23496         * tests/test-pwrite.sh: Delete file.
23497         * modules/pwrite-tests: Remove references.
23498         Reported by Bruno Haible.
23499
23500 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23501
23502         init.sh: fix a typo
23503         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23504
23505 2010-05-10  Jim Meyering  <meyering@redhat.com>
23506
23507         maint.mk: avoid using a temporary file in the always-defined-macros check
23508         * top/maint.mk (.re-defmac): Remove rule.
23509         (gl_trap_): Remove definition.
23510         (sc_prohibit_always-defined_macros): Rewrite not to create and
23511         depend on a temporary file.  Instead, depend on GNU grep's ability
23512         to read a list of regular expressions from stdin when given "-f -".
23513
23514 2010-05-09  Bruno Haible  <bruno@clisp.org>
23515
23516         Update to GNU gettext 0.18, part 1.
23517         * m4/gettext.m4: Update to GNU gettext 0.18.
23518         * m4/intl.m4: Likewise.
23519         * m4/po.m4: Likewise.
23520         * modules/gettext (Files): Add m4/fcntl-o.m4.
23521         (configure.ac): Require gettext infrastructure from version 0.18.
23522
23523 2010-05-09  Jim Meyering  <meyering@redhat.com>
23524
23525         init.sh: enable MALLOC_PERTURB_
23526         * tests/init.sh: Enable glibc's malloc-perturbing option.
23527
23528         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23529         With my recent change in init.sh from the two-line form:
23530             -#   : ${srcdir=.}
23531             -#   . "$srcdir/init.sh"; path_prepend_ .
23532             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23533         I noticed that using the one-line form would cause this test
23534         to fail with a false-positive, or to stop working altogether,
23535         depending on whether help-version changed or all the tests did.
23536         * top/maint.mk (_hv_regex): Remove this definition.
23537         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23538         (_hv_regex_strong): Use a stronger regex to check for conformance.
23539         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23540         Give a separate diagnostic for lack of conforming use.
23541
23542         maint.mk: prohibit definition of symbols defined by gnulib
23543         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23544         definition of symbols defined by gnulib.
23545
23546 2010-05-09  Bruno Haible  <bruno@clisp.org>
23547
23548         acl: Avoid test failure on Cygwin-hosted mingw.
23549         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23550
23551 2010-05-09  Bruno Haible  <bruno@clisp.org>
23552
23553         error: Use system's fcntl function.
23554         * lib/error.c (fcntl): Undefine.
23555
23556 2010-05-09  Jim Meyering  <meyering@redhat.com>
23557
23558         verify: adjust formatting to be more consistent
23559         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23560         argument-list '('s, and after one comma.
23561
23562 2010-05-09  Bruno Haible  <bruno@clisp.org>
23563
23564         error: More reliable output on mingw.
23565         * lib/error.c: Include <windows.h>.
23566         (is_open): New function.
23567         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23568         defined.
23569
23570 2010-05-09  Bruno Haible  <bruno@clisp.org>
23571
23572         vasnprintf: Fix syntax errors in libintl build on mingw.
23573         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23574         pad_ourselves and prec_ourselves after use.
23575
23576 2010-05-08  Bruno Haible  <bruno@clisp.org>
23577
23578         * lib/config.charset: Update comments for Cygwin 1.7.
23579         * lib/localcharset.c: Likewise.
23580
23581 2010-05-07  Jim Meyering  <meyering@redhat.com>
23582
23583         init.sh: improve comments
23584         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23585         . "${srcdir=.}/init.sh"; path_prepend_ .
23586         Add a note about path_prepend_ and the alternative of using
23587         TESTS_ENVIRONMENT.
23588
23589 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23590
23591         exclude: Unescape hashed patterns in wildcard mode.
23592         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23593         to the hash list.
23594         * tests/test-exclude8.sh: New test case.
23595         * modules/exclude-tests: Add new test.
23596
23597 2010-05-05  Eric Blake  <eblake@redhat.com>
23598
23599         verify: automate tests
23600         * modules/verify-tests: New module.
23601         * tests/test-verify.sh: New file.
23602         * tests/test-verify.c: Guard each negative test with a unique id.
23603         Also avoid warning about unused left hand of comma expressions.
23604
23605 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23606
23607         Further improvements to verify.h, suggested by Eric Blake.
23608         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23609         the GL_* versions, to avoid collision with OpenGL.
23610         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23611         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23612         than testing merely whether it's defined.
23613
23614         Modify verify.h to pacify gcc -Wredundant_decls.
23615         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23616         These use the prefix "GL_" since they're likely to be useful elsewhere.
23617         We may need to break them out into a different .h file.
23618         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23619         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23620         of verify_function__.
23621
23622 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23623
23624         Tests for module pwrite.
23625         * modules/pwrite-tests: New file.
23626         * tests/test-pwrite.sh: New file.
23627         * tests/test-pwrite.c: New file.
23628
23629         New module pwrite.
23630         * lib/unistd.in.h (pwrite): New declaration.
23631         * lib/pwrite.c: New file, from glibc with modifications.
23632         * m4/pwrite.m4: New file.
23633         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23634         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23635         REPLACE_PWRITE.
23636         * modules/pwrite: New file.
23637         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23638         REPLACE_PWRITE.
23639         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23640         * doc/posix-functions/pwrite.texi: Mention the new module.
23641
23642 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23643
23644         pread: Update documentation.
23645         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23646
23647 2010-05-04  Eric Blake  <eblake@redhat.com>
23648
23649         docs: update cygwin progress
23650         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23651         this bug.
23652         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23653         Added in cygwin 1.7.2.
23654         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23655         Likewise.
23656         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23657         Likewise.
23658         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23659         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23660         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23661         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23662         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23663         Mention nproc module.
23664         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23665         bug in cygwin 1.7.5 addition.
23666         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23667         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23668         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23669         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23670         1.7.5.
23671         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23672         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23673         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23674         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23675         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23676         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23677         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23678         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23679         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23680         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23681         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23682         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23683         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23684         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23685         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23686         Likewise.
23687         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23688         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23689         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23690         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23691         Likewise.
23692         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23693         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23694         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23695         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23696         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23697         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23698         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23699         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23700         Likewise.
23701         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23702         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23703         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23704         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23705         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23706         Likewise.
23707         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23708         Likewise.
23709         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23710         Likewise.
23711         * doc/glibc-functions/xdrrec_endofrecord.texi
23712         (xdrrec_endofrecord): Likewise.
23713         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23714         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23715         Likewise.
23716         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23717         Likewise.
23718
23719 2010-05-04  Jim Meyering  <meyering@redhat.com>
23720
23721         gendocs.sh: make its "-s FILE" option more useful
23722         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23723         $PACKAGE to reflect the probably-different basename of "FILE".
23724
23725 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23726
23727         bootstrap: don't ignore download_po_files failure
23728         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23729         failure.
23730
23731 2010-05-03  Jim Meyering  <meyering@redhat.com>
23732
23733         maint.mk: allow to pass options to gendocs.sh
23734         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23735         (gendocs_options_): New overridable variable.
23736
23737         gnu-web-doc-update: don't ignore configure or build failure
23738         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23739
23740         announce-gen: backslash-escape '@'s in --help output
23741         * build-aux/announce-gen: Fix syntax errors.
23742
23743         maint.mk, announce-gen: allow project-specific announcement mail headers
23744         * top/maint.mk (translation_project_): Define default.
23745         (announcement_Cc_, announcement_mail_headers_): Likewise.
23746         (announcement): Invoke announce-gen with new --mail-headers option.
23747         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23748
23749         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23750         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23751         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23752         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23753         line in the "err2" output file when running "make check" in verbose
23754         mode (i.e., with set -x enabled).
23755
23756 2010-05-03  Bruno Haible  <bruno@clisp.org>
23757
23758         wctob: Fix for weird platforms.
23759         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23760         argument value.
23761
23762 2010-05-03  Jim Meyering  <meyering@redhat.com>
23763
23764         maint.mk: prohibit unwarranted use of <strings.h>
23765         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23766         strings.h in a file that does not also use strcasecmp, strncasecmp,
23767         ffs or ffsll.
23768
23769         maint.mk: remove obsolete comments
23770         * top/maint.mk: Remove stale, commented-out rules.
23771
23772 2010-05-02  Bruno Haible  <bruno@clisp.org>
23773
23774         wcwidth: Declare also when it's aliased.
23775         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23776         macro.
23777
23778 2010-05-02  Bruno Haible  <bruno@clisp.org>
23779
23780         Fix regression from 2010-04-25.
23781         * gnulib-tool (func_modules_transitive_closure): Check the status of
23782         all modules, not only of the tests that are of the form foo-tests where
23783         foo is a module.
23784
23785 2010-05-02  Bruno Haible  <bruno@clisp.org>
23786
23787         wctob: Work around nasty Cygwin 1.7.2 bug.
23788         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23789         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23790
23791 2010-05-01  Bruno Haible  <bruno@clisp.org>
23792
23793         fpurge: Sharper test.
23794         * tests/test-fpurge.c (main): Add one more ftell check.
23795         * modules/fpurge-tests (Depends-on): Add ftell.
23796         Suggested by Eric Blake.
23797
23798 2010-05-01  Bruno Haible  <bruno@clisp.org>
23799
23800         ftello: Another test.
23801         * tests/test-ftello3.c: New file.
23802         * modules/ftello-tests (Files): Add it.
23803         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23804         MOSTLYCLEANFILES.
23805
23806         ftell: Another test.
23807         * tests/test-ftell3.c: New file.
23808         * modules/ftell-tests (Files): Add it.
23809         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23810         MOSTLYCLEANFILES.
23811
23812 2010-05-01  Bruno Haible  <bruno@clisp.org>
23813
23814         ftell, ftello: Work around Solaris bug.
23815         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23816         * lib/ftello.c: Include stdio-impl.h.
23817         (ftello): On Solaris, when _IOWRT is set, compute the result without
23818         looking at _IOREAD.
23819         * modules/ftello (Files): Add lib/stdio-impl.h.
23820         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23821         * doc/posix-functions/ftello.texi: Likewise.
23822         Reported by Eric Blake.
23823
23824 2010-05-01  Bruno Haible  <bruno@clisp.org>
23825
23826         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23827         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23828         the _IOWRT flag is also set.
23829
23830 2010-05-01  Bruno Haible  <bruno@clisp.org>
23831
23832         Fix doc about a HP-UX stdio bug.
23833         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23834         * doc/posix-functions/ftello.texi: Likewise.
23835
23836 2010-05-01  Bruno Haible  <bruno@clisp.org>
23837
23838         lseek test: Fix failure on Solaris.
23839         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23840         output.
23841
23842 2010-04-30  Jim Meyering  <meyering@redhat.com>
23843
23844         bootstrap: don't ignore failure to generate po*/Makevars
23845         * build-aux/bootstrap (with_gettext): Don't ignore failure
23846         to create po/Makevars or runtime-po/Makevars.
23847
23848 2010-04-29  Eric Blake  <eblake@redhat.com>
23849
23850         headers: relax license to LGPLv2+
23851         * modules/fcntl-h (License): Relax license.
23852         * modules/getopt-posix (License): Likewise.
23853         * modules/locale (License): Likewise.
23854         * modules/math (License): Likewise.
23855         * modules/pty (License): Likewise.
23856         * modules/sched (License): Likewise.
23857         * modules/search (License): Likewise.
23858         * modules/spawn (License): Likewise.
23859         * modules/stdarg (License): Likewise.
23860         * modules/sysexits (License): Likewise.
23861
23862 2010-04-29  Jim Meyering  <meyering@redhat.com>
23863
23864         inttypes: relax license to LGPLv2+
23865         * modules/inttypes (License): Relax license.
23866
23867 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23868
23869         * top/maint.mk (indent): Run twice to produce idempotent results.
23870
23871 2010-04-28  Bruno Haible  <bruno@clisp.org>
23872
23873         getdate: Generate getdate.c in the source directory.
23874         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23875         MOSTLYCLEANFILES.
23876         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23877
23878 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23879
23880         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23881         is not declared as a const *; avoid warnings in that case.
23882
23883 2010-04-28  Eric Blake  <eblake@redhat.com>
23884
23885         canonicalize-lgpl: avoid compiler warning
23886         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23887         declaration' / 'extraneous semicolon' warning with some compilers.
23888         Reported by Andreas Gruenbacher.
23889
23890 2010-04-28  Jim Meyering  <meyering@redhat.com>
23891
23892         init.sh: ensure a more reliable exit status when exiting via trap
23893         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23894         Inspired by patches from Dmitry V. Levin.
23895         Also trap on signal 3 (SIGQUIT).
23896
23897 2010-04-27  Bruno Haible  <bruno@clisp.org>
23898
23899         Update doc about utimes().
23900         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23901         'utimens' module.
23902         Reported by Andreas Gruenbacher <agruen@suse.de>.
23903
23904 2010-04-27  Eric Blake  <eblake@redhat.com>
23905
23906         full-read, full-write: relax license
23907         * modules/full-read (License): Drop to LGPLv2+.
23908         * modules/full-write (License): Likewise.
23909         * modules/safe-read (License): Likewise.
23910         * modules/safe-write (License): Likewise.
23911
23912         pthread: mention library for linking
23913         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23914
23915 2010-04-27  Jim Meyering  <meyering@redhat.com>
23916
23917         maint.mk: fix a bug introduced in last change
23918         * top/maint.mk (gl_assured_headers_): Now that all names are on
23919         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23920         is not anchored to end of word, it should be adequate.
23921
23922         maint.mk: avoid side-effect in latest syntax-check
23923         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23924         to run commands via $(shell...), and hence to incur cost only when
23925         the new rule is actually run.
23926
23927         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23928         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23929         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23930         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23931         (gl_assured_headers_, az_, AZ_): Define.
23932         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23933
23934 2010-04-26  Jim Meyering  <jim@meyering.net>
23935             Bruno Haible  <bruno@clisp.org>
23936
23937         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23938         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23939         Prompted by an exchange with Gilles Espinasse.
23940
23941 2010-04-26  Jim Meyering  <meyering@redhat.com>
23942
23943         git-version-gen: aesthetic tweak
23944         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23945         so that the command remains on a single line.
23946
23947 2010-04-26  Eric Blake  <eblake@redhat.com>
23948
23949         git-version-gen: allow use on EBCDIC hosts
23950         * build-aux/git-version-gen (dirty): Use literal rather than tying
23951         ourselves to ascii.
23952         Reported by Steve Goetze.
23953
23954 2010-04-25  Bruno Haible  <bruno@clisp.org>
23955
23956         netdb: Add support for GNULIB_POSIXCHECK.
23957         * lib/netdb.in.h: Include warn-on-use.h.
23958         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23959         functions are used when GNULIB_POSIXCHECK is defined and the
23960         getaddrinfo module is not in use.
23961         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23962         freeaddrinfo, gai_strerror, getnameinfo are declared.
23963         * modules/netdb (Depends-on): Add warn-on-use.
23964         (Makefile.am): Include warn-on-use.h in netdb.h.
23965
23966 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23967
23968         build: avoid "make check" failure without .git/ directory
23969         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23970         there is no .git/ directory.
23971
23972 2010-04-25  Bruno Haible  <bruno@clisp.org>
23973
23974         ptsname: Fix misuse of ttyname_r.
23975         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23976         of errno.
23977
23978 2010-04-25  Bruno Haible  <bruno@clisp.org>
23979
23980         ttyname_r: Make it work on Solaris 10.
23981         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23982         if the system function has the POSIX declaration. Test whether the
23983         function fails if the buffer is less than 128 bytes large.
23984         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23985         system's ttyname_r function. Provide a reasonably large buffer.
23986         * modules/ttyname_r (Depends-on): Add extensions.
23987         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23988
23989 2010-04-25  Bruno Haible  <bruno@clisp.org>
23990
23991         Use the 'extensions' module for some more functions on Solaris.
23992         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23993         module.
23994         * doc/posix-functions/ctime_r.texi: Likewise.
23995         * doc/posix-functions/getgrgid_r.texi: Likewise.
23996         * doc/posix-functions/getgrnam_r.texi: Likewise.
23997         * doc/posix-functions/getpwnam_r.texi: Likewise.
23998         * doc/posix-functions/getpwuid_r.texi: Likewise.
23999         * doc/posix-functions/readdir_r.texi: Likewise.
24000         * doc/posix-functions/sigwait.texi: Likewise.
24001         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24002         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24003
24004 2010-04-25  Bruno Haible  <bruno@clisp.org>
24005
24006         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24007         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24008         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24009         * lib/ttyname_r.c: Include <limits.h>.
24010         (ttyname_r): Define using the system's ttyname_r function, if it exists
24011         and not on Solaris.
24012         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24013         set.
24014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24015         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24016         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24017         Reported by Simon Josefsson.
24018
24019 2010-04-25  Bruno Haible  <bruno@clisp.org>
24020
24021         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24022         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24023         * doc/posix-functions/ctime_r.texi: Likewise.
24024         * doc/posix-functions/getgrgid_r.texi: Likewise.
24025         * doc/posix-functions/getgrnam_r.texi: Likewise.
24026         * doc/posix-functions/getlogin_r.texi: Likewise.
24027         * doc/posix-functions/getpwnam_r.texi: Likewise.
24028         * doc/posix-functions/getpwuid_r.texi: Likewise.
24029         * doc/posix-functions/readdir_r.texi: Likewise.
24030         * doc/posix-functions/sigwait.texi: Likewise.
24031         * doc/posix-functions/ttyname_r.texi: Likewise.
24032         Reported by Simon Josefsson.
24033
24034 2010-04-25  Bruno Haible  <bruno@clisp.org>
24035
24036         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24037         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24038         also to --create-testdir.
24039         (func_acceptable): Don't consider the status of *-tests modules here.
24040         (func_modules_transitive_closure): Consider it here, before including a
24041         test module.
24042         (func_import, func_create_testdir): Set inc_all_direct_tests,
24043         inc_all_indirect_tests.
24044         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24045         --create-testdir and --create-megatestdir.
24046
24047 2010-04-25  Bruno Haible  <bruno@clisp.org>
24048
24049         gnulib-tool: Add --without-*-tests options.
24050         * gnulib-tool (func_usage): Document the --without-*-tests options.
24051         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24052         excl_unportable_tests): New variables.
24053         Fail if they are specified with --import or --update.
24054         (func_acceptable): Respect the excl_*_tests variables.
24055         (func_import): Set the excl_*_tests variables to empty.
24056
24057 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24058             Bruno Haible  <bruno@clisp.org>
24059
24060         Work around a MacOS X 10.4 bug with openpty.
24061         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24062         * tests/test-openpty.c (main): Close the master side explicitly.
24063
24064 2010-04-25  Bruno Haible  <bruno@clisp.org>
24065
24066         strnlen: Fix a C++ test error on MacOS X and Solaris.
24067         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24068         the function is not declared.
24069         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24070         Simon Josefsson.
24071
24072 2010-04-24  Bruno Haible  <bruno@clisp.org>
24073
24074         Avoid a gcc warning.
24075         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24076         of correct type for %08lx directive.
24077         Reported by Eric Blake.
24078
24079 2010-04-24  Bruno Haible  <bruno@clisp.org>
24080
24081         vasnprintf: Correct errno value in case of out-of-memory.
24082         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24083         or sprintf. Use the errno value from SNPRINTF or sprintf.
24084         Reported by Ian Beckwith <ianb@erislabs.net>.
24085
24086 2010-04-24  Bruno Haible  <bruno@clisp.org>
24087
24088         ansi-c++-opt: Find correct compiler when cross-compiling.
24089         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24090         AC_CHECK_PROGS.
24091         Reported by Simon Josefsson.
24092
24093 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24094
24095         vc-list-files: Add support for subversion
24096         * build-aux/vc-list-files: Use "svn list" to generate the list of
24097         files controlled by subversion.
24098
24099 2010-04-23  Jim Meyering  <meyering@redhat.com>
24100
24101         vc-list-files tests: convert to use init.sh
24102         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24103         path_prepend_.
24104         Use Exit, not exit.
24105         Use skip_ rather than open coding it.
24106         Remove trap set-up and compare definitions.
24107         * tests/test-vc-list-files-git.sh: Likewise.
24108         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24109
24110 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24111
24112         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24113         backup files.
24114
24115 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24116
24117         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24118
24119 2010-04-20  Eric Blake  <eblake@redhat.com>
24120
24121         tests: be robust to ignored SIGPIPE
24122         * tests/test-select-in.sh: Consume all output.
24123         * tests/test-lseek.sh: Check correct exit status, while avoiding
24124         EPIPE.
24125
24126 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24127             Bruno Haible  <bruno@clisp.org>
24128
24129         visibility: Don't use -fvisibility if it leads to a warning.
24130         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24131         yes, don't pretend that visibility works if it leads to a warning.
24132         Reported by Mike Gran <spk121@yahoo.com>.
24133
24134 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24135
24136         * build-aux/bootstrap: Use "git -h" for testing for supported options
24137         instead of "git --help".  The short-form option only shows a summary,
24138         and doesn't layout the full man page.  Grep for the full option name
24139         in the summary, too.
24140
24141 2010-04-19  Bruno Haible  <bruno@clisp.org>
24142
24143         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24144         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24145         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24146         mention of RELOCATABLE_STRIP.
24147         Reported by Sylvain Beucler <beuc@beuc.net>.
24148
24149 2010-04-19  Bruno Haible  <bruno@clisp.org>
24150
24151         * lib/diffseq.h: Fix typo in comment.
24152         Reported by Eric Blake.
24153
24154 2010-04-19  Bruno Haible  <bruno@clisp.org>
24155
24156         ioctl: Move autoconf macro to a .m4 file.
24157         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24158         * modules/ioctl (Files): Add it.
24159         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24160         Reported by Ian Beckwith <ianb@erislabs.net>.
24161
24162 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24163             Bruno Haible  <bruno@clisp.org>
24164
24165         diffseq: Accommodate use-case with abstract arrays.
24166         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24167         is not defined.
24168         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24169         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24170
24171 2010-04-18  Bruno Haible  <bruno@clisp.org>
24172
24173         * doc/posix-headers/stdbool.texi: More precise wording.
24174
24175 2010-04-17  Jim Meyering  <meyering@redhat.com>
24176
24177         maint.mk: use gnu-style indentation in an embedded perl script
24178         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24179         Rename variable: s/two/last_two_bytes/
24180
24181 2010-04-16  Eric Blake  <eblake@redhat.com>
24182
24183         test-stdbool: skip test that fails with Solaris CC
24184         * tests/test-stdbool.c (f): Skip test that causes compilation
24185         error under buggy C++ compiler.
24186         * lib/stdbool.in.h: Document the limitation.
24187         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24188
24189         setenv: allow compilation with C++
24190         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24191         register keyword.
24192
24193         stdint: allow test to pass with C++
24194         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24195
24196         getopt: allow compilation with C++
24197         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24198         struct.
24199         * lib/getopt.c (_getopt_internal_r): Use correct type.
24200         Reported by Dagobert Michelson, via Joel E. Denny.
24201
24202 2010-04-16  Bruno Haible  <bruno@clisp.org>
24203
24204         Override netdb.h always.
24205         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24206         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24207         Reported by Ludovic Courtès <ludo@gnu.org>.
24208
24209 2010-04-15  Bruno Haible  <bruno@clisp.org>
24210
24211         openpty: Fix mistake from 2010-03-21.
24212         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24213         Reported by Simon Josefsson.
24214
24215 2010-04-15  Eric Blake  <eblake@redhat.com>
24216
24217         test-forkpty: fix expected signature
24218         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24219         Reported by Simon Josefsson.
24220
24221 2010-04-15  Jim Meyering  <meyering@redhat.com>
24222
24223         maint.mk: texinfo_suffix_re_: correct the default regexp
24224         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24225
24226         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24227         make it configurable via texinfo_suffix_re_.
24228
24229 2010-04-14  Eric Blake  <eblake@redhat.com>
24230
24231         strtok_r: relax license to LGPLv2+
24232         * modules/strtok_r (License): Relax license.
24233         Reported by Matthias Bolte.
24234
24235 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24236
24237         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24238         version 1.4.4 by default instead of requiring the libgcrypt
24239         version used during build.  This makes it possible to use the
24240         application with older but still binary compatible libgcrypt
24241         versions.
24242
24243 2010-04-13  Eric Blake  <eblake@redhat.com>
24244
24245         getopt-gnu: match recent glibc fixes and posix ruling
24246         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24247         '+' handling, when requesting extensions.
24248         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24249         'W;' handling.
24250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24251         * doc/posix-functions/getopt.texi (getopt): Document this.
24252         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24253         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24254         Likewise.
24255
24256         getopt: merge bug fixes from glibc
24257         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24258         diagnostics.  Honor '+:' correctly.  Reject ';'.
24259
24260         getopt-posix: detect MacOS bug
24261         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24262         optind when missing a required argument.
24263         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24264         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24265         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24266         Likewise.
24267
24268         getopt-posix: avoid spurious failure on Solaris
24269         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24270         an indicator that setting optind=1 is sufficient for reset.
24271
24272         getopt-posix: avoid spurious failure on FreeBSD
24273         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24274         in POSIX mode, since the m4 test uses it.
24275
24276         gnulib-tool: silence warning on BSD sh
24277         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24278
24279 2010-04-13  Jim Meyering  <meyering@redhat.com>
24280
24281         doc: users.txt: GNU patch now uses gnulib
24282         * users.txt: Add patch.
24283
24284 2010-04-12  Jim Meyering  <meyering@redhat.com>
24285
24286         maint.mk: generate more concise timing data for syntax-check rules
24287         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24288         " done" from each line that reports a syntax-check test duration.
24289
24290 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24291
24292         git-version-gen: use "git update-index..." rather than "git status"
24293         * build-aux/git-version-gen: Use git update-index --refresh, not
24294         "git status".  With some versions of git, "git status" would fail
24295         to update the index and result in an unwarranted "-dirty" suffix.
24296
24297 2010-04-11  Jim Meyering  <meyering@redhat.com>
24298
24299         openat: correct formatting (no semantic change)
24300         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24301         Suggested by Bruno Haible.
24302
24303 2010-04-11  Bruno Haible  <bruno@clisp.org>
24304
24305         Stricter declaration checking in testdirs.
24306         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24307         If for_tests is true, augment AM_CPPFLAGS to define
24308         GNULIB_STRICT_CHECKING.
24309         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24310         GNULIB_STRICT_CHECKING is defined, verify that the function is
24311         declared.
24312
24313 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24314             Bruno Haible  <bruno@clisp.org>
24315
24316         libunistring: Improve configure output.
24317         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24318         Don't say "consider installing GNU libunistring" when checking again
24319         with libiconv.
24320
24321 2010-04-11  Bruno Haible  <bruno@clisp.org>
24322
24323         libunistring: Correct value of $LTLIBUNISTRING.
24324         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24325         correct the value of $LTLIBUNISTRING.
24326
24327 2010-04-11  Bruno Haible  <bruno@clisp.org>
24328
24329         havelib: Add static libraries to LIBS in the right order.
24330         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24331         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24332
24333 2010-04-11  Bruno Haible  <bruno@clisp.org>
24334
24335         libunistring: Detect libunistring also when it depends on libiconv.
24336         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24337         the second AC_LIB_HAVE_LINKFLAGS invocation.
24338
24339 2010-04-11  James Youngman  <jay@gnu.org>
24340
24341         close-stream: declare local scalars to be "const"
24342         * lib/close-stream.c (close_stream): Make boolean variables const
24343         to document the fact that we set but do not change them.
24344
24345 2010-04-11  Bruno Haible  <bruno@clisp.org>
24346
24347         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24348
24349 2010-04-11  Jim Meyering  <meyering@redhat.com>
24350
24351         maint.mk: don't include dist-check.mk
24352         * top/maint.mk: Remove bogus include directive.
24353
24354         maint.mk: improve empty-line-at-EOF check
24355         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24356         solution, rather than tail+Perl-based one.  The latter would read
24357         a few kilobytes from the end of each file, and did not handle empty
24358         files properly.
24359
24360         maint.mk: print the elapsed time for each syntax-check rule
24361         * top/maint.mk (sc_m_rules_): Save start time in a file.
24362         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24363         (local-check): Interpose the .z rules
24364
24365 2010-04-11  Jim Meyering  <meyering@redhat.com>
24366
24367         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24368         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24369         empty file with one that ends in an empty line.
24370
24371 2010-04-10  Bruno Haible  <bruno@clisp.org>
24372
24373         mkdir: Make it work on mingw64.
24374         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24375         * lib/mkdir.c: Update comment.
24376         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24377
24378 2010-04-10  Bruno Haible  <bruno@clisp.org>
24379
24380         Don't override improved macro from newer autoconf.
24381         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24382         autoconf >= 2.62.
24383         Reported by Joel E. Denny <jdenny@clemson.edu>.
24384
24385 2010-04-10  Jim Meyering  <meyering@redhat.com>
24386
24387         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24388         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24389
24390         maint.mk: correct a diagnostic
24391         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24392         in diagnostic; now use $prohibit.
24393
24394 2010-04-10  Bruno Haible  <address@hidden>
24395
24396         fchownat: Fix a C++ test error on Solaris 8.
24397         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24398         the function does not exist.
24399
24400 2010-04-10  Bruno Haible  <bruno@clisp.org>
24401
24402         vasnprintf: Add more tests.
24403         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24404         (test_function): Test converting an invalid wide string.
24405
24406         vasnprintf: Correct handling of unconvertible wide string arguments.
24407         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24408         VASNPRINTF.
24409         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24410         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24411         smaller than the expected maximum need for the directive. Set errno to
24412         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24413         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24414         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24415         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24416         * modules/vasnprintf (Files): Add m4/printf.m4.
24417         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24418
24419 2010-04-10  Bruno Haible  <bruno@clisp.org>
24420
24421         vasnprintf: Fix crash in %ls directive.
24422         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24423         string is passed as argument to %ls, with no precision and no width.
24424         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24425
24426 2010-04-10  Bruno Haible  <bruno@clisp.org>
24427
24428         vasnprintf: Fix multiple test failures on mingw.
24429         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24430         _snprintf, or snwprintf, not _snwprintf.
24431
24432 2010-04-10  Bruno Haible  <bruno@clisp.org>
24433
24434         write: Fix a C++ test error on mingw.
24435         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24436
24437 2010-04-10  Bruno Haible  <bruno@clisp.org>
24438
24439         vasnprintf test: Reduce code duplication.
24440         * tests/test-vasnprintf.c (test_function): New function, extracted from
24441         test_vasnprintf.
24442         (test_vasnprintf, test_asnprintf): Invoke it.
24443
24444 2010-04-10  Bruno Haible  <bruno@clisp.org>
24445
24446         strnlen: Fix warning in C++ mode on MacOS X.
24447         * lib/string.in.h (strnlen): Use the modern idiom.
24448         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24449         defining strnlen as a macro already in <config.h>.
24450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24451         REPLACE_STRNLEN.
24452         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24453         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24454
24455 2010-04-08  James Youngman  <jay@gnu.org>
24456
24457         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24458         the example.
24459
24460 2010-04-09  Jim Meyering  <meyering@redhat.com>
24461
24462         maint.mk: print better diagnostic when there is no $(_hv_file)
24463         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24464         announce that when $(_hv_file) (aka help-version) does not exist.
24465
24466         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24467         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24468         not try to interpret its random input bytes.  Jarno Rajahalme reported
24469         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24470         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24471         (mktempd_): Likewise, just in case.
24472
24473         ftruncate: add two years to projected module removal date: 2012
24474         * m4/ftruncate.m4: Adjust comments.
24475
24476         ftruncate: mark module as obsolete; even MinGW provides it, now
24477         * modules/ftruncate (Status): Obsolete.
24478         (Notice): Say that.
24479         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24480         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24481
24482 2010-04-08  Bruno Haible  <bruno@clisp.org>
24483
24484         Fix side effects from tests-related modules.
24485         * modules/dprintf-posix (Comment): New section.
24486         * modules/fprintf-posix (Comment): Likewise.
24487         * modules/obstack-printf-posix (Comment): Likewise.
24488         * modules/printf-posix (Comment): Likewise.
24489         * modules/snprintf-posix (Comment): Likewise.
24490         * modules/sprintf-posix (Comment): Likewise.
24491         * modules/vasnprintf-posix (Comment): Likewise.
24492         * modules/vasprintf-posix (Comment): Likewise.
24493         * modules/vdprintf-posix (Comment): Likewise.
24494         * modules/vfprintf-posix (Comment): Likewise.
24495         * modules/vprintf-posix (Comment): Likewise.
24496         * modules/vsnprintf-posix (Comment): Likewise.
24497         * modules/vsprintf-posix (Comment): Likewise.
24498         * modules/xprintf-posix (Comment): Likewise.
24499         * modules/xvasprintf-posix (Comment): Likewise.
24500         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24501         * modules/floorf-tests (Depends-on): Likewise.
24502         * modules/round-tests (Depends-on): Likewise.
24503         * modules/roundf-tests (Depends-on): Likewise.
24504         * modules/trunc-tests (Depends-on): Likewise.
24505         * modules/truncf-tests (Depends-on): Likewise.
24506         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24507         'fprintf-posix' module is not present.
24508         * tests/test-floorf2.c (check): Likewise.
24509         * tests/test-trunc2.c (check): Likewise.
24510         * tests/test-truncf2.c (check): Likewise.
24511         * tests/test-round2.c (equal): Likewise.
24512         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24513
24514 2010-04-07  Karl Berry  <karl@gnu.org>
24515
24516         * config/srclist.txt,
24517         * config/srclistvars.sh,
24518         * config/srclist-update: doc fixes.
24519
24520 2010-04-07  Jim Meyering  <meyering@redhat.com>
24521
24522         maint.mk: add a PATH crosschecking syntax-check rule
24523         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24524         Useful if you use a test like the one in help-version (coreutils,
24525         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24526         printed by prog --version.
24527
24528 2010-04-06  Bruno Haible  <bruno@clisp.org>
24529
24530         Fix link error on mingw.
24531         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24532         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24533
24534 2010-04-06  Bruno Haible  <bruno@clisp.org>
24535
24536         Assume rmdir exists.
24537         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24538
24539 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24540
24541         doc: update users.txt
24542         * users.txt: Add gcal.
24543
24544 2010-04-06  Jim Meyering  <meyering@redhat.com>
24545
24546         init.sh: simply unset TMPDIR rather than risking env -i
24547         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24548         although it probably works fine on all Unix-based systems, some
24549         systems (Cygwin?) cannot tolerate a totally cleared environment.
24550         Suggestion from Eric Blake.
24551
24552 2010-04-06  Jim Meyering  <meyering@redhat.com>
24553
24554         init.sh: portability fix: use env's POSIX-specified -i option not -u
24555         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24556         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24557
24558 2010-04-05  Bruno Haible  <bruno@clisp.org>
24559
24560         btowc: Work around Cygwin 1.7.2 bug.
24561         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24562         does not map NUL to 0.
24563         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24564
24565 2010-04-05  Bruno Haible  <bruno@clisp.org>
24566
24567         Make the multithread modules work on Cygwin 1.7.2.
24568         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24569         imported symbols can be declared weak, so that it returns "no" on
24570         Cygwin 1.7.2.
24571
24572 2010-04-05  Bruno Haible  <bruno@clisp.org>
24573
24574         Use the module 'strncat'.
24575         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24576
24577         Tests for module 'strncat'.
24578         * modules/strncat-tests: New file.
24579         * tests/test-strncat.c: New file.
24580
24581         New module 'strncat'.
24582         * lib/string.in.h (strncat): New declaration.
24583         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24584         * m4/strncat.m4: New file, based on m4/memchr.m4.
24585         * modules/strncat: New file.
24586         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24587         is declared.
24588         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24589         REPLACE_STRNCAT.
24590         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24591         REPLACE_STRNCAT.
24592         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24593         module.
24594         * tests/test-string-c++.cc: Check signature of strncat.
24595
24596 2010-04-05  Jim Meyering  <meyering@redhat.com>
24597
24598         xstrtoumax-tests: convert to use init.sh
24599         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24600         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24601         Use Exit, not exit.
24602         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24603
24604         xstrtoimax-tests: convert to use init.sh
24605         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24606         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24607         Use Exit, not exit.
24608         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24609
24610 2010-04-05  Bruno Haible  <bruno@clisp.org>
24611
24612         sys_socket: Avoid #define replacements in C++ mode.
24613         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24614         warning to the function if possible, rather than #defining the symbol
24615         to a dysfunctional alias.
24616
24617 2010-04-05  Bruno Haible  <bruno@clisp.org>
24618
24619         fseeko: Fix C++ test error on mingw.
24620         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24621         gl_FUNC_FSEEKO.
24622         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24623         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24624         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24625         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24626
24627 2010-04-05  Bruno Haible  <bruno@clisp.org>
24628
24629         duplocale: Improve test output.
24630         * tests/test-duplocale.c (main): Print reason for skipped test.
24631
24632 2010-04-05  Bruno Haible  <bruno@clisp.org>
24633
24634         Assume rmdir exists.
24635         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24636         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24637
24638 2010-04-05  Bruno Haible  <bruno@clisp.org>
24639
24640         Fix link error on Solaris 8 with cc.
24641         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24642
24643 2010-04-05  Bruno Haible  <bruno@clisp.org>
24644
24645         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24646         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24647
24648 2010-04-05  Bruno Haible  <bruno@clisp.org>
24649
24650         vasprintf: Update documentation.
24651         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24652
24653 2010-04-05  Bruno Haible  <bruno@clisp.org>
24654
24655         ptsname: Improve test.
24656         * tests/test-ptsname.c (main): Also try the various master names of BSD
24657         systems.
24658
24659 2010-04-05  Bruno Haible  <bruno@clisp.org>
24660
24661         memchr: Avoid a possible C++ test error.
24662         * lib/string.in.h (memchr): Provide declaration if function is missing.
24663         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24664         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24665         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24666         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24667
24668 2010-04-05  Bruno Haible  <bruno@clisp.org>
24669
24670         strtok_r: Improve idiom.
24671         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24672         AC_LIBOBJ is used.
24673
24674 2010-04-05  Bruno Haible  <bruno@clisp.org>
24675
24676         strdup: Improve idiom.
24677         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24678         AC_LIBOBJ is used.
24679         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24680         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24681         when AC_LIBOBJ is used.
24682
24683 2010-04-05  Bruno Haible  <bruno@clisp.org>
24684
24685         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24686         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24687         don't set REPLACE_MBSINIT to 1.
24688         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24689         don't set REPLACE_MBRTOWC to 1.
24690         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24691         exist, don't set REPLACE_MBSRTOWCS to 1.
24692         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24693         exist, don't set REPLACE_MBSNRTOWCS to 1.
24694         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24695         don't set REPLACE_WCRTOMB to 1.
24696         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24697         exist, don't set REPLACE_WCSRTOMBS to 1.
24698         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24699         exist, don't set REPLACE_WCSNRTOMBS to 1.
24700
24701 2010-04-05  Bruno Haible  <bruno@clisp.org>
24702
24703         ldexpl: Improve idiom.
24704         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24705         make sure to set HAVE_DECL_LDEXPL to 0.
24706
24707 2010-04-05  Jim Meyering  <meyering@redhat.com>
24708
24709         xstrtol-tests: convert to use init.sh
24710         * modules/xstrtol-tests (Files): Add tests/init.sh.
24711         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24712         Use Exit, not exit.
24713         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24714
24715         atexit-tests: convert to use init.sh
24716         * modules/atexit-tests (Files): Add tests/init.sh.
24717         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24718         Use Exit, not exit.
24719         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24720
24721         init.sh: fix typo
24722         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24723
24724         init.sh: make it easier for a test script to write to the tty, ...
24725         when using automake's parallel-tests mode.
24726         * tests/init.sh (stderr_fileno_): Define overridable variable.
24727         (warn_): New function, to use it.
24728         (fail_, skip_, framework_failure_): Use warn_.
24729
24730 2010-04-04  Bruno Haible  <bruno@clisp.org>
24731
24732         btowc: Avoid warning.
24733         * lib/btowc.c: Include <stdlib.h>.
24734         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24735
24736 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24737             Bruno Haible  <bruno@clisp.org>
24738
24739         wchar: Port to NetBSD 1.5.
24740         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24741         * lib/wctype.in.h (WEOF): Likewise.
24742
24743 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24744             Bruno Haible  <bruno@clisp.org>
24745
24746         Port extended stdio to NetBSD 1.5.
24747         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24748         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24749         older.
24750
24751 2010-04-04  Bruno Haible  <bruno@clisp.org>
24752
24753         string: Remove unused substitution.
24754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24755         HAVE_DECL_STRERROR.
24756         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24757
24758 2010-04-04  Bruno Haible  <bruno@clisp.org>
24759
24760         strtod: Avoid a possible C++ test error.
24761         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24762         set REPLACE_STRTOD.
24763
24764 2010-04-04  Bruno Haible  <bruno@clisp.org>
24765
24766         strerror: Update documentation.
24767         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24768
24769 2010-04-04  Bruno Haible  <bruno@clisp.org>
24770
24771         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24772         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24773         _GL_CXXALIAS_SYS_CAST.
24774
24775 2010-04-04  Bruno Haible  <bruno@clisp.org>
24776
24777         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24778         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24779         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24780         REPLACE_FREXPL to 1.
24781         * doc/posix-functions/frexpl.texi: Update documentation.
24782
24783 2010-04-04  Bruno Haible  <bruno@clisp.org>
24784
24785         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24786         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24787
24788 2010-04-04  Bruno Haible  <bruno@clisp.org>
24789
24790         Implement nanosleep for native Windows.
24791         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24792
24793 2010-04-04  Bruno Haible  <bruno@clisp.org>
24794
24795         math: Fix some C++ test errors on Solaris 8.
24796         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24797
24798 2010-04-04  Bruno Haible  <bruno@clisp.org>
24799
24800         math: Fix some C++ test errors on Cygwin.
24801         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24802         truncl): Provide declaration if the system does not have it.
24803         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24804         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24805         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24806         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24807         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24808         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24809         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24810         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24811         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24812         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24813         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24814         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24815         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24816         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24817         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24818         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24819         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24820         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24821         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24822         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24823         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24824         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24825
24826 2010-04-04  Bruno Haible  <bruno@clisp.org>
24827
24828         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24829         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24830         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24831         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24832         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24833         * m4/isinf.m4 (gl_ISINF): Likewise.
24834         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24835
24836 2010-04-04  Bruno Haible  <bruno@clisp.org>
24837
24838         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24839         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24840
24841 2010-04-04  Bruno Haible  <bruno@clisp.org>
24842
24843         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24844         * modules/tmpfile (configure.ac): Update.
24845
24846         tmpfile: Fix C++ test error on mingw.
24847         * lib/stdio.in.h (tmpfile): New declaration.
24848         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24849         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24850         * modules/tmpfile (Depends-on): Add stdio.
24851         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24852         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24853         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24854         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24855         REPLACE_TMPFILE.
24856         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24857
24858 2010-04-04  Bruno Haible  <bruno@clisp.org>
24859
24860         ioctl: Fix C++ test error on mingw.
24861         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24862         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24863         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24864
24865 2010-04-03  Bruno Haible  <bruno@clisp.org>
24866
24867         wcwidth: Fix C++ test error on mingw.
24868         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24869         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24870         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24871
24872 2010-04-03  Bruno Haible  <bruno@clisp.org>
24873
24874         nanosleep: Fix C++ test error on mingw.
24875         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24876         * lib/time.in.h (nanosleep): Use modern idiom.
24877         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24878         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24879         REPLACE_NANOSLEEP to 1.
24880         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24881         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24882
24883 2010-04-03  Bruno Haible  <bruno@clisp.org>
24884
24885         strptime: Fix C++ test error on mingw.
24886         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24887         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24888         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24889         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24890         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24891         not REPLACE_STRPTIME.
24892         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24893         REPLACE_STRPTIME.
24894
24895 2010-04-03  Bruno Haible  <bruno@clisp.org>
24896
24897         timegm: Fix C++ test error on mingw.
24898         * lib/time.in.h (timegm): Use modern idiom.
24899         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24900         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24901         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24902         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24903
24904 2010-04-03  Bruno Haible  <bruno@clisp.org>
24905
24906         timegm: Assume declaration if function exists.
24907         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24908         if it exists. Don't clobber ac_cv_func_timegm.
24909
24910 2010-04-03  Bruno Haible  <bruno@clisp.org>
24911
24912         time_r: Fix C++ test error on mingw.
24913         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24914         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24915         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24916         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24917         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24918
24919 2010-04-03  Bruno Haible  <bruno@clisp.org>
24920
24921         time_r: Minor updates.
24922         * modules/time_r (Description): Mention the provided functions.
24923         * lib/time_r.c: Don't include <string.h>.
24924         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24925         * doc/posix-functions/localtime_r.texi: Likewise.
24926
24927 2010-04-03  Bruno Haible  <bruno@clisp.org>
24928
24929         time: Fix regression introduced on 2010-03-08.
24930         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24931         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24932
24933 2010-04-03  Jim Meyering  <meyering@redhat.com>
24934
24935         maint.mk: don't silently disable project-specific syntax-check rules
24936         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24937         that they need to convert their project-specific syntax-check rules
24938         to use the new _sc_search_regexp.
24939
24940 2010-04-03  Bruno Haible  <bruno@clisp.org>
24941
24942         fchdir: Fix regression introduced on 2010-03-08.
24943         * lib/unistd.in.h (fchdir): Fix declaration.
24944         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24946         REPLACE_FCHDIR.
24947         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24948         REPLACE_FCHDIR.
24949
24950 2010-04-03  Bruno Haible  <bruno@clisp.org>
24951
24952         getpagesize: Fix C++ test error on mingw.
24953         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24954         system does not declare the function.
24955         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24956         declared.
24957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24958         HAVE_DECL_GETPAGESIZE.
24959         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24960
24961 2010-04-03  Bruno Haible  <bruno@clisp.org>
24962
24963         stdio: Make C++ tests work on mingw.
24964         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24965         does not declare the function.
24966
24967 2010-04-03  Bruno Haible  <bruno@clisp.org>
24968
24969         ftello: Fix C++ test error on mingw.
24970         * lib/stdio.in.h (ftello): Use modern idiom.
24971         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24972         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24973         is missing and that it needs to be replaced.
24974         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24976         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24977
24978 2010-04-03  Bruno Haible  <bruno@clisp.org>
24979
24980         fseeko: Fix C++ test error on mingw.
24981         * lib/stdio.in.h (fseeko): Use modern idiom.
24982         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24983         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24984         is missing and that it needs to be replaced.
24985         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24987         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24988
24989 2010-04-03  Bruno Haible  <bruno@clisp.org>
24990
24991         mkstemp: Fix C++ test error on mingw.
24992         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24993         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24994         function is missing and that it needs to be replaced.
24995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24996         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24997
24998 2010-04-03  Bruno Haible  <bruno@clisp.org>
24999
25000         stpncpy: Fix C++ test error on mingw.
25001         * lib/string.in.h (stpncpy): Use modern idiom.
25002         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25003         function is missing and that it needs to be replaced.
25004         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25005         REPLACE_STPNCPY.
25006         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25007
25008 2010-04-03  Bruno Haible  <bruno@clisp.org>
25009
25010         sys_stat: Fix C++ test error on mingw.
25011         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25012         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25013
25014 2010-04-03  Bruno Haible  <bruno@clisp.org>
25015
25016         pty: Update doc.
25017         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25018
25019 2010-04-03  Bruno Haible  <bruno@clisp.org>
25020
25021         unistd: Fix C++ test error on mingw.
25022         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25023
25024 2010-04-03  Bruno Haible  <bruno@clisp.org>
25025
25026         Update doc regarding mingw.
25027         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25028         * doc/glibc-functions/login_tty.texi: Likewise.
25029         * doc/glibc-functions/forkpty.texi: Likewise.
25030
25031 2010-04-03  Bruno Haible  <bruno@clisp.org>
25032
25033         stdlib: Avoid compilation failure of c-strtold on mingw.
25034         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25035
25036 2010-04-03  Bruno Haible  <bruno@clisp.org>
25037
25038         locale: Make C++ tests work on Cygwin and mingw.
25039         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25040         cannot provide the function.
25041         Reported by Simon Josefsson.
25042
25043 2010-04-03  Bruno Haible  <bruno@clisp.org>
25044
25045         localename: Port to MacOS X 10.6.
25046         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25047         memory layout of the locales in MacOS X 10.6 as well.
25048         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25049
25050 2010-04-02  Bruno Haible  <bruno@clisp.org>
25051
25052         gnulib-tool: Ensure that long-running tests are executed last.
25053         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25054         running tests after the one for the other tests.
25055
25056 2010-04-02  Bruno Haible  <bruno@clisp.org>
25057
25058         gnulib-tool: Ensure the tests in the main directory are executed first.
25059         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25060         start with the current directory.
25061
25062 2010-04-02  Bruno Haible  <bruno@clisp.org>
25063
25064         Tests for module 'havelib', moved here from GNU gettext.
25065         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25066         modifications.
25067         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25068         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25069         with modifications.
25070         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25071         modifications.
25072         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25073         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25074         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25075         with modifications.
25076         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25077         with modifications.
25078         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25079         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25080         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25081         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25082         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25083         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25084         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25085         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25086         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25087         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25088         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25089         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25090         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25091         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25092         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25093         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25094         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25095         with modifications.
25096         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25097         with modifications.
25098         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25099         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25100         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25101         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25102         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25103         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25104         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25105         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25106         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25107         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25108         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25109         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25110         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25111         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25112         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25113         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25114         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25115         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25116         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25117         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25118         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25119         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25120         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25121         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25122         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25123         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25124         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25125         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25126         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25127         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25128         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25129         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25130         * tests/havelib/rpathx/rpathx.c: New file, from
25131         gettext/autoconf-lib-link.
25132         * tests/havelib/rpathx/Makefile.am: New file, from
25133         gettext/autoconf-lib-link.
25134         * tests/havelib/rpathx/configure.ac: New file, from
25135         gettext/autoconf-lib-link with modifications.
25136         * tests/havelib/rpathy/rpathy.c: New file, from
25137         gettext/autoconf-lib-link.
25138         * tests/havelib/rpathy/Makefile.am: New file, from
25139         gettext/autoconf-lib-link.
25140         * tests/havelib/rpathy/configure.ac: New file, from
25141         gettext/autoconf-lib-link with modifications.
25142         * tests/havelib/rpathz/rpathz.c: New file, from
25143         gettext/autoconf-lib-link.
25144         * tests/havelib/rpathz/Makefile.am: New file, from
25145         gettext/autoconf-lib-link.
25146         * tests/havelib/rpathz/configure.ac: New file, from
25147         gettext/autoconf-lib-link with modifications.
25148         * tests/havelib/rpathlx/usex.c: New file, from
25149         gettext/autoconf-lib-link.
25150         * tests/havelib/rpathlx/Makefile.am: New file, from
25151         gettext/autoconf-lib-link.
25152         * tests/havelib/rpathlx/configure.ac: New file, from
25153         gettext/autoconf-lib-link with modifications.
25154         * tests/havelib/rpathly/usey.c: New file, from
25155         gettext/autoconf-lib-link.
25156         * tests/havelib/rpathly/Makefile.am: New file, from
25157         gettext/autoconf-lib-link.
25158         * tests/havelib/rpathly/configure.ac: New file, from
25159         gettext/autoconf-lib-link with modifications.
25160         * tests/havelib/rpathlz/usez.c: New file, from
25161         gettext/autoconf-lib-link.
25162         * tests/havelib/rpathlz/Makefile.am: New file, from
25163         gettext/autoconf-lib-link.
25164         * tests/havelib/rpathlz/configure.ac: New file, from
25165         gettext/autoconf-lib-link with modifications.
25166         * tests/havelib/rpathlyx/usey.c: New file, from
25167         gettext/autoconf-lib-link.
25168         * tests/havelib/rpathlyx/Makefile.am: New file, from
25169         gettext/autoconf-lib-link.
25170         * tests/havelib/rpathlyx/configure.ac: New file, from
25171         gettext/autoconf-lib-link with modifications.
25172         * tests/havelib/rpathlzyx/usez.c: New file, from
25173         gettext/autoconf-lib-link.
25174         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25175         gettext/autoconf-lib-link.
25176         * tests/havelib/rpathlzyx/configure.ac: New file, from
25177         gettext/autoconf-lib-link with modifications.
25178         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25179         with modifications.
25180
25181 2010-04-02  Bruno Haible  <bruno@clisp.org>
25182
25183         gnulib-tool: Create distributed built sources also for the tests.
25184         * gnulib-tool (func_create_testdir): Also generate distributed built
25185         sources in the tests directory.
25186
25187 2010-04-02  Bruno Haible  <bruno@clisp.org>
25188
25189         gnulib-tool: Obey user's environment variables.
25190         * gnulib-tool (func_create_testdir): When creating built sources,
25191         respect the environment variables for autoconf, automake, etc. given by
25192         the user.
25193
25194 2010-04-02  Bruno Haible  <bruno@clisp.org>
25195
25196         gnulib-tool: Provide the value of --m4-base to modules.
25197         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25198         of gl_m4_base.
25199
25200 2010-04-02  Eric Blake  <eblake@redhat.com>
25201
25202         maint.mk: fix some fallout
25203         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25204         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25205
25206 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25207
25208         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25209         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25210         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25211         (sc_cast_of_x_alloc_return_value): Likewise.
25212         (sc_cast_of_alloca_return_value): Likewise.
25213         (sc_space_tab): Likewise.
25214         (sc_prohibit_atoi_atof): Likewise.
25215         (sc_prohibit_magic_number_exit): Likewise.
25216         (sc_error_exit_success): Likewise.
25217         (sc_file_system): Likewise.
25218         (sc_prohibit_have_config_h): Likewise.
25219         (sc_require_config_h): Likewise.
25220         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25221         (sc_obsolete_symbols): Likewise.
25222         (sc_changelog): Likewise.
25223         (sc_program_name): Likewise.
25224         (sc_the_the): Likewise.
25225         (sc_trailing_blank): Likewise.
25226         (sc_two_space_separator_in_usage): Likewise.
25227         (sc_useless_cpp_parens): Likewise.
25228         (sc_GPL_version): Likewise.
25229         (sc_GFDL_version): Likewise.
25230         (sc_texinfo_acronym): Likewise.
25231         (sc_prohibit_cvs_keyword): Likewise.
25232         (sc_prohibit_stat_st_blocks): Likewise.
25233         (sc_prohibit_S_IS_definition): Likewise.
25234         (sc_redundant_const): Likewise.
25235         (sc_makefile_TAB_only_indentation): Likewise.
25236         (sc_m4_quote_check): Likewise.
25237         (sc_makefile_path_separator_check): Likewise.
25238         (sc_copyright_check): Likewise.
25239         (sc_Wundef_boolean): Likewise.
25240         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25241
25242         maint.mk: match 0 or more whitespace-before-function-call '('
25243         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25244         that have zero or two-and-more spaces between the function name
25245         and the open parenthesis.
25246         (sc_error_message_warn_fatal): Likewise.
25247         (sc_error_message_uppercase): Likewise.
25248         (sc_error_message_period): Likewise.
25249
25250 2010-03-31  Eric Blake  <eblake@redhat.com>
25251
25252         maint.mk: check for [ as well as test
25253         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25254         Based on a libvirt report by Matthias Bolte.
25255
25256         gnumakefile: don't squelch _version output
25257         * top/GNUmakefile (_version): Create one-shot dependency rather
25258         than using $(shell) when version must be regenerated.
25259         (_autoreconf): Run verbosely, by default.
25260
25261         sys_time: avoid compiler warnings
25262         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25263         unconditional, fixing regression from 2010-03-29.
25264         Reported by Simon Josefsson.
25265
25266 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25267
25268         maint.mk: s/_header_without_use/_sc_header_without_use/
25269         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25270         (sc_prohibit_assert_without_use): Use the new name.
25271         (sc_prohibit_close_stream_without_use): Likewise.
25272         (sc_prohibit_getopt_without_use): Likewise.
25273         (sc_prohibit_quotearg_without_use): Likewise.
25274         (sc_prohibit_quote_without_use): Likewise.
25275         (sc_prohibit_long_options_without_use): Likewise.
25276         (sc_prohibit_inttostr_without_use): Likewise.
25277         (sc_prohibit_ignore_value_without_use): Likewise.
25278         (sc_prohibit_error_without_use): Likewise.
25279         (sc_prohibit_xalloc_without_use): Likewise.
25280         (sc_prohibit_hash_without_use): Likewise.
25281         (sc_prohibit_hash_pjw_without_use): Likewise.
25282         (sc_prohibit_safe_read_without_use): Likewise.
25283         (sc_prohibit_argmatch_without_use): Likewise.
25284         (sc_prohibit_canonicalize_without_use): Likewise.
25285         (sc_prohibit_root_dev_ino_without_use): Likewise.
25286         (sc_prohibit_openat_without_use): Likewise.
25287         (sc_prohibit_c_ctype_without_use): Likewise.
25288         (sc_prohibit_signal_without_use): Likewise.
25289         (sc_prohibit_intprops_without_use): Likewise.
25290
25291 2010-03-30  Eric Blake  <eblake@redhat.com>
25292
25293         maint: improve module indicators
25294         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25295         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25296         columns, and avoid extra macro expansion.
25297
25298         fdopendir: work around FreeBSD bug
25299         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25300         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25301         * modules/dirent (Makefile.am): Substitute it.
25302         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25303         declaration.
25304         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25305         fix.
25306         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25307
25308 2010-03-29  Bruno Haible  <bruno@clisp.org>
25309
25310         Emit #pragma system_header after the inclusion guard, not before.
25311         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25312         guard that spans the entire file, not before. This enables an
25313         optimization in GCC's preprocessor.
25314         * lib/ctype.in.h: Likewise.
25315         * lib/dirent.in.h: Likewise.
25316         * lib/errno.in.h: Likewise.
25317         * lib/float.in.h: Likewise.
25318         * lib/getopt.in.h: Likewise.
25319         * lib/iconv.in.h: Likewise.
25320         * lib/langinfo.in.h: Likewise.
25321         * lib/locale.in.h: Likewise.
25322         * lib/math.in.h: Likewise.
25323         * lib/netdb.in.h: Likewise.
25324         * lib/netinet_in.in.h: Likewise.
25325         * lib/pty.in.h: Likewise.
25326         * lib/sched.in.h: Likewise.
25327         * lib/se-selinux.in.h: Likewise.
25328         * lib/search.in.h: Likewise.
25329         * lib/spawn.in.h: Likewise.
25330         * lib/stdarg.in.h: Likewise.
25331         * lib/stdint.in.h: Likewise.
25332         * lib/string.in.h: Likewise.
25333         * lib/strings.in.h: Likewise.
25334         * lib/sys_file.in.h: Likewise.
25335         * lib/sys_ioctl.in.h: Likewise.
25336         * lib/sys_time.in.h: Likewise.
25337         * lib/sys_times.in.h: Likewise.
25338         * lib/sys_utsname.in.h: Likewise.
25339         * lib/sys_wait.in.h: Likewise.
25340         * lib/sysexits.in.h: Likewise.
25341         * lib/wctype.in.h: Likewise.
25342
25343 2010-03-28  James Youngman  <jay@gnu.org>
25344
25345         save-cwd: don't leak a file descriptor when the caller execs.
25346         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25347         saved file descriptor.
25348         * modules/save-cwd (Depends-on): Depend on cloexec.
25349
25350 2010-03-29  Bruno Haible  <bruno@clisp.org>
25351
25352         Remove vestiges of fts-lgpl module.
25353         * lib/fts_.h: Assume GNULIB_FTS is 1.
25354         * lib/fts.c: Likewise.
25355         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25356
25357 2010-03-28  Bruno Haible  <bruno@clisp.org>
25358
25359         Fix definition of tests witness macro.
25360         * gnulib-tool (func_import): Fix definition of witness macro.
25361
25362 2010-03-28  Bruno Haible  <bruno@clisp.org>
25363
25364         Fix ioctl's protoype on glibc systems.
25365         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25366         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25367         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25368         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25369         signature. If not, arrange to replace the ioctl function.
25370         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25371         REPLACE_IOCTL.
25372         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25373         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25374         Reported by Ludovic Courtès <ludo@gnu.org>.
25375
25376 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25377
25378         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25379         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25380         made it so grep -r --include=GLOB* ... did not work.
25381
25382 2010-03-26  Jim Meyering  <meyering@redhat.com>
25383             Eric Blake  <eblake@redhat.com>
25384
25385         maint.mk: prohibit use of test's -o and -a operators
25386         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25387
25388 2010-03-28  Bruno Haible  <bruno@clisp.org>
25389
25390         Remove unused GNULIB_XYZ macro definitions.
25391         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25392         invocation.
25393
25394 2010-03-28  Bruno Haible  <bruno@clisp.org>
25395
25396         Mark privileged tests modules.
25397         * modules/idpriv-drop-tests (Status): New section.
25398         * modules/idpriv-droptemp-tests (Status): New section.
25399
25400 2010-03-28  Bruno Haible  <bruno@clisp.org>
25401
25402         Split C++ tests into separate tests modules.
25403         * modules/dirent-c++-tests: New file, extracted from
25404         modules/dirent-tests.
25405         * modules/dirent-tests: Depend on it.
25406         * modules/fcntl-h-c++-tests: New file, extracted from
25407         modules/fcntl-h-tests.
25408         * modules/fcntl-h-tests: Depend on it.
25409         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25410         * modules/glob-tests: Depend on it.
25411         * modules/iconv-h-c++-tests: New file, extracted from
25412         modules/iconv-h-tests.
25413         * modules/iconv-h-tests: Depend on it.
25414         * modules/langinfo-c++-tests: New file, extracted from
25415         modules/langinfo-tests.
25416         * modules/langinfo-tests: Depend on it.
25417         * modules/locale-c++-tests: New file, extracted from
25418         modules/locale-tests.
25419         * modules/locale-tests: Depend on it.
25420         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25421         * modules/math-tests: Depend on it.
25422         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25423         * modules/pty-tests: Depend on it.
25424         * modules/search-c++-tests: New file, extracted from
25425         modules/search-tests.
25426         * modules/search-tests: Depend on it.
25427         * modules/signal-c++-tests: New file, extracted from
25428         modules/signal-tests.
25429         * modules/signal-tests: Depend on it.
25430         * modules/spawn-c++-tests: New file, extracted from
25431         modules/spawn-tests.
25432         * modules/spawn-tests: Depend on it.
25433         * modules/stdio-c++-tests: New file, extracted from
25434         modules/stdio-tests.
25435         * modules/stdio-tests: Depend on it.
25436         * modules/stdlib-c++-tests: New file, extracted from
25437         modules/stdlib-tests.
25438         * modules/stdlib-tests: Depend on it.
25439         * modules/string-c++-tests: New file, extracted from
25440         modules/string-tests.
25441         * modules/string-tests: Depend on it.
25442         * modules/sys_ioctl-c++-tests: New file, extracted from
25443         modules/sys_ioctl-tests.
25444         * modules/sys_ioctl-tests: Depend on it.
25445         * modules/sys_select-c++-tests: New file, extracted from
25446         modules/sys_select-tests.
25447         * modules/sys_select-tests: Depend on it.
25448         * modules/sys_socket-c++-tests: New file, extracted from
25449         modules/sys_socket-tests.
25450         * modules/sys_socket-tests: Depend on it.
25451         * modules/sys_stat-c++-tests: New file, extracted from
25452         modules/sys_stat-tests.
25453         * modules/sys_stat-tests: Depend on it.
25454         * modules/sys_time-c++-tests: New file, extracted from
25455         modules/sys_time-tests.
25456         * modules/sys_time-tests: Depend on it.
25457         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25458         * modules/time-tests: Depend on it.
25459         * modules/unistd-c++-tests: New file, extracted from
25460         modules/unistd-tests.
25461         * modules/unistd-tests: Depend on it.
25462         * modules/wchar-c++-tests: New file, extracted from
25463         modules/wchar-tests.
25464         * modules/wchar-tests: Depend on it.
25465         * modules/wctype-c++-tests: New file, extracted from
25466         modules/wctype-tests.
25467         * modules/wctype-tests: Depend on it.
25468         Reported by Simon Josefsson.
25469
25470 2010-03-28  Bruno Haible  <bruno@clisp.org>
25471
25472         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25473         * gnulib-tool (func_exists_module): New function, extracted from
25474         func_verify_module.
25475         (func_verify_module): Use it.
25476         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25477         'foo' only if 'foo' exists.
25478         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25479         module.
25480
25481 2010-03-28  Bruno Haible  <bruno@clisp.org>
25482
25483         gnulib-tool: Add support for special categories of tests.
25484         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25485         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25486         (func_usage): Document them.
25487         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25488         inc_unportable_tests, inc_all_tests): New variables.
25489         (func_acceptable): Consider these variables.
25490         (func_modules_transitive_closure): Make it work when the 'Status' field
25491         consists of multiple words.
25492         (func_import): Store and restore the values of inc_cxx_tests,
25493         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25494         inc_all_tests in gnulib-comp.m4.
25495         (func_create_testdir): Set inc_all_tests to true.
25496         * doc/gnulib.texi (Extra tests modules): New section.
25497         Suggested by Jim Meyering.
25498
25499 2010-03-28  Bruno Haible  <bruno@clisp.org>
25500
25501         ansi-c++-opt: Allow turning off the C++ build by default.
25502         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25503         gl_CXX_CHOICE_DEFAULT_NO is defined.
25504         Requested by Eric Blake.
25505
25506 2010-03-28  Bruno Haible  <bruno@clisp.org>
25507
25508         unistd: Avoid #define replacements in C++ mode.
25509         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25510         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25511         setsockopt, shutdown, select): In C++, attach a warning to the function
25512         if possible, rather than #defining the symbol to a dysfunctional alias.
25513         Reported by John W. Eaton <jwe@gnu.org>.
25514
25515 2010-03-28  Bruno Haible  <bruno@clisp.org>
25516
25517         Fix link errors on mingw.
25518         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25519         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25520         $(LIBSOCKET).
25521         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25522         $(LIBSOCKET).
25523
25524 2010-03-28  Bruno Haible  <bruno@clisp.org>
25525             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25526
25527         lib-ignore: Determine different options for different compilers.
25528         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25529         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25530         Add comments.
25531         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25532         * NEWS: Mention the change.
25533
25534 2010-03-27  Bruno Haible  <bruno@clisp.org>
25535
25536         Remove unused GNULIB_XYZ macro definitions.
25537         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25538         * modules/fseek (configure.ac): Likewise.
25539         * modules/ioctl (configure.ac): Likewise.
25540         * modules/open (configure.ac): Likewise.
25541         * modules/stdlib-safer (configure.ac): Likewise.
25542
25543 2010-03-27  Bruno Haible  <bruno@clisp.org>
25544
25545         Add a remark about certain modules.
25546         * modules/malloc (Comment): New section.
25547         * modules/realloc (Comment): Likewise.
25548         * modules/sigpipe (Comment): Likewise.
25549
25550 2010-03-27  Bruno Haible  <bruno@clisp.org>
25551
25552         Resolve conflict between the two kinds of module indicators.
25553         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25554         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25555         * modules/canonicalize (configure.ac): Invoke
25556         gl_MODULE_INDICATOR_FOR_TESTS.
25557         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25558         GNULIB_XYZ.
25559         * tests/test-dirent-c++.cc: Likewise.
25560         * tests/test-dirent-safer.c: Likewise.
25561         * tests/test-dup2.c: Likewise.
25562         * tests/test-fchdir.c: Likewise.
25563         * tests/test-fcntl-h-c++.cc: Likewise.
25564         * tests/test-getopt.c: Likewise.
25565         * tests/test-getopt.h: Likewise.
25566         * tests/test-langinfo-c++.cc: Likewise.
25567         * tests/test-locale-c++.cc: Likewise.
25568         * tests/test-math-c++.cc: Likewise.
25569         * tests/test-pty-c++.cc: Likewise.
25570         * tests/test-search-c++.cc: Likewise.
25571         * tests/test-signal-c++.cc: Likewise.
25572         * tests/test-spawn-c++.cc: Likewise.
25573         * tests/test-stdio-c++.cc: Likewise.
25574         * tests/test-stdlib-c++.cc: Likewise.
25575         * tests/test-string-c++.cc: Likewise.
25576         * tests/test-sys_ioctl-c++.cc: Likewise.
25577         * tests/test-sys_select-c++.cc: Likewise.
25578         * tests/test-sys_socket-c++.cc: Likewise.
25579         * tests/test-sys_stat-c++.cc: Likewise.
25580         * tests/test-sys_time-c++.cc: Likewise.
25581         * tests/test-time-c++.cc: Likewise.
25582         * tests/test-unistd-c++.cc: Likewise.
25583         * tests/test-wchar-c++.cc: Likewise.
25584         * tests/uninorm/test-u8-nfc.c: Likewise.
25585         * tests/uninorm/test-u8-nfd.c: Likewise.
25586         * tests/uninorm/test-u8-nfkc.c: Likewise.
25587         * tests/uninorm/test-u8-nfkd.c: Likewise.
25588         * tests/uninorm/test-u16-nfc.c: Likewise.
25589         * tests/uninorm/test-u16-nfd.c: Likewise.
25590         * tests/uninorm/test-u16-nfkc.c: Likewise.
25591         * tests/uninorm/test-u16-nfkd.c: Likewise.
25592         * tests/uninorm/test-u32-nfc.c: Likewise.
25593         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25594         * tests/uninorm/test-u32-nfd.c: Likewise.
25595         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25596         * tests/uninorm/test-u32-nfkc.c: Likewise.
25597         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25598         * tests/uninorm/test-u32-nfkd.c: Likewise.
25599         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25600         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25601
25602 2010-03-27  Bruno Haible  <bruno@clisp.org>
25603
25604         Distinguish two kinds of module indicators.
25605         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25606         gl_MODULE_INDICATOR.
25607         (gl_MODULE_INDICATOR): New macro.
25608         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25609         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25610         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25611         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25612         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25613         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25614         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25615         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25616         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25617         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25618         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25619         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25620         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25621         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25622         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25623         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25624         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25625         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25626         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25627         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25628         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25629         * modules/cloexec (configure.ac): Likewise.
25630         * modules/getopt-gnu (configure.ac): Likewise.
25631         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25632         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25633         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25634         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25635
25636 2010-03-27  Bruno Haible  <bruno@clisp.org>
25637
25638         New module description field 'Comment'.
25639         * gnulib-tool: New option --extract-comment.
25640         (func_usage): Document it.
25641         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25642         (func_get_comment): New function.
25643         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25644
25645 2010-03-27  Bruno Haible  <bruno@clisp.org>
25646
25647         Addendum to 2010-02-07 commit.
25648         * gnulib-tool (func_usage): Document --extract-applicability option.
25649
25650 2010-03-27  Bruno Haible  <bruno@clisp.org>
25651
25652         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25653         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25654         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25655         rather than link errors.
25656
25657 2010-03-27  Bruno Haible  <bruno@clisp.org>
25658
25659         Avoid side effects from tests-related modules on the compilation of lib.
25660         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25661         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25662         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25663         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25664         macro.
25665         (func_import): Define a witness macro. Assign it a value that depends
25666         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25667         tests-related modules.
25668         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25669         Reported by Jim Meyering.
25670
25671 2010-03-27  Bruno Haible  <bruno@clisp.org>
25672
25673         Factorize common .m4 code.
25674         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25675         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25676         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25677         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25678         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25679         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25680         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25681         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25682         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25683         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25684         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25685         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25686         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25687         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25688         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25689         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25690         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25691         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25692         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25693         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25694         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25695         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25696         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25697         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25698         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25699         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25700         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25701         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25702         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25703         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25704         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25705         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25706
25707 2010-03-27  Bruno Haible  <bruno@clisp.org>
25708
25709         Fix a compilation error on Cygwin with g++ >= 4.3.
25710         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25711         if it is undefined or if we alias it to chmod.
25712         (lstat): Don't warn about the use of this function if it is undefined
25713         or if we alias it to stat.
25714         Reported by Simon Josefsson.
25715
25716 2010-03-27  Bruno Haible  <bruno@clisp.org>
25717
25718         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25719         * modules/getlogin (configure.ac): Update.
25720
25721         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25722         * modules/getlogin_r (configure.ac): Update.
25723
25724         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25725         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25726         * modules/inet_ntop (configure.ac): Update.
25727
25728         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25729         * modules/inet_pton (configure.ac): Update.
25730
25731         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25732         * modules/mbslen (configure.ac): Update.
25733
25734         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25735         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25736         * modules/forkpty (configure.ac): Update.
25737         * modules/openpty (configure.ac): Update.
25738
25739 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25740
25741         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25742         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25743
25744 2010-03-25  Eric Blake  <eblake@redhat.com>
25745
25746         maint: use pragma consistently across replacement headers
25747         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25748         * lib/dirent.in.h (system_header): Likewise.
25749         * lib/errno.in.h (system_header): Likewise.
25750         * lib/float.in.h (system_header): Likewise.
25751         * lib/getopt.in.h (system_header): Likewise.
25752         * lib/iconv.in.h (system_header): Likewise.
25753         * lib/inttypes.in.h (system_header): Likewise.
25754         * lib/langinfo.in.h (system_header): Likewise.
25755         * lib/locale.in.h (system_header): Likewise.
25756         * lib/math.in.h (system_header): Likewise.
25757         * lib/netdb.in.h (system_header): Likewise.
25758         * lib/netinet_in.in.h (system_header): Likewise.
25759         * lib/pty.in.h (system_header): Likewise.
25760         * lib/sched.in.h (system_header): Likewise.
25761         * lib/se-selinux.in.h (system_header): Likewise.
25762         * lib/search.in.h (system_header): Likewise.
25763         * lib/spawn.in.h (system_header): Likewise.
25764         * lib/stdarg.in.h (system_header): Likewise.
25765         * lib/stdint.in.h (system_header): Likewise.
25766         * lib/string.in.h (system_header): Likewise.
25767         * lib/strings.in.h (system_header): Likewise.
25768         * lib/sys_file.in.h (system_header): Likewise.
25769         * lib/sys_ioctl.in.h (system_header): Likewise.
25770         * lib/sys_socket.in.h (system_header): Likewise.
25771         * lib/sys_times.in.h (system_header): Likewise.
25772         * lib/sys_utsname.in.h (system_header): Likewise.
25773         * lib/sys_wait.in.h (system_header): Likewise.
25774         * lib/sysexits.in.h (system_header): Likewise.
25775         * lib/unistd.in.h (system_header): Likewise.
25776         * lib/wctype.in.h (system_header): Likewise.
25777
25778         arpa/inet: fix mingw compilation warning
25779         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25780         Reported by Matthew Bolte.
25781
25782 2010-03-25  Bruno Haible  <bruno@clisp.org>
25783
25784         Avoid collision between gnulib wrapper and libintl wrapper.
25785         * lib/printf.c (printf): Don't define if a printf wrapper is already
25786         defined in intl/printf.c.
25787         Reported by Michel Boaventura <michel@michelboaventura.com>.
25788
25789 2010-03-25  Bruno Haible  <bruno@clisp.org>
25790
25791         Use ANSI C.
25792         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25793
25794 2010-03-25  Bruno Haible  <bruno@clisp.org>
25795
25796         Minor formatting changes.
25797         * lib/acosl.c: Insert space before function argument list.
25798         * lib/argz.c: Likewise.
25799         * lib/asinl.c: Likewise.
25800         * lib/expl.c: Likewise.
25801         * lib/gen-uni-tables.c: Likewise.
25802         * lib/gettext.h: Likewise.
25803         * lib/glthread/lock.h: Likewise.
25804         * lib/tanl.c: Likewise.
25805         * lib/uniname/uniname.c: Likewise.
25806         * tests/test-idpriv-drop.c: Likewise.
25807         * tests/test-idpriv-droptemp.c: Likewise.
25808         * tests/test-lock.c: Likewise.
25809         * tests/test-tls.c: Likewise.
25810         * lib/argp-help.c: Insert space before function-like macro argument
25811         list.
25812         * lib/memcmp.c: Likewise.
25813         * tests/test-base64.c: Likewise.
25814         * lib/localename.c: Insert space before sizeof's argument list.
25815         * lib/safe-alloc.h: Likewise.
25816         * lib/file-set.h: Insert space before macro argument list.
25817         * tests/test-argp.c: Likewise.
25818         * lib/argp-namefrob.h: Insert space before function parameter list.
25819         * lib/getaddrinfo.c: Likewise.
25820         * lib/netdb.in.h: Likewise.
25821         * lib/parse-duration.h: Likewise.
25822         * lib/parse-duration.c: Likewise.
25823         * lib/poll.c: Likewise.
25824         * lib/select.c: Likewise.
25825         * lib/trim.h: Likewise.
25826         * tests/test-usleep.c: Likewise.
25827         * lib/ldexpl.c: Insert space before function parameter list and before
25828         function argument list.
25829         * lib/logl.c: Likewise.
25830         * lib/sqrtl.c: Likewise.
25831         * lib/trim.c: Likewise.
25832         * lib/cosl.c: Use GNU style indentation. Insert space before function
25833         argument list.
25834         * lib/sinl.c: Likewise.
25835         * lib/tsearch.c: Insert space after 'for'.
25836         Reported by Jim Meyering.
25837
25838 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25839
25840         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25841         config header before grepping, as it's not present before
25842         autoreconf/configure are run.  Reported by Simon Josefsson.
25843
25844 2010-03-23  Bruno Haible  <bruno@clisp.org>
25845
25846         pt_chown: Make it work with automake < 1.11.
25847         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25848         Reported by Simon Josefsson.
25849
25850 2010-03-23  Bruno Haible  <bruno@clisp.org>
25851
25852         pt_chown: Don't depend on GPLed modules.
25853         * lib/pt_chown.c: Don't include idpriv.h.
25854         (main): Don't drop privileges.
25855         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25856         Reported by Simon Josefsson.
25857
25858 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25859
25860         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25861         suggestions from karl@freefriends.org (Karl Berry).
25862
25863 2010-03-22  Eric Blake  <eblake@redhat.com>
25864
25865         gethostname: further tweaks
25866         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25867         are overriding gethostname.
25868         Suggested by Bruno Haible.
25869
25870 2010-03-21  Bruno Haible  <bruno@clisp.org>
25871
25872         Fix comments.
25873         * lib/forkpty.c (rpl_forkpty): Fix comment.
25874         * lib/openpty.c (rpl_openpty): Likewise.
25875         Reported by Eric Blake.
25876
25877 2010-03-22  Eric Blake  <eblake@redhat.com>
25878
25879         gethostname: fix build on mingw
25880         * lib/unistd.in.h (includes): Work around fact that mingw
25881         <winsock2.h> re-includes <unistd.h>, by avoiding any
25882         redeclarations if we are being included by <winsock2.h>.
25883         Reported by Matthias Bolte.
25884
25885 2010-03-21  Bruno Haible  <bruno@clisp.org>
25886
25887         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25888         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25889         modifications.
25890         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25891         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25892         provide the replacement.
25893         * modules/forkpty (Depends-on): Add openpty, login_tty.
25894         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25895         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25896         * doc/glibc-functions/forkpty.texi: More supported platforms.
25897         * config/srclist.txt: Add forkpty.c (commented).
25898
25899 2010-03-21  Bruno Haible  <bruno@clisp.org>
25900
25901         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25902         (Makefile.am): Verify that PTY_LIB is defined.
25903
25904         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25905
25906 2010-03-21  Bruno Haible  <bruno@clisp.org>
25907
25908         Tests for module 'login_tty'.
25909         * modules/login_tty-tests: New file.
25910         * tests/test-login_tty.c: New file.
25911
25912         New module 'login_tty'.
25913         * lib/login_tty.c: New file.
25914         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25915         * modules/login_tty: New file.
25916         * doc/glibc-functions/login_tty.texi: Mention the new module.
25917
25918 2010-03-21  Bruno Haible  <bruno@clisp.org>
25919
25920         login_tty: Documentation.
25921         * doc/glibc-functions/login_tty.texi: New file.
25922         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25923
25924 2010-03-21  Bruno Haible  <bruno@clisp.org>
25925
25926         pty: Consistent macro naming.
25927         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25928         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25929         * modules/pty (configure.ac): Update.
25930
25931 2010-03-21  Bruno Haible  <bruno@clisp.org>
25932
25933         Tests for openpty: Make stricter.
25934         * tests/test-openpty.c (main): Add test of canonical processing and
25935         erase.
25936         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25937
25938         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25939         * lib/openpty.c (openpty): New replacement function.
25940         * lib/pty.in.h: Include <termios.h>.
25941         (openpty): Update declaration. Add comments.
25942         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25943         is not declared, arrange to provide the replacement. Check for _getpty
25944         and posix_openpt.
25945         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25946         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25947         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25948         * modules/pty-tests (test_pty_c___LDADD): New variable.
25949         * doc/glibc-functions/openpty.texi: More supported platforms.
25950
25951 2010-03-21  Bruno Haible  <bruno@clisp.org>
25952
25953         setenv: Tweaks.
25954         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25955         the test program.
25956         * doc/posix-functions/setenv.texi: Update platforms list.
25957
25958 2010-03-21  Bruno Haible  <bruno@clisp.org>
25959
25960         New module 'unlockpt'.
25961         * lib/unlockpt.c: New file, from glibc with modifications.
25962         * m4/unlockpt.m4: New file.
25963         * modules/unlockpt: New file.
25964         * lib/stdlib.in.h (unlockpt): New declaration.
25965         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25966         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25967         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25968         HAVE_UNLOCKPT.
25969         * doc/posix-functions/unlockpt.texi: Mention the new module.
25970         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25971         * config/srclist.txt: Add unlockpt.c (commented).
25972
25973 2010-03-21  Jim Meyering  <meyering@redhat.com>
25974
25975         maint.mk: prohibit inclusion of "intprops.h" without use
25976         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25977
25978 2010-03-21  Bruno Haible  <bruno@clisp.org>
25979
25980         New module 'grantpt'.
25981         * lib/grantpt.c: New file, from glibc with modifications.
25982         * m4/grantpt.m4: New file.
25983         * modules/grantpt: New file.
25984         * lib/stdlib.in.h (grantpt): New declaration.
25985         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25986         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25987         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25988         HAVE_GRANTPT.
25989         * doc/posix-functions/grantpt.texi: Mention the new module.
25990         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25991         * config/srclist.txt: Add grantpt.c (commented).
25992
25993 2010-03-21  Bruno Haible  <bruno@clisp.org>
25994
25995         New module 'pt_chown'.
25996         * lib/pt_chown.c: New file, from glibc with modifications.
25997         * lib/pty-private.h: New file, from glibc with modifications.
25998         * modules/pt_chown: New file.
25999         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26000
26001 2010-03-21  Bruno Haible  <bruno@clisp.org>
26002
26003         Tests for module 'ptsname'.
26004         * modules/ptsname-tests: New file.
26005         * tests/test-ptsname.c: New file.
26006
26007         New module 'ptsname'.
26008         * lib/ptsname.c: New file, from glibc with modifications.
26009         * m4/ptsname.m4: New file.
26010         * modules/ptsname: New file.
26011         * lib/stdlib.in.h (ptsname): New declaration.
26012         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26013         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26014         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26015         HAVE_PTSNAME.
26016         * doc/posix-functions/ptsname.texi: Mention the new module.
26017         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26018         * config/srclist.txt: Add ptsname.c (commented).
26019
26020 2010-03-21  Bruno Haible  <bruno@clisp.org>
26021
26022         Tests for module 'ttyname_r'.
26023         * modules/ttyname_r-tests: New file.
26024         * tests/test-ttyname_r.c: New file.
26025
26026         New module 'ttyname_r'.
26027         * lib/ttyname_r.c: New file.
26028         * m4/ttyname_r.m4: New file.
26029         * modules/ttyname_r: New file.
26030         * lib/unistd.in.h (ttyname_r): New declaration.
26031         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26032         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26033         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26034         HAVE_TTYNAME_R.
26035         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26036         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26037
26038 2010-03-20  Bruno Haible  <bruno@clisp.org>
26039
26040         signal: Undefine macro definitions in C++ mode.
26041         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26042         sigfillset): Undefine macro definitions from the system header in C++
26043         mode.
26044         Reported by John W. Eaton <jwe@gnu.org>.
26045
26046 2010-03-20  Bruno Haible  <bruno@clisp.org>
26047
26048         Ensure no #include statements inside extern "C" { ... }.
26049         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26050         contain #include statements.
26051         * lib/time.in.h: Likewise.
26052
26053 2010-03-20  Bruno Haible  <bruno@clisp.org>
26054
26055         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26056         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26057         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26058         Reported by John W. Eaton <jwe@gnu.org>.
26059
26060 2010-03-20  Bruno Haible  <bruno@clisp.org>
26061
26062         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26063         Reported by Jim Meyering.
26064
26065 2010-03-20  Bruno Haible  <bruno@clisp.org>
26066
26067         pipe: Set errno upon failure.
26068         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26069         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26070         errno value in error message.
26071
26072 2010-03-20  Bruno Haible  <bruno@clisp.org>
26073             Jim Meyering  <meyering@redhat.com>
26074
26075         lchown: Avoid "unused variable" warning.
26076         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26077
26078 2010-03-20  Bruno Haible  <bruno@clisp.org>
26079
26080         Work around unlink() bug on MacOS X 10.5.6.
26081         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26082         attempting to unlink a parent directory.
26083         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26084         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26085         activate for the replacement function.
26086         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26087
26088 2010-03-20  Bruno Haible  <bruno@clisp.org>
26089
26090         Fix link errors on Solaris 8.
26091         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26092         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26093
26094 2010-03-19  Jim Meyering  <meyering@redhat.com>
26095
26096         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26097         The _LIBC implementation of build_range_exp correctly honors the
26098         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26099         However, the non-_LIBC implementation would ignore that syntax-bit
26100         flag and return REG_ERANGE unconditionally.
26101         This change makes it honor that flag.
26102         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26103         Make two pointer parameters "const".
26104         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26105         (parse_bracket_exp): Update caller.
26106
26107         regex.m4: correct the reversed range endpoint ([b-a]) test
26108         * m4/regex.m4: When requiring that [b-a] evoke failure,
26109         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26110         test pass once again for x86-based systems.
26111
26112 2010-03-19  Bruno Haible  <bruno@clisp.org>
26113
26114         scandir: Fix link error on Solaris 8.
26115         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26116         macros.
26117
26118 2010-03-19  Bruno Haible  <bruno@clisp.org>
26119
26120         getusershell: Fix documentation.
26121         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26122         module.
26123         * doc/glibc-functions/setusershell.texi: Likewise.
26124
26125         getusershell: Provide declaration, missing on Solaris 9.
26126         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26127         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26128         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26129         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26131         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26132         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26133         HAVE_GETUSERSHELL.
26134         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26135
26136 2010-03-19  Bruno Haible  <bruno@clisp.org>
26137
26138         wctype: Provide iswblank function.
26139         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26140         exists and is fine.
26141         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26142         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26143         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26144         * doc/posix-functions/iswblank.texi: Update.
26145
26146 2010-03-19  Bruno Haible  <bruno@clisp.org>
26147
26148         Tests of module 'pty' in C++ mode.
26149         * modules/pty-tests: New file.
26150         * tests/test-pty-c++.cc: New file.
26151         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26152
26153 2010-03-19  Eric Blake  <eblake@redhat.com>
26154
26155         logb: fix documentation
26156         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26157         1.5 declaration bug.
26158
26159         forkpty, openpty: prefer glibc's const-safe prototype
26160         * lib/forkpty.c (rpl_forkpty): New file.
26161         * lib/openpty.c (rpl_openpty): Likewise.
26162         * modules/forkpty (Files): Distribute it.
26163         * modules/openpty (Files): Likewise.
26164         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26165         check...
26166         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26167         replacement for for non-const BSD signature.
26168         * modules/pty (Makefile.am): Substitute witnesses.
26169         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26170         * tests/test-forkpty.c: Update signature check.
26171         * tests/test-openpty.c: Likewise.
26172         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26173         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26174
26175         forkpty, openpty: split functions into new modules
26176         * modules/pty (Makefile.am): Substitute new witnesses.
26177         (Libraries): Move library detection...
26178         * modules/forkpty: ...into new module.
26179         * modules/openpty: Another new module.
26180         * modules/pty-tests: Rename and split...
26181         * modules/forkpty-tests: ...to this...
26182         * modules/openpty-tests: ...and this.
26183         * tests/test-pty.c: Rename and split...
26184         * tests/test-forkpty.c: ...to this...
26185         * tests/test-openpty.c: ...and this.
26186         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26187         (gl_PTY): Split library searching...
26188         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26189         (gl_FORKPTY, gl_OPENPTY): New macros.
26190         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26191         * NEWS: Mention the split.
26192         * MODULES.html.sh (Misc): Document the modules.
26193         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26194         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26195
26196         pty: improve replacement header
26197         * lib/pty.in.h: New file.
26198         * modules/pty (Files): Ship it.
26199         (Makefile.am): Always build replacement.
26200         * m4/pty.m4: Rename...
26201         * m4/pty_h.m4: ...to this.
26202         (gl_PTY): Modernize setting of witness macros; update check of
26203         forkpty to take proper advantage of cache.
26204         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26205
26206         getopt: avoid compiler warning
26207         * lib/getopt.c (attribute_hidden): Remove unused macro.
26208
26209 2010-03-18  Bruno Haible  <bruno@clisp.org>
26210
26211         Fix link errors on Solaris 8.
26212         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26213         * modules/search-tests (test_search_c___LDADD): Likewise.
26214         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26215         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26216         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26217         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26218         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26219         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26220         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26221
26222 2010-03-18  Bruno Haible  <bruno@clisp.org>
26223
26224         Fix bug introduced on 2010-03-14.
26225         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26226         (gl_SPAWN_H): Require it.
26227         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26228         Reported by Simon Josefsson.
26229
26230 2010-03-18  Bruno Haible  <bruno@clisp.org>
26231
26232         Fix typo introduced on 2009-12-31.
26233         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26234         posix_spawn_file_actions_adddup2.
26235
26236 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26237         and Eric Blake  <eblake@redhat.com>
26238
26239         test-vc-list-files-git: make more robust
26240         * tests/test-vc-list-files-git.sh: Unset problematic environment
26241         variables.  Chain commands together.
26242
26243 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26244
26245         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26246         `AC_CHECK_DECL' invocation.
26247
26248 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26249
26250         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26251         appears before executable statements. Suggested by Petr Sumbera
26252         <Petr.Sumbera@Sun.COM>.
26253
26254 2010-03-14  Bruno Haible  <bruno@clisp.org>
26255
26256         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26257         portability problems. Instead use a simpler test.
26258         (main): Check that invalid arguments are rejected only on Linux.
26259
26260 2010-03-14  Bruno Haible  <bruno@clisp.org>
26261
26262         Fix bug introduced on 2009-12-31.
26263         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26264         gl_PREREQ_SYS_H_WINSOCK2 always.
26265         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26266         SYS_SOCKET_H variable.
26267         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26268         Update comments.
26269         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26270         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26271         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26272         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26273         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26274
26275 2010-03-14  Bruno Haible  <bruno@clisp.org>
26276
26277         Fix values returned by sinl, cosl.
26278         * lib/trigl.h: Add specification comments.
26279         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26280         that combines the values from the precomputed table with the values of
26281         the Chebyshev polynomials.
26282
26283 2010-03-14  Bruno Haible  <bruno@clisp.org>
26284
26285         Fix compilation error when modules 'posix_spawn[p]' are not used.
26286         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26287         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26288
26289 2010-03-14  Bruno Haible  <bruno@clisp.org>
26290
26291         Fix compilation error on mingw when module 'time_r' is not used.
26292         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26293         is 1.
26294         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26295         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26296         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26297         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26298
26299 2010-03-14  Bruno Haible  <bruno@clisp.org>
26300
26301         Fix compilation error with Sun C.
26302         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26303         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26304         instead of GCC specific ULONG_LONG_MAX.
26305         * lib/xstrtoll.c: Likewise.
26306         * lib/xstrtoull.c: Likewise.
26307
26308 2010-03-13  Bruno Haible  <bruno@clisp.org>
26309
26310         Allow the user to disable C++ code and tests.
26311         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26312         (gl_PROG_ANSI_CXX): Require it.
26313
26314 2010-03-13  Bruno Haible  <bruno@clisp.org>
26315
26316         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26317         cases.
26318
26319 2010-03-13  Bruno Haible  <bruno@clisp.org>
26320
26321         Test that gnulib does not break the standard C++ headers.
26322         * tests/test-locale-c++2.cc: New file.
26323         * modules/locale-tests (Files): Add it.
26324         (Makefile.am): Compile it for test-locale-c++.
26325         * tests/test-math-c++2.cc: New file.
26326         * modules/math-tests (Files): Add it.
26327         (Makefile.am): Compile it for test-math-c++.
26328         * tests/test-signal-c++2.cc: New file.
26329         * modules/signal-tests (Files): Add it.
26330         (Makefile.am): Compile it for test-signal-c++.
26331         * tests/test-stdio-c++2.cc: New file.
26332         * modules/stdio-tests (Files): Add it.
26333         (Makefile.am): Compile it for test-stdio-c++.
26334         * tests/test-stdlib-c++2.cc: New file.
26335         * modules/stdlib-tests (Files): Add it.
26336         (Makefile.am): Compile it for test-stdlib-c++.
26337         * tests/test-string-c++2.cc: New file.
26338         * modules/string-tests (Files): Add it.
26339         (Makefile.am): Compile it for test-string-c++.
26340         * tests/test-time-c++2.cc: New file.
26341         * modules/time-tests (Files): Add it.
26342         (Makefile.am): Compile it for test-time-c++.
26343         Reported by John W. Eaton <jwe@gnu.org>.
26344
26345 2010-03-13  Bruno Haible  <bruno@clisp.org>
26346
26347         * gnulib-tool (func_usage): Clarify which options are available for
26348         --create-testdir and --create-megatestdir.
26349
26350 2010-03-13  Bruno Haible  <bruno@clisp.org>
26351
26352         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26353         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26354         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26355         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26356         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26357         when appropriate.
26358         Reported by Jim Meyering.
26359
26360 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26361
26362         * gnulib-tool (func_import): Explain origin of code.
26363
26364 2010-03-12  Bruno Haible  <bruno@clisp.org>
26365
26366         Fix problem with automake's definition of CXXLINK.
26367         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26368         Reported by Simon Josefsson and Ludovic Courtès.
26369
26370 2010-03-12  Bruno Haible  <bruno@clisp.org>
26371
26372         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26373         stable releases.
26374
26375 2010-03-11  Bruno Haible  <bruno@clisp.org>
26376
26377         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26378         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26379         whether the system provides one variant or multiple variants of the
26380         function.
26381         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26382         C++ compilers.
26383         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26384         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26385         Reported by Jim Meyering.
26386
26387 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26388
26389         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26390
26391 2010-03-08  Bruno Haible  <bruno@clisp.org>
26392
26393         gnulib-tool: Add support for --libtool in --create-testdir.
26394         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26395         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26396
26397 2010-03-08  Eric Blake  <eblake@redhat.com>
26398
26399         gnulib-tool.texi: mention possibility of git submodule
26400         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26401         submodules.
26402         * doc/.gitignore: Ignore another generated file.
26403
26404 2010-03-08  Karl Berry  <karl@gnu.org>
26405
26406         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26407         of committing gnulib files while skipping others.
26408
26409 2010-03-07  Bruno Haible  <bruno@clisp.org>
26410
26411         Tests of module 'wctype' in C++ mode.
26412         * tests/test-wctype-c++.cc: New file.
26413         * modules/wctype-tests (Files): Add it and tests/signature.h.
26414         (Depends-on): Add ansi-c++-opt.
26415         (Makefile.am): Arrange to compile and run test-wctype-c++.
26416
26417         Tests of module 'wchar' in C++ mode.
26418         * tests/test-wchar-c++.cc: New file.
26419         * modules/wchar-tests (Files): Add it and tests/signature.h.
26420         (Depends-on): Add ansi-c++-opt.
26421         (Makefile.am): Arrange to compile and run test-wchar-c++.
26422         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26423         gl_MODULE_INDICATOR.
26424
26425         Tests of module 'unistd' in C++ mode.
26426         * tests/test-unistd-c++.cc: New file.
26427         * modules/unistd-tests (Files): Add it and tests/signature.h.
26428         (Depends-on): Add ansi-c++-opt.
26429         (Makefile.am): Arrange to compile and run test-unistd-c++.
26430         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26431         gl_MODULE_INDICATOR.
26432
26433         Tests of module 'time' in C++ mode.
26434         * tests/test-time-c++.cc: New file.
26435         * modules/time-tests (Files): Add it and tests/signature.h.
26436         (Depends-on): Add ansi-c++-opt.
26437         (Makefile.am): Arrange to compile and run test-time-c++.
26438         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26439
26440         Tests of module 'sys_time' in C++ mode.
26441         * tests/test-sys_time-c++.cc: New file.
26442         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26443         (Depends-on): Add ansi-c++-opt.
26444         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26445         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26446         gl_MODULE_INDICATOR.
26447
26448         Tests of module 'sys_stat' in C++ mode.
26449         * tests/test-sys_stat-c++.cc: New file.
26450         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26451         (Depends-on): Add ansi-c++-opt.
26452         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26453         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26454         gl_MODULE_INDICATOR.
26455
26456         Tests of module 'sys_socket' in C++ mode.
26457         * tests/test-sys_socket-c++.cc: New file.
26458         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26459         (Depends-on): Add ansi-c++-opt.
26460         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26461         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26462         gl_MODULE_INDICATOR.
26463
26464         Tests of module 'sys_select' in C++ mode.
26465         * tests/test-sys_select-c++.cc: New file.
26466         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26467         (Depends-on): Add ansi-c++-opt.
26468         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26469         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26470         gl_MODULE_INDICATOR.
26471
26472         Tests of module 'sys_ioctl' in C++ mode.
26473         * tests/test-sys_ioctl-c++.cc: New file.
26474         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26475         (Depends-on): Add ansi-c++-opt.
26476         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26477         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26478         gl_MODULE_INDICATOR.
26479
26480         Tests of module 'string' in C++ mode.
26481         * tests/test-string-c++.cc: New file.
26482         * modules/string-tests (Files): Add it and tests/signature.h.
26483         (Depends-on): Add ansi-c++-opt.
26484         (Makefile.am): Arrange to compile and run test-string-c++.
26485         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26486         gl_MODULE_INDICATOR.
26487
26488         Tests of module 'stdlib' in C++ mode.
26489         * tests/test-stdlib-c++.cc: New file.
26490         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26491         (Depends-on): Add ansi-c++-opt.
26492         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26493         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26494         gl_MODULE_INDICATOR.
26495
26496         Tests of module 'stdio' in C++ mode.
26497         * tests/test-stdio-c++.cc: New file.
26498         * modules/stdio-tests (Files): Add it and tests/signature.h.
26499         (Depends-on): Add ansi-c++-opt.
26500         (Makefile.am): Arrange to compile and run test-stdio-c++.
26501         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26502         gl_MODULE_INDICATOR.
26503
26504         Tests of module 'spawn' in C++ mode.
26505         * tests/test-spawn-c++.cc: New file.
26506         * modules/spawn-tests (Files): Add it and tests/signature.h.
26507         (Depends-on): Add ansi-c++-opt.
26508         (Makefile.am): Arrange to compile and run test-spawn-c++.
26509         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26510         gl_MODULE_INDICATOR.
26511
26512         Tests of module 'signal' in C++ mode.
26513         * tests/test-signal-c++.cc: New file.
26514         * modules/signal-tests (Files): Add it and tests/signature.h.
26515         (Depends-on): Add ansi-c++-opt.
26516         (Makefile.am): Arrange to compile and run test-signal-c++.
26517         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26518         gl_MODULE_INDICATOR.
26519
26520         Tests of module 'search' in C++ mode.
26521         * tests/test-search-c++.cc: New file.
26522         * modules/search-tests (Files): Add it and tests/signature.h.
26523         (Depends-on): Add ansi-c++-opt.
26524         (Makefile.am): Arrange to compile and run test-search-c++.
26525         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26526         gl_MODULE_INDICATOR.
26527
26528         Tests of module 'math' in C++ mode.
26529         * tests/test-math-c++.cc: New file.
26530         * modules/math-tests (Files): Add it and tests/signature.h.
26531         (Depends-on): Add ansi-c++-opt.
26532         (Makefile.am): Arrange to compile and run test-math-c++.
26533         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26534
26535         Tests of module 'locale' in C++ mode.
26536         * tests/test-locale-c++.cc: New file.
26537         * modules/locale-tests (Files): Add it and tests/signature.h.
26538         (Depends-on): Add ansi-c++-opt.
26539         (Makefile.am): Arrange to compile and run test-locale-c++.
26540         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26541         gl_MODULE_INDICATOR.
26542
26543         Tests of module 'langinfo' in C++ mode.
26544         * tests/test-langinfo-c++.cc: New file.
26545         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26546         (Depends-on): Add ansi-c++-opt.
26547         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26548         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26549         gl_MODULE_INDICATOR.
26550
26551         Tests of module 'iconv-h' in C++ mode.
26552         * tests/test-iconv-h-c++.cc: New file.
26553         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26554         (Depends-on): Add ansi-c++-opt.
26555         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26556
26557         Tests of module 'glob' in C++ mode.
26558         * tests/test-glob-c++.cc: New file.
26559         * modules/glob-tests (Files): Add it.
26560         (Depends-on): Add ansi-c++-opt.
26561         (Makefile.am): Arrange to compile and run test-glob-c++.
26562
26563         Tests of module 'fcntl-h' in C++ mode.
26564         * tests/test-fcntl-h-c++.cc: New file.
26565         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26566         (Depends-on): Add ansi-c++-opt.
26567         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26568         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26569         gl_MODULE_INDICATOR.
26570
26571         Tests of module 'dirent' in C++ mode.
26572         * tests/test-dirent-c++.cc: New file.
26573         * modules/dirent-tests (Files): Add it and tests/signature.h.
26574         (Depends-on): Add ansi-c++-opt.
26575         (Makefile.am): Arrange to compile and run test-dirent-c++.
26576         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26577         gl_MODULE_INDICATOR.
26578
26579         New module 'ansi-c++-opt'.
26580         * modules/ansi-c++-opt: New file.
26581         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26582
26583         Document C++ namespace mode.
26584         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26585
26586         wctype: Avoid #define replacements in C++ mode.
26587         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26588         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26589         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26590         In C++, define a namespaced alias symbol.
26591         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26592         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26593         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26594         rule.
26595
26596         wchar: Avoid #define replacements in C++ mode.
26597         * lib/wchar.in.h: Include c++defs.h.
26598         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26599         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26600         symbol.
26601         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26602         * modules/wchar (Depends-on): Add c++defs.
26603         (Makefile.am): Update wchar.h rule.
26604
26605         unistd: Avoid #define replacements in C++ mode.
26606         * lib/unistd.in.h: Include c++defs.h.
26607         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26608         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26609         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26610         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26611         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26612         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26613         symbol.
26614         (environ): Update.
26615         * modules/unistd (Depends-on): Add c++defs.
26616         (Makefile.am): Update unistd.h rule.
26617
26618         time: Avoid #define replacements in C++ mode.
26619         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26620         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26621         define a namespaced alias symbol.
26622         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26623         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26624         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26625         * modules/time (Depends-on): Add c++defs, warn-on-use.
26626         (Makefile.am): Update time.h rule.
26627         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26628         * modules/nanosleep (configure.ac): Likewise.
26629         * modules/strptime (configure.ac): Likewise.
26630         * modules/timegm (configure.ac): Likewise.
26631
26632         sys_time: Avoid #define replacements in C++ mode.
26633         * lib/sys_time.in.h: Include c++defs.h.
26634         (gettimeofday): In C++, define a namespaced alias symbol.
26635         * modules/sys_time (Depends-on): Add c++defs.
26636         (Makefile.am): Update sys/time.h rule.
26637
26638         sys_stat: Avoid #define replacements in C++ mode.
26639         * lib/sys_stat.in.h: Include c++defs.h.
26640         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26641         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26642         namespaced alias symbol.
26643         In C++, define a namespaced alias symbol.
26644         * modules/sys_stat (Depends-on): Add c++defs.
26645         (Makefile.am): Update sys/stat.h rule.
26646
26647         sys_socket: Avoid #define replacements in C++ mode.
26648         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26649         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26650         definitions also when the system has a <sys/socket.h>.
26651         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26652         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26653         In C++, define a namespaced alias symbol.
26654         * modules/sys_socket (Depends-on): Add c++defs.
26655         (Makefile.am): Update sys/socket.h rule.
26656
26657         sys_select: Avoid #define replacements in C++ mode.
26658         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26659         definitions also when the system has a <sys/select.h>.
26660         (select): In C++, define a namespaced alias symbol.
26661         * modules/sys_select (Depends-on): Add c++defs.
26662         (Makefile.am): Update sys/select.h rule.
26663
26664         sys_ioctl: Avoid #define replacements in C++ mode.
26665         * lib/sys_ioctl.in.h: Include c++defs.h.
26666         (ioctl): In C++, define a namespaced alias symbol.
26667         * modules/sys_ioctl (Depends-on): Add c++defs.
26668         (Makefile.am): Update sys/ioctl.h rule.
26669
26670         string: Avoid #define replacements in C++ mode.
26671         * lib/string.in.h: Include c++defs.h.
26672         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26673         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26674         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26675         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26676         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26677         * modules/string (Depends-on): Add c++defs.
26678         (Makefile.am): Update string.h rule.
26679
26680         stdlib: Avoid #define replacements in C++ mode.
26681         * lib/stdlib.in.h: Include c++defs.h.
26682         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26683         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26684         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26685         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26686         symbol.
26687         * modules/stdlib (Depends-on): Add c++defs.
26688         (Makefile.am): Update stdlib.h rule.
26689
26690         stdio: Avoid #define replacements in C++ mode.
26691         * lib/stdio.in.h: Include c++defs.h.
26692         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26693         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26694         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26695         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26696         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26697         namespaced alias symbol.
26698         * modules/stdio (Depends-on): Add c++defs.
26699         (Makefile.am): Update stdio.h rule.
26700
26701         spawn: Avoid #define replacements in C++ mode.
26702         * lib/spawn.in.h: Include c++defs.h.
26703         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26704         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26705         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26706         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26707         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26708         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26709         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26710         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26711         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26712         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26713         In C++, define a namespaced alias symbol.
26714         * modules/spawn (Depends-on): Add c++defs.
26715         (Makefile.am): Update spawn.h rule.
26716
26717         signal: Avoid #define replacements in C++ mode.
26718         * lib/signal.in.h: Include c++defs.h.
26719         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26720         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26721         namespaced alias symbol.
26722         * modules/signal (Depends-on): Add c++defs.
26723         (Makefile.am): Update signal.h rule.
26724
26725         search: Avoid #define replacements in C++ mode.
26726         * lib/search.in.h: Include c++defs.h.
26727         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26728         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26729         symbol.
26730         * modules/search (Depends-on): Add c++defs.
26731         (Makefile.am): Update search.h rule.
26732
26733         math: Avoid #define replacements in C++ mode.
26734         * lib/math.in.h: Include c++defs.h.
26735         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26736         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26737         trunc, truncl): In C++, define a namespaced alias symbol.
26738         * modules/math (Depends-on): Add c++defs.
26739         (Makefile.am): Update math.h rule.
26740
26741         locale: Avoid #define replacements in C++ mode.
26742         * lib/locale.in.h: Include c++defs.h.
26743         (duplocale): In C++, define a namespaced alias symbol.
26744         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26745         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26746         * modules/locale (Depends-on): Add c++defs.
26747         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26748
26749         langinfo: Avoid #define replacements in C++ mode.
26750         * lib/langinfo.in.h: Include c++defs.h.
26751         (nl_langinfo): In C++, define a namespaced alias symbol.
26752         * modules/langinfo (Depends-on): Add c++defs.
26753         (Makefile.am): Update langinfo.h rule.
26754
26755         iconv-h: Avoid #define replacements in C++ mode.
26756         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26757         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26758         symbol.
26759         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26760         whenever iconv is present.
26761         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26762         (Makefile.am): Update iconv.h rule.
26763
26764         glob: Avoid #define replacements in C++ mode.
26765         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26766         (_gl_glob_errfunc_fn): New type.
26767         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26768         symbol.
26769         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26770         (Makefile.am): Update glob.h rule.
26771
26772         fcntl-h: Avoid #define replacements in C++ mode.
26773         * lib/fcntl.in.h: Include c++defs.h.
26774         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26775         * modules/fcntl-h (Depends-on): Add c++defs.
26776         (Makefile.am): Update fcntl.h rule.
26777
26778         dirent: Avoid #define replacements in C++ mode.
26779         * lib/dirent.in.h: Include c++defs.h.
26780         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26781         namespaced alias symbol.
26782         (dirfd): Update declaration.
26783         * modules/dirent (Depends-on): Add c++defs.
26784         (Makefile.am): Update dirent.h rule.
26785
26786         ctype: Make it usable in C++ code.
26787         * lib/ctype.in.h: Include c++defs.h.
26788         (isblank): Declare as extern "C".
26789         * modules/ctype (Depends-on): Add c++defs.
26790         (Makefile.am): Update ctype.h rule.
26791
26792         New module 'c++defs'.
26793         * modules/c++defs: New file.
26794         * build-aux/c++defs.h: New file.
26795         Reported by John W. Eaton <jwe@gnu.org>.
26796
26797 2010-03-07  Bruno Haible  <bruno@clisp.org>
26798
26799         logb: Provide missing declaration for Cygwin.
26800         * lib/math.in.h (logb): New declaration.
26801         * m4/logb.m4: New file.
26802         * modules/logb (Files): Add m4/logb.m4.
26803         (Depends-on): Add math.
26804         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26805         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26807         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26808         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26809
26810 2010-03-07  Bruno Haible  <bruno@clisp.org>
26811
26812         Fix test-cond link error.
26813         * tests/test-cond.c: Include <stdio.h>.
26814
26815 2010-03-07  Bruno Haible  <bruno@clisp.org>
26816
26817         Fix test-dirent-safer link error.
26818         * modules/dirent-safer-tests (Makefile.am): Define
26819         test_dirent_safer_LDADD.
26820
26821 2010-03-07  Bruno Haible  <bruno@clisp.org>
26822
26823         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26824         among default module list.
26825
26826 2010-03-07  Bruno Haible  <bruno@clisp.org>
26827
26828         Fix link error on platforms with GNU libiconv.
26829         * modules/unistr/u8-strcoll-tests (Makefile): Define
26830         test_u8_strcoll_LDADD.
26831         * modules/unistr/u16-strcoll-tests (Makefile): Define
26832         test_u16_strcoll_LDADD.
26833         * modules/unistr/u32-strcoll-tests (Makefile): Define
26834         test_u32_strcoll_LDADD.
26835
26836 2010-03-07  Bruno Haible  <bruno@clisp.org>
26837
26838         Use POSIX declarations for socket functions.
26839         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26840         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26841         rpl_sendto): Change declaration to match POSIX.
26842         * lib/connect.c (rpl_connect): Likewise.
26843         * lib/accept.c (rpl_accept): Likewise.
26844         * lib/bind.c (rpl_bind): Likewise.
26845         * lib/getpeername.c (rpl_getpeername): Likewise.
26846         * lib/getsockname.c (rpl_getsockname): Likewise.
26847         * lib/recv.c (rpl_recv): Likewise.
26848         * lib/send.c (rpl_send): Likewise.
26849         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26850         * lib/sendto.c (rpl_sendto): Likewise.
26851
26852 2010-03-06  Bruno Haible  <bruno@clisp.org>
26853
26854         Clarify access, euidaccess, faccessat.
26855         * doc/posix-functions/faccessat.texi: Mention security problem under
26856         "Other problems", not "Portability problems".
26857         * doc/posix-functions/access.texi: Likewise. Mention a related security
26858         problem.
26859         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26860         * lib/euidaccess.c: Add comments about platforms.
26861         * lib/unistd.in.h (access, euidaccess): Add warnings.
26862
26863 2010-03-07  Bruno Haible  <bruno@clisp.org>
26864
26865         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26866         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26867         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26868         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26869         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26870         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26871         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26872         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26873         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26874         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26875         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26876         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26877         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26878         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26879         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26880         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26881         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26882         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26883         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26884         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26885         Likewise.
26886         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26887         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26888         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26889         Likewise.
26890         * tests/test-spawn.c (main): Make it work when
26891         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26892
26893 2010-03-07  Bruno Haible  <bruno@clisp.org>
26894
26895         Fix incorrect Makefile.am generation in German locale.
26896         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26897         Execute sed command with character range in C locale.
26898
26899 2010-03-06  Bruno Haible  <bruno@clisp.org>
26900
26901         Tests for module 'iconv-h'.
26902         * modules/iconv-h-tests: New file.
26903         * tests/test-iconv-h.c: New file.
26904
26905         New module 'iconv-h'.
26906         * modules/iconv-h: New file.
26907         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26908         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26909         (configure.ac): Remove gl_ICONV_H.
26910         (Makefile.am): Remove rule for iconv.h.
26911
26912 2010-03-06  Bruno Haible  <bruno@clisp.org>
26913
26914         More consistent naming of *.m4 files.
26915         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26916         * modules/wctype (Files): Update.
26917
26918         More consistent naming of *.m4 files.
26919         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26920         * modules/wchar (Files): Update.
26921
26922 2010-03-06  Jim Meyering  <meyering@redhat.com>
26923
26924         euidaccess: relax license to LGPLv2+
26925         * modules/euidaccess (License): Relax to LGPLv2+.
26926
26927 2010-03-06  Bruno Haible  <bruno@clisp.org>
26928
26929         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26930         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26931         (Makefile.am): Augment lib_SOURCES instead.
26932
26933 2010-03-04  Jim Meyering  <meyering@redhat.com>
26934
26935         utime: remove obsolete module
26936         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26937         unnecessary for years, and has been marked as obsolete for 10 months.
26938         * modules/utime: Remove file.
26939         * lib/utime.c: Remove file.
26940         * m4/utime.m4: Remove file.
26941         * m4/utimes-null.m4: Remove file.
26942         * doc/posix-functions/utime.texi (utime): Remove reference to
26943         the module.  Move the sole "fixed by gnulib" item into the
26944         "problems not fixed by Gnulib" list.
26945         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26946
26947 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26948
26949         * modules/exit (License): Relax license to LGPLv2+.
26950         (Status): Mark as obsolete.
26951         * NEWS: Mention deprecated 'exit' module.
26952         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26953         of now obsolete 'exit'.
26954
26955 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26956
26957         fts-lgpl: remove unused module
26958         * modules/fts-lgpl: Remove.
26959         * MODULES.html.sh (func_all_modules): Adjust.
26960         * check-module (find_included_lib_files): Adjust.
26961         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26962
26963 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26964
26965         copy-acl: enhance Solaris ACL error handling
26966         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26967         * lib/set-mode-acl.c (qset_acl): Likewise.
26968
26969 2010-03-02  Bruno Haible  <bruno@clisp.org>
26970
26971         spawn: Don't override the system defined values on FreeBSD 8.
26972         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26973         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26974         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26975         if HAVE_POSIX_SPAWN is 1.
26976         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26977
26978 2010-03-01  Bruno Haible  <bruno@clisp.org>
26979
26980         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26981         regarding Automake.
26982
26983 2010-02-25  Bruno Haible  <bruno@clisp.org>
26984
26985         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26986         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26987         setting, not afterwards.
26988         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26989
26990 2010-02-24  Eric Blake  <eblake@redhat.com>
26991
26992         bootstrap, git-version-gen: use timestamp
26993         * build-aux/git-version-gen (scriptversion): Force UTC.
26994         * build-aux/bootstrap (scriptversion): New variable.
26995
26996         bootstrap: allow older git
26997         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26998         older than 1.6.4.  Requested by the libvirt project.
26999
27000 2010-02-23  Eric Blake  <eblake@redhat.com>
27001
27002         warn-on-use: work with old autoconf
27003         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27004         AS_VAR semantics of autoconf 2.60.
27005         Reported by Bruno Haible.
27006
27007         bootstrap: improve some comments
27008         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27009         clarification comments.
27010
27011         gettimeofday: provide correct function
27012         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27013         when replacement is declared, otherwise provide gettimeofday.
27014         Reported by Michael Goffioul.
27015
27016 2010-02-23  Jim Meyering  <meyering@redhat.com>
27017
27018         lib-ignore: relax license to "unlimited", not LGPLv2+
27019         * modules/lib-ignore (License): Relax to "unlimited".
27020
27021 2010-02-23  Jim Meyering  <meyering@redhat.com>
27022
27023         lib-ignore: relax license to LGPLv2+
27024         * modules/lib-ignore (License): Relax to LGPLv2+.
27025
27026 2010-02-22  Eric Blake  <eblake@redhat.com>
27027
27028         lseek: avoid bash 3.2 broken pipe bug
27029         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27030         warning from bash 3.2.
27031         Reported by Ben Pfaff, with analysis from Bruno Haible.
27032
27033         bootstrap: support non-FSF copyright holder
27034         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27035         bootstrap.conf override of COPYRIGHT_HOLDER.
27036         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27037
27038         bootstrap: interoperate with gettext 0.14.1
27039         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27040
27041         bootstrap: allow for alternate submodule location
27042         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27043         hardcoding submodule location.
27044         (gnulib_mk): Allow direct use of Makefile.am.
27045
27046         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27047         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27048         rather than reconfiguring where the submodule points.
27049
27050         gettimeofday: restore support for platforms that lack function
27051         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27052         replacement if function is missing.
27053         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27054         * modules/sys_time (Makefile.am): Substitute it.
27055         * lib/sys_time.in.h (gettimeofday): Check it.
27056         Reported by Michael Goffioul.
27057
27058 2010-02-21  Bruno Haible  <bruno@clisp.org>
27059
27060         * lib/stdio.in.h (obstack_printf): Fix typo.
27061
27062 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27063
27064         vc-list-files: use bzr ls's -R option
27065         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27066         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27067
27068 2010-02-21  Jim Meyering  <meyering@redhat.com>
27069
27070         init.sh: fix EXEEXT shims to work also for names like test-prog
27071         * tests/init.sh: Re-exec a better shell, when needed.
27072         If the current shell lacks support for posix $(...), an init.sh-using
27073         test will now try to find a shell that supports that.  If EXEEXT is
27074         nonempty, we also require support for hyphen-in-alias-name and shell
27075         substitutions like ${var#glob}.  Failure to find such a shell results
27076         in a skipped test.
27077
27078 2010-02-21  Bruno Haible  <bruno@clisp.org>
27079
27080         Really work around around "broken pipe" error message from bash 3.2.
27081         * gnulib-tool (func_reset_sigpipe): Remove function.
27082         (echo): In bash 3.2, define to a function that uses printf.
27083         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27084
27085 2010-02-20  Bruno Haible  <bruno@clisp.org>
27086
27087         Restore support for automake 1.9.6 with autoconf 2.61.
27088         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27089         Reported by James Youngman <jay@gnu.org>.
27090
27091 2010-02-20  Bruno Haible  <bruno@clisp.org>
27092
27093         Improve *printf warning condition.
27094         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27095         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27096         and the function is overridden due to SIGPIPE emulation.
27097
27098 2010-02-20  Bruno Haible  <bruno@clisp.org>
27099
27100         * lib/stdio.in.h: Tweak comments.
27101
27102 2010-02-19  Bruno Haible  <bruno@clisp.org>
27103
27104         Make it easier to find modules. New gnulib-tool option '--find'.
27105         * gnulib-tool: New option --find.
27106         (func_usage): Document it.
27107         (func_sanitize_modulelist): New function, extracted from
27108         func_all_modules.
27109         (func_all_modules): Invoke it.
27110         * doc/gnulib-tool.texi (Which modules?): New node.
27111
27112 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27113
27114         * lib/sys_select.in.h: Provide select replacement even if
27115         sys/select.h exists on a system, for Interix.
27116
27117 2010-02-18  Jim Meyering  <meyering@redhat.com>
27118
27119         init.sh: don't use $(...) just yet
27120         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27121         to accommodate e.g., Solaris' /bin/sh.
27122
27123 2010-02-17  Bruno Haible  <bruno@clisp.org>
27124
27125         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27126         Reported by Ludovic Courtès <ludo@gnu.org>.
27127
27128 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27129
27130         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27131         linking with -lintl.
27132
27133 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27134
27135         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27136         if not provided by the system's netdb.h.  Reported by
27137         ludo@gnu.org (Ludovic Courtès).
27138
27139 2010-02-15  Jim Meyering  <meyering@redhat.com>
27140
27141         init.sh: improve portability and efficiency
27142         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27143         "dummy" in a for loop.
27144         Use '!', not '^' to select the complement of a character set used
27145         in a "case" statement.
27146         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27147         Suggestions from Eric Blake.
27148
27149         init.sh: automatically accommodate programs with the .exe suffix
27150         Automatically arrange for an invocation of "prog" to execute the
27151         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27152         may use the simpler "prog", yet still work when built on a system
27153         that requires specifying the added suffix.
27154         Do this by constructing a function named "prog" that invokes
27155         "prog.exe" for each .exe file in selected directories.
27156         * tests/init.sh (find_exe_basenames_): New function.
27157         (create_exe_shim_functions_): New function.
27158         (path_prepend_): Use it.
27159
27160         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27161         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27162         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27163
27164 2010-02-14  Jim Meyering  <meyering@redhat.com>
27165
27166         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27167         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27168         (sc_prohibit_hash_pjw_without_use): New rule.
27169
27170         maint.mk: allow the default upload destination dir to be overridden
27171         * top/maint.mk (upload_dest_dir_): Define with a default that
27172         preserves the status quo.
27173         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27174         Reported by Peter Simons.
27175
27176         maint.mk: prohibit inclusion of "hash.h" without_use
27177         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27178
27179 2010-02-10  Jim Meyering  <meyering@redhat.com>
27180
27181         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27182         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27183
27184 2010-02-09  Eric Blake  <ebb9@byu.net>
27185         and Bruno Haible  <bruno@clisp.org>
27186
27187         obstack-printf-posix: ensure declaration
27188         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27189         extracted from gl_FUNC_OBSTACK_PRINTF.
27190         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27191         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27192         Likewise.
27193         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27194         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27195         0.
27196
27197 2010-02-08  Bruno Haible  <bruno@clisp.org>
27198
27199         gnulib-tool: Fix typo in 2010-02-07 commit.
27200         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27201         Reported by Eric Blake.
27202
27203 2010-02-07  Bruno Haible  <bruno@clisp.org>
27204
27205         gnulib-tool: Fix up caching patches.
27206         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27207         option --no-cache. Use associative arrays when supported by the shell.
27208         (sed_comments): New variable.
27209         (modcache): Renamed from do_cache.
27210         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27211         abbreviate unnecessarily.
27212         (have_associative): New variable.
27213         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27214         way also for ksh and zsh.
27215         (func_init_sed_convert_to_cache_statements): New function, extracted
27216         from func_cache_lookup_module. Add support for associative arrays.
27217         Don't set the c_MODULE_cached variable here. Ignore all lines before
27218         the first field header. Remove only the final newline, not all trailing
27219         newlines. Support empty fields correctly. Limit the use of 'eval' to
27220         assignments.
27221         (func_get_description, func_get_status, func_get_notice,
27222         func_get_applicability, func_get_filelist, func_get_dependencies,
27223         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27224         func_get_automake_snippet, func_get_include_directive,
27225         func_get_link_directive, func_get_license, func_get_maintainer):
27226         Update documentation. List the unoptimized code first. Add support for
27227         associative arrays. Limit the use of 'eval' to assignments.
27228         (func_get_applicability): Undo stylistic pessimisations.
27229         (func_get_automake_snippet, func_get_include_directive): Reduce code
27230         duplication.
27231         (func_modules_transitive_closure, func_modules_add_dummy,
27232         func_modules_notice, func_modules_to_filelist, func_add_file,
27233         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27234         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27235         func_create_testdir, func_create_megatestdir): Update documentation.
27236
27237 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27238
27239         * gnulib-tool (func_cache_lookup_module): Store the module name
27240         belonging to the cache variable; error out if two different
27241         module names map to the same cache variable name.
27242
27243 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27244
27245         gnulib-tool: Make caching optional.
27246         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27247         Update matching short versions of --no-changelog.
27248         (func_usage): Update.
27249         (sed_extract_cache_prog): Renamed from ...
27250         (sed_extract_prog): ... this; revert to old extraction script.
27251         (func_get_description, func_get_status)
27252         (func_get_notice, func_get_applicability, func_get_filelist)
27253         (func_get_dependencies, func_get_autoconf_early_snippet)
27254         (func_get_autoconf_snippet, func_get_automake_snippet)
27255         (func_get_include_directive, func_get_link_directive)
27256         (func_get_license, func_get_maintainer): If $do_cache is false,
27257         use old, non-caching extraction scripts.
27258         Suggestion by Bruno Haible.
27259
27260 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27261
27262         gnulib-tool: cache module metainformation.
27263         * gnulib-tool (sed_extract_prog): Match newline before each
27264         header, and rewrite header to a shell variable suffix.
27265         (func_cache_var, func_cache_lookup_module): New functions,
27266         to turn a module name into a cache variable prefix, and to
27267         look up and cache module metainformation.
27268         (func_get_description, func_get_status)
27269         (func_get_notice, func_get_applicability, func_get_filelist)
27270         (func_get_dependencies, func_get_autoconf_early_snippet)
27271         (func_get_autoconf_snippet, func_get_automake_snippet)
27272         (func_get_include_directive, func_get_link_directive)
27273         (func_get_license, func_get_maintainer): Use
27274         func_cache_lookup_module.
27275
27276 2010-02-07  Bruno Haible  <bruno@clisp.org>
27277
27278         fnctl: Fix missing dependency.
27279         * modules/fcntl (Depends-on): Add getdtablesize.
27280         Reported by John W. Eaton <jwe@gnu.org>.
27281
27282 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27283
27284         Argp: fix recognition of short alias options.
27285
27286         * lib/argp-parse.c (convert_options): Fix improper use of
27287         `|' between character values.
27288         * tests/test-argp.c (group1_option): New alias option
27289         --read (-r).
27290         (group1_parser): Special handling for 'r'.
27291         (test15): New test case.
27292         (test_fun): Add test15.
27293         * tests/test-argp-2.sh: Update expected --help and --usage
27294         outputs.
27295
27296 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27297
27298         * tests/test-argp.c: Fix indentation.
27299
27300 2010-02-04  Eric Blake  <ebb9@byu.net>
27301
27302         gettimeofday: expose type of second argument
27303         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27304         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27305         * tests/test-gettimeofday.c: Use it to silence warning.
27306         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27307         the issue.
27308
27309 2010-02-03  Jim Meyering  <meyering@redhat.com>
27310
27311         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27312         * lib/regcomp.c (TYPE_SIGNED): Define.
27313         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27314
27315         regcomp.c: avoid a new -Wshadow warning
27316         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27317
27318 2010-02-01  Jim Meyering  <meyering@redhat.com>
27319
27320         removing useless parentheses in cpp #define directives
27321         For motivation, see commit c0221df4, "define STREQ(a,b)
27322         consistently, removing useless parentheses"
27323         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27324         * lib/mountlist.c (MNT_IGNORE): Likewise.
27325         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27326
27327 2010-02-01  Eric Blake  <ebb9@byu.net>
27328
27329         sys_time: use link-warning
27330         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27331         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27332         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27333         * modules/sys_time (Depends-on): Add warn-on-use.
27334         (Makefile.am): Always build replacement.
27335         (configure.ac): Update substitutions.
27336         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27337         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27338         bother with SYS_TIME_H.
27339         * modules/gettimeofday (configure.ac): Declare indicator.
27340         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27341         in use.
27342
27343         closein-tests: silence compiler warning
27344         * tests/test-closein.c (main): Ignore fread result.
27345         * modules/closein-tests (Depends-on): Add ignore-value.
27346
27347         tests: silence warning about system return
27348         * tests/test-areadlink-with-size.c (main): Ignore system result.
27349         * tests/test-areadlink.c (main): Likewise.
27350         * tests/test-areadlinkat-with-size.c (main): Likewise.
27351         * tests/test-areadlinkat.c (main): Likewise.
27352         * tests/test-canonicalize-lgpl.c (main): Likewise.
27353         * tests/test-canonicalize.c (main): Likewise.
27354         * tests/test-chown.c (main): Likewise.
27355         * tests/test-fchownat.c (main): Likewise.
27356         * tests/test-fdutimensat.c (main): Likewise.
27357         * tests/test-fstatat.c (main): Likewise.
27358         * tests/test-futimens.c (main): Likewise.
27359         * tests/test-lchown.c (main): Likewise.
27360         * tests/test-link.c (main): Likewise.
27361         * tests/test-linkat.c (main): Likewise.
27362         * tests/test-lstat.c (main): Likewise.
27363         * tests/test-mkdir.c (main): Likewise.
27364         * tests/test-mkdirat.c (main): Likewise.
27365         * tests/test-mkfifo.c (main): Likewise.
27366         * tests/test-mkfifoat.c (main): Likewise.
27367         * tests/test-mknod.c (main): Likewise.
27368         * tests/test-readlink.c (main): Likewise.
27369         * tests/test-remove.c (main): Likewise.
27370         * tests/test-rename.c (main): Likewise.
27371         * tests/test-renameat.c (main): Likewise.
27372         * tests/test-rmdir.c (main): Likewise.
27373         * tests/test-symlink.c (main): Likewise.
27374         * tests/test-symlinkat.c (main): Likewise.
27375         * tests/test-unlink.c (main): Likewise.
27376         * tests/test-unlinkat.c (main): Likewise.
27377         * tests/test-utimens.c (main): Likewise.
27378         * tests/test-utimensat.c (main): Likewise.
27379         * modules/areadlink-tests (Depends-on): Add ignore-value.
27380         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27381         * modules/areadlinkat-tests (Depends-on): Likewise.
27382         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27383         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27384         * modules/canonicalize-tests (Depends-on): Likewise.
27385         * modules/chown-tests (Depends-on): Likewise.
27386         * modules/fdutimensat-tests (Depends-on): Likewise.
27387         * modules/futimens-tests (Depends-on): Likewise.
27388         * modules/lchown-tests (Depends-on): Likewise.
27389         * modules/link-tests (Depends-on): Likewise.
27390         * modules/linkat-tests (Depends-on): Likewise.
27391         * modules/lstat-tests (Depends-on): Likewise.
27392         * modules/mkdir-tests (Depends-on): Likewise.
27393         * modules/mkfifo-tests (Depends-on): Likewise.
27394         * modules/mkfifoat-tests (Depends-on): Likewise.
27395         * modules/mknod-tests (Depends-on): Likewise.
27396         * modules/openat-tests (Depends-on): Likewise.
27397         * modules/readlink-tests (Depends-on): Likewise.
27398         * modules/remove-tests (Depends-on): Likewise.
27399         * modules/rename-tests (Depends-on): Likewise.
27400         * modules/renameat-tests (Depends-on): Likewise.
27401         * modules/rmdir-tests (Depends-on): Likewise.
27402         * modules/symlink-tests (Depends-on): Likewise.
27403         * modules/symlinkat-tests (Depends-on): Likewise.
27404         * modules/unlink-tests (Depends-on): Likewise.
27405         * modules/utimens-tests (Depends-on): Likewise.
27406         * modules/utimensat-tests (Depends-on): Likewise.
27407
27408 2010-01-31  Bruno Haible  <bruno@clisp.org>
27409
27410         Perform the same test for many <math.h> functions.
27411         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27412         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27413         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27414         of gl_MATHFUNC.
27415         * modules/acos (configure.ac): Likewise.
27416         * modules/asin (configure.ac): Likewise.
27417         * modules/atan (configure.ac): Likewise.
27418         * modules/atan2 (configure.ac): Likewise.
27419         * modules/cbrt (configure.ac): Likewise.
27420         * modules/copysign (configure.ac): Likewise.
27421         * modules/cos (configure.ac): Likewise.
27422         * modules/cosh (configure.ac): Likewise.
27423         * modules/erf (configure.ac): Likewise.
27424         * modules/erfc (configure.ac): Likewise.
27425         * modules/exp (configure.ac): Likewise.
27426         * modules/fmod (configure.ac): Likewise.
27427         * modules/hypot (configure.ac): Likewise.
27428         * modules/j0 (configure.ac): Likewise.
27429         * modules/j1 (configure.ac): Likewise.
27430         * modules/jn (configure.ac): Likewise.
27431         * modules/lgamma (configure.ac): Likewise.
27432         * modules/log (configure.ac): Likewise.
27433         * modules/log10 (configure.ac): Likewise.
27434         * modules/log1p (configure.ac): Likewise.
27435         * modules/pow (configure.ac): Likewise.
27436         * modules/remainder (configure.ac): Likewise.
27437         * modules/sin (configure.ac): Likewise.
27438         * modules/sinh (configure.ac): Likewise.
27439         * modules/tan (configure.ac): Likewise.
27440         * modules/tanh (configure.ac): Likewise.
27441         * modules/y0 (configure.ac): Likewise.
27442         * modules/y1 (configure.ac): Likewise.
27443         * modules/yn (configure.ac): Likewise.
27444         Suggested by Paolo Bonzini.
27445
27446 2010-01-31  Bruno Haible  <bruno@clisp.org>
27447
27448         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27449
27450 2010-01-31  Bruno Haible  <bruno@clisp.org>
27451
27452         Work around getdelim() bug on FreeBSD 8.0.
27453         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27454         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27455         not work.
27456         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27457         is 1.
27458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27459         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27460         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27461         a non-zero size.
27462         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27463
27464 2010-01-31  Bruno Haible  <bruno@clisp.org>
27465
27466         Work around getline() bug on FreeBSD 8.0.
27467         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27468         and a non-zero size.
27469         * tests/test-getline.c (main): Likewise.
27470         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27471         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27472
27473 2010-01-28  Eric Blake  <ebb9@byu.net>
27474
27475         regex: fix build failure
27476         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27477         platforms.
27478
27479 2010-01-28  Jim Meyering  <meyering@redhat.com>
27480
27481         regex: do not ignore memory allocation failure
27482         * lib/regex_internal.c (create_cd_newstate): Detect
27483         re_node_set_init_copy failure.   Extracted from glibc commit
27484         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27485
27486         regex: sync more white-space changes from libc
27487         * lib/regex_internal.c: White-space only changes.
27488         * lib/regexec.c: Likewise.
27489
27490         regex: add many uses of __attribute_warn_unused_result__
27491         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27492         * lib/regexec.c: Likewise.
27493         Extracted from a messy glibc commit.
27494
27495         regcomp.c: spelling and merge-artifact from glibc
27496         * lib/regcomp.c: Merge remainder of glibc's
27497         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27498
27499         regcomp.c: sync white-space changes from glibc
27500         * lib/regcomp.c: Merge to accommodate white space
27501         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27502
27503         regcomp.c: do not ignore internal return values
27504         * lib/regcomp.c: Do not ignore internal return values.
27505         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27506         but without its white-space changes and spelling fixes.
27507
27508         regex_internal.h: define __attribute_warn_unused_result__
27509         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27510
27511         maint: add a syntax-check rule to check for vulnerable Makefile.in
27512         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27513
27514 2010-01-27  Jim Meyering  <meyering@redhat.com>
27515
27516         ncftpput-ftp: clean up spaces
27517         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27518         Remove trailing blanks.
27519
27520 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27521
27522         * build-aux/git-version-gen: Fix copyright statement.
27523         * build-aux/gnupload: Likewise.
27524         * tests/test-arcfour.c: Likewise.
27525         * tests/test-arctwo.c: Likewise.
27526         * tests/test-count-one-bits.c: Likewise.
27527         * tests/test-crc.c: Likewise.
27528         * tests/test-des.c: Likewise.
27529         * tests/test-gc-arcfour.c: Likewise.
27530         * tests/test-gc-arctwo.c: Likewise.
27531         * tests/test-gc-des.c: Likewise.
27532         * tests/test-gc-hmac-md5.c: Likewise.
27533         * tests/test-gc-hmac-sha1.c: Likewise.
27534         * tests/test-gc-md2.c: Likewise.
27535         * tests/test-gc-md4.c: Likewise.
27536         * tests/test-gc-md5.c: Likewise.
27537         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27538         * tests/test-gc-rijndael.c: Likewise.
27539         * tests/test-gc-sha1.c: Likewise.
27540         * tests/test-gc.c: Likewise.
27541         * tests/test-gethostname.c: Likewise.
27542         * tests/test-gettimeofday.c: Likewise.
27543         * tests/test-hash.c: Likewise.
27544         * tests/test-hmac-md5.c: Likewise.
27545         * tests/test-hmac-sha1.c: Likewise.
27546         * tests/test-md2.c: Likewise.
27547         * tests/test-md4.c: Likewise.
27548         * tests/test-md5.c: Likewise.
27549         * tests/test-memchr.c: Likewise.
27550         * tests/test-memchr2.c: Likewise.
27551         * tests/test-memcmp.c: Likewise.
27552         * tests/test-memmem.c: Likewise.
27553         * tests/test-memrchr.c: Likewise.
27554         * tests/test-rawmemchr.c: Likewise.
27555         * tests/test-read-file.c: Likewise.
27556         * tests/test-rijndael.c: Likewise.
27557         * tests/test-sockets.c: Likewise.
27558         * tests/test-strchrnul.c: Likewise.
27559         * tests/test-strstr.c: Likewise.
27560         * tests/test-strtod.c: Likewise.
27561         * build-aux/ncftpput-ftp: Likewise.
27562
27563 2010-01-26  Eric Blake  <ebb9@byu.net>
27564
27565         ignore-value: update recommended header name
27566         * modules/ignore-value (Include): Only use <> for headers that
27567         exist in glibc.
27568
27569 2010-01-26  Jim Meyering  <meyering@redhat.com>
27570
27571         test-userspec.c: avoid compiler warnings
27572         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27573         and "initialization discards qualifiers..." warnings.
27574         Put the first "uid" in its own scope, and make char* members "const".
27575
27576 2010-01-25  Bruno Haible  <bruno@clisp.org>
27577
27578         gnulib-tool: Make warning diagnostics consistent.
27579         * gnulib-tool (func_warning): New function.
27580         Use it everywhere where gnulib-tool produces output to stderr and it is
27581         not a fatal error.
27582
27583 2010-01-25  Bruno Haible  <bruno@clisp.org>
27584
27585         Fix test dependencies.
27586         * modules/xstrtol-tests (Depends-on): Add inttypes.
27587         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27588
27589 2010-01-25 Pádraig Brady <P@draigBrady.com>
27590
27591         syntax-check: detect incorrect boolean macro values in config.h
27592         * modules/maintainer-makefile (configure.ac): Parameterize the location
27593         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27594         The logic is from Eric Blake and the location indicated by Jim Meyering.
27595         Note the more natural CONFIG_HEADER name is prohibited by automake
27596         for backwards compatibility reasons.
27597         * top/maint.mk (sc_Wundef_boolean): New rule.
27598
27599 2010-01-25  Jim Meyering  <meyering@redhat.com>
27600
27601         bootstrap: detect MacOS 10.6's shasum, too
27602         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27603         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27604
27605 2010-01-23  Jim Meyering  <meyering@redhat.com>
27606
27607         xstrtoll: new module
27608         * modules/xstrtoll: New file.
27609         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27610         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27611         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27612         ./configure fails if you use this module and lack "long long".
27613         * modules/xstrtoll-tests: New module.
27614         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27615         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27616         new init.sh-based test framework.
27617
27618 2010-01-24  Bruno Haible  <bruno@clisp.org>
27619
27620         Tests for module 'yn'.
27621         * modules/yn-tests: New file.
27622         * tests/test-yn.c: New file.
27623
27624         Tests for module 'y1'.
27625         * modules/y1-tests: New file.
27626         * tests/test-y1.c: New file.
27627
27628         Tests for module 'y0'.
27629         * modules/y0-tests: New file.
27630         * tests/test-y0.c: New file.
27631
27632         Tests for module 'tanh'.
27633         * modules/tanh-tests: New file.
27634         * tests/test-tanh.c: New file.
27635
27636         Tests for module 'tan'.
27637         * modules/tan-tests: New file.
27638         * tests/test-tan.c: New file.
27639
27640         Tests for module 'sqrt'.
27641         * modules/sqrt-tests: New file.
27642         * tests/test-sqrt.c: New file.
27643
27644         Tests for module 'sinh'.
27645         * modules/sinh-tests: New file.
27646         * tests/test-sinh.c: New file.
27647
27648         Tests for module 'sin'.
27649         * modules/sin-tests: New file.
27650         * tests/test-sin.c: New file.
27651
27652         Tests for module 'rint'.
27653         * modules/rint-tests: New file.
27654         * tests/test-rint.c: New file.
27655
27656         Tests for module 'remainder'.
27657         * modules/remainder-tests: New file.
27658         * tests/test-remainder.c: New file.
27659
27660         Tests for module 'pow'.
27661         * modules/pow-tests: New file.
27662         * tests/test-pow.c: New file.
27663
27664         Tests for module 'nextafter'.
27665         * modules/nextafter-tests: New file.
27666         * tests/test-nextafter.c: New file.
27667
27668         Tests for module 'modf'.
27669         * modules/modf-tests: New file.
27670         * tests/test-modf.c: New file.
27671
27672         Tests for module 'logb'.
27673         * modules/logb-tests: New file.
27674         * tests/test-logb.c: New file.
27675
27676         Tests for module 'log1p'.
27677         * modules/log1p-tests: New file.
27678         * tests/test-log1p.c: New file.
27679
27680         Tests for module 'log10'.
27681         * modules/log10-tests: New file.
27682         * tests/test-log10.c: New file.
27683
27684         Tests for module 'log'.
27685         * modules/log-tests: New file.
27686         * tests/test-log.c: New file.
27687
27688         Tests for module 'lgamma'.
27689         * modules/lgamma-tests: New file.
27690         * tests/test-lgamma.c: New file.
27691
27692         Tests for module 'ldexp'.
27693         * modules/ldexp-tests: New file.
27694         * tests/test-ldexp.c: New file.
27695
27696         Tests for module 'jn'.
27697         * modules/jn-tests: New file.
27698         * tests/test-jn.c: New file.
27699
27700         Tests for module 'j1'.
27701         * modules/j1-tests: New file.
27702         * tests/test-j1.c: New file.
27703
27704         Tests for module 'j0'.
27705         * modules/j0-tests: New file.
27706         * tests/test-j0.c: New file.
27707
27708         Tests for module 'hypot'.
27709         * modules/hypot-tests: New file.
27710         * tests/test-hypot.c: New file.
27711
27712         Tests for module 'fmod'.
27713         * modules/fmod-tests: New file.
27714         * tests/test-fmod.c: New file.
27715
27716         Tests for module 'fabs'.
27717         * modules/fabs-tests: New file.
27718         * tests/test-fabs.c: New file.
27719
27720         Tests for module 'exp'.
27721         * modules/exp-tests: New file.
27722         * tests/test-exp.c: New file.
27723
27724         Tests for module 'erfc'.
27725         * modules/erfc-tests: New file.
27726         * tests/test-erfc.c: New file.
27727
27728         Tests for module 'erf'.
27729         * modules/erf-tests: New file.
27730         * tests/test-erf.c: New file.
27731
27732         Tests for module 'cosh'.
27733         * modules/cosh-tests: New file.
27734         * tests/test-cosh.c: New file.
27735
27736         Tests for module 'cos'.
27737         * modules/cos-tests: New file.
27738         * tests/test-cos.c: New file.
27739
27740         Tests for module 'copysign'.
27741         * modules/copysign-tests: New file.
27742         * tests/test-copysign.c: New file.
27743
27744         Tests for module 'cbrt'.
27745         * modules/cbrt-tests: New file.
27746         * tests/test-cbrt.c: New file.
27747
27748         Tests for module 'atan2'.
27749         * modules/atan2-tests: New file.
27750         * tests/test-atan2.c: New file.
27751
27752         Tests for module 'atan'.
27753         * modules/atan-tests: New file.
27754         * tests/test-atan.c: New file.
27755
27756         Tests for module 'asin'.
27757         * modules/asin-tests: New file.
27758         * tests/test-asin.c: New file.
27759
27760         Tests for module 'acos'.
27761         * modules/acos-tests: New file.
27762         * tests/test-acos.c: New file.
27763
27764 2010-01-24  Bruno Haible  <bruno@clisp.org>
27765
27766         Fix tests for common <math.h> functions.
27767         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27768         code snippet that references the function pointer, rather than merely
27769         calling the function. Substitute the FUNC_LIBM variable.
27770         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27771         * modules/acos (configure.ac): Likewise.
27772         * modules/asin (configure.ac): Likewise.
27773         * modules/atan (configure.ac): Likewise.
27774         * modules/atan2 (configure.ac): Likewise.
27775         * modules/cbrt (configure.ac): Likewise.
27776         * modules/copysign (configure.ac): Likewise.
27777         * modules/cos (configure.ac): Likewise.
27778         * modules/cosh (configure.ac): Likewise.
27779         * modules/erf (configure.ac): Likewise.
27780         * modules/erfc (configure.ac): Likewise.
27781         * modules/exp (configure.ac): Likewise.
27782         * modules/fabs (configure.ac): Likewise.
27783         * modules/fmod (configure.ac): Likewise.
27784         * modules/hypot (configure.ac): Likewise.
27785         * modules/j0 (configure.ac): Likewise.
27786         * modules/j1 (configure.ac): Likewise.
27787         * modules/jn (configure.ac): Likewise.
27788         * modules/ldexp (configure.ac): Likewise.
27789         * modules/lgamma (configure.ac): Likewise.
27790         * modules/log (configure.ac): Likewise.
27791         * modules/log10 (configure.ac): Likewise.
27792         * modules/log1p (configure.ac): Likewise.
27793         * modules/logb (configure.ac): Likewise.
27794         * modules/modf (configure.ac): Likewise.
27795         * modules/nextafter (configure.ac): Likewise.
27796         * modules/pow (configure.ac): Likewise.
27797         * modules/remainder (configure.ac): Likewise.
27798         * modules/rint (configure.ac): Likewise.
27799         * modules/sin (configure.ac): Likewise.
27800         * modules/sinh (configure.ac): Likewise.
27801         * modules/tan (configure.ac): Likewise.
27802         * modules/tanh (configure.ac): Likewise.
27803         * modules/y0 (configure.ac): Likewise.
27804         * modules/y1 (configure.ac): Likewise.
27805         * modules/yn (configure.ac): Likewise.
27806
27807 2010-01-24  Bruno Haible  <bruno@clisp.org>
27808
27809         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27810         * tests/test-acosl.c (x): New variable.
27811         (main): Store argument in x and fetch it from x.
27812         * tests/test-asinl.c (x): New variable.
27813         (main): Store argument in x and fetch it from x.
27814         * tests/test-atanl.c (x): New variable.
27815         (main): Store argument in x and fetch it from x.
27816         * tests/test-cosl.c (x): New variable.
27817         (main): Store argument in x and fetch it from x.
27818         * tests/test-expl.c (x): New variable.
27819         (main): Store argument in x and fetch it from x.
27820         * tests/test-logl.c (x): New variable.
27821         (main): Store argument in x and fetch it from x.
27822         * tests/test-sinl.c (x): New variable.
27823         (main): Store argument in x and fetch it from x.
27824         * tests/test-sqrtl.c (x): New variable.
27825         (main): Store argument in x and fetch it from x.
27826         * tests/test-tanl.c (x): New variable.
27827         (main): Store argument in x and fetch it from x.
27828
27829 2010-01-24  Bruno Haible  <bruno@clisp.org>
27830
27831         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27832         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27833         assignments to the initial TESTS_ENVIRONMENT.
27834         * doc/gnulib.texi (Unit test modules): Document it.
27835         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27836         TESTS_ENVIRONMENT.
27837         * modules/btowc-tests (Makefile.am): Likewise.
27838         * modules/c-stack-tests (Makefile.am): Likewise.
27839         * modules/c-strcase-tests (Makefile.am): Likewise.
27840         * modules/copy-file-tests (Makefile.am): Likewise.
27841         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27842         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27843         * modules/mbrtowc-tests (Makefile.am): Likewise.
27844         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27845         * modules/mbscasestr-tests (Makefile.am): Likewise.
27846         * modules/mbschr-tests (Makefile.am): Likewise.
27847         * modules/mbscspn-tests (Makefile.am): Likewise.
27848         * modules/mbsinit-tests (Makefile.am): Likewise.
27849         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27850         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27851         * modules/mbspbrk-tests (Makefile.am): Likewise.
27852         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27853         * modules/mbsrchr-tests (Makefile.am): Likewise.
27854         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27855         * modules/mbsspn-tests (Makefile.am): Likewise.
27856         * modules/mbsstr-tests (Makefile.am): Likewise.
27857         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27858         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27859         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27860         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27861         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27862         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27863         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27864         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27865         * modules/wcrtomb-tests (Makefile.am): Likewise.
27866         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27867         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27868         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27869         assignments from TESTS_ENVIRONMENT.
27870         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27871         augmentation.
27872         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27873         * modules/atexit-tests (Makefile.am): Likewise.
27874         * modules/binary-io-tests (Makefile.am): Likewise.
27875         * modules/closein-tests (Makefile.am): Likewise.
27876         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27877         * modules/exclude-tests (Makefile.am): Likewise.
27878         * modules/fflush-tests (Makefile.am): Likewise.
27879         * modules/fpending-tests (Makefile.am): Likewise.
27880         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27881         * modules/freadahead-tests (Makefile.am): Likewise.
27882         * modules/freadptr-tests (Makefile.am): Likewise.
27883         * modules/freadseek-tests (Makefile.am): Likewise.
27884         * modules/fseek-tests (Makefile.am): Likewise.
27885         * modules/fseeko-tests (Makefile.am): Likewise.
27886         * modules/ftell-tests (Makefile.am): Likewise.
27887         * modules/ftello-tests (Makefile.am): Likewise.
27888         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27889         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27890         * modules/lseek-tests (Makefile.am): Likewise.
27891         * modules/parse-duration-tests (Makefile.am): Likewise.
27892         * modules/perror-tests (Makefile.am): Likewise.
27893         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27894         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27895         * modules/pipe-tests (Makefile.am): Likewise.
27896         * modules/pread-tests (Makefile.am): Likewise.
27897         * modules/printf-posix-tests (Makefile.am): Likewise.
27898         * modules/select-tests (Makefile.am): Likewise.
27899         * modules/sigpipe-tests (Makefile.am): Likewise.
27900         * modules/tsearch-tests (Makefile.am): Likewise.
27901         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27902         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27903         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27904         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27905         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27906         * modules/version-etc-tests (Makefile.am): Likewise.
27907         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27908         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27909         * modules/xalloc-die-tests (Makefile.am): Likewise.
27910         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27911         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27912         * modules/xstrtol-tests (Makefile.am): Likewise.
27913         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27914         * modules/yesno-tests (Makefile.am): Likewise.
27915         Suggested by Jim Meyering.
27916
27917 2010-01-24  Bruno Haible  <bruno@clisp.org>
27918
27919         More documentation.
27920         * doc/gnulib.texi (Writing modules): New chapter.
27921         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27922         the new chapter.
27923
27924 2010-01-24  Jim Meyering  <meyering@redhat.com>
27925
27926         maint.mk: do not prepend "./" after filtering
27927         * top/maint.mk (_prepend_srcdir_prefix): New variable
27928         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27929         "./" when $(srcdir) is ".".
27930
27931         define STREQ(a,b) consistently, removing useless parentheses
27932         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27933         since the only risk is that "a" or "b" contains an unparenthesized
27934         comma, but if either did that, STREQ would have 3 or more arguments.
27935         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27936         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27937         * lib/hash-triple.c (STREQ): Likewise.
27938         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27939         * lib/getugroups.c (STREQ): Likewise.
27940
27941 2010-01-23  Jim Meyering  <meyering@redhat.com>
27942
27943         maint.mk: fix syntax-check in a non-srcdir build directory
27944         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27945         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27946
27947 2010-01-22  Jim Meyering  <meyering@redhat.com>
27948
27949         userspec: add unit tests
27950         * tests/test-userspec.c: New file.
27951         * modules/userspec-tests: Likewise.
27952
27953 2010-01-21  Jim Meyering  <meyering@redhat.com>
27954
27955         maint.mk: handle source file names containing "." robustly
27956         * top/maint.mk (_dot_escaped_srcdir): Define.
27957         (VC_LIST): Use it in LHS of sed substitution.
27958
27959 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27960
27961         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27962         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27963         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27964         from a non-srcdir build.
27965
27966 2010-01-20  Eric Blake  <ebb9@byu.net>
27967
27968         warn-on-use: use instead of link-warning
27969         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27970         * modules/unistd (Depends-on, Makefile.am): Likewise.
27971         * modules/arpa_inet (Depends-on): Replace link-warning with
27972         warn-on-use.
27973         (Makefile.am): Update rules accordingly.
27974         * modules/ctype (Depends-on, Makefile.am): Likewise.
27975         * modules/dirent (Depends-on, Makefile.am): Likewise.
27976         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27977         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27978         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27979         * modules/locale (Depends-on, Makefile.am): Likewise.
27980         * modules/math (Depends-on, Makefile.am): Likewise.
27981         * modules/search (Depends-on, Makefile.am): Likewise.
27982         * modules/signal (Depends-on, Makefile.am): Likewise.
27983         * modules/spawn (Depends-on, Makefile.am): Likewise.
27984         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27985         * modules/string (Depends-on, Makefile.am): Likewise.
27986         * modules/strings (Depends-on, Makefile.am): Likewise.
27987         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27988         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27989         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27990         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27991         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27992         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27993         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27994         * modules/wchar (Depends-on, Makefile.am): Likewise.
27995         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27996         should be poisoned.
27997         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27998         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27999         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28000         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28001         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28002         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28003         * m4/math_h.m4 (gl_MATH_H): Likewise.
28004         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28005         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28006         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28007         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28008         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28009         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28010         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28011         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28012         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28013         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28014         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28015         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28016         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28017         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28018         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28019         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28020         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28021         GL_LINK_WARNING.
28022         * lib/ctype.in.h: Likewise.
28023         * lib/dirent.in.h: Likewise.
28024         * lib/fcntl.in.h: Likewise.
28025         * lib/inttypes.in.h: Likewise.
28026         * lib/langinfo.in.h: Likewise.
28027         * lib/locale.in.h: Likewise.
28028         * lib/math.in.h: Likewise.
28029         * lib/search.in.h: Likewise.
28030         * lib/signal.in.h: Likewise.
28031         * lib/spawn.in.h: Likewise.
28032         * lib/stdio.in.h: Likewise.
28033         * lib/stdlib.in.h: Likewise.
28034         * lib/string.in.h: Likewise.
28035         * lib/strings.in.h: Likewise.
28036         * lib/sys_file.in.h: Likewise.
28037         * lib/sys_ioctl.in.h: Likewise.
28038         * lib/sys_select.in.h: Likewise.
28039         * lib/sys_socket.in.h: Likewise.
28040         * lib/sys_stat.in.h: Likewise.
28041         * lib/sys_times.in.h: Likewise.
28042         * lib/sys_utsname.in.h: Likewise.
28043         * lib/unistd.in.h: Likewise.
28044         * lib/wchar.in.h: Likewise.
28045
28046 2010-01-20  Bruno Haible  <bruno@clisp.org>
28047
28048         Avoid duplicate -lm.
28049         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28050         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28051         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28052         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28053         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28054         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28055         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28056         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28057         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28058         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28059         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28060         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28061         Reported by Paolo Bonzini.
28062
28063 2010-01-19  Bruno Haible  <bruno@clisp.org>
28064
28065         langinfo, nl_langinfo: Relicense under LGPLv2+.
28066         * modules/langinfo (License): Change to LGPLv2+.
28067         * modules/nl_langinfo (License): Likewise.
28068         Patch by David Lutterkort <lutter@redhat.com>.
28069
28070 2010-01-19  Bruno Haible  <bruno@clisp.org>
28071
28072         Avoid compilation error with cc on OSF/1 5.1.
28073         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28074         statement, not before.
28075         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28076
28077 2010-01-18  Bruno Haible  <bruno@clisp.org>
28078
28079         Avoid a link error due to the __printf__ symbol.
28080         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28081         and 2.6.x.
28082         (__format__, __printf__): Remove definitions.
28083         * lib/argp-fmtstream.h: Likewise.
28084         * lib/argp.h: Likewise.
28085         * lib/error.h: Likewise.
28086         * lib/vasnprintf.h: Likewise.
28087         * lib/xprintf.h: Likewise.
28088         * lib/xvasprintf.h: Likewise.
28089         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28090
28091 2010-01-18  Bruno Haible  <bruno@clisp.org>
28092
28093         Tests for module 'tanl'.
28094         * modules/tanl-tests: New file.
28095         * tests/test-tanl.c: New file.
28096
28097         Tests for module 'sqrtl'.
28098         * modules/sqrtl-tests: New file.
28099         * tests/test-sqrtl.c: New file.
28100
28101         Tests for module 'sinl'.
28102         * modules/sinl-tests: New file.
28103         * tests/test-sinl.c: New file.
28104
28105         Tests for module 'logl'.
28106         * modules/logl-tests: New file.
28107         * tests/test-logl.c: New file.
28108
28109         Tests for module 'expl'.
28110         * modules/expl-tests: New file.
28111         * tests/test-expl.c: New file.
28112
28113         Tests for module 'cosl'.
28114         * modules/cosl-tests: New file.
28115         * tests/test-cosl.c: New file.
28116
28117         Tests for module 'atanl'.
28118         * modules/atanl-tests: New file.
28119         * tests/test-atanl.c: New file.
28120
28121         Tests for module 'asinl'.
28122         * modules/asinl-tests: New file.
28123         * tests/test-asinl.c: New file.
28124
28125         Tests for module 'acosl'.
28126         * modules/acosl-tests: New file.
28127         * tests/test-acosl.c: New file.
28128
28129         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28130         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28131         tanl): Use the standard gnulib idiom.
28132         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28133         * lib/sinl.c: Likewise.
28134         * lib/tanl.c: Don't include trigl.c.
28135         (kernel_tanl): Make static.
28136         * lib/sincosl.c: Include trigl.h first.
28137         * lib/trigl.c: Likewise.
28138         * m4/acosl.m4: New file.
28139         * m4/asinl.m4: New file.
28140         * m4/atanl.m4: New file.
28141         * m4/cosl.m4: New file.
28142         * m4/expl.m4: New file.
28143         * m4/logl.m4: New file.
28144         * m4/sinl.m4: New file.
28145         * m4/sqrtl.m4: New file.
28146         * m4/tanl.m4: New file.
28147         * m4/mathl.m4: Remove file.
28148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28149         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28150         Don't initialize GNULIB_MATHL.
28151         * modules/acosl: New file.
28152         * modules/asinl: New file.
28153         * modules/atanl: New file.
28154         * modules/cosl: New file.
28155         * modules/expl: New file.
28156         * modules/logl: New file.
28157         * modules/sinl: New file.
28158         * modules/sqrtl: New file.
28159         * modules/tanl: New file.
28160         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28161         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28162         substitute GNULIB_MATHL.
28163         * modules/mathl: Rewritten.
28164         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28165         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28166         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28167         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28168         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28169         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28170         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28171         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28172         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28173
28174 2010-01-18  Bruno Haible  <bruno@clisp.org>
28175
28176         sqrt: Make gl_FUNC_SQRT requirable.
28177         * m4/sqrt.m4: New file.
28178         * modules/sqrt (Files): Add it.
28179         (configure.ac): Invoke gl_FUNC_SQRT.
28180
28181 2010-01-18  Bruno Haible  <bruno@clisp.org>
28182
28183         New modules for common <math.h> functions.
28184         * m4/mathfunc.m4: New file.
28185         * modules/acos: New file.
28186         * modules/asin: New file.
28187         * modules/atan: New file.
28188         * modules/atan2: New file.
28189         * modules/cbrt: New file.
28190         * modules/copysign: New file.
28191         * modules/cos: New file.
28192         * modules/cosh: New file.
28193         * modules/erf: New file.
28194         * modules/erfc: New file.
28195         * modules/exp: New file.
28196         * modules/fabs: New file.
28197         * modules/fmod: New file.
28198         * modules/hypot: New file.
28199         * modules/j0: New file.
28200         * modules/j1: New file.
28201         * modules/jn: New file.
28202         * modules/ldexp: New file.
28203         * modules/lgamma: New file.
28204         * modules/log: New file.
28205         * modules/log10: New file.
28206         * modules/log1p: New file.
28207         * modules/logb: New file.
28208         * modules/modf: New file.
28209         * modules/nextafter: New file.
28210         * modules/pow: New file.
28211         * modules/remainder: New file.
28212         * modules/rint: New file.
28213         * modules/sin: New file.
28214         * modules/sinh: New file.
28215         * modules/sqrt: New file.
28216         * modules/tan: New file.
28217         * modules/tanh: New file.
28218         * modules/y0: New file.
28219         * modules/y1: New file.
28220         * modules/yn: New file.
28221         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28222         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28223         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28224         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28225         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28226         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28227         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28228         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28229         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28230         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28231         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28232         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28233         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28234         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28235         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28236         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28237         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28238         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28239         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28240         * doc/posix-functions/log.texi: Mention the 'log' module.
28241         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28242         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28243         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28244         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28245         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28246         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28247         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28248         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28249         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28250         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28251         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28252         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28253         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28254         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28255         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28256         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28257
28258 2010-01-18  Jim Meyering  <meyering@redhat.com>
28259
28260         ignore-value: relax license to LGPLv2+
28261         * modules/ignore-value (License): Relax to LGPLv2+.
28262
28263         getdate: don't leak when TZ contains two or more '"'s
28264         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28265         double quote in TZ after the first one.
28266
28267         readtokens: do not leak internal token_lengths buffer
28268         * lib/readtokens.c (readtokens): Free the local, lengths,
28269         when the supplied "token_lengths" parameter is NULL.
28270
28271 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28272
28273         Fix a couple of missing LIBTHREAD link failures on AIX.
28274         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28275         $(LIBTHREAD).
28276         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28277
28278         Link test-poll against INET_PTON_LIB.
28279         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28280         for inet_pton on Solaris 10.
28281
28282 2010-01-17  Bruno Haible  <bruno@clisp.org>
28283
28284         unistdio/*-sprintf: Fix typo in module description.
28285         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28286         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28287         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28288         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28289         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28290         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28291         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28292         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28293
28294 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28295
28296         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28297         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28298         variables in shell case patterns, for AIX and HP-UX ksh.
28299
28300         Split large sed scripts, for HP-UX sed.
28301         * modules/stdio: Split sed scripts around 50 sed commands,
28302         to avoid HP-UX limit of 99 commands, in the near future.
28303         * modules/string: Likewise.
28304         * modules/unistd: Likewise.
28305
28306         gnulib-tool: avoid writing in the current directory.
28307         * gnulib-tool (func_emit_lib_Makefile_am)
28308         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28309         not in the current directory, so concurrent gnulib-tool
28310         instances do not interfere.
28311
28312 2010-01-16  Jim Meyering  <meyering@redhat.com>
28313
28314         doc: update users.txt
28315         * users.txt: Add grep.
28316         (diffutils, gzip): Update URLs.
28317
28318 2010-01-12  Bruno Haible  <bruno@clisp.org>
28319
28320         posix_spawn: Avoid test failure on Cygwin.
28321         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28322         characters.
28323         Reported by Simon Josefsson.
28324
28325 2010-01-12  Bruno Haible  <bruno@clisp.org>
28326
28327         * tests/test-cond.c (main): When skipping the test, show the reason.
28328
28329 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28330
28331         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28332
28333 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28334
28335         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28336         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28337
28338 2010-01-12  Eric Blake  <ebb9@byu.net>
28339
28340         build: guarantee AS_VAR_IF
28341         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28342         (gl_AS_VAR_IF): Move...
28343         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28344         Reported by Simon Josefsson.
28345
28346 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28347
28348         * lib/stdio.in.h: Fix typo.
28349
28350 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28351
28352         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28353         libgpg-error.
28354
28355 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28356
28357         * tests/test-xalloc-die.sh: Use $EXEEXT.
28358
28359 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28360             Bruno Haible  <bruno@clisp.org>
28361
28362         getlogin, getlogin_r: Avoid test failure.
28363         * tests/test-getlogin.c: Include <stdio.h>.
28364         (main): Skip the test when the function fails because stdin is not a
28365         tty.
28366         * tests/test-getlogin_r.c: Include <stdio.h>.
28367         (main): Skip the test when the function fails because stdin is not a
28368         tty.
28369
28370 2010-01-11  Eric Blake  <ebb9@byu.net>
28371
28372         tests: avoid more large file warnings
28373         * tests/test-fflush.c: Avoid warning about ftell use.
28374         * tests/test-fseek.c: Avoid warning about fseek use.
28375
28376 2010-01-10  Bruno Haible  <bruno@clisp.org>
28377
28378         nproc: Work better on Linux when /proc and /sys are not mounted.
28379         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28380         as lower bound when, on glibc/Linux systems,
28381         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28382         Suggested by Pádraig Brady <P@draigbrady.com>.
28383         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28384
28385         nproc: Refactor.
28386         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28387         extracted from num_processors.
28388         (num_processors): Call it.
28389
28390 2010-01-11  Jim Meyering  <meyering@redhat.com>
28391
28392         utimecmp: avoid new warning from upcoming gcc-4.5.0
28393         * lib/utimecmp.c (BILLION): Define using #define rather than an
28394         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28395
28396 2010-01-11  Eric Blake  <ebb9@byu.net>
28397
28398         math: add portability warnings for classification macros
28399         * modules/math (Depends-on): Add warn-on-use.
28400         (Makefile.am): Provide new substitutions.
28401         * m4/math_h.m4 (gl_MATH_H): Require inline.
28402         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28403         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28404         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28405         implement warnings.
28406
28407         unistd: warn on use of environ without module
28408         * modules/unistd (Depends-on): Add warn-on-use.
28409         (Makefile.am): Provide new substitutions.
28410         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28411         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28412
28413         stdio: warn on suspicious uses
28414         * modules/stdio (Depends-on): Add warn-on-use.
28415         (Makefile.am): Provide new substitutions.
28416         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28417         fseeko.
28418         * lib/stdio.in.h (gets): Always warn on use.
28419         (fseek, ftell): Adjust when warnings are issued, and honor
28420         _GL_NO_LARGE_FILES as a way to silence the warning.
28421         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28422         any warning about large file offsets.
28423         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28424         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28425         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28426         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28427         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28428         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28429         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28430         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28431
28432         warn-on-use: new module
28433         * modules/warn-on-use: New file.
28434         * build-aux/warn-on-use.h: Likewise.
28435         * m4/warn-on-use.m4: Likewise.
28436         * MODULES.html.sh (Support for building): Mention it.
28437
28438 2010-01-10  Bruno Haible  <bruno@clisp.org>
28439
28440         Tests for module 'unistr/u32-strdup'.
28441         * modules/unistr/u32-strdup-tests: New file.
28442         * tests/unistr/test-u32-strdup.c: New file.
28443
28444         Tests for module 'unistr/u16-strdup'.
28445         * modules/unistr/u16-strdup-tests: New file.
28446         * tests/unistr/test-u16-strdup.c: New file.
28447
28448         Tests for module 'unistr/u8-strdup'.
28449         * modules/unistr/u8-strdup-tests: New file.
28450         * tests/unistr/test-u8-strdup.c: New file.
28451         * tests/unistr/test-strdup.h: New file.
28452
28453         Tests for module 'unistr/u32-strncmp'.
28454         * modules/unistr/u32-strncmp-tests: New file.
28455         * tests/unistr/test-u32-strncmp.c: New file.
28456
28457         Tests for module 'unistr/u16-strncmp'.
28458         * modules/unistr/u16-strncmp-tests: New file.
28459         * tests/unistr/test-u16-strncmp.c: New file.
28460
28461         Tests for module 'unistr/u8-strncmp'.
28462         * modules/unistr/u8-strncmp-tests: New file.
28463         * tests/unistr/test-u8-strncmp.c: New file.
28464         * tests/unistr/test-strncmp.h: New file.
28465
28466         Tests for module 'unistr/u32-strcoll'.
28467         * modules/unistr/u32-strcoll-tests: New file.
28468         * tests/unistr/test-u32-strcoll.c: New file.
28469
28470         Tests for module 'unistr/u16-strcoll'.
28471         * modules/unistr/u16-strcoll-tests: New file.
28472         * tests/unistr/test-u16-strcoll.c: New file.
28473
28474         Tests for module 'unistr/u8-strcoll'.
28475         * modules/unistr/u8-strcoll-tests: New file.
28476         * tests/unistr/test-u8-strcoll.c: New file.
28477
28478         Tests for module 'unistr/u32-strcmp'.
28479         * modules/unistr/u32-strcmp-tests: New file.
28480         * tests/unistr/test-u32-strcmp.c: New file.
28481         * tests/unistr/test-u32-strcmp.h: New file.
28482
28483         Tests for module 'unistr/u16-strcmp'.
28484         * modules/unistr/u16-strcmp-tests: New file.
28485         * tests/unistr/test-u16-strcmp.c: New file.
28486         * tests/unistr/test-u16-strcmp.h: New file.
28487
28488         Tests for module 'unistr/u8-strcmp'.
28489         * modules/unistr/u8-strcmp-tests: New file.
28490         * tests/unistr/test-u8-strcmp.c: New file.
28491         * tests/unistr/test-u8-strcmp.h: New file.
28492         * tests/unistr/test-strcmp.h: New file.
28493
28494         Tests for module 'unistr/u32-strncat'.
28495         * modules/unistr/u32-strncat-tests: New file.
28496         * tests/unistr/test-u32-strncat.c: New file.
28497
28498         Tests for module 'unistr/u16-strncat'.
28499         * modules/unistr/u16-strncat-tests: New file.
28500         * tests/unistr/test-u16-strncat.c: New file.
28501
28502         Tests for module 'unistr/u8-strncat'.
28503         * modules/unistr/u8-strncat-tests: New file.
28504         * tests/unistr/test-u8-strncat.c: New file.
28505         * tests/unistr/test-strncat.h: New file.
28506
28507         Tests for module 'unistr/u32-strcat'.
28508         * modules/unistr/u32-strcat-tests: New file.
28509         * tests/unistr/test-u32-strcat.c: New file.
28510
28511         Tests for module 'unistr/u16-strcat'.
28512         * modules/unistr/u16-strcat-tests: New file.
28513         * tests/unistr/test-u16-strcat.c: New file.
28514
28515         Tests for module 'unistr/u8-strcat'.
28516         * modules/unistr/u8-strcat-tests: New file.
28517         * tests/unistr/test-u8-strcat.c: New file.
28518         * tests/unistr/test-strcat.h: New file.
28519
28520         Tests for module 'unistr/u32-stpncpy'.
28521         * modules/unistr/u32-stpncpy-tests: New file.
28522         * tests/unistr/test-u32-stpncpy.c: New file.
28523
28524         Tests for module 'unistr/u16-stpncpy'.
28525         * modules/unistr/u16-stpncpy-tests: New file.
28526         * tests/unistr/test-u16-stpncpy.c: New file.
28527
28528         Tests for module 'unistr/u8-stpncpy'.
28529         * modules/unistr/u8-stpncpy-tests: New file.
28530         * tests/unistr/test-u8-stpncpy.c: New file.
28531         * tests/unistr/test-stpncpy.h: New file.
28532
28533         Tests for module 'unistr/u32-strncpy'.
28534         * modules/unistr/u32-strncpy-tests: New file.
28535         * tests/unistr/test-u32-strncpy.c: New file.
28536
28537         Tests for module 'unistr/u16-strncpy'.
28538         * modules/unistr/u16-strncpy-tests: New file.
28539         * tests/unistr/test-u16-strncpy.c: New file.
28540
28541         Tests for module 'unistr/u8-strncpy'.
28542         * modules/unistr/u8-strncpy-tests: New file.
28543         * tests/unistr/test-u8-strncpy.c: New file.
28544         * tests/unistr/test-strncpy.h: New file.
28545
28546         Tests for module 'unistr/u32-stpcpy'.
28547         * modules/unistr/u32-stpcpy-tests: New file.
28548         * tests/unistr/test-u32-stpcpy.c: New file.
28549
28550         Tests for module 'unistr/u16-stpcpy'.
28551         * modules/unistr/u16-stpcpy-tests: New file.
28552         * tests/unistr/test-u16-stpcpy.c: New file.
28553
28554         Tests for module 'unistr/u8-stpcpy'.
28555         * modules/unistr/u8-stpcpy-tests: New file.
28556         * tests/unistr/test-u8-stpcpy.c: New file.
28557         * tests/unistr/test-stpcpy.h: New file.
28558
28559         Tests for module 'unistr/u32-strcpy'.
28560         * modules/unistr/u32-strcpy-tests: New file.
28561         * tests/unistr/test-u32-strcpy.c: New file.
28562
28563         Tests for module 'unistr/u16-strcpy'.
28564         * modules/unistr/u16-strcpy-tests: New file.
28565         * tests/unistr/test-u16-strcpy.c: New file.
28566
28567         Tests for module 'unistr/u8-strcpy'.
28568         * modules/unistr/u8-strcpy-tests: New file.
28569         * tests/unistr/test-u8-strcpy.c: New file.
28570         * tests/unistr/test-strcpy.h: New file.
28571
28572         Tests for module 'unistr/u32-strnlen'.
28573         * modules/unistr/u32-strnlen-tests: New file.
28574         * tests/unistr/test-u32-strnlen.c: New file.
28575
28576         Tests for module 'unistr/u16-strnlen'.
28577         * modules/unistr/u16-strnlen-tests: New file.
28578         * tests/unistr/test-u16-strnlen.c: New file.
28579
28580         Tests for module 'unistr/u8-strnlen'.
28581         * modules/unistr/u8-strnlen-tests: New file.
28582         * tests/unistr/test-u8-strnlen.c: New file.
28583         * tests/unistr/test-strnlen.h: New file.
28584
28585         Tests for module 'unistr/u32-strlen'.
28586         * modules/unistr/u32-strlen-tests: New file.
28587         * tests/unistr/test-u32-strlen.c: New file.
28588
28589         Tests for module 'unistr/u16-strlen'.
28590         * modules/unistr/u16-strlen-tests: New file.
28591         * tests/unistr/test-u16-strlen.c: New file.
28592
28593         Tests for module 'unistr/u8-strlen'.
28594         * modules/unistr/u8-strlen-tests: New file.
28595         * tests/unistr/test-u8-strlen.c: New file.
28596
28597         Tests for module 'unistr/u32-prev'.
28598         * modules/unistr/u32-prev-tests: New file.
28599         * tests/unistr/test-u32-prev.c: New file.
28600
28601         Tests for module 'unistr/u16-prev'.
28602         * modules/unistr/u16-prev-tests: New file.
28603         * tests/unistr/test-u16-prev.c: New file.
28604
28605         Tests for module 'unistr/u8-prev'.
28606         * modules/unistr/u8-prev-tests: New file.
28607         * tests/unistr/test-u8-prev.c: New file.
28608
28609         Tests for module 'unistr/u32-next'.
28610         * modules/unistr/u32-next-tests: New file.
28611         * tests/unistr/test-u32-next.c: New file.
28612
28613         Tests for module 'unistr/u16-next'.
28614         * modules/unistr/u16-next-tests: New file.
28615         * tests/unistr/test-u16-next.c: New file.
28616
28617         Tests for module 'unistr/u8-next'.
28618         * modules/unistr/u8-next-tests: New file.
28619         * tests/unistr/test-u8-next.c: New file.
28620
28621         Tests for module 'unistr/u32-strmbtouc'.
28622         * modules/unistr/u32-strmbtouc-tests: New file.
28623         * tests/unistr/test-u32-strmbtouc.c: New file.
28624
28625         Tests for module 'unistr/u16-strmbtouc'.
28626         * modules/unistr/u16-strmbtouc-tests: New file.
28627         * tests/unistr/test-u16-strmbtouc.c: New file.
28628
28629         Tests for module 'unistr/u8-strmbtouc'.
28630         * modules/unistr/u8-strmbtouc-tests: New file.
28631         * tests/unistr/test-u8-strmbtouc.c: New file.
28632
28633         Tests for module 'unistr/u32-strmblen'.
28634         * modules/unistr/u32-strmblen-tests: New file.
28635         * tests/unistr/test-u32-strmblen.c: New file.
28636
28637         Tests for module 'unistr/u16-strmblen'.
28638         * modules/unistr/u16-strmblen-tests: New file.
28639         * tests/unistr/test-u16-strmblen.c: New file.
28640
28641         Tests for module 'unistr/u8-strmblen'.
28642         * modules/unistr/u8-strmblen-tests: New file.
28643         * tests/unistr/test-u8-strmblen.c: New file.
28644
28645         Tests for module 'unistr/u32-cpy-alloc'.
28646         * modules/unistr/u32-cpy-alloc-tests: New file.
28647         * tests/unistr/test-u32-cpy-alloc.c: New file.
28648
28649         Tests for module 'unistr/u16-cpy-alloc'.
28650         * modules/unistr/u16-cpy-alloc-tests: New file.
28651         * tests/unistr/test-u16-cpy-alloc.c: New file.
28652
28653         Tests for module 'unistr/u8-cpy-alloc'.
28654         * modules/unistr/u8-cpy-alloc-tests: New file.
28655         * tests/unistr/test-u8-cpy-alloc.c: New file.
28656         * tests/unistr/test-cpy-alloc.h: New file.
28657
28658         Tests for module 'unistr/u32-mbsnlen'.
28659         * modules/unistr/u32-mbsnlen-tests: New file.
28660         * tests/unistr/test-u32-mbsnlen.c: New file.
28661
28662         Tests for module 'unistr/u16-mbsnlen'.
28663         * modules/unistr/u16-mbsnlen-tests: New file.
28664         * tests/unistr/test-u16-mbsnlen.c: New file.
28665
28666         Tests for module 'unistr/u8-mbsnlen'.
28667         * modules/unistr/u8-mbsnlen-tests: New file.
28668         * tests/unistr/test-u8-mbsnlen.c: New file.
28669
28670         Tests for module 'unistr/u32-chr'.
28671         * modules/unistr/u32-chr-tests: New file.
28672         * tests/unistr/test-u32-chr.c: New file.
28673
28674         Tests for module 'unistr/u16-chr'.
28675         * modules/unistr/u16-chr-tests: New file.
28676         * tests/unistr/test-u16-chr.c: New file.
28677
28678         Tests for module 'unistr/u8-chr'.
28679         * modules/unistr/u8-chr-tests: New file.
28680         * tests/unistr/test-u8-chr.c: New file.
28681         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28682
28683         Tests for module 'unistr/u32-cmp2'.
28684         * modules/unistr/u32-cmp2-tests: New file.
28685         * tests/unistr/test-u32-cmp2.c: New file.
28686
28687         Tests for module 'unistr/u16-cmp2'.
28688         * modules/unistr/u16-cmp2-tests: New file.
28689         * tests/unistr/test-u16-cmp2.c: New file.
28690
28691         Tests for module 'unistr/u8-cmp2'.
28692         * modules/unistr/u8-cmp2-tests: New file.
28693         * tests/unistr/test-u8-cmp2.c: New file.
28694         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28695
28696         Tests for module 'unistr/u32-cmp'.
28697         * modules/unistr/u32-cmp-tests: New file.
28698         * tests/unistr/test-u32-cmp.c: New file.
28699
28700         Tests for module 'unistr/u16-cmp'.
28701         * modules/unistr/u16-cmp-tests: New file.
28702         * tests/unistr/test-u16-cmp.c: New file.
28703
28704         Tests for module 'unistr/u8-cmp'.
28705         * modules/unistr/u8-cmp-tests: New file.
28706         * tests/unistr/test-u8-cmp.c: New file.
28707         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28708
28709         Tests for module 'unistr/u32-set'.
28710         * modules/unistr/u32-set-tests: New file.
28711         * tests/unistr/test-u32-set.c: New file.
28712
28713         Tests for module 'unistr/u16-set'.
28714         * modules/unistr/u16-set-tests: New file.
28715         * tests/unistr/test-u16-set.c: New file.
28716
28717         Tests for module 'unistr/u8-set'.
28718         * modules/unistr/u8-set-tests: New file.
28719         * tests/unistr/test-u8-set.c: New file.
28720         * tests/unistr/test-set.h: New file.
28721
28722         Tests for module 'unistr/u32-move'.
28723         * modules/unistr/u32-move-tests: New file.
28724         * tests/unistr/test-u32-move.c: New file.
28725
28726         Tests for module 'unistr/u16-move'.
28727         * modules/unistr/u16-move-tests: New file.
28728         * tests/unistr/test-u16-move.c: New file.
28729
28730         Tests for module 'unistr/u8-move'.
28731         * modules/unistr/u8-move-tests: New file.
28732         * tests/unistr/test-u8-move.c: New file.
28733         * tests/unistr/test-move.h: New file.
28734
28735         Tests for module 'unistr/u32-cpy'.
28736         * modules/unistr/u32-cpy-tests: New file.
28737         * tests/unistr/test-u32-cpy.c: New file.
28738
28739         Tests for module 'unistr/u16-cpy'.
28740         * modules/unistr/u16-cpy-tests: New file.
28741         * tests/unistr/test-u16-cpy.c: New file.
28742
28743         Tests for module 'unistr/u8-cpy'.
28744         * modules/unistr/u8-cpy-tests: New file.
28745         * tests/unistr/test-u8-cpy.c: New file.
28746         * tests/unistr/test-cpy.h: New file.
28747
28748 2010-01-09  Bruno Haible  <bruno@clisp.org>
28749
28750         Tests for module 'unistr/u32-uctomb'.
28751         * modules/unistr/u32-uctomb-tests: New file.
28752         * tests/unistr/test-u32-uctomb.c: New file.
28753
28754         Tests for module 'unistr/u16-uctomb'.
28755         * modules/unistr/u16-uctomb-tests: New file.
28756         * tests/unistr/test-u16-uctomb.c: New file.
28757
28758         Tests for module 'unistr/u8-uctomb'.
28759         * modules/unistr/u8-uctomb-tests: New file.
28760         * tests/unistr/test-u8-uctomb.c: New file.
28761
28762         Tests for module 'unistr/u32-mbtoucr'.
28763         * modules/unistr/u32-mbtoucr-tests: New file.
28764         * tests/unistr/test-u32-mbtoucr.c: New file.
28765
28766         Tests for module 'unistr/u16-mbtoucr'.
28767         * modules/unistr/u16-mbtoucr-tests: New file.
28768         * tests/unistr/test-u16-mbtoucr.c: New file.
28769
28770         Tests for module 'unistr/u8-mbtoucr'.
28771         * modules/unistr/u8-mbtoucr-tests: New file.
28772         * tests/unistr/test-u8-mbtoucr.c: New file.
28773
28774         Tests for module 'unistr/u32-mbtouc'.
28775         * modules/unistr/u32-mbtouc-tests: New file.
28776         * tests/unistr/test-u32-mbtouc.c: New file.
28777
28778         Tests for module 'unistr/u16-mbtouc'.
28779         * modules/unistr/u16-mbtouc-tests: New file.
28780         * tests/unistr/test-u16-mbtouc.c: New file.
28781
28782         Tests for module 'unistr/u8-mbtouc'.
28783         * modules/unistr/u8-mbtouc-tests: New file.
28784         * tests/unistr/test-u8-mbtouc.c: New file.
28785
28786         Tests for module 'unistr/u32-mbtouc-unsafe'.
28787         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28788         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28789         * tests/unistr/test-u32-mbtouc.h: New file.
28790
28791         Tests for module 'unistr/u16-mbtouc-unsafe'.
28792         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28793         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28794         * tests/unistr/test-u16-mbtouc.h: New file.
28795
28796         Tests for module 'unistr/u8-mbtouc-unsafe'.
28797         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28798         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28799         * tests/unistr/test-u8-mbtouc.h: New file.
28800
28801         Tests for module 'unistr/u32-mblen'.
28802         * modules/unistr/u32-mblen-tests: New file.
28803         * tests/unistr/test-u32-mblen.c: New file.
28804
28805         Tests for module 'unistr/u16-mblen'.
28806         * modules/unistr/u16-mblen-tests: New file.
28807         * tests/unistr/test-u16-mblen.c: New file.
28808
28809         Tests for module 'unistr/u8-mblen'.
28810         * modules/unistr/u8-mblen-tests: New file.
28811         * tests/unistr/test-u8-mblen.c: New file.
28812
28813         Tests for module 'unistr/u32-to-u16'.
28814         * modules/unistr/u32-to-u16-tests: New file.
28815         * tests/unistr/test-u32-to-u16.c: New file.
28816
28817         Tests for module 'unistr/u32-to-u8'.
28818         * modules/unistr/u32-to-u8-tests: New file.
28819         * tests/unistr/test-u32-to-u8.c: New file.
28820
28821         Tests for module 'unistr/u16-to-u32'.
28822         * modules/unistr/u16-to-u32-tests: New file.
28823         * tests/unistr/test-u16-to-u32.c: New file.
28824
28825         Tests for module 'unistr/u16-to-u8'.
28826         * modules/unistr/u16-to-u8-tests: New file.
28827         * tests/unistr/test-u16-to-u8.c: New file.
28828
28829         Tests for module 'unistr/u8-to-u32'.
28830         * modules/unistr/u8-to-u32-tests: New file.
28831         * tests/unistr/test-u8-to-u32.c: New file.
28832
28833         Tests for module 'unistr/u8-to-u16'.
28834         * modules/unistr/u8-to-u16-tests: New file.
28835         * tests/unistr/test-u8-to-u16.c: New file.
28836
28837         Tests for module 'unistr/u32-check'.
28838         * modules/unistr/u32-check-tests: New file.
28839         * tests/unistr/test-u32-check.c: New file.
28840
28841         Tests for module 'unistr/u16-check'.
28842         * modules/unistr/u16-check-tests: New file.
28843         * tests/unistr/test-u16-check.c: New file.
28844
28845         Tests for module 'unistr/u8-check'.
28846         * modules/unistr/u8-check-tests: New file.
28847         * tests/unistr/test-u8-check.c: New file.
28848
28849         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28850         (category_equals): New function.
28851         (main): Add more tests.
28852         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28853
28854         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28855
28856 2010-01-10  Bruno Haible  <bruno@clisp.org>
28857
28858         unistr/u*-strcoll: Try harder to distinguish different strings.
28859         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28860         compare s1 and s2 to see if they are different.
28861
28862 2010-01-10  Bruno Haible  <bruno@clisp.org>
28863
28864         unistr/u*-stpncpy: Fix the return value.
28865         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28866         description of the return value consistent with stpncpy in glibc.
28867         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28868         written non-NUL unit.
28869
28870 2010-01-10  Bruno Haible  <bruno@clisp.org>
28871
28872         unistr/u*-next: Add missing dependencies.
28873         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28874         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28875         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28876
28877 2010-01-10  Bruno Haible  <bruno@clisp.org>
28878
28879         unistr/u8-mbsnlen: Fix return value for incomplete character.
28880         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28881         u8_mblen.
28882         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28883         Remove unistr/u8-mblen.
28884         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28885         u16_mblen.
28886         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28887         Remove unistr/u16-mblen.
28888
28889 2010-01-10  Bruno Haible  <bruno@clisp.org>
28890
28891         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28892         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28893         Reported by Brian Gough <bjg@gnu.org> and
28894         Chris Clayton <chris2553@googlemail.com> via
28895         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28896
28897 2010-01-09  Bruno Haible  <bruno@clisp.org>
28898
28899         unistr/u16-to-u32: Reject invalid input.
28900         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28901         u16_mbtouc.
28902         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28903         Remove unistr/u16-mbtouc.
28904
28905         unistr/u16-to-u8: Reject invalid input.
28906         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28907         u16_mbtouc.
28908         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28909         Remove unistr/u16-mbtouc.
28910
28911         unistr/u8-to-u32: Reject invalid input.
28912         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28913         u8_mbtouc.
28914         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28915         Remove unistr/u8-mbtouc.
28916
28917         unistr/u8-to-u16: Reject invalid input.
28918         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28919         u8_mbtouc.
28920         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28921         Remove unistr/u8-mbtouc.
28922
28923 2010-01-09  Bruno Haible  <bruno@clisp.org>
28924
28925         Tests for module 'getlogin'.
28926         * modules/getlogin-tests: New file.
28927         * tests/test-getlogin.c: New file.
28928
28929         New module 'getlogin'.
28930         * lib/unistd.in.h (getlogin): New declaration.
28931         * lib/getlogin.c: New file.
28932         * m4/getlogin.m4: New file.
28933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28934         HAVE_GETLOGIN.
28935         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28936         HAVE_GETLOGIN.
28937         * modules/getlogin: New file.
28938         * doc/posix-functions/getlogin.texi: Mention the new module.
28939         Reported by John W. Eaton <jwe@gnu.org>.
28940
28941 2010-01-09  Bruno Haible  <bruno@clisp.org>
28942
28943         getlogin_r: Support for native Windows.
28944         * lib/getlogin_r.c: Include <windows.h>
28945         (getlogin_r): Implement for native Windows.
28946         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28947         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28948         via John W. Eaton <jwe@gnu.org>.
28949
28950 2010-01-09  Bruno Haible  <bruno@clisp.org>
28951
28952         getlogin_r: Small fixes.
28953         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28954         succeeds.
28955         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28956         before testing whether getlogin_r is declared. No need to set
28957         HAVE_DECL_GETLOGIN_R to 1.
28958         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28959
28960 2010-01-09  Bruno Haible  <bruno@clisp.org>
28961
28962         * lib/unistd.in.h (getlogin_r): Add comment.
28963
28964 2010-01-09  Bruno Haible  <bruno@clisp.org>
28965
28966         Tests for module 'getlogin_r'.
28967         * modules/getlogin_r-tests: New file.
28968         * tests/test-getlogin_r.c: New file.
28969
28970 2010-01-09  Jim Meyering  <meyering@redhat.com>
28971
28972         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28973         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28974         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28975
28976 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28977
28978         * lib/dup2.c (rpl_dup2): Improve comment.
28979
28980 2010-01-08  Eric Blake  <ebb9@byu.net>
28981
28982         maint.mk: allow packages to add makefile @@ exceptions
28983         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28984         (sc_makefile_check): Rename...
28985         (sc_makefile_at_at_check): ...to this, and use hook.
28986
28987         dup2: work around mingw bug
28988         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28989         Reported by Simon Josefsson.
28990
28991 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28992
28993         glob: Fix C++ compilation.
28994         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28995         C++.
28996
28997 2010-01-07  Bruno Haible  <bruno@clisp.org>
28998
28999         Fix indentation of wctype.in.h, broken since 2007-01-06.
29000         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29001
29002 2010-01-07  Bruno Haible  <bruno@clisp.org>
29003
29004         mbslen: Avoid collision with system function.
29005         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29006         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29007         * m4/mbslen.m4: New file.
29008         * modules/mbslen (Files): Add it.
29009         (configure.ac): Invoke gl_MBSLEN.
29010         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29011         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29012         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29013         via Ian Beckwith <ianb@erislabs.net>.
29014
29015 2010-01-07  Bruno Haible  <bruno@clisp.org>
29016
29017         dirent: Document the last fix.
29018         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29019
29020 2010-01-07  Bruno Haible  <bruno@clisp.org>
29021
29022         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29023         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29024         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29025         va_list are defined.
29026         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29027         Reported by Eric Blake.
29028
29029 2010-01-07  Bruno Haible  <bruno@clisp.org>
29030
29031         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29032         * modules/xlist (Depends-on): Add 'list',
29033         * modules/xoset (Depends-on): Add 'oset'.
29034         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29035
29036 2010-01-07  Bruno Haible  <bruno@clisp.org>
29037
29038         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29039         * doc/posix-functions/strncasecmp.texi: Likewise.
29040
29041 2010-01-07  Bruno Haible  <bruno@clisp.org>
29042
29043         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29044
29045 2010-01-07  John W. Eaton  <jwe@octave.org>
29046
29047         wctype: allow C++ use
29048         * lib/wctype.in.h: Add extern "C" block for C++.
29049
29050 2010-01-06  Eric Blake  <ebb9@byu.net>
29051
29052         maint.mk: detect incorrect GFDL usage
29053         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29054
29055 2010-01-06  Jim Meyering  <meyering@redhat.com>
29056         and Eric Blake  <ebb9@byu.net>
29057
29058         maint.mk: ignore multi-line copyright in NEWS
29059         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29060
29061 2010-01-06  Eric Blake  <ebb9@byu.net>
29062
29063         select: add missing dependency
29064         * modules/select-tests (Depends-on): Move sockets dependency...
29065         * modules/select (Depends-on): ...here.
29066         Reported by Ian Beckwith.
29067
29068         doc: regenerate INSTALL
29069         * doc/INSTALL: Reflect recent autoconf update.
29070         * doc/INSTALL.ISO: Likewise.
29071         * doc/INSTALL.UTF-8: Likewise.
29072
29073         pread: fix compilation on glibc
29074         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29075         Reported by Ralf Wildenhues.
29076
29077         dirent: fix test failure
29078         * lib/dirent.in.h (includes): Guarantee ino_t.
29079         Reported by Ralf Wildenhues.
29080
29081 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29082
29083         linkat, renameat: avoid bad free
29084         * lib/at-func2.c (at_func2): Fix typo.
29085         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29086
29087 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29088
29089         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29090         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29091         to avoid failure of symlink test later.
29092
29093 2010-01-06  Eric Blake  <ebb9@byu.net>
29094
29095         stdio, unistd: guarantee ssize_t
29096         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29097         2008 are exposed when needed.
29098         * lib/stdio.in.h (includes): Likewise.
29099         Reported by Ralf Wildenhues.
29100
29101 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29102
29103         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29104         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29105         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29106
29107 2010-01-06  Jim Meyering  <meyering@redhat.com>
29108
29109         readtokens: this module *does* require xalloc.h
29110         It uses only functions that were omitted by the old syntax-check rule.
29111         * lib/readtokens.c: Include "xalloc.h" once again.
29112         * modules/readtokens (Depends-on): Add xalloc.
29113         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29114
29115 2010-01-05  Eric Blake  <ebb9@byu.net>
29116
29117         maint: support 'make announcement' from a VPATH build
29118         * top/maint.mk (announcement): Look for correct NEWS file.
29119
29120 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29121
29122         utimens (fdutimens): ignore a negative FD, per contract
29123         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29124         when we have a valid file descriptor.  Otherwise, using a brand
29125         new glibc (with just-patched futimens that now fails with EBADF)
29126         would cause this function to fail with ENOSYS.
29127         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29128         See also http://bugzilla.redhat.com/552320.
29129
29130 2010-01-05  Eric Blake  <ebb9@byu.net>
29131
29132         strcase: document what it provides
29133         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29134         gnulib module.
29135         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29136         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29137
29138 2010-01-05  Jim Meyering  <meyering@redhat.com>
29139
29140         maint: remove useless inclusions of "xalloc.h"
29141         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29142         * lib/readtokens.c: Likewise.
29143         * lib/same.c: Likewise.
29144         * modules/getloadavg (Depends-on): Remove xalloc.
29145         * modules/readtokens: Likewise.
29146         * modules/same: Likewise.
29147
29148         maint.mk: include 4 more function names in alloca.h-checking regexp
29149         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29150         regexp.  Before, we would give a false-positive (saying alloca.h
29151         is included unnecessarily) when the only uses involved omitted symbols.
29152
29153         xalloc.h: use consistent formatting
29154         * lib/xalloc.h: Move declarations to start in the first column.
29155
29156 2010-01-05  Eric Blake  <ebb9@byu.net>
29157
29158         mkdir: avoid xalloc
29159         * lib/mkdir.c (includes): Drop unused header.
29160         Reported by John W. Eaton.
29161
29162 2010-01-04  Jim Meyering  <meyering@redhat.com>
29163
29164         nl_langinfo: avoid configure-time syntax error
29165         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29166         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29167         the empty string.  Don't let that provoke a shell syntax error.
29168
29169         regcomp, regexec, fnmatch: avoid array bounds read error
29170         * lib/regcomp.c (build_equiv_class): From glibc:
29171         Use only the low 24 bits of a findidx return value as an index
29172         into the weights array.  Patch by Ulrich Drepper:
29173         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29174         * lib/regexec.c (check_node_accept_bytes): Likewise.
29175         * lib/fnmatch_loop.c (FCT): Likewise.
29176
29177         regcomp: skip collseq lookup when there are no rules
29178         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29179         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29180
29181         regcomp: recognize ill-formed { } expressions
29182         * lib/regcomp.c (parse_dup_op): From glibc:
29183         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29184
29185         regcomp: fix typo in comment
29186         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29187         s/satisfy/satisfies/.
29188
29189         regcomp: sync from glibc: remove dead store
29190         * lib/regcomp.c (duplicate_node_closure): Remove useless
29191         search_duplicated_node call and dead store.
29192
29193         regcomp: sync from glibc; always use nl_langinfo
29194         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29195         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29196         * modules/regex (Depends-on): Add nl_langinfo.
29197
29198 2010-01-04  Eric Blake  <ebb9@byu.net>
29199
29200         fdopendir: fix configure test
29201         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29202
29203 2010-01-01  Bruno Haible  <bruno@clisp.org>
29204
29205         wchar: Remove unused configure check.
29206         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29207
29208 2010-01-01  Eric Blake  <ebb9@byu.net>
29209
29210         headers: make check of system header explicit
29211         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29212         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29213         ourselves.
29214         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29215         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29216         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29217         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29218         internals.
29219         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29220         missing.
29221         Suggested by Bruno Haible.
29222
29223 2010-01-01  Jim Meyering  <meyering@redhat.com>
29224
29225         ChangeLog: tweak to eliminate unnecessary copyright line
29226         * ChangeLog: Remove a copyright line that was mistakenly updated
29227         by today's update-copyright run.  Reported by Eric Blake.
29228
29229         test-update-copyright: don't let envvar setting cause test failure
29230         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29231
29232 2010-01-01  Bruno Haible  <bruno@clisp.org>
29233
29234         localename: Avoid gcc warning.
29235         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29236         function if it is not used.
29237
29238 2010-01-01  Jim Meyering  <meyering@redhat.com>
29239
29240         update nearly all FSF copyright year lists to include 2010
29241         Use the same procedure as for 2009, outlined in
29242         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29243
29244         version-etc: set COPYRIGHT_YEAR to 2010
29245         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29246
29247 2009-12-31  Eric Blake  <ebb9@byu.net>
29248
29249         doc: correct availability of cygwin 1.5.x getopt
29250         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29251         variables.
29252         * doc/posix-functions/opterr.texi (opterr): Likewise.
29253         * doc/posix-functions/optind.texi (optind): Likewise.
29254         * doc/posix-functions/optopt.texi (optopt): Likewise.
29255         * doc/posix-functions/tzname.texi (tzname): Likewise.
29256
29257         openat: update maintainer
29258         * modules/openat (Maintainer): Add myself.
29259
29260         utimens: avoid shadowing warning
29261         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29262         buffers into one, to avoid shadowing, as well as avoiding a
29263         redundant stat.
29264         Reported by Jim Meyering.
29265
29266         test-dup2: avoid compiler warning
29267         * tests/test-dup2.c (is_inheritable): Only define if used.
29268
29269 2010-01-01  Bruno Haible  <bruno@clisp.org>
29270
29271         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29272         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29273         defined, use wctomb instead of wcrtomb.
29274
29275 2010-01-01  Bruno Haible  <bruno@clisp.org>
29276
29277         iconv: Reject native Solaris iconv.
29278         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29279         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29280
29281 2009-12-31  Bruno Haible  <bruno@clisp.org>
29282
29283         * tests/test-signal.c (main): Remove test of 'SIG'.
29284
29285 2009-12-31  Bruno Haible  <bruno@clisp.org>
29286
29287         spawn: Fix incomplete fix.
29288         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29289         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29290         warnings for GNULIB_POSIXCHECK again.
29291         Reported by Eric Blake.
29292
29293 2009-12-31  Bruno Haible  <bruno@clisp.org>
29294
29295         Avoid namespace pollution on glibc systems.
29296         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29297         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29298         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29299         glibc systems.
29300
29301 2009-12-31  Bruno Haible  <bruno@clisp.org>
29302
29303         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29304         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29305         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29306         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29307         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29308         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29309         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29310
29311 2009-12-31  Bruno Haible  <bruno@clisp.org>
29312
29313         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29314         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29315         afterwards.
29316
29317 2009-12-31  Bruno Haible  <bruno@clisp.org>
29318
29319         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29320         SYS_UTSNAME_H.
29321
29322 2009-12-31  Bruno Haible  <bruno@clisp.org>
29323
29324         spawn: Fix misapplied patch.
29325         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29326         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29327         warnings for GNULIB_POSIXCHECK.
29328
29329 2009-12-31  Bruno Haible  <bruno@clisp.org>
29330
29331         times: Update after sys_times changed.
29332         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29333         * modules/times (Files): Add it.
29334         (configure.ac): Invoke gl_FUNC_TIMES.
29335
29336 2009-12-31  Bruno Haible  <bruno@clisp.org>
29337
29338         Use AC_C_INLINE where necessary.
29339         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29340         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29341         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29342         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29343         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29344         * m4/mbiter.m4 (gl_MBITER): Likewise.
29345         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29346         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29347         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29348         * modules/u64 (configure.ac): Likewise.
29349
29350 2009-12-31  Bruno Haible  <bruno@clisp.org>
29351
29352         Use AC_C_INLINE instead of module 'inline' where possible.
29353         * modules/inline (Description): Clarify purpose.
29354         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29355         * modules/count-one-bits (Depends-on): Remove inline.
29356         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29357         * modules/openat (Depends-on): Remove inline.
29358         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29359         instead of depending on module 'inline'.
29360         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29361         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29362         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29363         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29364         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29365         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29366         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29367         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29368         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29369         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29370         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29371         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29372         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29373         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29374         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29375         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29376         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29377         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29378         Likewise.
29379         * modules/unictype/property-ascii-hex-digit (Depends-on,
29380         configure.ac): Likewise.
29381         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29382         configure.ac): Likewise.
29383         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29384         configure.ac): Likewise.
29385         * modules/unictype/property-bidi-block-separator (Depends-on,
29386         configure.ac): Likewise.
29387         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29388         configure.ac): Likewise.
29389         * modules/unictype/property-bidi-common-separator (Depends-on,
29390         configure.ac): Likewise.
29391         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29392         Likewise.
29393         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29394         configure.ac): Likewise.
29395         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29396         configure.ac): Likewise.
29397         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29398         configure.ac): Likewise.
29399         * modules/unictype/property-bidi-european-digit (Depends-on,
29400         configure.ac): Likewise.
29401         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29402         configure.ac): Likewise.
29403         * modules/unictype/property-bidi-left-to-right (Depends-on,
29404         configure.ac): Likewise.
29405         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29406         configure.ac): Likewise.
29407         * modules/unictype/property-bidi-other-neutral (Depends-on,
29408         configure.ac): Likewise.
29409         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29410         Likewise.
29411         * modules/unictype/property-bidi-segment-separator (Depends-on,
29412         configure.ac): Likewise.
29413         * modules/unictype/property-bidi-whitespace (Depends-on,
29414         configure.ac): Likewise.
29415         * modules/unictype/property-combining (Depends-on, configure.ac):
29416         Likewise.
29417         * modules/unictype/property-composite (Depends-on, configure.ac):
29418         Likewise.
29419         * modules/unictype/property-currency-symbol (Depends-on,
29420         configure.ac): Likewise.
29421         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29422         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29423         Likewise.
29424         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29425         configure.ac): Likewise.
29426         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29427         Likewise.
29428         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29429         Likewise.
29430         * modules/unictype/property-extender (Depends-on, configure.ac):
29431         Likewise.
29432         * modules/unictype/property-format-control (Depends-on, configure.ac):
29433         Likewise.
29434         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29435         Likewise.
29436         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29437         Likewise.
29438         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29439         Likewise.
29440         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29441         Likewise.
29442         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29443         Likewise.
29444         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29445         Likewise.
29446         * modules/unictype/property-id-start (Depends-on, configure.ac):
29447         Likewise.
29448         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29449         Likewise.
29450         * modules/unictype/property-ids-binary-operator (Depends-on,
29451         configure.ac): Likewise.
29452         * modules/unictype/property-ids-trinary-operator (Depends-on,
29453         configure.ac): Likewise.
29454         * modules/unictype/property-ignorable-control (Depends-on,
29455         configure.ac): Likewise.
29456         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29457         Likewise.
29458         * modules/unictype/property-join-control (Depends-on, configure.ac):
29459         Likewise.
29460         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29461         Likewise.
29462         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29463         Likewise.
29464         * modules/unictype/property-logical-order-exception (Depends-on,
29465         configure.ac): Likewise.
29466         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29467         Likewise.
29468         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29469         * modules/unictype/property-non-break (Depends-on, configure.ac):
29470         Likewise.
29471         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29472         Likewise.
29473         * modules/unictype/property-numeric (Depends-on, configure.ac):
29474         Likewise.
29475         * modules/unictype/property-other-alphabetic (Depends-on,
29476         configure.ac): Likewise.
29477         * modules/unictype/property-other-default-ignorable-code-point
29478         (Depends-on, configure.ac): Likewise.
29479         * modules/unictype/property-other-grapheme-extend (Depends-on,
29480         configure.ac): Likewise.
29481         * modules/unictype/property-other-id-continue (Depends-on,
29482         configure.ac): Likewise.
29483         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29484         Likewise.
29485         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29486         Likewise.
29487         * modules/unictype/property-other-math (Depends-on, configure.ac):
29488         Likewise.
29489         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29490         Likewise.
29491         * modules/unictype/property-paired-punctuation (Depends-on,
29492         configure.ac): Likewise.
29493         * modules/unictype/property-paragraph-separator (Depends-on,
29494         configure.ac): Likewise.
29495         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29496         Likewise.
29497         * modules/unictype/property-pattern-white-space (Depends-on,
29498         configure.ac): Likewise.
29499         * modules/unictype/property-private-use (Depends-on, configure.ac):
29500         Likewise.
29501         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29502         Likewise.
29503         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29504         Likewise.
29505         * modules/unictype/property-radical (Depends-on, configure.ac):
29506         Likewise.
29507         * modules/unictype/property-sentence-terminal (Depends-on,
29508         configure.ac): Likewise.
29509         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29510         Likewise.
29511         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29512         * modules/unictype/property-terminal-punctuation (Depends-on,
29513         configure.ac): Likewise.
29514         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29515         Likewise.
29516         * modules/unictype/property-unassigned-code-value (Depends-on,
29517         configure.ac): Likewise.
29518         * modules/unictype/property-unified-ideograph (Depends-on,
29519         configure.ac): Likewise.
29520         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29521         Likewise.
29522         * modules/unictype/property-variation-selector (Depends-on,
29523         configure.ac): Likewise.
29524         * modules/unictype/property-white-space (Depends-on, configure.ac):
29525         Likewise.
29526         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29527         Likewise.
29528         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29529         Likewise.
29530         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29531         Likewise.
29532         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29533         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29534         Likewise.
29535
29536 2009-12-31  Bruno Haible  <bruno@clisp.org>
29537
29538         Remove unnecessary AC_C_INLINE invocation.
29539         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29540         since 2009-08-21.
29541
29542 2009-12-31  Jim Meyering  <meyering@redhat.com>
29543
29544         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29545         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29546         With this change, we can all remove the gpg_key_ID = ... definition
29547         from our respective cfg.mk files.
29548
29549         maint.mk: create announcement template in ~/, not in /tmp
29550         * top/maint.mk (emit_upload_commands): Adjust.
29551         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29552         Remove temporary file, .ci-msg.
29553
29554 2009-12-31  Eric Blake  <ebb9@byu.net>
29555
29556         link-warning: always build headers with link warnings
29557         * modules/arpa_inet (Makefile.am): Always build replacement
29558         header.
29559         * modules/ctype (Makefile.am): Likewise.
29560         * modules/dirent (Makefile.am): Likewise.
29561         * modules/inttypes (Makefile.am): Likewise.
29562         * modules/langinfo (Makefile.am): Likewise.
29563         * modules/locale (Makefile.am): Likewise.
29564         * modules/spawn (Makefile.am): Likewise.
29565         * modules/sys_file (Makefile.am): Likewise.
29566         * modules/sys_ioctl (Makefile.am): Likewise.
29567         * modules/sys_select (Makefile.am): Likewise.
29568         * modules/sys_socket (Makefile.am): Likewise.
29569         * modules/sys_times (Makefile.am): Likewise.
29570         * modules/sys_utsname (Makefile.am): Likewise.
29571         * modules/sys_wait (Makefile.am): Likewise.
29572         * modules/wchar (Makefile.am): Likewise.
29573         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29574         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29575         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29576         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29577         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29578         Likewise.
29579         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29580         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29581         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29582         Likewise.
29583         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29584         Likewise.
29585         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29586         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29587         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29588         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29589         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29590         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29591         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29592         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29593         (gl_WCHAR_H_DEFAULTS): Likewise.
29594
29595 2009-12-31  Eric Blake  <ebb9@byu.net>
29596
29597         signal, spawn: use link warnings
29598         * lib/signal.in.h (sigset_t): Make unconditional.
29599         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29600         (sigpending, sigprocmask, sigaction): Add link warnings.
29601         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29602         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29603         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29604         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29605         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29606         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29607         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29608         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29609         (posix_spawn_file_actions_destroy)
29610         (posix_spawn_file_actions_addopen)
29611         (posix_spawn_file_actions_addclose)
29612         (posix_spawn_file_actions_adddup2): Likewise.
29613         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29614         * tests/test-signal.c (main): Enhance test.
29615
29616         spawn: improve wrapper support
29617         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29618         (gl_SPAWN_H_DEFAULTS): New defaults.
29619         * modules/spawn (Makefile.am): Substitute them.
29620         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29621         Only declare if missing or broken.
29622
29623         sys_times, sys_utsname: use include_next
29624         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29625         header.
29626         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29627         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29628         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29629         * modules/sys_times (Depends-on): Add include_next.
29630         (Makefile.am): Substitute additional values.
29631         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29632         * lib/sys_times.in.h (includes): Include native header, if
29633         available.
29634         * lib/sys_utsname.in.h (includes): Likewise.
29635         * tests/test-sys_times.c (main): Enhance test.
29636
29637         fdutimensat: revert prior patch
29638         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29639         utimens.h.
29640         Reported by Bruno Haible.
29641
29642 2009-12-30  Eric Blake  <ebb9@byu.net>
29643
29644         sys_wait: drop link-warning dependency
29645         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29646         link-warning efforts.
29647         * lib/sys_wait.in.h: Likewise.
29648
29649         fdutimensat: remove bogus dependency
29650         * modules/fdutimensat (Depends-on): Drop inline.
29651
29652         unistd: fix typo
29653         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29654
29655 2009-12-30  Bruno Haible  <bruno@clisp.org>
29656
29657         Fix compilation error with Solaris cc.
29658         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29659         * lib/unicase/u16-is-invariant.c: Likewise.
29660         * lib/unicase/u32-is-invariant.c: Likewise.
29661         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29662
29663 2009-12-30  Bruno Haible  <bruno@clisp.org>
29664
29665         Fix test crash.
29666         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29667         locales.
29668         Reported by Simon Josefsson <simon@josefsson.org>.
29669
29670 2009-12-30  Bruno Haible  <bruno@clisp.org>
29671
29672         Fix compilation error on most platforms.
29673         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29674         Reported by Simon Josefsson <simon@josefsson.org>
29675         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29676
29677 2009-12-30  Eric Blake  <ebb9@byu.net>
29678
29679         futimens, utimensat: work around ntfs-3g bug
29680         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29681         a ctime bug is present, and expand workaround to cover ntfs-3g.
29682         * lib/utimens.c (fdutimens, lutimens): Likewise.
29683         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29684         (validate_timespec): Adjust return value.
29685         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29686         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29687         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29688
29689 2009-12-29  Eric Blake  <ebb9@byu.net>
29690
29691         link-warning: make usage consistent
29692         * modules/ctype (Depends-on): Add link-warning.
29693         (Makefile.am): Update rules accordingly.
29694         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29695         * modules/locale (Depends-on, Makefile.am): Likewise.
29696         * modules/sys_file (Makefile.am): Likewise.
29697         * modules/getopt-posix (Makefile.am): Delete unused link warning
29698         efforts.
29699         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29700         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29701         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29702         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29703
29704         stdio: remove unused variables
29705         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29706         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29707         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29708
29709         tests: test more substitute headers
29710         * modules/ctype-tests: New file.
29711         * modules/dirent-tests: Likewise.
29712         * modules/spawn-tests: Likewise.
29713         * modules/sys_file-tests: Likewise.
29714         * modules/sys_ioctl-tests: Likewise.
29715         * modules/sys_wait-tests: Likewise.
29716         * tests/test-ctype.c: Likewise.
29717         * tests/test-dirent.c: Likewise.
29718         * tests/test-spawn.c: Likewise.
29719         * tests/test-sys_file.c: Likewise.
29720         * tests/test-sys_ioctl.c: Likewise.
29721         * tests/test-sys_wait.c: Likewise.
29722         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29723         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29724         whether or not flock is in use.
29725
29726         tests: remove License section from module
29727         * modules/arpa_inet-tests: Remove unneeded section.
29728         * modules/byteswap-tests: Likewise.
29729         * modules/ceilf-tests: Likewise.
29730         * modules/ceill-tests: Likewise.
29731         * modules/crypto/des-tests: Likewise.
29732         * modules/crypto/gc-arcfour-tests: Likewise.
29733         * modules/crypto/gc-arctwo-tests: Likewise.
29734         * modules/crypto/gc-des-tests: Likewise.
29735         * modules/crypto/gc-hmac-md5-tests: Likewise.
29736         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29737         * modules/crypto/gc-md2-tests: Likewise.
29738         * modules/crypto/gc-md4-tests: Likewise.
29739         * modules/crypto/gc-md5-tests: Likewise.
29740         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29741         * modules/crypto/gc-rijndael-tests: Likewise.
29742         * modules/crypto/gc-sha1-tests: Likewise.
29743         * modules/crypto/gc-tests: Likewise.
29744         * modules/crypto/md2-tests: Likewise.
29745         * modules/crypto/md4-tests: Likewise.
29746         * modules/fcntl-h-tests: Likewise.
29747         * modules/floorf-tests: Likewise.
29748         * modules/floorl-tests: Likewise.
29749         * modules/frexp-nolibm-tests: Likewise.
29750         * modules/frexp-tests: Likewise.
29751         * modules/frexpl-nolibm-tests: Likewise.
29752         * modules/frexpl-tests: Likewise.
29753         * modules/getaddrinfo-tests: Likewise.
29754         * modules/inttypes-tests: Likewise.
29755         * modules/isfinite-tests: Likewise.
29756         * modules/isinf-tests: Likewise.
29757         * modules/ldexpl-tests: Likewise.
29758         * modules/locale-tests: Likewise.
29759         * modules/math-tests: Likewise.
29760         * modules/netdb-tests: Likewise.
29761         * modules/netinet_in-tests: Likewise.
29762         * modules/printf-frexp-tests: Likewise.
29763         * modules/printf-frexpl-tests: Likewise.
29764         * modules/priv-set-tests: Likewise.
29765         * modules/random_r-tests: Likewise.
29766         * modules/round-tests: Likewise.
29767         * modules/roundf-tests: Likewise.
29768         * modules/roundl-tests: Likewise.
29769         * modules/search-tests: Likewise.
29770         * modules/select-tests: Likewise.
29771         * modules/signal-tests: Likewise.
29772         * modules/stdbool-tests: Likewise.
29773         * modules/stddef-tests: Likewise.
29774         * modules/stdint-tests: Likewise.
29775         * modules/stdio-tests: Likewise.
29776         * modules/stdlib-tests: Likewise.
29777         * modules/string-tests: Likewise.
29778         * modules/strings-tests: Likewise.
29779         * modules/sys_select-tests: Likewise.
29780         * modules/sys_socket-tests: Likewise.
29781         * modules/sys_stat-tests: Likewise.
29782         * modules/sys_time-tests: Likewise.
29783         * modules/sys_utsname-tests: Likewise.
29784         * modules/sysexits-tests: Likewise.
29785         * modules/time-tests: Likewise.
29786         * modules/trunc-tests: Likewise.
29787         * modules/truncf-tests: Likewise.
29788         * modules/truncl-tests: Likewise.
29789         * modules/tsearch-tests: Likewise.
29790         * modules/unistd-tests: Likewise.
29791         * modules/wchar-tests: Likewise.
29792         * modules/wctype-tests: Likewise.
29793
29794         tests: fix license on several tests
29795         * tests/test-des.c: Update to GPLv3+.
29796         * tests/test-flock.c: Likewise.
29797         * tests/test-fsync.c: Likewise.
29798         * tests/test-futimens.h: Likewise.
29799         * tests/test-gc-arcfour.c: Likewise.
29800         * tests/test-gc-arctwo.c: Likewise.
29801         * tests/test-gc-des.c: Likewise.
29802         * tests/test-gc-hmac-md5.c: Likewise.
29803         * tests/test-gc-hmac-sha1.c: Likewise.
29804         * tests/test-gc-md2.c: Likewise.
29805         * tests/test-gc-md4.c: Likewise.
29806         * tests/test-gc-md5.c: Likewise.
29807         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29808         * tests/test-gc-rijndael.c: Likewise.
29809         * tests/test-gc-sha1.c: Likewise.
29810         * tests/test-gc.c: Likewise.
29811         * tests/test-getcwd.c: Likewise.
29812         * tests/test-link.c: Likewise.
29813         * tests/test-link.h: Likewise.
29814         * tests/test-lutimens.h: Likewise.
29815         * tests/test-md2.c: Likewise.
29816         * tests/test-md4.c: Likewise.
29817         * tests/test-mkdir.h: Likewise.
29818         * tests/test-rename.c: Likewise.
29819         * tests/test-rename.h: Likewise.
29820         * tests/test-safe-alloc.c: Likewise.
29821         * tests/test-utimens-common.h: Likewise.
29822         * tests/test-utimens.h: Likewise.
29823
29824         maint: sync license texts
29825         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29826         * doc/gpl-3.0.texi: Revert copyright year update.
29827         * doc/lgpl-3.0.texi: Likewise.
29828
29829 2009-12-29  Jim Meyering  <meyering@redhat.com>
29830
29831         update nearly all FSF copyright year lists to include 2009
29832         The files named by the following are exempted:
29833             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29834               test -f "$dst" && { echo "$dst"; continue; }
29835               test -d "$dst" || continue
29836               echo "$dst"/$(basename "$src")
29837             done > exempt
29838             git ls-files tests/unictype >> exempt
29839         In the remaining files, convert to all-interval notation if
29840         - there is already at least one year interval like 2000-2003
29841         - the file is maintained by me
29842         - the file is in lib/uni*/, where that style already prevails
29843         Otherwise, use update-copyright's default.
29844
29845 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29846         and Eric Blake  <ebb9@byu.net>
29847
29848         tests: don't require debug system() to pass
29849         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29850         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29851         * tests/test-unlink.h (test_unlink_func): Likewise.
29852         * tests/test-fstatat.c (main): ...into callers.
29853         * tests/test-lstat.c (main): Likewise.
29854         * tests/test-rmdir.c (main): Likewise.
29855         * tests/test-unlink.c (main): Likewise.
29856         * tests/test-unlinkat.c (main): Likewise.
29857         * tests/test-areadlink-with-size.c (main): Don't require a
29858         debug-only system call to pass, aiding cross-testing to mingw.
29859         * tests/test-areadlink.c (main): Likewise.
29860         * tests/test-areadlinkat-with-size.c (main): Likewise.
29861         * tests/test-areadlinkat.c (main): Likewise.
29862         * tests/test-canonicalize-lgpl.c (main): Likewise.
29863         * tests/test-canonicalize.c (main): Likewise.
29864         * tests/test-chown.c (main): Likewise.
29865         * tests/test-fchownat.c (main): Likewise.
29866         * tests/test-lchown.c (main): Likewise.
29867         * tests/test-fdutimensat.c (main): Likewise.
29868         * tests/test-futimens.c (main): Likewise.
29869         * tests/test-link.c (main): Likewise.
29870         * tests/test-linkat.c (main): Likewise.
29871         * tests/test-mkdir.c (main): Likewise.
29872         * tests/test-mkdirat.c (main): Likewise.
29873         * tests/test-mkfifo.c (main): Likewise.
29874         * tests/test-mkfifoat.c (main): Likewise.
29875         * tests/test-mknod.c (main): Likewise.
29876         * tests/test-readlink.c (main): Likewise.
29877         * tests/test-remove.c (main): Likewise.
29878         * tests/test-rename.c (main): Likewise.
29879         * tests/test-renameat.c (main): Likewise.
29880         * tests/test-symlink.c (main): Likewise.
29881         * tests/test-symlinkat.c (main): Likewise.
29882         * tests/test-utimens.c (main): Likewise.
29883         * tests/test-utimensat.c (main): Likewise.
29884
29885 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29886
29887         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29888         on $(UNUSED_PARAMETER_H) to avoid build failure.
29889
29890 2009-12-28  Jim Meyering  <meyering@redhat.com>
29891
29892         update-copyright: you may specify a max. line length other than 72
29893         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29894
29895         maint: use consistent FSF copyright line syntax
29896         * lib/posixtm.c: Add missing comma in FSF copyright line.
29897         * lib/posixtm.h: Likewise.
29898         * lib/getugroups.c: Add missing ", Inc.".
29899
29900         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29901         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29902         FSF copyright line.  Remove trailing blanks.
29903
29904 2009-12-28  Eric Blake  <ebb9@byu.net>
29905
29906         test-dup2: reduce dependencies
29907         * modules/cloexec (Configure.ac): Set witness.
29908         * modules/dup2-tests (Depends-on): Drop cloexec.
29909         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29910         not present.
29911         Suggested by Bruno Haible.
29912
29913 2009-12-26  Bruno Haible  <bruno@clisp.org>
29914
29915         Remove an unneeded dependency.
29916         * modules/fseterr (Depends-on): Remove dup2.
29917
29918 2009-12-26  Eric Blake  <ebb9@byu.net>
29919
29920         tests: use macros.h in more places
29921         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29922         (ASSERT_STREAM): Provide default of stderr.
29923         * tests/test-dirent-safer.c: Include macros.h, using alternate
29924         stream for assertions.
29925         * tests/test-dup-safer.c: Likewise.
29926         * tests/test-freopen-safer.c: Likewise.
29927         * tests/test-getopt.c: Likewise.
29928         * tests/test-openat-safer.c: Likewise.
29929         * tests/test-pipe.c: Likewise.
29930         * tests/test-popen-safer.c: Likewise.
29931         * modules/dirent-safer-tests (Files): Include macros.h.
29932         * modules/unistd-safer-tests (Files): Likewise.
29933         * modules/freopen-safer-tests (Files): Likewise.
29934         * modules/getopt-posix-tests (Files): Likewise.
29935         * modules/openat-safer-tests (Files): Likewise.
29936         * modules/pipe-tests (Files): Likewise.
29937
29938 2009-12-26  Bruno Haible  <bruno@clisp.org>
29939
29940         javacomp: Portability fix.
29941         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29942         that it also works on Solaris.
29943
29944 2009-12-26  Bruno Haible  <bruno@clisp.org>
29945
29946         localename: Fix storage allocation of gl_locale_name_thread's result.
29947         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29948         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29949         all platforms that have 'uselocale'.
29950         (gl_locale_name_thread_unsafe): New function, extracted from
29951         gl_locale_name_thread.
29952         (gl_locale_name_thread): Call struniq on all platforms that have
29953         'uselocale'.
29954         * tests/test-localename.c (test_locale_name_thread): Check that the
29955         resulting strings are permanently allocated.
29956         * modules/localename-tests (Depends-on): Add strdup.
29957
29958 2009-12-26  Bruno Haible  <bruno@clisp.org>
29959
29960         * tests/test-localename.c (categories): Fill in the strings.
29961
29962 2009-12-26  Jim Meyering  <meyering@redhat.com>
29963
29964         isdir: complete the removal of m4/isdir.m4
29965         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29966
29967         isdir: clean up, since at least grep still uses it
29968         * lib/isdir.c: Include "isdir.h".
29969         (S_ISDIR): Remove now-unneeded definition.
29970         * modules/isdir (Files): Add lib/isdir.h.
29971         * lib/isdir.h: New file, with declaration.
29972         * m4/isdir.m4: Remove file -- unneeded.
29973
29974 2009-12-25  Bruno Haible  <bruno@clisp.org>
29975
29976         selinux-h: Make generated .h files standalone.
29977         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29978         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29979         * lib/se-selinux.in.h: Likewise.
29980         * modules/selinux-h (Depends-on): Add unused-parameter.
29981         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29982         selinux/selinux.h and selinux/context.h.
29983         Suggested by Eric Blake.
29984
29985 2009-12-25  Bruno Haible  <bruno@clisp.org>
29986
29987         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29988         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29989         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29990         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29991         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29992
29993 2009-12-24  Bruno Haible  <bruno@clisp.org>
29994
29995         openat: Fix warning.
29996         * lib/openat-proc.c: Include <unistd.h>.
29997
29998 2009-12-24  Bruno Haible  <bruno@clisp.org>
29999
30000         New module 'unused-parameter'.
30001         * build-aux/unused-parameter.h: New file, extracted from earlier
30002         gnulib-common.m4.
30003         * modules/unused-parameter: New file.
30004         * lib/unistr.h: Include unused-parameter.h.
30005         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30006         _GL_UNUSED.
30007         * modules/unistr/base (Depends-on): Add unused-parameter.
30008
30009 2009-12-24  Bruno Haible  <bruno@clisp.org>
30010
30011         Add missing dependencies to 'extensions' module.
30012         * m4/extensions.m4: Add comment.
30013         * modules/accept4 (Depends-on): Add extensions.
30014         * modules/dup3 (Depends-on): Likewise.
30015         * modules/fcntl (Depends-on): Likewise.
30016         * modules/futimens (Depends-on): Likewise.
30017         * modules/mknod (Depends-on): Likewise.
30018         * modules/pipe2 (Depends-on): Likewise.
30019         * modules/stat-time (Depends-on): Likewise.
30020         * modules/strcasestr-simple (Depends-on): Likewise.
30021         * modules/strsignal (Depends-on): Likewise.
30022         * modules/utimensat (Depends-on): Likewise.
30023         * modules/localcharset (Depends-on): Likewise. Needed because of
30024         gl_FCNTL_O_FLAGS.
30025         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30026         AC_TYPE_MBSTATE_T.
30027         * modules/wcsnrtombs (Depends-on): Likewise.
30028         * modules/wcsrtombs (Depends-on): Likewise.
30029
30030 2009-12-24  Bruno Haible  <bruno@clisp.org>
30031
30032         binary-io: Avoid gcc warning due to SET_BINARY.
30033         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30034         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30035
30036 2009-12-24  Bruno Haible  <bruno@clisp.org>
30037
30038         Avoid future namespace pollution on glibc systems.
30039         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30040         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30041         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30042         glibc systems.
30043
30044 2009-12-24  Bruno Haible  <bruno@clisp.org>
30045
30046         Refactor common macros used in tests.
30047         * tests/macros.h: New file.
30048         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30049         and/or <stdlib.h>, if appropriate.
30050         (ASSERT, SIZEOF): Remove macros.
30051         * tests/test-areadlink-with-size.c: Likewise.
30052         * tests/test-areadlinkat.c: Likewise.
30053         * tests/test-areadlinkat-with-size.c: Likewise.
30054         * tests/test-argmatch.c: Likewise.
30055         * tests/test-argv-iter.c: Likewise.
30056         * tests/test-array-mergesort.c: Likewise.
30057         * tests/test-array_list.c: Likewise.
30058         * tests/test-array_oset.c: Likewise.
30059         * tests/test-avltree_list.c: Likewise.
30060         * tests/test-avltree_oset.c: Likewise.
30061         * tests/test-avltreehash_list.c: Likewise.
30062         * tests/test-base64.c: Likewise.
30063         * tests/test-binary-io.c: Likewise.
30064         * tests/test-bitrotate.c: Likewise.
30065         * tests/test-btowc.c: Likewise.
30066         * tests/test-byteswap.c: Likewise.
30067         * tests/test-c-ctype.c: Likewise.
30068         * tests/test-c-stack.c: Likewise.
30069         * tests/test-c-strcasecmp.c: Likewise.
30070         * tests/test-c-strcasestr.c: Likewise.
30071         * tests/test-c-strncasecmp.c: Likewise.
30072         * tests/test-c-strstr.c: Likewise.
30073         * tests/test-canonicalize-lgpl.c: Likewise.
30074         * tests/test-canonicalize.c: Likewise.
30075         * tests/test-carray_list.c: Likewise.
30076         * tests/test-ceilf1.c: Likewise.
30077         * tests/test-ceilf2.c: Likewise.
30078         * tests/test-ceill.c: Likewise.
30079         * tests/test-chown.c: Likewise.
30080         * tests/test-cloexec.c: Likewise.
30081         * tests/test-copy-acl.c: Likewise.
30082         * tests/test-copy-file.c: Likewise.
30083         * tests/test-count-one-bits.c: Likewise.
30084         * tests/test-dprintf-posix.c: Likewise.
30085         * tests/test-dup2.c: Likewise.
30086         * tests/test-dup3.c: Likewise.
30087         * tests/test-duplocale.c: Likewise.
30088         * tests/test-fbufmode.c: Likewise.
30089         * tests/test-fchdir.c: Likewise.
30090         * tests/test-fchownat.c: Likewise.
30091         * tests/test-fcntl-safer.c: Likewise.
30092         * tests/test-fcntl.c: Likewise.
30093         * tests/test-fdopendir.c: Likewise.
30094         * tests/test-fdutimensat.c: Likewise.
30095         * tests/test-fflush2.c: Likewise.
30096         * tests/test-file-has-acl.c: Likewise.
30097         * tests/test-filevercmp.c: Likewise.
30098         * tests/test-flock.c: Likewise.
30099         * tests/test-floorf1.c: Likewise.
30100         * tests/test-floorf2.c: Likewise.
30101         * tests/test-floorl.c: Likewise.
30102         * tests/test-fnmatch.c: Likewise.
30103         * tests/test-fopen.h: Likewise.
30104         * tests/test-fpending.c: Likewise.
30105         * tests/test-fprintf-posix.c: Likewise.
30106         * tests/test-fpurge.c: Likewise.
30107         * tests/test-freadable.c: Likewise.
30108         * tests/test-freadahead.c: Likewise.
30109         * tests/test-freading.c: Likewise.
30110         * tests/test-freadptr.c: Likewise.
30111         * tests/test-freadptr2.c: Likewise.
30112         * tests/test-freadseek.c: Likewise.
30113         * tests/test-freopen.c: Likewise.
30114         * tests/test-frexp.c: Likewise.
30115         * tests/test-frexpl.c: Likewise.
30116         * tests/test-fseek.c: Likewise.
30117         * tests/test-fseeko.c: Likewise.
30118         * tests/test-fstatat.c: Likewise.
30119         * tests/test-fstrcmp.c: Likewise.
30120         * tests/test-fsync.c: Likewise.
30121         * tests/test-ftell.c: Likewise.
30122         * tests/test-ftello.c: Likewise.
30123         * tests/test-func.c: Likewise.
30124         * tests/test-futimens.c: Likewise.
30125         * tests/test-fwritable.c: Likewise.
30126         * tests/test-fwriting.c: Likewise.
30127         * tests/test-getcwd.c: Likewise.
30128         * tests/test-getdate.c: Likewise.
30129         * tests/test-getdelim.c: Likewise.
30130         * tests/test-getdtablesize.c: Likewise.
30131         * tests/test-getgroups.c: Likewise.
30132         * tests/test-getline.c: Likewise.
30133         * tests/test-getndelim2.c: Likewise.
30134         * tests/test-glob.c: Likewise.
30135         * tests/test-hash.c: Likewise.
30136         * tests/test-i-ring.c: Likewise.
30137         * tests/test-iconv-utf.c: Likewise.
30138         * tests/test-iconv.c: Likewise.
30139         * tests/test-idpriv-drop.c: Likewise.
30140         * tests/test-idpriv-droptemp.c: Likewise.
30141         * tests/test-inet_ntop.c: Likewise.
30142         * tests/test-inet_pton.c: Likewise.
30143         * tests/test-isblank.c: Likewise.
30144         * tests/test-isfinite.c: Likewise.
30145         * tests/test-isinf.c: Likewise.
30146         * tests/test-isnan.c: Likewise.
30147         * tests/test-isnand.h: Likewise.
30148         * tests/test-isnanf.h: Likewise.
30149         * tests/test-isnanl.h: Likewise.
30150         * tests/test-lchown.c: Likewise.
30151         * tests/test-ldexpl.c: Likewise.
30152         * tests/test-link.c: Likewise.
30153         * tests/test-linkat.c: Likewise.
30154         * tests/test-linked_list.c: Likewise.
30155         * tests/test-linkedhash_list.c: Likewise.
30156         * tests/test-localename.c: Likewise.
30157         * tests/test-lseek.c: Likewise.
30158         * tests/test-lstat.c: Likewise.
30159         * tests/test-mbmemcasecmp.c: Likewise.
30160         * tests/test-mbmemcasecoll.c: Likewise.
30161         * tests/test-mbrtowc.c: Likewise.
30162         * tests/test-mbscasecmp.c: Likewise.
30163         * tests/test-mbscasestr1.c: Likewise.
30164         * tests/test-mbscasestr2.c: Likewise.
30165         * tests/test-mbscasestr3.c: Likewise.
30166         * tests/test-mbscasestr4.c: Likewise.
30167         * tests/test-mbschr.c: Likewise.
30168         * tests/test-mbscspn.c: Likewise.
30169         * tests/test-mbsinit.c: Likewise.
30170         * tests/test-mbsncasecmp.c: Likewise.
30171         * tests/test-mbsnrtowcs.c: Likewise.
30172         * tests/test-mbspbrk.c: Likewise.
30173         * tests/test-mbspcasecmp.c: Likewise.
30174         * tests/test-mbsrchr.c: Likewise.
30175         * tests/test-mbsrtowcs.c: Likewise.
30176         * tests/test-mbsspn.c: Likewise.
30177         * tests/test-mbsstr1.c: Likewise.
30178         * tests/test-mbsstr2.c: Likewise.
30179         * tests/test-mbsstr3.c: Likewise.
30180         * tests/test-memchr.c: Likewise.
30181         * tests/test-memchr2.c: Likewise.
30182         * tests/test-memcmp.c: Likewise.
30183         * tests/test-memmem.c: Likewise.
30184         * tests/test-memrchr.c: Likewise.
30185         * tests/test-mkdir.c: Likewise.
30186         * tests/test-mkdirat.c: Likewise.
30187         * tests/test-mkfifo.c: Likewise.
30188         * tests/test-mkfifoat.c: Likewise.
30189         * tests/test-mknod.c: Likewise.
30190         * tests/test-nanosleep.c: Likewise.
30191         * tests/test-nl_langinfo.c: Likewise.
30192         * tests/test-obstack-printf.c: Likewise.
30193         * tests/test-open.c: Likewise.
30194         * tests/test-openat.c: Likewise.
30195         * tests/test-pipe-filter-gi1.c: Likewise.
30196         * tests/test-pipe-filter-gi2-main.c: Likewise.
30197         * tests/test-pipe-filter-ii1.c: Likewise.
30198         * tests/test-pipe-filter-ii2-main.c: Likewise.
30199         * tests/test-pipe2.c: Likewise.
30200         * tests/test-popen.h: Likewise.
30201         * tests/test-posixtm.c: Likewise.
30202         * tests/test-pread.c: Likewise.
30203         * tests/test-printf-frexp.c: Likewise.
30204         * tests/test-printf-frexpl.c: Likewise.
30205         * tests/test-printf-posix.c: Likewise.
30206         * tests/test-priv-set.c: Likewise.
30207         * tests/test-quotearg.c: Likewise.
30208         * tests/test-random_r.c: Likewise.
30209         * tests/test-rawmemchr.c: Likewise.
30210         * tests/test-rbtree_list.c: Likewise.
30211         * tests/test-rbtree_oset.c: Likewise.
30212         * tests/test-rbtreehash_list.c: Likewise.
30213         * tests/test-readlink.c: Likewise.
30214         * tests/test-remove.c: Likewise.
30215         * tests/test-rename.c: Likewise.
30216         * tests/test-renameat.c: Likewise.
30217         * tests/test-rmdir.c: Likewise.
30218         * tests/test-round1.c: Likewise.
30219         * tests/test-roundf1.c: Likewise.
30220         * tests/test-roundl.c: Likewise.
30221         * tests/test-safe-alloc.c: Likewise.
30222         * tests/test-sameacls.c: Likewise.
30223         * tests/test-set-mode-acl.c: Likewise.
30224         * tests/test-setenv.c: Likewise.
30225         * tests/test-sigaction.c: Likewise.
30226         * tests/test-signbit.c: Likewise.
30227         * tests/test-sleep.c: Likewise.
30228         * tests/test-snprintf-posix.c: Likewise.
30229         * tests/test-snprintf.c: Likewise.
30230         * tests/test-sprintf-posix.c: Likewise.
30231         * tests/test-stat-time.c: Likewise.
30232         * tests/test-stat.c: Likewise.
30233         * tests/test-strcasestr.c: Likewise.
30234         * tests/test-strchrnul.c: Likewise.
30235         * tests/test-strerror.c: Likewise.
30236         * tests/test-striconv.c: Likewise.
30237         * tests/test-striconveh.c: Likewise.
30238         * tests/test-striconveha.c: Likewise.
30239         * tests/test-strsignal.c: Likewise.
30240         * tests/test-strstr.c: Likewise.
30241         * tests/test-strtod.c: Likewise.
30242         * tests/test-strverscmp.c: Likewise.
30243         * tests/test-symlink.c: Likewise.
30244         * tests/test-symlinkat.c: Likewise.
30245         * tests/test-trunc1.c: Likewise.
30246         * tests/test-trunc2.c: Likewise.
30247         * tests/test-truncf1.c: Likewise.
30248         * tests/test-truncf2.c: Likewise.
30249         * tests/test-truncl.c: Likewise.
30250         * tests/test-uname.c: Likewise.
30251         * tests/test-unlink.c: Likewise.
30252         * tests/test-unlinkat.c: Likewise.
30253         * tests/test-unsetenv.c: Likewise.
30254         * tests/test-usleep.c: Likewise.
30255         * tests/test-utimens.c: Likewise.
30256         * tests/test-utimensat.c: Likewise.
30257         * tests/test-vasnprintf-posix.c: Likewise.
30258         * tests/test-vasnprintf-posix2.c: Likewise.
30259         * tests/test-vasnprintf.c: Likewise.
30260         * tests/test-vasprintf-posix.c: Likewise.
30261         * tests/test-vasprintf.c: Likewise.
30262         * tests/test-vdprintf-posix.c: Likewise.
30263         * tests/test-vfprintf-posix.c: Likewise.
30264         * tests/test-vprintf-posix.c: Likewise.
30265         * tests/test-vsnprintf-posix.c: Likewise.
30266         * tests/test-vsnprintf.c: Likewise.
30267         * tests/test-vsprintf-posix.c: Likewise.
30268         * tests/test-wcrtomb.c: Likewise.
30269         * tests/test-wcsnrtombs.c: Likewise.
30270         * tests/test-wcsrtombs.c: Likewise.
30271         * tests/test-wctype.c: Likewise.
30272         * tests/test-wcwidth.c: Likewise.
30273         * tests/test-xfprintf-posix.c: Likewise.
30274         * tests/test-xmemdup0.c: Likewise.
30275         * tests/test-xprintf-posix.c: Likewise.
30276         * tests/test-xvasprintf.c: Likewise.
30277         * tests/unicase/test-locale-language.c: Likewise.
30278         * tests/unicase/test-mapping-part1.h: Likewise.
30279         * tests/unicase/test-predicate-part1.h: Likewise.
30280         * tests/unicase/test-u8-casecmp.c: Likewise.
30281         * tests/unicase/test-u8-casecoll.c: Likewise.
30282         * tests/unicase/test-u8-casefold.c: Likewise.
30283         * tests/unicase/test-u8-is-cased.c: Likewise.
30284         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30285         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30286         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30287         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30288         * tests/unicase/test-u8-tolower.c: Likewise.
30289         * tests/unicase/test-u8-totitle.c: Likewise.
30290         * tests/unicase/test-u8-toupper.c: Likewise.
30291         * tests/unicase/test-u16-casecmp.c: Likewise.
30292         * tests/unicase/test-u16-casecoll.c: Likewise.
30293         * tests/unicase/test-u16-casefold.c: Likewise.
30294         * tests/unicase/test-u16-is-cased.c: Likewise.
30295         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30296         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30297         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30298         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30299         * tests/unicase/test-u16-tolower.c: Likewise.
30300         * tests/unicase/test-u16-totitle.c: Likewise.
30301         * tests/unicase/test-u16-toupper.c: Likewise.
30302         * tests/unicase/test-u32-casecmp.c: Likewise.
30303         * tests/unicase/test-u32-casecoll.c: Likewise.
30304         * tests/unicase/test-u32-casefold.c: Likewise.
30305         * tests/unicase/test-u32-is-cased.c: Likewise.
30306         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30307         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30308         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30309         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30310         * tests/unicase/test-u32-tolower.c: Likewise.
30311         * tests/unicase/test-u32-totitle.c: Likewise.
30312         * tests/unicase/test-u32-toupper.c: Likewise.
30313         * tests/unicase/test-ulc-casecmp.c: Likewise.
30314         * tests/unicase/test-ulc-casecoll.c: Likewise.
30315         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30316         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30317         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30318         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30319         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30320         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30321         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30322         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30323         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30324         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30325         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30326         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30327         * tests/unictype/test-bidi_byname.c: Likewise.
30328         * tests/unictype/test-bidi_name.c: Likewise.
30329         * tests/unictype/test-bidi_of.c: Likewise.
30330         * tests/unictype/test-bidi_test.c: Likewise.
30331         * tests/unictype/test-block_list.c: Likewise.
30332         * tests/unictype/test-block_of.c: Likewise.
30333         * tests/unictype/test-block_test.c: Likewise.
30334         * tests/unictype/test-categ_and.c: Likewise.
30335         * tests/unictype/test-categ_and_not.c: Likewise.
30336         * tests/unictype/test-categ_byname.c: Likewise.
30337         * tests/unictype/test-categ_name.c: Likewise.
30338         * tests/unictype/test-categ_none.c: Likewise.
30339         * tests/unictype/test-categ_of.c: Likewise.
30340         * tests/unictype/test-categ_or.c: Likewise.
30341         * tests/unictype/test-categ_test_withtable.c: Likewise.
30342         * tests/unictype/test-combining.c: Likewise.
30343         * tests/unictype/test-decdigit.c: Likewise.
30344         * tests/unictype/test-digit.c: Likewise.
30345         * tests/unictype/test-mirror.c: Likewise.
30346         * tests/unictype/test-numeric.c: Likewise.
30347         * tests/unictype/test-pr_byname.c: Likewise.
30348         * tests/unictype/test-pr_test.c: Likewise.
30349         * tests/unictype/test-predicate-part1.h: Likewise.
30350         * tests/unictype/test-scripts.c: Likewise.
30351         * tests/unictype/test-sy_c_ident.c: Likewise.
30352         * tests/unictype/test-sy_java_ident.c: Likewise.
30353         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30354         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30355         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30356         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30357         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30358         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30359         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30360         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30361         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30362         * tests/uninorm/test-compat-decomposition.c: Likewise.
30363         * tests/uninorm/test-composition.c: Likewise.
30364         * tests/uninorm/test-decomposing-form.c: Likewise.
30365         * tests/uninorm/test-decomposition.c: Likewise.
30366         * tests/uninorm/test-u8-nfc.c: Likewise.
30367         * tests/uninorm/test-u8-nfd.c: Likewise.
30368         * tests/uninorm/test-u8-nfkc.c: Likewise.
30369         * tests/uninorm/test-u8-nfkd.c: Likewise.
30370         * tests/uninorm/test-u8-normcmp.c: Likewise.
30371         * tests/uninorm/test-u8-normcoll.c: Likewise.
30372         * tests/uninorm/test-u16-nfc.c: Likewise.
30373         * tests/uninorm/test-u16-nfd.c: Likewise.
30374         * tests/uninorm/test-u16-nfkc.c: Likewise.
30375         * tests/uninorm/test-u16-nfkd.c: Likewise.
30376         * tests/uninorm/test-u16-normcmp.c: Likewise.
30377         * tests/uninorm/test-u16-normcoll.c: Likewise.
30378         * tests/uninorm/test-u32-nfc.c: Likewise.
30379         * tests/uninorm/test-u32-nfd.c: Likewise.
30380         * tests/uninorm/test-u32-nfkc.c: Likewise.
30381         * tests/uninorm/test-u32-nfkd.c: Likewise.
30382         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30383         * tests/uninorm/test-u32-normcmp.c: Likewise.
30384         * tests/uninorm/test-u32-normcoll.c: Likewise.
30385         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30386         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30387         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30388         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30389         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30390         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30391         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30392         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30393         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30394         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30395         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30396         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30397         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30398         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30399         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30400         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30401         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30402         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30403         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30404         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30405         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30406         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30407         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30408         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30409         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30410         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30411         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30412         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30413         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30414         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30415         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30416         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30417         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30418         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30419         * tests/uniwidth/test-u8-width.c: Likewise.
30420         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30421         * tests/uniwidth/test-u16-width.c: Likewise.
30422         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30423         * tests/uniwidth/test-u32-width.c: Likewise.
30424         * tests/uniwidth/test-uc_width.c: Likewise.
30425         * tests/uniwidth/test-uc_width2.c: Likewise.
30426         * modules/acl-tests (Files): Add tests/macros.h.
30427         * modules/areadlink-tests (Files): Likewise.
30428         * modules/areadlink-with-size-tests (Files): Likewise.
30429         * modules/areadlinkat-tests (Files): Likewise.
30430         * modules/areadlinkat-with-size-tests (Files): Likewise.
30431         * modules/argmatch-tests (Files): Likewise.
30432         * modules/argv-iter-tests (Files): Likewise.
30433         * modules/array-list-tests (Files): Likewise.
30434         * modules/array-mergesort-tests (Files): Likewise.
30435         * modules/array-oset-tests (Files): Likewise.
30436         * modules/avltree-list-tests (Files): Likewise.
30437         * modules/avltree-oset-tests (Files): Likewise.
30438         * modules/avltreehash-list-tests (Files): Likewise.
30439         * modules/base64-tests (Files): Likewise.
30440         * modules/binary-io-tests (Files): Likewise.
30441         * modules/bitrotate-tests (Files): Likewise.
30442         * modules/btowc-tests (Files): Likewise.
30443         * modules/byteswap-tests (Files): Likewise.
30444         * modules/c-ctype-tests (Files): Likewise.
30445         * modules/c-stack-tests (Files): Likewise.
30446         * modules/c-strcase-tests (Files): Likewise.
30447         * modules/c-strcasestr-tests (Files): Likewise.
30448         * modules/c-strstr-tests (Files): Likewise.
30449         * modules/canonicalize-lgpl-tests (Files): Likewise.
30450         * modules/canonicalize-tests (Files): Likewise.
30451         * modules/carray-list-tests (Files): Likewise.
30452         * modules/ceilf-tests (Files): Likewise.
30453         * modules/ceill-tests (Files): Likewise.
30454         * modules/chown-tests (Files): Likewise.
30455         * modules/cloexec-tests (Files): Likewise.
30456         * modules/copy-file-tests (Files): Likewise.
30457         * modules/count-one-bits-tests (Files): Likewise.
30458         * modules/dprintf-posix-tests (Files): Likewise.
30459         * modules/dup2-tests (Files): Likewise.
30460         * modules/dup3-tests (Files): Likewise.
30461         * modules/duplocale-tests (Files): Likewise.
30462         * modules/fbufmode-tests (Files): Likewise.
30463         * modules/fchdir-tests (Files): Likewise.
30464         * modules/fcntl-safer-tests (Files): Likewise.
30465         * modules/fcntl-tests (Files): Likewise.
30466         * modules/fdopendir-tests (Files): Likewise.
30467         * modules/fdutimensat-tests (Files): Likewise.
30468         * modules/fflush-tests (Files): Likewise.
30469         * modules/filevercmp-tests (Files): Likewise.
30470         * modules/flock-tests (Files): Likewise.
30471         * modules/floorf-tests (Files): Likewise.
30472         * modules/floorl-tests (Files): Likewise.
30473         * modules/fnmatch-tests (Files): Likewise.
30474         * modules/fopen-safer-tests (Files): Likewise.
30475         * modules/fopen-tests (Files): Likewise.
30476         * modules/fpending-tests (Files): Likewise.
30477         * modules/fprintf-posix-tests (Files): Likewise.
30478         * modules/fpurge-tests (Files): Likewise.
30479         * modules/freadable-tests (Files): Likewise.
30480         * modules/freadahead-tests (Files): Likewise.
30481         * modules/freading-tests (Files): Likewise.
30482         * modules/freadptr-tests (Files): Likewise.
30483         * modules/freadseek-tests (Files): Likewise.
30484         * modules/freopen-tests (Files): Likewise.
30485         * modules/frexp-nolibm-tests (Files): Likewise.
30486         * modules/frexp-tests (Files): Likewise.
30487         * modules/frexpl-nolibm-tests (Files): Likewise.
30488         * modules/frexpl-tests (Files): Likewise.
30489         * modules/fseek-tests (Files): Likewise.
30490         * modules/fseeko-tests (Files): Likewise.
30491         * modules/fstrcmp-tests (Files): Likewise.
30492         * modules/fsync-tests (Files): Likewise.
30493         * modules/ftell-tests (Files): Likewise.
30494         * modules/ftello-tests (Files): Likewise.
30495         * modules/func-tests (Files): Likewise.
30496         * modules/futimens-tests (Files): Likewise.
30497         * modules/fwritable-tests (Files): Likewise.
30498         * modules/fwriting-tests (Files): Likewise.
30499         * modules/getcwd-tests (Files): Likewise.
30500         * modules/getdate-tests (Files): Likewise.
30501         * modules/getdelim-tests (Files): Likewise.
30502         * modules/getdtablesize-tests (Files): Likewise.
30503         * modules/getgroups-tests (Files): Likewise.
30504         * modules/getline-tests (Files): Likewise.
30505         * modules/getndelim2-tests (Files): Likewise.
30506         * modules/glob-tests (Files): Likewise.
30507         * modules/hash-tests (Files): Likewise.
30508         * modules/i-ring-tests (Files): Likewise.
30509         * modules/iconv-tests (Files): Likewise.
30510         * modules/iconv_open-utf-tests (Files): Likewise.
30511         * modules/idpriv-drop-tests (Files): Likewise.
30512         * modules/idpriv-droptemp-tests (Files): Likewise.
30513         * modules/inet_ntop-tests (Files): Likewise.
30514         * modules/inet_pton-tests (Files): Likewise.
30515         * modules/isblank-tests (Files): Likewise.
30516         * modules/isfinite-tests (Files): Likewise.
30517         * modules/isinf-tests (Files): Likewise.
30518         * modules/isnan-tests (Files): Likewise.
30519         * modules/isnand-nolibm-tests (Files): Likewise.
30520         * modules/isnand-tests (Files): Likewise.
30521         * modules/isnanf-nolibm-tests (Files): Likewise.
30522         * modules/isnanf-tests (Files): Likewise.
30523         * modules/isnanl-nolibm-tests (Files): Likewise.
30524         * modules/isnanl-tests (Files): Likewise.
30525         * modules/lchown-tests (Files): Likewise.
30526         * modules/ldexpl-tests (Files): Likewise.
30527         * modules/link-tests (Files): Likewise.
30528         * modules/linkat-tests (Files): Likewise.
30529         * modules/linked-list-tests (Files): Likewise.
30530         * modules/linkedhash-list-tests (Files): Likewise.
30531         * modules/localename-tests (Files): Likewise.
30532         * modules/lseek-tests (Files): Likewise.
30533         * modules/lstat-tests (Files): Likewise.
30534         * modules/mbmemcasecmp-tests (Files): Likewise.
30535         * modules/mbmemcasecoll-tests (Files): Likewise.
30536         * modules/mbrtowc-tests (Files): Likewise.
30537         * modules/mbscasecmp-tests (Files): Likewise.
30538         * modules/mbscasestr-tests (Files): Likewise.
30539         * modules/mbschr-tests (Files): Likewise.
30540         * modules/mbscspn-tests (Files): Likewise.
30541         * modules/mbsinit-tests (Files): Likewise.
30542         * modules/mbsncasecmp-tests (Files): Likewise.
30543         * modules/mbsnrtowcs-tests (Files): Likewise.
30544         * modules/mbspbrk-tests (Files): Likewise.
30545         * modules/mbspcasecmp-tests (Files): Likewise.
30546         * modules/mbsrchr-tests (Files): Likewise.
30547         * modules/mbsrtowcs-tests (Files): Likewise.
30548         * modules/mbsspn-tests (Files): Likewise.
30549         * modules/mbsstr-tests (Files): Likewise.
30550         * modules/memchr-tests (Files): Likewise.
30551         * modules/memchr2-tests (Files): Likewise.
30552         * modules/memcmp-tests (Files): Likewise.
30553         * modules/memmem-tests (Files): Likewise.
30554         * modules/memrchr-tests (Files): Likewise.
30555         * modules/mkdir-tests (Files): Likewise.
30556         * modules/mkfifo-tests (Files): Likewise.
30557         * modules/mkfifoat-tests (Files): Likewise.
30558         * modules/mknod-tests (Files): Likewise.
30559         * modules/nanosleep-tests (Files): Likewise.
30560         * modules/nl_langinfo-tests (Files): Likewise.
30561         * modules/obstack-printf-tests (Files): Likewise.
30562         * modules/open-tests (Files): Likewise.
30563         * modules/openat-tests (Files): Likewise.
30564         * modules/pipe-filter-gi-tests (Files): Likewise.
30565         * modules/pipe-filter-ii-tests (Files): Likewise.
30566         * modules/pipe2-tests (Files): Likewise.
30567         * modules/popen-safer-tests (Files): Likewise.
30568         * modules/popen-tests (Files): Likewise.
30569         * modules/posixtm-tests (Files): Likewise.
30570         * modules/pread-tests (Files): Likewise.
30571         * modules/printf-frexp-tests (Files): Likewise.
30572         * modules/printf-frexpl-tests (Files): Likewise.
30573         * modules/printf-posix-tests (Files): Likewise.
30574         * modules/priv-set-tests (Files): Likewise.
30575         * modules/quotearg-tests (Files): Likewise.
30576         * modules/random_r-tests (Files): Likewise.
30577         * modules/rawmemchr-tests (Files): Likewise.
30578         * modules/rbtree-list-tests (Files): Likewise.
30579         * modules/rbtree-oset-tests (Files): Likewise.
30580         * modules/rbtreehash-list-tests (Files): Likewise.
30581         * modules/readlink-tests (Files): Likewise.
30582         * modules/remove-tests (Files): Likewise.
30583         * modules/rename-tests (Files): Likewise.
30584         * modules/renameat-tests (Files): Likewise.
30585         * modules/rmdir-tests (Files): Likewise.
30586         * modules/round-tests (Files): Likewise.
30587         * modules/roundf-tests (Files): Likewise.
30588         * modules/roundl-tests (Files): Likewise.
30589         * modules/safe-alloc-tests (Files): Likewise.
30590         * modules/setenv-tests (Files): Likewise.
30591         * modules/sigaction-tests (Files): Likewise.
30592         * modules/signbit-tests (Files): Likewise.
30593         * modules/sleep-tests (Files): Likewise.
30594         * modules/snprintf-posix-tests (Files): Likewise.
30595         * modules/snprintf-tests (Files): Likewise.
30596         * modules/sprintf-posix-tests (Files): Likewise.
30597         * modules/stat-tests (Files): Likewise.
30598         * modules/stat-time-tests (Files): Likewise.
30599         * modules/strcasestr-tests (Files): Likewise.
30600         * modules/strchrnul-tests (Files): Likewise.
30601         * modules/strerror-tests (Files): Likewise.
30602         * modules/striconv-tests (Files): Likewise.
30603         * modules/striconveh-tests (Files): Likewise.
30604         * modules/striconveha-tests (Files): Likewise.
30605         * modules/strsignal-tests (Files): Likewise.
30606         * modules/strstr-tests (Files): Likewise.
30607         * modules/strtod-tests (Files): Likewise.
30608         * modules/strverscmp-tests (Files): Likewise.
30609         * modules/symlink-tests (Files): Likewise.
30610         * modules/symlinkat-tests (Files): Likewise.
30611         * modules/trunc-tests (Files): Likewise.
30612         * modules/truncf-tests (Files): Likewise.
30613         * modules/truncl-tests (Files): Likewise.
30614         * modules/uname-tests (Files): Likewise.
30615         * modules/unicase/cased-tests (Files): Likewise.
30616         * modules/unicase/ignorable-tests (Files): Likewise.
30617         * modules/unicase/locale-language-tests (Files): Likewise.
30618         * modules/unicase/tolower-tests (Files): Likewise.
30619         * modules/unicase/totitle-tests (Files): Likewise.
30620         * modules/unicase/toupper-tests (Files): Likewise.
30621         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30622         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30623         * modules/unicase/u8-casefold-tests (Files): Likewise.
30624         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30625         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30626         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30627         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30628         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30629         * modules/unicase/u8-tolower-tests (Files): Likewise.
30630         * modules/unicase/u8-totitle-tests (Files): Likewise.
30631         * modules/unicase/u8-toupper-tests (Files): Likewise.
30632         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30633         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30634         * modules/unicase/u16-casefold-tests (Files): Likewise.
30635         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30636         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30637         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30638         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30639         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30640         * modules/unicase/u16-tolower-tests (Files): Likewise.
30641         * modules/unicase/u16-totitle-tests (Files): Likewise.
30642         * modules/unicase/u16-toupper-tests (Files): Likewise.
30643         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30644         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30645         * modules/unicase/u32-casefold-tests (Files): Likewise.
30646         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30647         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30648         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30649         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30650         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30651         * modules/unicase/u32-tolower-tests (Files): Likewise.
30652         * modules/unicase/u32-totitle-tests (Files): Likewise.
30653         * modules/unicase/u32-toupper-tests (Files): Likewise.
30654         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30655         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30656         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30657         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30658         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30659         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30660         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30661         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30662         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30663         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30664         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30665         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30666         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30667         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30668         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30669         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30670         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30671         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30672         * modules/unictype/block-list-tests (Files): Likewise.
30673         * modules/unictype/block-of-tests (Files): Likewise.
30674         * modules/unictype/block-test-tests (Files): Likewise.
30675         * modules/unictype/category-C-tests (Files): Likewise.
30676         * modules/unictype/category-Cc-tests (Files): Likewise.
30677         * modules/unictype/category-Cf-tests (Files): Likewise.
30678         * modules/unictype/category-Cn-tests (Files): Likewise.
30679         * modules/unictype/category-Co-tests (Files): Likewise.
30680         * modules/unictype/category-Cs-tests (Files): Likewise.
30681         * modules/unictype/category-L-tests (Files): Likewise.
30682         * modules/unictype/category-Ll-tests (Files): Likewise.
30683         * modules/unictype/category-Lm-tests (Files): Likewise.
30684         * modules/unictype/category-Lo-tests (Files): Likewise.
30685         * modules/unictype/category-Lt-tests (Files): Likewise.
30686         * modules/unictype/category-Lu-tests (Files): Likewise.
30687         * modules/unictype/category-M-tests (Files): Likewise.
30688         * modules/unictype/category-Mc-tests (Files): Likewise.
30689         * modules/unictype/category-Me-tests (Files): Likewise.
30690         * modules/unictype/category-Mn-tests (Files): Likewise.
30691         * modules/unictype/category-N-tests (Files): Likewise.
30692         * modules/unictype/category-Nd-tests (Files): Likewise.
30693         * modules/unictype/category-Nl-tests (Files): Likewise.
30694         * modules/unictype/category-No-tests (Files): Likewise.
30695         * modules/unictype/category-P-tests (Files): Likewise.
30696         * modules/unictype/category-Pc-tests (Files): Likewise.
30697         * modules/unictype/category-Pd-tests (Files): Likewise.
30698         * modules/unictype/category-Pe-tests (Files): Likewise.
30699         * modules/unictype/category-Pf-tests (Files): Likewise.
30700         * modules/unictype/category-Pi-tests (Files): Likewise.
30701         * modules/unictype/category-Po-tests (Files): Likewise.
30702         * modules/unictype/category-Ps-tests (Files): Likewise.
30703         * modules/unictype/category-S-tests (Files): Likewise.
30704         * modules/unictype/category-Sc-tests (Files): Likewise.
30705         * modules/unictype/category-Sk-tests (Files): Likewise.
30706         * modules/unictype/category-Sm-tests (Files): Likewise.
30707         * modules/unictype/category-So-tests (Files): Likewise.
30708         * modules/unictype/category-Z-tests (Files): Likewise.
30709         * modules/unictype/category-Zl-tests (Files): Likewise.
30710         * modules/unictype/category-Zp-tests (Files): Likewise.
30711         * modules/unictype/category-Zs-tests (Files): Likewise.
30712         * modules/unictype/category-and-not-tests (Files): Likewise.
30713         * modules/unictype/category-and-tests (Files): Likewise.
30714         * modules/unictype/category-byname-tests (Files): Likewise.
30715         * modules/unictype/category-name-tests (Files): Likewise.
30716         * modules/unictype/category-none-tests (Files): Likewise.
30717         * modules/unictype/category-of-tests (Files): Likewise.
30718         * modules/unictype/category-or-tests (Files): Likewise.
30719         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30720         * modules/unictype/combining-class-tests (Files): Likewise.
30721         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30722         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30723         * modules/unictype/ctype-blank-tests (Files): Likewise.
30724         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30725         * modules/unictype/ctype-digit-tests (Files): Likewise.
30726         * modules/unictype/ctype-graph-tests (Files): Likewise.
30727         * modules/unictype/ctype-lower-tests (Files): Likewise.
30728         * modules/unictype/ctype-print-tests (Files): Likewise.
30729         * modules/unictype/ctype-punct-tests (Files): Likewise.
30730         * modules/unictype/ctype-space-tests (Files): Likewise.
30731         * modules/unictype/ctype-upper-tests (Files): Likewise.
30732         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30733         * modules/unictype/decimal-digit-tests (Files): Likewise.
30734         * modules/unictype/digit-tests (Files): Likewise.
30735         * modules/unictype/mirror-tests (Files): Likewise.
30736         * modules/unictype/numeric-tests (Files): Likewise.
30737         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30738         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30739         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30740         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30741         Likewise.
30742         * modules/unictype/property-bidi-block-separator-tests (Files):
30743         Likewise.
30744         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30745         Likewise.
30746         * modules/unictype/property-bidi-common-separator-tests (Files):
30747         Likewise.
30748         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30749         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30750         Likewise.
30751         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30752         Likewise.
30753         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30754         Likewise.
30755         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30756         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30757         Likewise.
30758         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30759         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30760         Likewise.
30761         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30762         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30763         * modules/unictype/property-bidi-segment-separator-tests (Files):
30764         Likewise.
30765         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30766         * modules/unictype/property-byname-tests (Files): Likewise.
30767         * modules/unictype/property-combining-tests (Files): Likewise.
30768         * modules/unictype/property-composite-tests (Files): Likewise.
30769         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30770         * modules/unictype/property-dash-tests (Files): Likewise.
30771         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30772         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30773         Likewise.
30774         * modules/unictype/property-deprecated-tests (Files): Likewise.
30775         * modules/unictype/property-diacritic-tests (Files): Likewise.
30776         * modules/unictype/property-extender-tests (Files): Likewise.
30777         * modules/unictype/property-format-control-tests (Files): Likewise.
30778         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30779         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30780         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30781         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30782         * modules/unictype/property-hyphen-tests (Files): Likewise.
30783         * modules/unictype/property-id-continue-tests (Files): Likewise.
30784         * modules/unictype/property-id-start-tests (Files): Likewise.
30785         * modules/unictype/property-ideographic-tests (Files): Likewise.
30786         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30787         * modules/unictype/property-ids-trinary-operator-tests (Files):
30788         Likewise.
30789         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30790         * modules/unictype/property-iso-control-tests (Files): Likewise.
30791         * modules/unictype/property-join-control-tests (Files): Likewise.
30792         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30793         * modules/unictype/property-line-separator-tests (Files): Likewise.
30794         * modules/unictype/property-logical-order-exception-tests (Files):
30795         Likewise.
30796         * modules/unictype/property-lowercase-tests (Files): Likewise.
30797         * modules/unictype/property-math-tests (Files): Likewise.
30798         * modules/unictype/property-non-break-tests (Files): Likewise.
30799         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30800         * modules/unictype/property-numeric-tests (Files): Likewise.
30801         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30802         * modules/unictype/property-other-default-ignorable-code-point-tests
30803         (Files): Likewise.
30804         * modules/unictype/property-other-grapheme-extend-tests (Files):
30805         Likewise.
30806         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30807         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30808         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30809         * modules/unictype/property-other-math-tests (Files): Likewise.
30810         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30811         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30812         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30813         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30814         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30815         * modules/unictype/property-private-use-tests (Files): Likewise.
30816         * modules/unictype/property-punctuation-tests (Files): Likewise.
30817         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30818         * modules/unictype/property-radical-tests (Files): Likewise.
30819         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30820         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30821         * modules/unictype/property-space-tests (Files): Likewise.
30822         * modules/unictype/property-terminal-punctuation-tests (Files):
30823         Likewise.
30824         * modules/unictype/property-test-tests (Files): Likewise.
30825         * modules/unictype/property-titlecase-tests (Files): Likewise.
30826         * modules/unictype/property-unassigned-code-value-tests (Files):
30827         Likewise.
30828         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30829         * modules/unictype/property-uppercase-tests (Files): Likewise.
30830         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30831         * modules/unictype/property-white-space-tests (Files): Likewise.
30832         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30833         * modules/unictype/property-xid-start-tests (Files): Likewise.
30834         * modules/unictype/property-zero-width-tests (Files): Likewise.
30835         * modules/unictype/scripts-tests (Files): Likewise.
30836         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30837         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30838         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30839         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30840         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30841         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30842         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30843         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30844         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30845         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30846         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30847         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30848         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30849         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30850         * modules/uninorm/composition-tests (Files): Likewise.
30851         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30852         * modules/uninorm/decomposition-tests (Files): Likewise.
30853         * modules/uninorm/filter-tests (Files): Likewise.
30854         * modules/uninorm/nfc-tests (Files): Likewise.
30855         * modules/uninorm/nfd-tests (Files): Likewise.
30856         * modules/uninorm/nfkc-tests (Files): Likewise.
30857         * modules/uninorm/nfkd-tests (Files): Likewise.
30858         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30859         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30860         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30861         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30862         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30863         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30864         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30865         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30866         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30867         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30868         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30869         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30870         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30871         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30872         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30873         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30874         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30875         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30876         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30877         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30878         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30879         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30880         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30881         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30882         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30883         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30884         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30885         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30886         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30887         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30888         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30889         * modules/uniwidth/u8-width-tests (Files): Likewise.
30890         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30891         * modules/uniwidth/u16-width-tests (Files): Likewise.
30892         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30893         * modules/uniwidth/u32-width-tests (Files): Likewise.
30894         * modules/uniwidth/width-tests (Files): Likewise.
30895         * modules/unlink-tests (Files): Likewise.
30896         * modules/unsetenv-tests (Files): Likewise.
30897         * modules/usleep-tests (Files): Likewise.
30898         * modules/utimens-tests (Files): Likewise.
30899         * modules/utimensat-tests (Files): Likewise.
30900         * modules/vasnprintf-posix-tests (Files): Likewise.
30901         * modules/vasnprintf-tests (Files): Likewise.
30902         * modules/vasprintf-posix-tests (Files): Likewise.
30903         * modules/vasprintf-tests (Files): Likewise.
30904         * modules/vdprintf-posix-tests (Files): Likewise.
30905         * modules/vfprintf-posix-tests (Files): Likewise.
30906         * modules/vprintf-posix-tests (Files): Likewise.
30907         * modules/vsnprintf-posix-tests (Files): Likewise.
30908         * modules/vsnprintf-tests (Files): Likewise.
30909         * modules/vsprintf-posix-tests (Files): Likewise.
30910         * modules/wcrtomb-tests (Files): Likewise.
30911         * modules/wcsnrtombs-tests (Files): Likewise.
30912         * modules/wcsrtombs-tests (Files): Likewise.
30913         * modules/wctype-tests (Files): Likewise.
30914         * modules/wcwidth-tests (Files): Likewise.
30915         * modules/xmemdup0-tests (Files): Likewise.
30916         * modules/xprintf-posix-tests (Files): Likewise.
30917         * modules/xvasprintf-tests (Files): Likewise.
30918
30919 2009-12-24  Eric Blake  <ebb9@byu.net>
30920
30921         test-nanosleep: fix typo
30922         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30923         patch.
30924         Reported by Bruno Haible.
30925
30926 2009-12-24  Bruno Haible  <bruno@clisp.org>
30927
30928         Reduce namespace pollution on glibc systems.
30929         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30930         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30931         systems.
30932         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30933         <getopt.h> on glibc systems.
30934         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30935         systems.
30936         * lib/fcntl.c: Include <unistd.h> here instead.
30937
30938 2009-12-24  Bruno Haible  <bruno@clisp.org>
30939
30940         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30941
30942 2009-12-24  Eric Blake  <ebb9@byu.net>
30943
30944         tests: add signature checks
30945         * tests/signature.h (SIGNATURE_CHECK): New file.
30946         * modules/atexit-tests (Files): Use it.
30947         * modules/btowc-tests (Files): Likewise.
30948         * modules/canonicalize-lgpl-tests (Files): Likewise.
30949         * modules/ceilf-tests (Files): Likewise.
30950         * modules/ceill-tests (Files): Likewise.
30951         * modules/chown-tests (Files): Likewise.
30952         * modules/dprintf-posix-tests (Files): Likewise.
30953         * modules/dup2-tests (Files): Likewise.
30954         * modules/dup3-tests (Files): Likewise.
30955         * modules/duplocale-tests (Files): Likewise.
30956         * modules/fchdir-tests (Files): Likewise.
30957         * modules/fcntl-tests (Files): Likewise.
30958         * modules/fdopendir-tests (Files): Likewise.
30959         * modules/fflush-tests (Files): Likewise.
30960         * modules/flock-tests (Files): Likewise.
30961         * modules/floorf-tests (Files): Likewise.
30962         * modules/floorl-tests (Files): Likewise.
30963         * modules/fnmatch-tests (Files): Likewise.
30964         * modules/fopen-tests (Files): Likewise.
30965         * modules/fprintf-posix-tests (Files): Likewise.
30966         * modules/freopen-tests (Files): Likewise.
30967         * modules/frexp-nolibm-tests (Files): Likewise.
30968         * modules/frexp-tests (Files): Likewise.
30969         * modules/frexpl-nolibm-tests (Files): Likewise.
30970         * modules/frexpl-tests (Files): Likewise.
30971         * modules/fseek-tests (Files): Likewise.
30972         * modules/fseeko-tests (Files): Likewise.
30973         * modules/fsync-tests (Files): Likewise.
30974         * modules/ftell-tests (Files): Likewise.
30975         * modules/ftello-tests (Files): Likewise.
30976         * modules/futimens-tests (Files): Likewise.
30977         * modules/getaddrinfo-tests (Files): Likewise.
30978         * modules/getcwd-tests (Files): Likewise.
30979         * modules/getdelim-tests (Files): Likewise.
30980         * modules/getdtablesize-tests (Files): Likewise.
30981         * modules/getgroups-tests (Files): Likewise.
30982         * modules/gethostname-tests (Files): Likewise.
30983         * modules/getline-tests (Files): Likewise.
30984         * modules/getopt-posix-tests (Files): Likewise.
30985         * modules/gettimeofday-tests (Files): Likewise.
30986         * modules/glob-tests (Files): Likewise.
30987         * modules/iconv-tests (Files): Likewise.
30988         * modules/inet_ntop-tests (Files): Likewise.
30989         * modules/inet_pton-tests (Files): Likewise.
30990         * modules/isblank-tests (Files): Likewise.
30991         * modules/lchown-tests (Files): Likewise.
30992         * modules/ldexpl-tests (Files): Likewise.
30993         * modules/link-tests (Files): Likewise.
30994         * modules/linkat-tests (Files): Likewise.
30995         * modules/lseek-tests (Files): Likewise.
30996         * modules/lstat-tests (Files): Likewise.
30997         * modules/mbrtowc-tests (Files): Likewise.
30998         * modules/mbsinit-tests (Files): Likewise.
30999         * modules/mbsnrtowcs-tests (Files): Likewise.
31000         * modules/mbsrtowcs-tests (Files): Likewise.
31001         * modules/memchr-tests (Files): Likewise.
31002         * modules/memcmp-tests (Files): Likewise.
31003         * modules/memmem-tests (Files): Likewise.
31004         * modules/memrchr-tests (Files): Likewise.
31005         * modules/mkdir-tests (Files): Likewise.
31006         * modules/mkfifo-tests (Files): Likewise.
31007         * modules/mkfifoat-tests (Files): Likewise.
31008         * modules/mknod-tests (Files): Likewise.
31009         * modules/nanosleep-tests (Files): Likewise.
31010         * modules/nl_langinfo-tests (Files): Likewise.
31011         * modules/obstack-printf-tests (Files): Likewise.
31012         * modules/open-tests (Files): Likewise.
31013         * modules/openat-tests (Files): Likewise.
31014         * modules/perror-tests (Files): Likewise.
31015         * modules/pipe2-tests (Files): Likewise.
31016         * modules/poll-tests (Files): Likewise.
31017         * modules/popen-tests (Files): Likewise.
31018         * modules/posix_spawn-tests (Files): Likewise.
31019         * modules/posix_spawnp-tests (Files): Likewise.
31020         * modules/pread-tests (Files): Likewise.
31021         * modules/printf-posix-tests (Files): Likewise.
31022         * modules/pty-tests (Files): Likewise.
31023         * modules/random_r-tests (Files): Likewise.
31024         * modules/rawmemchr-tests (Files): Likewise.
31025         * modules/readlink-tests (Files): Likewise.
31026         * modules/remove-tests (Files): Likewise.
31027         * modules/rename-tests (Files): Likewise.
31028         * modules/renameat-tests (Files): Likewise.
31029         * modules/rmdir-tests (Files): Likewise.
31030         * modules/round-tests (Files): Likewise.
31031         * modules/roundf-tests (Files): Likewise.
31032         * modules/roundl-tests (Files): Likewise.
31033         * modules/select-tests (Files): Likewise.
31034         * modules/setenv-tests (Files): Likewise.
31035         * modules/sigaction-tests (Files): Likewise.
31036         * modules/sleep-tests (Files): Likewise.
31037         * modules/snprintf-posix-tests (Files): Likewise.
31038         * modules/snprintf-tests (Files): Likewise.
31039         * modules/sprintf-posix-tests (Files): Likewise.
31040         * modules/stat-tests (Files): Likewise.
31041         * modules/strcasestr-tests (Files): Likewise.
31042         * modules/strchrnul-tests (Files): Likewise.
31043         * modules/strerror-tests (Files): Likewise.
31044         * modules/strsignal-tests (Files): Likewise.
31045         * modules/strstr-tests (Files): Likewise.
31046         * modules/strtod-tests (Files): Likewise.
31047         * modules/strverscmp-tests (Files): Likewise.
31048         * modules/symlink-tests (Files): Likewise.
31049         * modules/symlinkat-tests (Files): Likewise.
31050         * modules/times-tests (Files): Likewise.
31051         * modules/trunc-tests (Files): Likewise.
31052         * modules/truncf-tests (Files): Likewise.
31053         * modules/truncl-tests (Files): Likewise.
31054         * modules/tsearch-tests (Files): Likewise.
31055         * modules/uname-tests (Files): Likewise.
31056         * modules/unlink-tests (Files): Likewise.
31057         * modules/unsetenv-tests (Files): Likewise.
31058         * modules/usleep-tests (Files): Likewise.
31059         * modules/utimensat-tests (Files): Likewise.
31060         * modules/vasprintf-tests (Files): Likewise.
31061         * modules/vdprintf-posix-tests (Files): Likewise.
31062         * modules/vfprintf-posix-tests (Files): Likewise.
31063         * modules/vprintf-posix-tests (Files): Likewise.
31064         * modules/vsnprintf-posix-tests (Files): Likewise.
31065         * modules/vsnprintf-tests (Files): Likewise.
31066         * modules/vsprintf-posix-tests (Files): Likewise.
31067         * modules/wcrtomb-tests (Files): Likewise.
31068         * modules/wcsnrtombs-tests (Files): Likewise.
31069         * modules/wcsrtombs-tests (Files): Likewise.
31070         * modules/wcwidth-tests (Files): Likewise.
31071         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31072         * tests/test-isinf.c (isinf): Likewise.
31073         * tests/test-isnan.c (isnan): Likewise.
31074         * tests/test-signbit.c (signbit): Likewise.
31075         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31076         declaration, either as macro or with correct signature.
31077         (select): Ensure function under test is declared with correct
31078         signature in correct header.
31079         * tests/test-atexit.c (atexit): Likewise.
31080         * tests/test-btowc.c (btowc): Likewise.
31081         * tests/test-canonicalize-lgpl.c (realpath)
31082         (canonicalize_file_name): Likewise.
31083         * tests/test-ceilf1.c (ceilf): Likewise.
31084         * tests/test-ceill.c (ceill): Likewise.
31085         * tests/test-chown.c (chown): Likewise.
31086         * tests/test-dprintf-posix.c (dprintf): Likewise.
31087         * tests/test-dup2.c (dup2): Likewise.
31088         * tests/test-dup3.c (dup3): Likewise.
31089         * tests/test-duplocale.c (duplocale): Likewise.
31090         * tests/test-fchdir.c (fchdir): Likewise.
31091         * tests/test-fchownat.c (fchownat): Likewise.
31092         * tests/test-fcntl.c (fcntl): Likewise.
31093         * tests/test-fdopendir.c (fdopendir): Likewise.
31094         * tests/test-fflush.c (fflush): Likewise.
31095         * tests/test-flock.c (flock): Likewise.
31096         * tests/test-floorf1.c (floorf): Likewise.
31097         * tests/test-floorl.c (floorl): Likewise.
31098         * tests/test-fnmatch.c (fnmatch): Likewise.
31099         * tests/test-fopen.c (fopen): Likewise.
31100         * tests/test-fprintf-posix.c (fprintf): Likewise.
31101         * tests/test-freopen.c (freopen): Likewise.
31102         * tests/test-frexp.c (frexp): Likewise.
31103         * tests/test-frexpl.c (frexpl): Likewise.
31104         * tests/test-fseek.c (fseek): Likewise.
31105         * tests/test-fseeko.c (fseeko): Likewise.
31106         * tests/test-fstatat.c (fstatat): Likewise.
31107         * tests/test-fsync.c (fsync): Likewise.
31108         * tests/test-ftell.c (ftell): Likewise.
31109         * tests/test-ftello.c (ftello): Likewise.
31110         * tests/test-futimens.c (futimens): Likewise.
31111         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31112         (gai_strerror): Likewise.
31113         * tests/test-getcwd.c (getcwd): Likewise.
31114         * tests/test-getdelim.c (getdelim): Likewise.
31115         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31116         * tests/test-getgroups.c (getgroups): Likewise.
31117         * tests/test-gethostname.c (gethostname): Likewise.
31118         * tests/test-getline.c (getline): Likewise.
31119         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31120         Likewise.
31121         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31122         * tests/test-glob.c (glob, globfree): Likewise.
31123         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31124         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31125         * tests/test-inet_pton.c (inet_pton): Likewise.
31126         * tests/test-isblank.c (isblank): Likewise.
31127         * tests/test-lchown.c (lchown): Likewise.
31128         * tests/test-ldexpl.c (ldexpl): Likewise.
31129         * tests/test-link.c (link): Likewise.
31130         * tests/test-linkat.c (linkat): Likewise.
31131         * tests/test-lseek.c (lseek): Likewise.
31132         * tests/test-lstat.c (lstat): Likewise.
31133         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31134         * tests/test-mbsinit.c (mbsinit): Likewise.
31135         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31136         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31137         * tests/test-memchr.c (memchr): Likewise.
31138         * tests/test-memcmp.c (memcmp): Likewise.
31139         * tests/test-memmem.c (memmem): Likewise.
31140         * tests/test-memrchr.c (memrchr): Likewise.
31141         * tests/test-mkdir.c (mkdir): Likewise.
31142         * tests/test-mkdirat.c (mkdirat): Likewise.
31143         * tests/test-mkfifo.c (mkfifo): Likewise.
31144         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31145         * tests/test-mknod.c (mknod): Likewise.
31146         * tests/test-nanosleep.c (nanosleep): Likewise.
31147         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31148         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31149         Likewise.
31150         * tests/test-open.c (open): Likewise.
31151         * tests/test-openat.c (openat): Likewise.
31152         * tests/test-perror.c (perror): Likewise.
31153         * tests/test-pipe2.c (pipe2): Likewise.
31154         * tests/test-poll.c (poll): Likewise.
31155         * tests/test-popen.c (popen, pclose): Likewise.
31156         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31157         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31158         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31159         (posix_spawn_file_actions_destroy)
31160         (posix_spawn_file_actions_addclose)
31161         (posix_spawn_file_actions_addopen)
31162         (posix_spawn_file_actions_adddup2): Likewise.
31163         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31164         * tests/test-pread.c (pread): Likewise.
31165         * tests/test-printf-posix.c (printf): Likewise.
31166         * tests/test-pty.c (openpty, forkpty): Likewise.
31167         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31168         (random_r): Likewise.
31169         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31170         * tests/test-readlink.c (readlink): Likewise.
31171         * tests/test-remove.c (remove): Likewise.
31172         * tests/test-rename.c (rename): Likewise.
31173         * tests/test-renameat.c (renameat): Likewise.
31174         * tests/test-rmdir.c (rmdir): Likewise.
31175         * tests/test-round1.c (round): Likewise.
31176         * tests/test-roundf1.c (roundf): Likewise.
31177         * tests/test-roundl.c (roundl): Likewise.
31178         * tests/test-setenv.c (setenv): Likewise.
31179         * tests/test-sigaction.c (sigaction): Likewise.
31180         * tests/test-sleep.c (sleep): Likewise.
31181         * tests/test-snprintf.c (snprintf): Likewise.
31182         * tests/test-sprintf-posix.c (sprintf): Likewise.
31183         * tests/test-stat.c (stat): Likewise.
31184         * tests/test-stpncpy.c (stpncpy): Likewise.
31185         * tests/test-strcasestr.c (strcasestr): Likewise.
31186         * tests/test-strchrnul.c (strchrnul): Likewise.
31187         * tests/test-strerror.c (strerror): Likewise.
31188         * tests/test-strsignal.c (strsignal): Likewise.
31189         * tests/test-strstr.c (strstr): Likewise.
31190         * tests/test-strtod.c (strtod): Likewise.
31191         * tests/test-strverscmp.c (strverscmp): Likewise.
31192         * tests/test-symlink.c (symlink): Likewise.
31193         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31194         * tests/test-times.c (times): Likewise.
31195         * tests/test-trunc1.c (trunc): Likewise.
31196         * tests/test-truncf1.c (truncf): Likewise.
31197         * tests/test-truncl.c (truncl): Likewise.
31198         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31199         Likewise.
31200         * tests/test-uname.c (uname): Likewise.
31201         * tests/test-unlink.c (unlink): Likewise.
31202         * tests/test-unlinkat.c (unlinkat): Likewise.
31203         * tests/test-unsetenv.c (unsetenv): Likewise.
31204         * tests/test-usleep.c (usleep): Likewise.
31205         * tests/test-utimensat.c (utimensat): Likewise.
31206         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31207         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31208         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31209         * tests/test-vprintf-posix.c (vprintf): Likewise.
31210         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31211         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31212         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31213         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31214         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31215         * tests/test-wcwidth.c (wcwidth): Likewise.
31216
31217         build: pull in conditional headers during GNULIB_POSIXCHECK
31218         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31219         definitions from any conditionally-included headers.
31220         * lib/stdlib.in.h (includes): Likewise.
31221         * lib/unistd.in.h (includes): Likewise.
31222
31223 2009-12-24  Bruno Haible  <bruno@clisp.org>
31224
31225         * tests/test-argv-iter.c: Include header file being tested immediately
31226         after config.h.
31227         * tests/test-base64.c: Likewise.
31228         * tests/test-flock.c: Likewise.
31229         * tests/test-fsync.c: Likewise.
31230         * tests/test-getdate.c: Likewise.
31231         * tests/test-getndelim2.c: Likewise.
31232         * tests/test-isfinite.c: Likewise.
31233         * tests/test-isinf.c: Likewise.
31234         * tests/test-strerror.c: Likewise.
31235         * tests/test-strsignal.c: Likewise.
31236
31237 2009-12-23  Eric Blake  <ebb9@byu.net>
31238
31239         unistd: work around cygwin bug
31240         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31241         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31242         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31243
31244 2009-12-23  Bruno Haible  <bruno@clisp.org>
31245
31246         localename: More tests.
31247         * tests/test-localename.c (SIZEOF): New macro.
31248         (categories): New variable.
31249         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31250         test_locale_name_default): Add test w.r.t. thread locale.
31251         (test_locale_name_thread): New function.
31252         (main): Invoke it.
31253
31254         localename: Make aware of thread locale.
31255         * lib/localename.h (gl_locale_name_thread): New declaration.
31256         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31257         behaviour with respect to thread locale.
31258         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31259         <langinfo.h>, glthread/lock.h.
31260         (SIZE_BITS): New macro.
31261         (string_hash): New function.
31262         (struct hash_node): New type.
31263         (HASH_TABLE_SIZE): New macro.
31264         (struniq_hash_table, struniq_lock): New variables.
31265         (struniq): New function.
31266         (gl_locale_name_thread): New function.
31267         (gl_locale_name): Invoke it.
31268         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31269         * modules/localename (Depends-on): Add lock.
31270         Reported by Mike Gran <spk121@yahoo.com>.
31271
31272 2009-12-23  Eric Blake  <ebb9@byu.net>
31273
31274         va-args: new module
31275         * modules/va-args: New file.
31276         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31277         * MODULES.html.sh (Core language properties): Mention it.
31278
31279         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31280         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31281         named alias for __attribute__((__unused__)).
31282         * lib/chown.c: Update client.
31283         * lib/fchmodat.c: Likewise.
31284         * lib/fts.c: Likewise.
31285         * lib/getdate.y: Likewise.
31286         * lib/getgroups.c: Likewise.
31287         * lib/getopt.c: Likewise.
31288         * lib/getugroups.c: Likewise.
31289         * lib/mkdir.c: Likewise.
31290         * lib/mkfifo.c: Likewise.
31291         * lib/mkfifoat.c: Likewise.
31292         * lib/mknod.c: Likewise.
31293         * lib/mknodat.c: Likewise.
31294         * lib/readlink.c: Likewise.
31295         * lib/se-context.in.h: Likewise.
31296         * lib/se-selinux.in.h: Likewise.
31297         * lib/sockets.c: Likewise.
31298         * lib/symlink.c: Likewise.
31299         * lib/symlinkat.c: Likewise.
31300         * lib/unicodeio.c: Likewise.
31301         * lib/unistr.h: Likewise.
31302         * tests/test-areadlink.c: Likewise.
31303         * tests/test-areadlinkat.c: Likewise.
31304         * tests/test-filenamecat.c: Likewise.
31305         * tests/test-fseeko.c: Likewise.
31306         * tests/test-ftello.c: Likewise.
31307         * tests/test-getdate.c: Likewise.
31308         * tests/test-getgroups.c: Likewise.
31309         * tests/test-gethostname.c: Likewise.
31310         * tests/test-quotearg.c: Likewise.
31311         * tests/test-version-etc.c: Likewise.
31312         * tests/test-xalloc-die.c: Likewise.
31313         * tests/test-xfprintf-posix.c: Likewise.
31314         * tests/test-xprintf-posix.c: Likewise.
31315         * tests/test-xvasprintf.c: Likewise.
31316
31317         tests: avoid compiler warnings
31318         * tests/test-fcntl.c (main): Delete unused parameters.
31319         * tests/test-freopen-safer.c (main): Likewise.
31320         * tests/test-xalloc-die.c (main): Mark unused parameters.
31321         * tests/test-fseeko.c (main): Likewise.
31322         * tests/test-ftello.c (main): Likewise.
31323         * tests/test-nanosleep.c (main): Avoid declaration warning.
31324         * tests/test-sleep.c (main): Likewise.
31325         * tests/test-unsetenv.c (main): Silence warning about string
31326         literal.
31327         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31328
31329 2009-12-23  Bruno Haible  <bruno@clisp.org>
31330
31331         * tests/test-localename.c (test_locale_name): New function, extracted
31332         from main. Also test mixed situations.
31333         (test_locale_name_posix, test_locale_name_environ,
31334         test_locale_name_default): New functions.
31335         (main): Invoke them all.
31336         * modules/localename-tests (configure.ac): Test for newlocale.
31337
31338 2009-12-23  Bruno Haible  <bruno@clisp.org>
31339
31340         unistd: Ensure getcwd gets declared before being overridden.
31341         * lib/unistd.in.h: Conditionally include <io.h>.
31342
31343 2009-12-22  Bruno Haible  <bruno@clisp.org>
31344
31345         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31346         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31347         (gl_WCHAR_H): Invoke it.
31348         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31349         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31350         Reported by Karl Berry <karl@freefriends.org>.
31351
31352 2009-12-22  Eric Blake  <ebb9@byu.net>
31353
31354         math, unistd: avoid redundant includes
31355         * lib/math.in.h (isnan): No need to re-include <math.h>.
31356         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31357
31358         getsubopt: work around cygwin bug
31359         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31360         avoid conflicting with system getsubopt.
31361         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31362         bug.
31363
31364         getopt: synchronize from glibc
31365         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31366         parameter order.  Adjust all callers.
31367         (_getopt_internal_r, main): Adjust quoting in error messages.
31368         Drop considerations for outdated POSIX 1003.2 error message.
31369         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31370         callers.
31371         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31372
31373         test-getopt: test stderr behavior
31374         * modules/getopt-posix-tests (Depends-on): Add dup2.
31375         * tests/test-getopt.c (ASSERT): Avoid stderr.
31376         (main): Move stderr to a temporary file.
31377         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31378         Instead, add parameter to inform caller if output occurred.
31379         (test_getopt): Adjust all existing tests to expect silence, and
31380         add new tests of leading ":".
31381         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31382         glibc shortcomings with leading "-:" or "+:" in optstring.
31383         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31384         Likewise.
31385         * doc/posix-functions/getopt.texi (getopt): Likewise.
31386
31387         test-getopt: enhance test
31388         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31389         supports optind=0.
31390         * tests/test-getopt.c (OPTIND_MIN): Move...
31391         * tests/test-getopt.h (OPTIND_MIN): ...here.
31392         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31393         Require that optind=0 works, since modern BSD supports it in
31394         addition to optreset, and since coreutils expects it.
31395         (test_getopt_long_only): New test.
31396         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31397         glibc shortcomings with 'W;', and enforcement of optind=0.
31398         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31399         Likewise.
31400
31401 2009-12-21  Bruno Haible  <bruno@clisp.org>
31402
31403         localename: Improvements for MacOS X and Cygwin.
31404         * lib/localename.h (gl_locale_name_environ): New declaration.
31405         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31406         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31407         (gl_locale_name_posix): Invoke it.
31408         (gl_locale_name_default): Add comments. Use Windows native API also on
31409         Cygwin.
31410
31411 2009-12-21  Bruno Haible  <bruno@clisp.org>
31412
31413         Update list of Win32 locale ids.
31414         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31415         (LANG_SAMI): Renamed from LANG_SAAMI.
31416         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31417         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31418         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31419         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31420         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31421         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31422         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31423         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31424         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31425         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31426         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31427         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31428         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31429         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31430         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31431         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31432         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31433         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31434         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31435         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31436         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31437         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31438         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31439         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31440         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31441         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31442         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31443         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31444         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31445         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31446         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31447         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31448         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31449         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31450         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31451         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31452         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31453         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31454         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31455         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31456         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31457         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31458         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31459         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31460         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31461         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31462         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31463         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31464         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31465         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31466         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31467         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31468         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31469         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31470         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31471         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31472         Add more languages and countries for Sami, Sorbian. Add more countries
31473         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31474         for Pashto. Change country for Syriac, Tswana.
31475
31476 2009-12-21  Eric Blake  <ebb9@byu.net>
31477
31478         test-utimens: avoid spurious failure
31479         * tests/test-chown.h (nap): Factor...
31480         * tests/nap.h: ...into new file.
31481         * tests/test-lchown.h (nap): Avoid duplication.
31482         * tests/test-utimens-common.h (nap): Use shared implementation,
31483         necessary on file systems with 1-second resolution.
31484         * modules/chown-tests (Files): Include new file.
31485         * modules/fdutimensat-tests (Files): Likewise.
31486         * modules/futimens-tests (Files): Likewise.
31487         * modules/lchown-tests (Files): Likewise.
31488         * modules/openat-tests (Files): Likewise.
31489         * modules/utimens-tests (Files): Likewise.
31490         * modules/utimensat-tests (Files): Likewise.
31491
31492 2009-12-19  Eric Blake  <ebb9@byu.net>
31493
31494         futimens, utimensat: work around Linux bug
31495         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31496         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31497         * lib/utimensat.c (rpl_utimensat): Work around it.
31498         * lib/futimens.c (rpl_futimens): Adjust comment.
31499
31500         utimens: work around Linux ctime bug
31501         * lib/utimens.c (detect_ctime_bug): New helper function.
31502         (update_timespec): Differentiate between workaround needed for
31503         this bug vs. what is needed for systems that lack utimensat.
31504         (fdutimens, lutimens): Work around bug.
31505
31506         utimens: check for ctime update
31507         * tests/test-utimens-common.h (check_ctime): Define.
31508         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31509         * tests/test-futimens.h (test_futimens): Likewise.
31510         * tests/test-lutimens.h (test_lutimens): Likewise.
31511         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31512         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31513
31514 2009-12-19  Bruno Haible  <bruno@clisp.org>
31515
31516         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31517         * tests/test-dprintf-posix2.sh: New file.
31518         * tests/test-dprintf-posix2.c: New file.
31519         * modules/dprintf-posix-tests (Files): Add them.
31520         (configure.ac): Check for getrlimit and setrlimit.
31521         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31522
31523 2009-12-19  Bruno Haible  <bruno@clisp.org>
31524
31525         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31526         * tests/test-fprintf-posix3.sh: New file.
31527         * tests/test-fprintf-posix3.c: New file.
31528         * modules/fprintf-posix-tests (Files): Add them.
31529         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31530
31531 2009-12-19  Eric Blake  <ebb9@byu.net>
31532
31533         dirfd: fix prototype
31534         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31535         * lib/dirfd.c (dirfd): Likewise.
31536
31537         canonicalize: reduce memory usage
31538         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31539         allocation to size.
31540         Reported by Solar Designer <solar@openwall.com>.
31541
31542 2009-12-19  Bruno Haible  <bruno@clisp.org>
31543
31544         New module attribute 'Applicability'.
31545         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31546         * gnulib-tool: New option --extract-applicability.
31547         (func_usage): Document it.
31548         (sed_extract_prog): Recognize it.
31549         (func_get_applicability): New function.
31550         (func_import): Generalize handling of 'link-warning' module.
31551         * modules/link-warning (Applicability): New section.
31552         * modules/arg-nonnull (Applicability): New section.
31553         Repoted by Simon Josefsson <simon@josefsson.org>.
31554
31555 2009-12-19  Bruno Haible  <bruno@clisp.org>
31556
31557         fflush: tweak
31558         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31559         * lib/fseeko.c (rpl_fseeko): Likewise.
31560
31561 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31562
31563         * lib/gl_list.h: Fix typo in comment.
31564
31565 2009-12-16  Eric Blake  <ebb9@byu.net>
31566
31567         fcntl: use to simplify other modules
31568         * modules/cloexec (Depends-on): Add fcntl.
31569         * modules/fchdir (Depends-on): Likewise.
31570         * modules/fd-safer-flag (Depends-on): Likewise.
31571         * modules/unistd-safer (Depends-on): Likewise.
31572         * modules/dup3 (configure.ac): Set module indicator.
31573         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31574         missing.
31575         * lib/fchdir.c (_gl_register_dup): Fix comment.
31576         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31577         * lib/dup-safer.c (dup_safer): Likewise.
31578         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31579         * lib/dup3.c (dup3): Likewise.
31580         * tests/test-fchdir.c (main): Enhance test.
31581         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31582
31583         fcntl: port portions of fcntl to mingw
31584         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31585         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31586         replacement for mingw.
31587         * modules/fcntl (Description): Update.
31588         (Depends-on): Add dup2.
31589         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31590         * modules/fcntl-h (Makefile.am): Substitute it.
31591         * lib/fcntl.in.h (fcntl): Update declaration.
31592         (F_DUPFD, F_GETFD): New macros, when needed.
31593         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31594         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31595         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31596         we now guarantee.
31597
31598         fcntl: work around cygwin bug in F_DUPFD
31599         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31600         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31601         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31602         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31603         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31604
31605         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31606         * modules/fcntl (Files): List new files.
31607         (configure.ac): Run a test.
31608         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31609         * lib/fcntl.c (rpl_fcntl): Likewise.
31610         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31611         (gl_FCNTL_H): Always replace fcntl.h.
31612         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31613         * lib/fcntl.in.h (fcntl): Declare replacement.
31614         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31615         needed, plus a witness.
31616         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31617         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31618         * tests/test-fcntl.c: New file.
31619         * modules/fcntl-tests: Likewise.
31620
31621         binary-io: avoid potential compilation warning
31622         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31623         directives.
31624
31625         fflush: avoid compilation error on NetBSD
31626         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31627         between off_t and fpos_t, since the latter is sometimes a struct.
31628         * lib/fseeko.c (rpl_fseeko): Likewise.
31629         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31630
31631 2009-12-15  Eric Blake  <ebb9@byu.net>
31632
31633         fcntl-h, stdio, sys_ioctl: fix declarations
31634         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31635         function must not take arguments.
31636         * lib/sys_ioctl.in.h (ioctl): Likewise.
31637         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31638         (open): Add a link warning.
31639
31640 2009-12-15  Jim Meyering  <meyering@redhat.com>
31641
31642         areadlink, areadlink-with-size: relax license to LGPLv2+
31643         * modules/areadlink (License): Relax to LGPLv2+.
31644         * modules/areadlink-with-size (License): Likewise.
31645
31646 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31647             Bruno Haible  <bruno@clisp.org>
31648
31649         *printf: Fix memory leak.
31650         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31651         * lib/vfprintf.c (vfprintf): Likewise.
31652         * lib/dprintf.c (dprintf): Likewise.
31653         * lib/vdprintf.c (vdprintf): Likewise.
31654
31655 2009-12-14  Eric Blake  <ebb9@byu.net>
31656
31657         accept4: adjust module dependencies
31658         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31659
31660         utimens: one more try at avoiding compiler warning
31661         * lib/utimens.c (lutimens): Lower scope of result.
31662
31663 2009-12-13  Bruno Haible  <bruno@clisp.org>
31664
31665         Move the malloc checking from module 'list' to new module 'xlist'.
31666         * modules/xlist: New file.
31667         * lib/gl_xlist.h: New file.
31668         * lib/gl_xlist.c: New file.
31669         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31670         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31671         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31672         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31673         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31674         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31675         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31676         gl_sortedlist_nx_add): New declarations.
31677         (struct gl_list_implementation): Rename and change methods accordingly.
31678         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31679         (gl_list_nx_create): Renamed from gl_list_create.
31680         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31681         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31682         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31683         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31684         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31685         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31686         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31687         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31688         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31689         gl_list_create_empty.
31690         (gl_list_nx_create): Renamed from gl_list_create.
31691         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31692         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31693         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31694         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31695         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31696         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31697         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31698         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31699         * lib/gl_array_list.c: Don't include xalloc.h.
31700         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31701         NULL upon out-of-memory.
31702         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31703         out-of-memory.
31704         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31705         Change return type to 'int'.
31706         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31707         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31708         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31709         upon out-of-memory.
31710         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31711         upon out-of-memory.
31712         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31713         upon out-of-memory.
31714         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31715         upon out-of-memory.
31716         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31717         out-of-memory.
31718         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31719         Update.
31720         (gl_array_list_implementation): Update.
31721         * lib/gl_carray_list.c: Don't include xalloc.h.
31722         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31723         Return NULL upon out-of-memory.
31724         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31725         out-of-memory.
31726         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31727         Change return type to 'int'.
31728         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31729         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31730         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31731         upon out-of-memory.
31732         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31733         upon out-of-memory.
31734         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31735         out-of-memory.
31736         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31737         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31738         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31739         Update.
31740         (gl_carray_list_implementation): Update.
31741         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31742         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31743         gl_linked_create_empty. Return NULL upon out-of-memory.
31744         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31745         out-of-memory.
31746         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31747         Change return type to 'int'. Return -1 upon out-of-memory.
31748         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31749         out-of-memory.
31750         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31751         upon out-of-memory.
31752         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31753         upon out-of-memory.
31754         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31755         NULL upon out-of-memory.
31756         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31757         upon out-of-memory.
31758         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31759         out-of-memory.
31760         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31761         Update.
31762         * lib/gl_linked_list.c: Don't include xalloc.h.
31763         (gl_linked_list_implementation): Update.
31764         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31765         (add_to_bucket): Change return type to 'int'.
31766         (gl_linkedhash_list_implementation): Update.
31767         * lib/gl_anytree_list1.h (free_subtree): New function.
31768         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31769         gl_tree_create_empty. Return NULL upon out-of-memory.
31770         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31771         Change return type to 'int'. Return -1 upon out-of-memory.
31772         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31773         out-of-memory.
31774         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31775         (gl_tree_remove_node): New function, moved here from
31776         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31777         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31778         Update.
31779         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31780         malloc, not xmalloc. Return NULL upon out-of-memory.
31781         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31782         out-of-memory.
31783         (gl_tree_remove_node_from_tree): New function, extracted from
31784         gl_tree_remove_node.
31785         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31786         upon out-of-memory.
31787         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31788         out-of-memory.
31789         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31790         upon out-of-memory.
31791         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31792         upon out-of-memory.
31793         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31794         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31795         not xmalloc. Return NULL upon out-of-memory.
31796         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31797         out-of-memory.
31798         (gl_tree_remove_node_from_tree): New function, extracted from
31799         gl_tree_remove_node.
31800         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31801         upon out-of-memory.
31802         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31803         out-of-memory.
31804         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31805         upon out-of-memory.
31806         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31807         upon out-of-memory.
31808         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31809         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31810         gl_anytree_list1.h before gl_anyavltree_list2.h.
31811         (gl_avltree_list_implementation): Update.
31812         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31813         gl_anytree_list1.h before gl_anyavltree_list2.h.
31814         (gl_rbtree_list_implementation): Update.
31815         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31816         Change return type to 'int'. Return -1 upon out-of-memory. Use
31817         __builtin_expect.
31818         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31819         (gl_avltreehash_list_implementation): Update.
31820         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31821         (gl_rbtreehash_list_implementation): Update.
31822         * modules/array-list (Depends-on): Remove xalloc.
31823         * modules/carray-list (Depends-on): Likewise.
31824         * modules/linked-list (Depends-on): Likewise.
31825         * modules/linkedhash-list (Depends-on): Likewise.
31826         * modules/avltree-list (Depends-on): Likewise.
31827         * modules/rbtree-list (Depends-on): Likewise.
31828         * modules/avltreehash-list (Depends-on): Likewise.
31829         * modules/rbtreehash-list (Depends-on): Likewise.
31830
31831         * modules/xsublist: New file.
31832         * lib/gl_xsublist.h: New file.
31833         * lib/gl_xsublist.c: New file.
31834         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31835         (gl_sublist_nx_create): New declaration.
31836         * lib/gl_sublist.c: Don't include xalloc.h.
31837         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31838         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31839         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31840         Change return type to 'int'. Return -1 upon out-of-memory.
31841         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31842         upon out-of-memory.
31843         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31844         NULL upon out-of-memory.
31845         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31846         upon out-of-memory.
31847         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31848         NULL upon out-of-memory.
31849         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31850         NULL upon out-of-memory.
31851         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31852         upon out-of-memory.
31853         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31854         (gl_sublist_list_implementation): Update.
31855         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31856         upon out-of-memory.
31857         * modules/sublist (Depends-on): Remove xalloc.
31858
31859         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31860         * tests/test-carray_list.c: Likewise.
31861         * tests/test-linked_list.c: Likewise.
31862         * tests/test-linkedhash_list.c: Likewise.
31863         * tests/test-avltree_list.c: Likewise.
31864         * tests/test-rbtree_list.c: Likewise.
31865         * tests/test-avltreehash_list.c: Likewise.
31866         * tests/test-rbtreehash_list.c: Likewise.
31867         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31868         * modules/carray-list-tests (Makefile.am): Likewise.
31869         * modules/linked-list-tests (Makefile.am): Likewise.
31870         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31871         * modules/avltree-list-tests (Makefile.am): Likewise.
31872         * modules/rbtree-list-tests (Makefile.am): Likewise.
31873         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31874         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31875
31876         * NEWS: Mention the changes.
31877
31878         * lib/clean-temp.c: Include gl_xlist.h.
31879         * modules/clean-temp (Depends-on): Add xlist.
31880
31881         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31882         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31883
31884         * tests/test-array_oset.c: Include gl_xlist.h.
31885         * modules/array-oset-tests (Depends-on): Add xlist.
31886
31887         Reported by José E. Marchesi <jemarch@gnu.org>.
31888
31889 2009-12-13  Bruno Haible  <bruno@clisp.org>
31890
31891         Move the malloc checking from module 'oset' to new module 'xoset'.
31892         * modules/xoset: New file.
31893         * lib/gl_xoset.h: New file.
31894         * lib/gl_xoset.c: New file.
31895         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31896         declarations.
31897         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31898         (struct gl_oset_implementation): Rename and change methods accordingly.
31899         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31900         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31901         'int'. Mark as __warn_unused_result__.
31902         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31903         gl_oset_create_empty.
31904         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31905         'int'.
31906         * lib/gl_array_oset.c: Don't include xalloc.h.
31907         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31908         malloc, not xmalloc.
31909         (grow): Change return type to 'int'. Don't call xalloc_die.
31910         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31911         to 'int'.
31912         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31913         'int'.
31914         (gl_array_oset_implementation): Update.
31915         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31916         gl_tree_create_empty.
31917         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31918         'int'.
31919         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31920         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31921         xmalloc.
31922         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31923         not xmalloc.
31924         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31925         xmalloc.
31926         (gl_avltree_oset_implementation): Update.
31927         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31928         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31929         xmalloc.
31930         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31931         not xmalloc.
31932         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31933         xmalloc.
31934         (gl_rbtree_oset_implementation): Update.
31935         * modules/array-oset (Depends-on): Remove xalloc.
31936         * modules/avltree-oset (Depends-on): Likewise.
31937         * modules/rbtree-oset (Depends-on): Likewise.
31938         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31939         * tests/test-avltree_oset.c: Likewise.
31940         * tests/test-rbtree_oset.c: Likewise.
31941         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31942         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31943         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31944         * NEWS: Mention the change.
31945
31946 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31947
31948         maint.mk: allow a project to override release-prep commands
31949         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31950         commands into a new rule.
31951         (release-prep): New rule.
31952         (release-prep-hook): New overridable variable.
31953
31954 2009-12-13  Bruno Haible  <bruno@clisp.org>
31955
31956         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31957
31958 2009-12-13  Jim Meyering  <meyering@redhat.com>
31959
31960         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31961         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31962
31963 2009-12-12  Bruno Haible  <bruno@clisp.org>
31964
31965         duplocale: Tweak.
31966         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31967
31968 2009-12-12  Karl Berry  <karl@gnu.org>
31969
31970         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31971
31972 2009-12-12  Bruno Haible  <bruno@clisp.org>
31973
31974         * m4/po.m4: Undo incorrect untabification.
31975
31976 2009-12-12  Bruno Haible  <bruno@clisp.org>
31977
31978         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31979         * modules/c-strtod (Depends-on): Add locale.
31980         * modules/c-strtold (Depends-on): Likewise.
31981
31982 2009-12-12  Bruno Haible  <bruno@clisp.org>
31983
31984         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31985
31986 2009-12-11  Eric Blake  <ebb9@byu.net>
31987
31988         setenv: relax requirement in light of POSIX ruling
31989         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31990         not NULL.
31991         * tests/test-setenv.c (main): Relax test.
31992         * tests/test-unsetenv.c (main): Likewise.
31993         * doc/posix-functions/setenv.texi (setenv): Document this.
31994         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31995
31996 2009-12-11  Bruno Haible  <bruno@clisp.org>
31997
31998         New module 'fd-safer-flag'.
31999         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32000         * lib/dup-safer.c (dup_safer_flag): Remove function.
32001         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32002         * lib/fd-safer.c (fd_safer_flag): Remove function.
32003         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32004         * modules/cloexec (configure.ac): Drop indicator macro.
32005         * modules/fd-safer-flag: New file.
32006         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32007         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32008         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32009
32010 2009-12-11  Bruno Haible  <bruno@clisp.org>
32011
32012         Tests for module 'nl_langinfo'.
32013         * modules/nl_langinfo-tests: New file.
32014         * tests/test-nl_langinfo.sh: New file.
32015         * tests/test-nl_langinfo.c: New file.
32016
32017         New module 'nl_langinfo'.
32018         * lib/nl_langinfo.c: New file.
32019         * m4/nl_langinfo.m4: New file.
32020         * modules/nl_langinfo: New file.
32021         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32022
32023 2009-12-11  Bruno Haible  <bruno@clisp.org>
32024
32025         Tests for module 'langinfo'.
32026         * modules/langinfo-tests: New file.
32027         * tests/test-langinfo.c: New file.
32028
32029         New module 'langinfo'.
32030         * lib/langinfo.in.h: New file.
32031         * m4/langinfo_h.m4: New file.
32032         * modules/langinfo: New file.
32033         * doc/posix-headers/langinfo.texi: Mention the new module.
32034
32035 2009-12-11  Bruno Haible  <bruno@clisp.org>
32036
32037         * lib/config.charset: Untabify.
32038
32039 2009-12-11  Bruno Haible  <bruno@clisp.org>
32040
32041         * modules/unistd-safer (configure.ac): Drop indicator macro.
32042
32043 2009-12-11  Bruno Haible  <bruno@clisp.org>
32044
32045         Move pipe2-safer code to its own file.
32046         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32047         * lib/pipe-safer.c (pipe2_safer): Remove function.
32048         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32049         (Makefile.am): Add it to lib_SOURCES.
32050
32051 2009-12-10  Bruno Haible  <bruno@clisp.org>
32052
32053         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32054
32055 2009-12-10  Bruno Haible  <bruno@clisp.org>
32056
32057         Declare which arguments expect non-NULL values, for GCC and clang.
32058         * build-aux/arg-nonnull.h: New file.
32059         * modules/arg-nonnull: New file.
32060         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32061         (inet_ntop, inet_pton): Use it.
32062         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32063         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32064         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32065         (open, openat): Use it.
32066         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32067         (fnmatch): Use it.
32068         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32069         (getopt, getopt_long, getopt_long_only): Use it.
32070         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32071         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32072         Use it.
32073         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32074         (iconv_open): Use it.
32075         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32076         (strtoimax, strtoumax): Use it.
32077         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32078         (duplocale): Use it.
32079         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32080         (frexp, frexpl): Use it.
32081         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32082         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32083         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32084         (tsearch, tfind, tdelete, twalk): Use it.
32085         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32086         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32087         sigpending): Use it.
32088         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32089         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32090         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32091         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32092         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32093         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32094         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32095         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32096         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32097         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32098         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32099         Use it.
32100         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32101         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32102         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32103         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32104         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32105         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32106         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32107         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32108         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32109         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32110         strtoull, unsetenv): Use it.
32111         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32112         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32113         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32114         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32115         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32116         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32117         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32118         (strcasecmp, strncasecmp): Use it.
32119         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32120         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32121         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32122         rpl_setsockopt): Use it.
32123         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32124         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32125         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32126         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32127         (gettimeofday): Use it.
32128         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32129         (times): Use it.
32130         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32131         (uname): Use it.
32132         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32133         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32134         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32135         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32136         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32137         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32138         unlinkat, write): Use it.
32139         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32140         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32141         * lib/argv-iter.h: Include arg-nonnull.h.
32142         (_ATTRIBUTE_NONNULL_): Remove macro.
32143         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32144         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32145         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32146         optimization.
32147         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32148         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32149         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32150         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32151         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32152         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32153         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32154         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32155         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32156         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32157         * modules/dirent (Depends-on): Add arg-nonnull.
32158         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32159         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32160         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32161         * modules/fnmatch (Depends-on): Add arg-nonnull.
32162         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32163         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32164         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32165         * modules/glob (Depends-on): Add arg-nonnull.
32166         (Makefile.am): Insert arg-nonnull.h into glob.h.
32167         * modules/iconv_open (Depends-on): Add arg-nonnull.
32168         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32169         * modules/inttypes (Depends-on): Add arg-nonnull.
32170         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32171         * modules/locale (Depends-on): Add arg-nonnull.
32172         (Makefile.am): Insert arg-nonnull.h into locale.h.
32173         * modules/math (Depends-on): Add arg-nonnull.
32174         (Makefile.am): Insert arg-nonnull.h into math.h.
32175         * modules/netdb (Depends-on): Add arg-nonnull.
32176         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32177         * modules/search (Depends-on): Add arg-nonnull.
32178         (Makefile.am): Insert arg-nonnull.h into search.h.
32179         * modules/signal (Depends-on): Add arg-nonnull.
32180         (Makefile.am): Insert arg-nonnull.h into signal.h.
32181         * modules/spawn (Depends-on): Add arg-nonnull.
32182         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32183         * modules/stdio (Depends-on): Add arg-nonnull.
32184         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32185         * modules/stdlib (Depends-on): Add arg-nonnull.
32186         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32187         * modules/string (Depends-on): Add arg-nonnull.
32188         (Makefile.am): Insert arg-nonnull.h into string.h.
32189         * modules/strings (Depends-on): Add arg-nonnull.
32190         (Makefile.am): Insert arg-nonnull.h into strings.h.
32191         * modules/sys_socket (Depends-on): Add arg-nonnull.
32192         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32193         * modules/sys_stat (Depends-on): Add arg-nonnull.
32194         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32195         * modules/sys_time (Depends-on): Add arg-nonnull.
32196         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32197         * modules/sys_times (Depends-on): Add arg-nonnull.
32198         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32199         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32200         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32201         * modules/time (Depends-on): Add arg-nonnull.
32202         (Makefile.am): Insert arg-nonnull.h into time.h.
32203         * modules/unistd (Depends-on): Add arg-nonnull.
32204         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32205         * modules/wchar (Depends-on): Add arg-nonnull.
32206         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32207         * modules/argv-iter (Depends-on): Add arg-nonnull.
32208         * tests/test-canonicalize.c (null_ptr): New function.
32209         (main): Use it.
32210         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32211         (main): Use it.
32212         * tests/test-memmem.c (null_ptr): New function.
32213         (main): Use it.
32214         Reported by Jim Meyering.
32215
32216 2009-12-10  Bruno Haible  <bruno@clisp.org>
32217
32218         Use spaces for indentation, not tabs.
32219         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32220         * m4/*.m4: Untabify.
32221         * build-aux/*.h: Untabify.
32222         * tests/**/*.[hc]: Untabify.
32223         * README: New section "Indent with spaces, not TABs", based on
32224         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32225         * NEWS: Mention the change.
32226
32227 2009-12-10  Bruno Haible  <bruno@clisp.org>
32228
32229         pty test: Fix link error.
32230         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32231         test_pty_LDADD.
32232
32233 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32234
32235         * modules/pty: New file.
32236         * modules/pty-tests: New file.
32237         * m4/pty.m4: New file.
32238         * tests/test-pty.c: New file.
32239         * doc/glibc-headers/pty.texi: Modified.
32240         * doc/glibc-functions/forkpty.texi: Modified.
32241         * doc/glibc-functions/openpty.texi: Modified.
32242
32243 2009-12-10  Bruno Haible  <bruno@clisp.org>
32244
32245         Avoid syntax error in C++ mode.
32246         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32247
32248 2009-12-10  Bruno Haible  <bruno@clisp.org>
32249
32250         Use sed with option -e.
32251         * gnulib-tool (func_version, func_emit_copyright_notice,
32252         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32253         option -e to sed.
32254         * modules/link-warning (Makefile.am): Likewise.
32255
32256 2009-12-10  Jim Meyering  <meyering@redhat.com>
32257
32258         mgetgroups: do not write bytes beyond end of malloc'd buffer
32259         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32260         username, we call getgroups with a one-element-shorter buffer,
32261         but still told it the length was original, max_n_groups.
32262
32263 2009-12-09  Eric Blake  <ebb9@byu.net>
32264
32265         cloexec: relax license
32266         * modules/cloexec (Maintainer): Add myself.
32267         (License): Use LGPL, not GPL.
32268
32269         link-warning: optimize generation
32270         * modules/link-warning (Makefile.am): Reduce process usage.
32271
32272 2009-12-09  Bruno Haible  <bruno@clisp.org>
32273
32274         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32275         workaround was added on 2009-11-17.
32276
32277 2009-12-09  Jim Meyering  <meyering@redhat.com>
32278             Bruno Haible  <bruno@clisp.org>
32279
32280         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32281         * modules/link-warning (Makefile.am): Make the comment-removing sed
32282         command more robust in the face of bootstrap-prepended comment lines.
32283
32284 2009-12-09  Bruno Haible  <bruno@clisp.org>
32285
32286         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32287         most one group.
32288
32289 2009-12-09  Simon Josefsson <simon@josefsson.org>
32290             Bruno Haible  <bruno@clisp.org>
32291
32292         * build-aux/link-warning.h: Add copyright notice.
32293         * modules/link-warning (Makefile.am): Generate link-warning.h from
32294         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32295         * NEWS: Mention change in link-warning module.
32296         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32297         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32298         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32299         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32300         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32301         * modules/math (Makefile.am): Add dependency to math.h.
32302         * modules/search (Makefile.am): Add dependency to search.h.
32303         * modules/signal (Makefile.am): Add dependency to signal.h.
32304         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32305         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32306         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32307         * modules/string (Makefile.am): Add dependency to string.h.
32308         * modules/strings (Makefile.am): Add dependency to strings.h.
32309         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32310         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32311         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32312         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32313         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32314         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32315         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32316         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32317         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32318
32319 2009-12-09  Bruno Haible  <bruno@clisp.org>
32320
32321         fchdir: Optimize away rpl_fstat when possible.
32322         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32323         REPLACE_OPEN_DIRECTORY.
32324         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32325
32326 2009-12-09  Bruno Haible  <bruno@clisp.org>
32327
32328         * lib/fchdir.c: Update comment.
32329
32330 2009-12-09  Bruno Haible  <bruno@clisp.org>
32331
32332         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32333
32334 2009-12-08  Eric Blake  <ebb9@byu.net>
32335
32336         fchdir: avoid memory leak on re-registration.
32337         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32338
32339 2009-12-08  Jim Meyering  <meyering@redhat.com>
32340
32341         init.sh: avoid Solaris 10 /bin/sh portability problem
32342         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32343         sourced script:
32344           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32345           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32346           bar
32347         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32348         and two tests used that idiom.
32349         * tests/init.sh: Update suggested usage comments.
32350         (path_prepend_): New function, to be used in place
32351         of the --src-path=DIR option.
32352         (setup_): Move PATH-prepending code into path_prepend_.
32353         * tests/test-pread.sh: Adapt to new usage.
32354         * tests/test-xalloc-die.sh: Likewise.
32355
32356 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32357
32358         * doc/gnulib.texi (Glibc pty.h): Add.
32359         * doc/glibc-functions/forkpty.texi: Add.
32360         * doc/glibc-functions/openpty.texi: Add.
32361         Suggested by Bruno Haible.
32362
32363 2009-12-08  Eric Blake  <ebb9@byu.net>
32364
32365         fchdir: fix logic bugs
32366         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32367         * tests/test-fchdir.c (main): Enhance test.
32368         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32369         is in use.
32370
32371         dup2: fix logic bugs
32372         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32373         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32374         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32375         exists.
32376         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32377
32378 2009-12-07  Eric Blake  <ebb9@byu.net>
32379
32380         unlink: fix m4 detection
32381         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32382
32383         unistd-safer: add unit test
32384         * modules/unistd-safer-tests: New file.
32385         * tests/test-dup-safer.c: Likewise.
32386         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32387         * tests/test-dup2.c (setmode): Likewise.
32388         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32389
32390         cloexec: preserve text vs. binary across dup_cloexec
32391         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32392         mode.
32393         * modules/dup2-tests (Depends-on): Add binary-io.
32394         * modules/cloexec-tests (Depends-on): Likewise.
32395         * tests/test-dup2.c (setmode, is_mode): New helpers.
32396         (main): Add tests that translation mode is preserved.
32397         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32398         Reported by Bruno Haible.
32399
32400         mgetgroups: reduce duplicate listings
32401         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32402         resulting array.
32403         * tests/test-chown.h (test_chown): Simplify client.
32404         * tests/test-lchown.h (test_lchown): Likewise.
32405
32406 2009-12-06  Bruno Haible  <bruno@clisp.org>
32407
32408         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32409         value.
32410
32411 2009-12-06  Bruno Haible  <bruno@clisp.org>
32412
32413         * lib/progname.c: Include stdio.h, stdlib.h.
32414         (set_program_name): Reject a NULL argument.
32415
32416 2009-12-05  Eric Blake  <ebb9@byu.net>
32417
32418         pipe2-safer: new module
32419         * modules/pipe2-safer: New file.
32420         * lib/unistd-safer.h (pipe2_safer): New prototype.
32421         * lib/unistd--.h (pipe2): New wrapper.
32422         * lib/pipe-safer.c (pipe2_safer): New function.
32423         * modules/pipe (Depends-on): Add pipe2-safer.
32424         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32425
32426         stdlib-safer: preserve cloexec flag for mkostemp[s]
32427         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32428         fd_safer_flag.
32429
32430         unistd-safer: allow preservation of cloexec status via flag
32431         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32432         prototypes.
32433         * lib/dup-safer.c (dup_safer_flag): New function.
32434         * lib/fd-safer.c (fd_safer_flag): Likewise.
32435         * modules/cloexec (configure.ac): Set witness.
32436
32437         test-dup2: enhance test
32438         * modules/dup2-tests (Depends-on): Add cloexec.
32439         * tests/test-dup2.c (main): Enhance test.
32440
32441         cloexec: add dup_cloexec
32442         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32443         header and comments.
32444         * lib/cloexec.c (set_cloexec_flag): Add comments.
32445         (dup_cloexec): New function, with mingw implementation borrowed
32446         from...
32447         * lib/w32spawn.h (dup_noinherit): ...here.
32448         * modules/execute (Depends-on): Add cloexec.
32449         * modules/pipe (Depends-on): Likewise.
32450         * modules/cloexec (Depends-on): Add dup2.
32451         * modules/cloexec-tests (Files): New file.
32452         * tests/test-cloexec.c: Likewise.
32453
32454         test-xalloc-die: fix test for mingw
32455         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32456         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32457         directory and .exe suffix off argv[0] output.
32458
32459         test-fseeko: fix test for mingw
32460         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32461         than undefining fseek, so test will pass on mingw.
32462
32463 2009-12-05  Bruno Haible  <bruno@clisp.org>
32464
32465         * lib/progname.h (set_program_name): Clarify specification.
32466         * lib/progname.c (set_program_name): Likewise.
32467         Reported by Jim Meyering.
32468
32469 2009-12-05  Jim Meyering  <meyering@redhat.com>
32470
32471         maint.mk: backslash-escape parens in default regexp
32472         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32473         backslash-escape the literal parentheses.
32474
32475         maint.mk: news-date-check: use grep -E
32476         * top/maint.mk (today): Define a Make variable, not a...
32477         (news-date-check): ...shell variable.
32478         (news-date-regexp): Use the Make variable.
32479         Use grep's -E option.  Change the failing diagnostic to mention
32480         the variable, $(news-date-regexp).
32481
32482 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32483
32484         maintainer-makefile: allow customization of NEWS entry format
32485         * top/maint.mk (news-date-regexp): New overridable variable.
32486         (news-date-check): Use it.
32487
32488 2009-12-04  Eric Blake  <ebb9@byu.net>
32489
32490         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32491         * lib/mgetgroups.h (xgetgroups): New prototype.
32492         * lib/mgetgroups.c (xgetgroups): New wrapper.
32493         (mgetgroups): Handle ENOSYS.
32494         * modules/mgetgroups (Depends-on): Add realloc.
32495         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32496
32497         mgetgroups: avoid argument promotion issues with -1
32498         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32499         for invalid gid_t.
32500         * tests/test-chown.h (getegid, test_chown): Likewise.
32501         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32502
32503 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32504
32505         exclude: Fix header file problems.
32506         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32507
32508 2009-12-01  Jim Meyering  <meyering@redhat.com>
32509
32510         fts: fts_open: do not let an empty string cause immediate failure
32511         This is required in support of GNU rm, for which the command
32512         "rm A '' B" must process and remove both A and B, in spite of
32513         the empty string argument.
32514         * lib/fts.c (fts_open): Do not let the presence of an empty string
32515         cause fts_open to fail immediately.  Most fts-using tools must be
32516         able to process all arguments, in order, and can be expected to
32517         diagnose such arguments themselves.
32518
32519 2009-11-30  Eric Blake  <ebb9@byu.net>
32520
32521         utimens: fix compilation error
32522         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32523         Declare variable at right scope.
32524
32525 2009-11-29  Jim Meyering  <meyering@redhat.com>
32526
32527         bootstrap: handle perl-5.11's changed --version output
32528         * build-aux/bootstrap (get_version): Handle perl separately,
32529         since perl-5.11's --version output is different.
32530
32531 2009-11-28  Jim Meyering  <meyering@redhat.com>
32532
32533         userspec: depend on the inttostr module, too
32534         * modules/userspec (Depends-on): Add inttostr.
32535
32536         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32537         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32538         number of MAXUID when it evaluates to (uid_t) -1.
32539         Likewise for group ID.  Reported by Matt McCutchen in
32540         <http://savannah.gnu.org/bugs/?28113>
32541
32542         userspec: reformat to use spaces, not TABs
32543         * lib/userspec.c: Expand TABs to spaces.
32544         Add Emacs' "indent-tabs-mode: nil" hint.
32545
32546 2009-11-27  Eric Blake  <ebb9@byu.net>
32547
32548         getopt-gnu: flush out another BSD bug
32549         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32550         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32551         flush out BSD bug.
32552         * tests/test-getopt.h (test_getopt): End lists with NULL.
32553         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32554         (test_getopt_long_posix): Enhance test.
32555         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32556         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32557         getopt-gnu.
32558         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32559         Likewise.
32560
32561 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32562
32563         * modules/idpriv-droptemp-tests (Notice): Fix text.
32564
32565 2009-11-27  Jim Meyering  <meyering@redhat.com>
32566
32567         test-xalloc-die: avoid spurious failure due to libtool argv difference
32568         In a libtool-enabled project, this test would fail due to a difference
32569         in the emitted program name, e.g.,
32570         -test-xalloc-die: memory exhausted
32571         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32572         Use program to avoid that.
32573         * modules/xalloc-die-tests (Depends-on): Add progname.
32574         * tests/test-xalloc-die.c: Include progname.h".
32575         (program_name): Remove decl.
32576         (main): Call set_program_name.
32577         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32578
32579 2009-11-26  Richard Jones  <rjones@redhat.com>
32580
32581         w32sock: leave win32 error in place.
32582         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32583
32584 2009-11-26  Eric Blake  <ebb9@byu.net>
32585
32586         init.sh: suggest to use skip_ and fail_ functions in comments
32587         * tests/init.sh: Add a sentence.
32588
32589 2009-11-25  Bruno Haible  <bruno@clisp.org>
32590
32591         init.sh: add documentation in comments
32592         * tests/init.sh: Add some developer and user documentation.
32593
32594 2009-11-26  Jim Meyering  <meyering@redhat.com>
32595
32596         init.sh: accommodate even those who specify bogus srcdir manually
32597         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32598         configure-time tests to be sanitized, so that there is no need to
32599         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32600         (with no double quotes) suffices.  However, since tests may be
32601         invoked manually, and since you may explicitly set srcdir to the
32602         name of a directory containing spaces, do quote its uses here.
32603         * tests/test-pread.sh: Likewise.
32604         Suggested by Bruno Haible.
32605
32606         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32607         * tests/test-pread.sh: Write no data into the pipe, because
32608         test-pread actually reads none.  This avoids a diagnostic,
32609         "bash: echo: write error: Broken pipe", that arises in the unusual
32610         event something is ignoring SIGPIPE, and might be interpreted
32611         as some sort of failure.  Reported by Bruno Haible.
32612
32613 2009-11-25  Jim Meyering  <meyering@redhat.com>
32614
32615         test-pread: cover failure with ESPIPE and EINVAL
32616         * tests/test-pread.c (main): Test for failure, too.
32617         * tests/test-pread.sh: Invoke with stdin on a pipe.
32618         Suggested by Eric Blake.
32619
32620         pread: improvement and fix
32621         * modules/pread (Depends-on): Depend on lseek, for portability to
32622         e.g., mingw.  Suggested by Eric Blake.
32623         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32624
32625         unistd.in.h: correct declaration of pread
32626         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32627         Reported by Richard W.M. Jones.
32628
32629         test-pread.sh: distribute the test script
32630         * modules/pread-tests (Files): Include test-pread.sh.
32631
32632         test-pread.sh: clean up
32633         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32634         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32635         That is unnecessary, since it's always ".".
32636         Suggestion from Eric Blake.
32637
32638         test-pread.sh: make executable
32639         * tests/test-pread.sh: Set executable bit.
32640         Reported by Eric Blake.
32641
32642         correct typo in test-pread.sh
32643         * tests/test-pread.sh: Add #! line.
32644
32645         test pread
32646         * tests/test-pread.c: New file.
32647         * tests/test-pread.sh: Likewise.
32648         * modules/pread-tests: Likewise.
32649
32650         pread: new module
32651         * modules/pread: New file.
32652         * lib/unistd.in.h (pread): Define/declare.
32653         * lib/pread.c (pread): New file.
32654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32655         * modules/unistd (Makefile.am): Substitute witnesses.
32656         * doc/posix-functions/pread.texi (pread): Update.
32657         * MODULES.html.sh: Add pread.
32658
32659 2009-11-25  Jim Meyering  <meyering@redhat.com>
32660
32661         tests/init.sh: new file to be used via most *.sh tests
32662         * tests/init.sh: New file.
32663
32664 2009-11-25  Eric Blake  <ebb9@byu.net>
32665
32666         utimens: work around older Linux failure with symlinks
32667         * lib/utimens.c (lutimensat_works_really): New variable.
32668         (fdutimens, lutimens): Use it to manage kernels that support
32669         nanosecond times on files, but not on symlinks.
32670         Reported by OndÅ™ej Vašík.
32671
32672         utimes: fix configure grammar
32673         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32674
32675 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32676
32677         regex: Fix fastmap for multibyte character ranges.
32678         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32679         characters when a multibyte character range is included.
32680
32681 2009-11-22  Andy Wingo  <wingo@pobox.com>
32682
32683         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32684         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32685
32686 2009-11-24  Bruno Haible  <bruno@clisp.org>
32687
32688         doc: Most *_l functions exist in MacOS X 10.5.
32689         * doc/posix-functions/duplocale.texi: Update platforms list.
32690         * doc/posix-functions/freelocale.texi: Likewise.
32691         * doc/posix-functions/newlocale.texi: Likewise.
32692         * doc/posix-functions/uselocale.texi: Likewise.
32693         * doc/posix-functions/isalnum_l.texi: Likewise.
32694         * doc/posix-functions/isalpha_l.texi: Likewise.
32695         * doc/posix-functions/isblank_l.texi: Likewise.
32696         * doc/posix-functions/iscntrl_l.texi: Likewise.
32697         * doc/posix-functions/isdigit_l.texi: Likewise.
32698         * doc/posix-functions/isgraph_l.texi: Likewise.
32699         * doc/posix-functions/islower_l.texi: Likewise.
32700         * doc/posix-functions/isprint_l.texi: Likewise.
32701         * doc/posix-functions/ispunct_l.texi: Likewise.
32702         * doc/posix-functions/isspace_l.texi: Likewise.
32703         * doc/posix-functions/isupper_l.texi: Likewise.
32704         * doc/posix-functions/iswalnum_l.texi: Likewise.
32705         * doc/posix-functions/iswalpha_l.texi: Likewise.
32706         * doc/posix-functions/iswblank_l.texi: Likewise.
32707         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32708         * doc/posix-functions/iswctype_l.texi: Likewise.
32709         * doc/posix-functions/iswdigit_l.texi: Likewise.
32710         * doc/posix-functions/iswgraph_l.texi: Likewise.
32711         * doc/posix-functions/iswlower_l.texi: Likewise.
32712         * doc/posix-functions/iswprint_l.texi: Likewise.
32713         * doc/posix-functions/iswpunct_l.texi: Likewise.
32714         * doc/posix-functions/iswspace_l.texi: Likewise.
32715         * doc/posix-functions/iswupper_l.texi: Likewise.
32716         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32717         * doc/posix-functions/isxdigit_l.texi: Likewise.
32718         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32719         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32720         * doc/posix-functions/strcoll_l.texi: Likewise.
32721         * doc/posix-functions/strfmon_l.texi: Likewise.
32722         * doc/posix-functions/strftime_l.texi: Likewise.
32723         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32724         * doc/posix-functions/strxfrm_l.texi: Likewise.
32725         * doc/posix-functions/tolower_l.texi: Likewise.
32726         * doc/posix-functions/toupper_l.texi: Likewise.
32727         * doc/posix-functions/towctrans_l.texi: Likewise.
32728         * doc/posix-functions/towlower_l.texi: Likewise.
32729         * doc/posix-functions/towupper_l.texi: Likewise.
32730         * doc/posix-functions/wcscoll_l.texi: Likewise.
32731         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32732         * doc/posix-functions/wctrans_l.texi: Likewise.
32733         * doc/posix-functions/wctype_l.texi: Likewise.
32734         * doc/glibc-functions/strptime_l.texi: Likewise.
32735         * doc/glibc-functions/strtod_l.texi: Likewise.
32736         * doc/glibc-functions/strtof_l.texi: Likewise.
32737         * doc/glibc-functions/strtol_l.texi: Likewise.
32738         * doc/glibc-functions/strtold_l.texi: Likewise.
32739         * doc/glibc-functions/strtoll_l.texi: Likewise.
32740         * doc/glibc-functions/strtoul_l.texi: Likewise.
32741         * doc/glibc-functions/strtoull_l.texi: Likewise.
32742         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32743         * doc/glibc-functions/wcstod_l.texi: Likewise.
32744         * doc/glibc-functions/wcstof_l.texi: Likewise.
32745         * doc/glibc-functions/wcstol_l.texi: Likewise.
32746         * doc/glibc-functions/wcstold_l.texi: Likewise.
32747         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32748         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32749         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32750
32751 2009-11-24  Bruno Haible  <bruno@clisp.org>
32752
32753         duplocale: Fix logic bug.
32754         * lib/duplocale.c: Don't include <langinfo.h>.
32755         (_NL_LOCALE_NAME): Remove macro.
32756         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32757         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32758
32759 2009-11-23  Jim Meyering  <meyering@redhat.com>
32760
32761         test-update-copyright: don't hard-code /usr/bin/perl
32762         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32763         perl to print the current year.  Gilles Espinasse reported that
32764         the replaced use of perl was hard-coded as /usr/bin/perl.
32765
32766 2009-11-23  Bruno Haible  <bruno@clisp.org>
32767
32768         duplocale: Add support for glibc 2.3.x.
32769         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32770
32771 2009-11-22  Bruno Haible  <bruno@clisp.org>
32772
32773         vasnprintf: Tiny optimization.
32774         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32775         MacOS X.
32776
32777 2009-11-22  Bruno Haible  <bruno@clisp.org>
32778
32779         Tests for module 'duplocale'.
32780         * modules/duplocale-tests: New file.
32781         * tests/test-duplocale.c: New file.
32782
32783         New module 'duplocale'.
32784         * m4/duplocale.m4: New file.
32785         * lib/locale.in.h (duplocale): New declaration.
32786         * lib/duplocale.c: New file.
32787         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32788         gl_LOCALE_H_DEFAULTS): New macros.
32789         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32790         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32791         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32792         REPLACE_DUPLOCALE.
32793         * modules/duplocale: New file.
32794         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32795
32796 2009-11-22  Bruno Haible  <bruno@clisp.org>
32797
32798         * modules/locale-tests (configure.ac): Test for newlocale function.
32799         * tests/test-locale.c: When the system has extended locale functions,
32800         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32801
32802         locale: Make locale_t available when possible.
32803         * lib/locale.in.h: Include <xlocale.h> when it exists.
32804         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32805         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32806         * modules/locale (Depends-on): Add extensions.
32807         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32808         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32809
32810 2009-11-22  Bruno Haible  <bruno@clisp.org>
32811
32812         Add comments.
32813         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32814         invocation.
32815         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32816         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32817         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32818
32819 2009-11-22  Bruno Haible  <bruno@clisp.org>
32820
32821         error: account for the possibility of freopen (stdout).
32822         * lib/error.c: Include <unistd.h>.
32823         (flush_stdout): New function, extracted from error and error_at_line.
32824         Determine stdout's fd dynamically.
32825         (error, error_at_line): Invoke flush_stdout.
32826         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32827         * modules/error (Depends-on): Add unistd.
32828
32829 2009-11-22  Bruno Haible  <bruno@clisp.org>
32830
32831         diffseq: Add comment.
32832         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32833
32834 2009-11-22  Jim Meyering  <meyering@redhat.com>
32835
32836         c-stack: avoid defining an unused static function
32837         * lib/c-stack.c (find_stack_direction): Do not define this function
32838         when it will not be used.
32839
32840         diffseq: avoid spurious gcc warnings
32841         * lib/diffseq.h (IF_LINT2): Define.
32842         (compareseq): Use it to initialize two members of "part".
32843         This avoids two used-uninitialized warnings.
32844
32845 2009-11-21  Jim Meyering  <meyering@redhat.com>
32846
32847         c-stack: avoid "ignoring return value of `write'" warning
32848         * lib/c-stack.c: Include "ignore-value.h".
32849         (die): Explicitly ignore each write return value.
32850         * modules/c-stack (Depends-on): Add ignore-value.
32851
32852 2009-11-21  Bruno Haible  <bruno@clisp.org>
32853
32854         diffseq: reduce scope of variable 'best'.
32855         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32856         variable, earlier used for two different purposes.
32857
32858 2009-11-21  Jim Meyering  <meyering@redhat.com>
32859
32860         diffseq: remove useless assignment to "best"
32861         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32862         assignment.  At that point "best" is already guaranteed to be zero.
32863
32864 2009-11-20  Eric Blake  <ebb9@byu.net>
32865
32866         build: mention ftp redirector in release announcements
32867         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32868         values that used to come from cfg.mk; mention FTP redirect URL.
32869         * build-aux/announce-gen: Mention the mirror list.
32870         Suggested by Karl Berry.
32871
32872         nanosleep: improve port to mingw
32873         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32874         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32875         LIB_NANOSLEEP, but only when needed.
32876         * modules/select (Link): Document LIBSOCKET.
32877         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32878         enough.
32879
32880         nanosleep: work around cygwin bug
32881         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32882         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32883         bug.
32884         (getnow): Delete, not needed.
32885         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32886         LIB_CLOCK_GETTIME.
32887         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32888         clock-time, gettime.
32889         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32890         bug.
32891         * modules/nanosleep-tests: New test.
32892         * tests/test-nanosleep.c: New file.
32893
32894         sleep: work around cygwin bug
32895         * lib/sleep.c (rpl_sleep): Work around the bug.
32896         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32897         (gl_PREREQ_SLEEP): Delete unused macro.
32898         * modules/sleep (Depends-on): Add verify.
32899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32900         * modules/unistd (Makefile.am): Substitute witness.
32901         * lib/unistd.in.h (sleep): Update prototype.
32902         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32903         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32904         * modules/sleep-tests (Depends-on): Check for alarm.
32905
32906 2009-11-20  Jim Meyering  <meyering@redhat.com>
32907
32908         maint.mk: improve sc_prohibit_magic_number_exit
32909         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32910         so it does not match uses like System.exit(1).
32911         Add comments showing how to correct all offenders.
32912
32913 2009-11-19  Eric Blake  <ebb9@byu.net>
32914
32915         xalloc-die-tests: add missing library
32916         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32917
32918         test-xvasprintf: silence compiler warnings
32919         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32920         empty string from gcc.
32921
32922 2009-11-19  Jim Meyering  <meyering@redhat.com>
32923
32924         xfreopen: new module, from coreutils
32925         * modules/xfreopen: New module.
32926         * lib/xfreopen.c: New file.
32927         * lib/xfreopen.h: New file.
32928         * MODULES.html.sh (File stream based Input/Output"): Add it.
32929
32930 2009-11-19  Eric Blake  <ebb9@byu.net>
32931
32932         manywarnings: depend on warnings
32933         * modules/manywarnings (Depends-on): Add warnings.
32934
32935         build: avoid compiler warnings
32936         * lib/select.c (rpl_select): Delete unused variable.
32937         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32938
32939 2009-11-18  Eric Blake  <ebb9@byu.net>
32940
32941         tests: avoid false negative with --with-packager
32942         * tests/test-version-etc.sh: Discard packager information.
32943         * tests/test-argp-version-etc-1.sh: Likewise.
32944         Reported by Mike Frysinger.
32945
32946         utimens: fix regression on Solaris
32947         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32948         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32949         can only change fd timestamps via futimesat.  Instead, use an
32950         additional witness macro to avoid BSD bug.
32951         Reported by Jim Meyering.
32952
32953 2009-11-17  Eric Blake  <ebb9@byu.net>
32954
32955         usleep: use it to simplify tests
32956         * modules/stat-time-tests (Depends-on): Add usleep.
32957         (configure.ac): Drop usleep check.
32958         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32959         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32960         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32961         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32962         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32963         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32964         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32965         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32966         Likewise.
32967         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32968         * tests/test-lchown.h (nap): Likewise.
32969         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32970         * tests/test-stat-time.c (nap): Likewise.
32971         * tests/test-utimens-common.h (nap): Update comments.
32972
32973         usleep: new module
32974         * modules/usleep: New file.
32975         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32976         * lib/usleep.c (usleep): Likewise.
32977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32978         * modules/unistd (Makefile.am): Substitute witnesses.
32979         * lib/unistd.in.h (usleep): Add declaration.
32980         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32981         * MODULES.html.sh (Date and time): Likewise.
32982         * modules/usleep-tests (Depends-on): New test.
32983         * tests/test-usleep.c: New file.
32984
32985         chown: work around OpenBSD bug
32986         * lib/chown.c (rpl_chown): Work around the bug.
32987         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32988         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32989         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32990         * modules/chown (Depends-on): Add stdbool.
32991         * modules/lchown (Depends-on): Likewise.
32992         * doc/posix-functions/chown.texi (chown): Document the bug.
32993         * doc/posix-functions/lchown.texi (lchown): Likewise.
32994         * tests/test-lchown.h (test_chown): Relax test.
32995
32996         mkstemp: avoid conflict with C++ keyword template
32997         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32998         * lib/mkostemp.c (mkostemp): Likewise.
32999         * lib/mkostemps.c (mkostemps): Likewise.
33000         * lib/mkstemp.c (mkstemp): Likewise.
33001         * lib/mkstemps.c (mkstemps): Likewise.
33002
33003         xalloc-die-tests: optimize
33004         * tests/test-xalloc-die.sh: Reduce number of processes.
33005
33006 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33007
33008         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33009         patch from ludo@gnu.org (Ludovic Courtès).
33010
33011 2009-11-17  Jim Meyering  <meyering@redhat.com>
33012
33013         version-etc: use proper license string
33014         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33015         * modules/version-etc-fsf: Likewise.
33016
33017 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33018
33019         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33020         printed to stdout.  Deal with EOL differences.
33021
33022 2009-11-17  Eric Blake  <ebb9@byu.net>
33023
33024         unsetenv: work around Solaris bug
33025         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33026         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33027         Reported by Jim Meyering.
33028
33029         vasnprintf: avoid compiler warnings
33030         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33031         variables.
33032         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33033
33034 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33035
33036         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33037         settings since xalloc-die is no longer the self test,
33038         xalloc-die.sh is.
33039
33040 2009-11-17  Jim Meyering  <meyering@redhat.com>
33041
33042         test-xalloc-die.sh: make the code agree with the commit log
33043         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33044         at the end, just in case you happen to have a test-xalloc-die
33045         program in some other PATH directory.
33046
33047         test-xalloc-die.sh: fix a portability bug
33048         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33049         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33050         Otherwise, argv[0] (as often seen in diagnostics) would be too
33051         system-dependent, sometimes with, and sometimes without the leading "./".
33052
33053         version-etc-fsf: relax license to LGPLv3+
33054         * modules/version-etc-fsf (License): Relax license.
33055
33056 2009-11-16  Eric Blake  <ebb9@byu.net>
33057
33058         xalloc-die-tests: avoid printing null pointer
33059         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33060         shell script.
33061         * tests/test-xalloc-die.c (program_name): Declare.
33062         * tests/test-xalloc-die.sh (tmpfiles): New file.
33063
33064         setenv, unsetenv: work around various bugs
33065         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33066         (setenv) [HAVE_SETENV]: Work around bugs.
33067         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33068         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33069         for bugs.
33070         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33071         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33073         * modules/stdlib (Makefile.am): Update substitutions.
33074         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33075         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33076         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33077         * modules/setenv-tests: New test.
33078         * modules/unsetenv-tests: Likewise.
33079         * tests/test-setenv.c: New file.
33080         * tests/test-unsetenv.c: Likewise.
33081
33082 2009-11-16  Jim Meyering  <meyering@redhat.com>
33083
33084         version-etc: relax license to LGPLv3+
33085         * modules/version-etc (License): Relax license.
33086
33087         better AC_REQUIRE expanded-before-required-warning avoidance
33088         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33089         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33090         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33091         which is no longer needed.
33092
33093 2009-11-16  Eric Blake  <ebb9@byu.net>
33094
33095         test-freading: clean up temporary file
33096         * tests/test-freading.c (main): Remove file on success, and use
33097         ASSERT more liberally.
33098         Reported by Jim Meyering.
33099
33100 2009-11-16  Jim Meyering  <meyering@redhat.com>
33101
33102         avoid new AC_REQUIRE expanded-before-required warnings
33103         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33104         merely using it.
33105         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33106         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33107
33108 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33109
33110         * tests/test-xalloc-die.c: New file.
33111         * modules/xalloc-die-tests: New file.
33112         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33113         XFAIL_TESTS so it can be appended by modules.
33114
33115 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33116
33117         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33118         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33119
33120 2009-11-14  Eric Blake  <ebb9@byu.net>
33121
33122         fnmatch: avoid compiler warning
33123         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33124         to silence compiler warning about mismatch signedness in ?:.
33125         Reported by Robert Millan.
33126
33127         intprops: add double-inclusion guard
33128         * lib/intprops.h: Allow idempotent includes.
33129         Suggested by Bruce Korb.
33130
33131         openat: detect Solaris fchownat bug
33132         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33133         penalizing glibc chownat when only lchownat is broken.
33134         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33135         trailing slash bugs.
33136         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33137         * modules/openat-tests (Files): Include more files.
33138         (Depends-on): Add mgetgroups, sleep, stat-time.
33139         (configure.ac): Add additional checks.
33140         (Makefile.am): Build new test.
33141         * tests/test-fchownat.c: New file.
33142
33143         lchown: detect Solaris and FreeBSD bug
33144         * lib/lchown.c (rpl_lchown): Work around bug.
33145         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33147         * modules/unistd (Makefile.am): Populate it.
33148         * lib/unistd.in.h (lchown): Update declaration.
33149         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33150         * modules/lchown-tests: New file.
33151         * tests/test-lchown.h (test_lchown): Likewise.
33152         * tests/test-lchown.c (main): Likewise.
33153
33154         chown: detect Solaris and FreeBSD bug
33155         * lib/chown.c (rpl_chown): Work around bug.
33156         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33157         (gl_PREREQ_CHOWN): Delete.
33158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33159         * modules/unistd (Makefile.am): Populate it.
33160         * lib/unistd.in.h (chown): Update declaration.
33161         * lib/lchown.c (chown): Update client.
33162         * modules/lchown (Depends-on): Add lstat.
33163         * doc/posix-functions/chown.texi (chown): Document the bug.
33164         * doc/posix-functions/getgroups.texi (getgroups): Document
33165         getgroups pitfall.
33166         * modules/chown-tests: New file.
33167         * tests/test-chown.h (test_chown): Likewise.
33168         * tests/test-chown.c (main): Likewise.
33169
33170 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33171
33172         gnulib-tool: correctly detect absence of m4 directories
33173         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33174
33175 2009-11-14  Jim Meyering  <meyering@redhat.com>
33176
33177         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33178         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33179
33180 2009-11-14  John W. Eaton  <jwe@gnu.org>
33181
33182         strftime.h: wrap funtion declaration in extern "C" block
33183         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33184
33185 2009-11-13  Eric Blake  <ebb9@byu.net>
33186
33187         getgroups: avoid compiler warning
33188         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33189
33190         getgroups: work around FreeBSD bug
33191         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33192         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33193         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33194         * tests/test-getgroups.c (main): Fix buffer overrun.
33195
33196         getgroups: avoid compilation failure
33197         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33198         * modules/getgroups (Depends-on): Add stdint.
33199
33200 2009-11-13  Jim Meyering  <meyering@redhat.com>
33201
33202         test-getgroups: avoid compilation failure
33203         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33204
33205 2009-11-13  Eric Blake  <ebb9@byu.net>
33206
33207         mgetgroups: new module, taken from coreutils
33208         * modules/mgetgroups: New file.
33209         * lib/mgetgroups.h: Likewise.
33210         * lib/mgetgroups.c (mgetgroups): Likewise.
33211         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33212         * MODULES.html.sh (Users and groups): Mention it.
33213
33214         getgroups: don't expose GETGROUPS_T to user
33215         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33216         an element at a time if GETGROUPS_T is wrong size.
33217         * lib/getugroups.h (getugroups): Change signature.
33218         * lib/unistd.in.h (getgroups): Likewise.
33219         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33220         signature needs fixing.
33221         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33222         AC_TYPE_GETGROUPS.
33223         * modules/group-member (Depends-on): Add getgroups.
33224         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33225         (group_member): Rely on getgroups replacement.
33226         * lib/getugroups.c (getugroups): Use gid_t.
33227         * tests/test-getgroups.c (main): Likewise.
33228         * NEWS: Mention the signature change.
33229         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33230         problem with signature.
33231         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33232         GETGROUPS_T is still useful for setgroups.
33233
33234         getgroups, getugroups: provide stubs for mingw
33235         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33236         * lib/getugroups.c (getugroups): Likewise.
33237         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33238         function.  Modernize replacement scheme.
33239         (gl_PREREQ_GETGROUPS): Delete.
33240         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33241         * modules/getgroups (configure.ac): Declare witness.
33242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33243         * modules/unistd (Depends-on): Substitute witness.
33244         * lib/unistd.in.h (getgroups): Declare replacement.
33245
33246         getgroups: avoid calling exit
33247         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33248         drop xalloc.
33249         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33250         dependencies.
33251         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33252         exiting, in the rare case of malloc failure.
33253
33254         getgroups: fix logic error
33255         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33256         has more than 20 groups.
33257         * modules/getgroups-tests: New test.
33258         * tests/test-getgroups.c: New file.
33259
33260 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33261
33262         * tests/test-base64.c: Improve.
33263
33264 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33265
33266         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33267         Blake <ebb9@byu.net>.
33268
33269 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33270
33271         * tests/test-xvasprintf.c: Add %s%s related checks.
33272
33273 2009-11-12  Eric Blake  <ebb9@byu.net>
33274
33275         version-etc: match standards.texi style
33276         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33277         and use <> only for URLs.
33278
33279 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33280
33281         fts: do not fail on a submount during traversal
33282         * lib/fts.c (fts_build): Read the stat info again after opening
33283         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33284         Original report at http://bugzilla.redhat.com/501848.
33285
33286 2009-11-12  Jim Meyering  <meyering@redhat.com>
33287
33288         bootstrap: sync from coreutils
33289         * build-aux/bootstrap (bootstrap_epilogue): New function.
33290         Use git_modules_config in one more place.  This make bootstrap's
33291         --gnulib-srcdir option more useful for testing.
33292
33293         bootstrap: generalize autoheader check
33294         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33295         AC_CONFIG_HEADERS.
33296
33297 2009-11-11  Eric Blake  <ebb9@byu.net>
33298
33299         mkfifoat: use new modules for Solaris and BSD bugs
33300         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33301         * lib/mkfifoat.c (mknodat): Split...
33302         * lib/mknodat.c (mknodat): ...into new file.
33303         * modules/mkfifoat (Files): Ship new file.
33304         (Depends-on): Add mkfifo, mknod.
33305         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33306         (Depends-on): Add symlink.
33307         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33308         redundant with test_mkfifo.h.
33309         (do_mkfifoat, do_mknodat): New helpers.
33310
33311         mknod: new module
33312         * modules/mknod: New file.
33313         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33314         * lib/mknod.c (mknod): Likewise.
33315         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33316         defaults.
33317         * modules/sys_stat (Makefile.am): Substitute them.
33318         * lib/sys_stat.in.h (mknod): Declare replacement.
33319         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33320         Document it.
33321         * doc/posix-functions/mknod.texi (mknod): Likewise.
33322         * modules/mknod-tests: New test.
33323         * tests/test-mknod.c: Likewise.
33324
33325         mkfifo: new module
33326         * modules/mkfifo: New file.
33327         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33328         * lib/mkfifo.c (mkfifo): Likewise.
33329         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33330         defaults.
33331         * modules/sys_stat (Makefile.am): Substitute them.
33332         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33333         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33334         Document it.
33335         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33336         * modules/mkfifo-tests: New test.
33337         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33338         from test-mkfifoat.c.
33339         * tests/test-mkfifo.c: New file.
33340
33341         readlink: detect FreeBSD bug
33342         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33343         slash on symlink.
33344         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33345         * tests/test-readlink.h (test_readlink): Enhance test.
33346
33347         symlink: detect FreeBSD bug
33348         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33349         slash on symlink.
33350         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33351         * tests/test-symlink.h (test_symlink): Enhance test.
33352
33353 2009-11-10  Eric Blake  <ebb9@byu.net>
33354
33355         link: detect FreeBSD bug
33356         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33357         symlink.
33358         * doc/posix-functions/link.texi (link): Document the bug.
33359         * tests/test-link.h (test_link): Enhance test.
33360         * tests/test-linkat.c (main): Update caller.
33361
33362         unlink, remove: detect FreeBSD bug
33363         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33364         slash on symlink.
33365         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33366         * doc/posix-functions/remove.texi (remove): Likewise.
33367         * tests/test-unlink.h (test_unlink): Enhance test.
33368         * tests/test-remove.c (main): Likewise.
33369
33370 2009-11-09  Eric Blake  <ebb9@byu.net>
33371
33372         rename: detect FreeBSD bug
33373         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33374         slash on symlink.
33375         * modules/renameat-tests (Depends-on): Add filenamecat.
33376         * tests/test-rename.h (test_rename): Allow one more errno.
33377         * tests/test-renameat.c (main): Likewise.
33378         * doc/posix-functions/rename.texi (rename): Document the bug.
33379
33380         open: detect FreeBSD bug
33381         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33382         symlink.
33383         * doc/posix-functions/open.texi (open): Document the bug.
33384         * doc/posix-functions/utimes.texi (utimes): Likewise.
33385         * tests/test-open.h (test_open): Add parameters, and test symlink
33386         handling.
33387         * tests/test-open.c (main): Adjust caller.
33388         * tests/test-fcntl-safer.c (main): Likewise.
33389         * modules/open-tests (Depends-on): Add stdbool, symlink.
33390         * modules/fcntl-safer-tests (Depends-on): Likewise.
33391         * tests/test-openat.c (main): Add test-open tests.
33392
33393         stat: detect FreeBSD bug
33394         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33395         symlink.
33396         * doc/posix-functions/stat.texi (stat): Document the bug.
33397         * tests/test-stat.h (test_stat_func): Add argument.
33398         * tests/test-stat.c (main): Adjust caller.
33399         * tests/test-fstatat.c (main): Likewise.
33400         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33401         Reported by Jim Meyering.
33402
33403 2009-11-09  James Youngman  <jay@gnu.org>
33404
33405         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33406         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33407
33408 2009-11-08  Jim Meyering  <meyering@redhat.com>
33409
33410         utimens: remove invalid futimesat call
33411         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33412         It used the file descriptor of the target file as the DIR_FD
33413         parameter and NULL as the file name.  That caused failure with
33414         errno == EFAULT on FreeBSD-8.0-rc2
33415
33416 2009-11-07  Eric Blake  <ebb9@byu.net>
33417
33418         fflush, freadseek: use fseeko, not fseek
33419         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33420         (clear_ungetc_buffer): Avoid potential problems on large files.
33421         * lib/freadseek.c (freadseek): Likewise.
33422         * modules/freadseek (Depends-on): Add fseeko.
33423         * modules/fseek (configure.ac): Set a witness.
33424         * tests/test-fflush.c (main): Use fseeko.
33425         * tests/test-fpurge.c (fseek): Disable link warning.
33426         * tests/test-freadable.c (fseek): Likewise.
33427         * tests/test-freading.c (fseek): Likewise.
33428         * tests/test-fseeko.c (fseek): Likewise.
33429         * tests/test-ftell.c (fseek): Likewise.
33430         * tests/test-ftello.c (fseek): Likewise.
33431         * tests/test-fwritable.c (fseek): Likewise.
33432         * tests/test-fwriting.c (fseek): Likewise.
33433
33434 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33435
33436         * modules/memchr (Depends-on): Drop getpagesize dependency.
33437
33438 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33439
33440         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33441         Reported by Ludovic Courtès.
33442         * build-aux/pmccabe2html: Improve example usage.
33443         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33444
33445 2009-11-06  Jim Meyering  <meyering@redhat.com>
33446
33447         do-release-commit-and-tag: New module.
33448         Automate the release-commit and tag process.
33449         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33450         * modules/do-release-commit-and-tag: New file.
33451         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33452
33453 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33454
33455         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33456         because test-select.c uses inet_pton.
33457
33458 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33459
33460         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33461         GETADDRINFO_LIB.  Bump serial number.
33462         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33463         Suggested by Eric Blake <ebb9@byu.net>.
33464
33465 2009-11-05  Eric Blake  <ebb9@byu.net>
33466
33467         strtod: detect darwin bug
33468         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33469         Reported by Leo Davis.
33470
33471         freopen-safer: new module
33472         * modules/freopen-safer: New module.
33473         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33474         * lib/freopen-safer.c (freopen_safer): New file.
33475         * lib/stdio-safer.h (freopen_safer): New declaration.
33476         * lib/stdio--.h (freopen): New override.
33477         * MODULES.html.sh (File stream based Input/Output): Mention it.
33478         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33479         freopen-safer module.
33480         * doc/posix-functions/stderr.texi (stderr): Likewise.
33481         * doc/posix-functions/stdin.texi (stdin): Likewise.
33482         * doc/posix-functions/stdout.texi (stdout): Likewise.
33483         * modules/freopen-safer-tests: New test.
33484         * tests/test-reopen-safer.c: New file.
33485
33486 2009-11-05  Jim Meyering  <meyering@redhat.com>
33487
33488         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33489         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33490
33491 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33492
33493         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33494
33495 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33496
33497         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33498
33499 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33500
33501         Fix link error.
33502         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33503         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33504
33505 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33506
33507         * tests/test-func.c: Also test value of __func__.
33508
33509 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33510
33511         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33512         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33513
33514 2009-11-05  Bruno Haible  <bruno@clisp.org>
33515
33516         Fix link error.
33517         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33518         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33519         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33520
33521 2009-11-05  Bruno Haible  <bruno@clisp.org>
33522
33523         Tests for module 'inet_pton'.
33524         * modules/inet_pton-tests: New file.
33525         * tests/test-inet_pton.c: New file.
33526
33527 2009-11-05  Bruno Haible  <bruno@clisp.org>
33528
33529         Tests for module 'inet_ntop'.
33530         * modules/inet_ntop-tests: New file.
33531         * tests/test-inet_ntop.c: New file.
33532
33533 2009-11-04  Eric Blake  <ebb9@byu.net>
33534
33535         stdlib-safer: wrap all mkstemp variants
33536         * modules/mkostemp (configure.ac): Set witness.
33537         * modules/mkostemps (configure.ac): Likewise.
33538         * modules/mkstemps (configure.ac): Likewise.
33539         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33540         (mkstemps_safer): Wrap more functions.
33541         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33542         wrapping.
33543         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33544         (mkstemps_safer): Implement the wrappers.
33545
33546         mkstemps, mkostemps: new modules
33547         * modules/mkostemps: New module.
33548         * modules/mkstemps: Likewise.
33549         * lib/mkostemps.c (mkostemps): New file.
33550         * lib/mkstemps.c (mkstemps): Likewise.
33551         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33552         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33554         * modules/stdlib (Makefile.am): Substitute them.
33555         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33556         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33557         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33558         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33559         * MODULES.html.sh (File system functions): Mention them.
33560
33561         tempname: resync from glibc
33562         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33563         same values for __GT_FILE as glibc.  Abort even when assertions
33564         are disabled.
33565         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33566         match its value otherwise.  Allow idempotent inclusion.
33567         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33568         * lib/mkostemp.c (mkostemp): Likewise.
33569         * lib/mkstemp.c (mkstemp): Likewise.
33570         * lib/tmpfile.c (tmpfile): Likewise.
33571         * NEWS: Document this.
33572
33573         utimens: fix use of futimens on older Linux
33574         * lib/utimens.c (fdutimens): Use updated, rather than original,
33575         timespec to avoid bug in older Linux kernel.
33576         Reported by Simon Josefsson.
33577
33578 2009-11-04  Bruno Haible  <bruno@clisp.org>
33579
33580         Make num_processors more flexible and consistent.
33581         * lib/nproc.h (enum nproc_query): New type.
33582         (num_processors): Add a 'query' argument.
33583         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33584         (num_processors): Add a 'query' argument. Test the value of the
33585         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33586         mingw, count the number of CPUs available for the current process.
33587         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33588         Check for sched_getaffinity and sched_getaffinity_np.
33589         * modules/nproc (Depends-on): Add c-ctype, extensions.
33590         * NEWS: Mention the change.
33591
33592 2009-11-03  Bruno Haible  <bruno@clisp.org>
33593
33594         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33595
33596 2009-11-03  Jim Meyering  <meyering@redhat.com>
33597
33598         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33599         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33600         if it is defined.
33601
33602 2009-11-02  Eric Blake  <ebb9@byu.net>
33603
33604         mktime, timegm: share common declaration
33605         * lib/mktime-internal.h: New file.
33606         * lib/mktime.c: Use it rather than open-coding a declaration.
33607         * lib/timegm.c: Likewise.
33608         * modules/mktime (Files): Ship it.
33609         * modules/timegm (Files): Likewise.
33610         Suggested by Bruno Haible.
33611
33612         test-update-copyright: update test to match script changes
33613         * tests/test-update-copyright.sh: Avoid hard-coding perl
33614         location.  Don't update *.bak created by earlier runs.
33615
33616 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33617             Simon Josefsson  <simon@josefsson.org>
33618             Bruno Haible  <bruno@clisp.org>
33619
33620         Fix link error on Solaris 8.
33621         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33622         also in libnsl. Define also INET_PTON_LIB.
33623         * modules/inet_pton (Link): New section.
33624
33625 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33626             Bruno Haible  <bruno@clisp.org>
33627
33628         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33629         * modules/inet_ntop (Link): New section.
33630         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33631
33632 2009-11-02  Eric Blake  <ebb9@byu.net>
33633
33634         maint: avoid compiler warnings in m4 macros
33635         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33636         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33637
33638 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33639
33640         * m4/pmccabe2html.m4: Remove file.
33641         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33642         function.  Change maintainer.
33643         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33644         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33645         Courtès).
33646
33647 2009-10-31  Eric Blake  <ebb9@byu.net>
33648
33649         fseeko: fix m4 regression
33650         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33651         regression from 2009-10-27.
33652         Reported by Ralf Wildenhues.
33653
33654 2009-10-31  Jim Meyering  <meyering@redhat.com>
33655
33656         inttostr: aesthetics and improved (compile-time) safety
33657         Define inttype_is_signed rather than inttype_is_unsigned,
33658         since the sole use is via "#if inttype_is_signed".
33659         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33660         inttype_is_unsigned.
33661         * lib/offtostr.c (inttype_is_signed): Likewise.
33662         * lib/uinttostr.c (inttype_is_signed): Likewise.
33663         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33664         * lib/inttostr.c (inttostr): Use verify to cross-check the
33665         inttype_is_signed value and the signedness of the actual type.
33666         * modules/inttostr (Depends-on): Add verify.
33667
33668 2009-10-30  Eric Blake  <ebb9@byu.net>
33669
33670         build: avoid compiler warnings
33671         * lib/fchmodat.c (lchmod): Mark unused variables.
33672         * lib/getopt.c (_getopt_initialize): Likewise.
33673         * lib/mktime.c (__mktime_internal): Provide prototype.
33674         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33675         older gcc that do not understand #pragma GCC diagnostic.
33676         * lib/uinttostr.c (inttype_is_unsigned): Define.
33677         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33678
33679 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33680
33681         stat: fix compilation on AIX
33682         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33683         only see struct stat64.
33684
33685 2009-10-30  Eric Blake  <ebb9@byu.net>
33686
33687         exclude: make more robust
33688         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33689         rather than masking a coding bug.
33690         Suggested by Bruno Haible.
33691
33692 2009-10-30  Jim Meyering  <meyering@redhat.com>
33693
33694         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33695         Rather than putting #!/usr/bin/perl on the first line,
33696         start with a variant of what's recommended by "man perlrun" that
33697         invokes the first "perl" program from your shell's search path.
33698         * build-aux/gitlog-to-changelog: Replace #!... as above.
33699         Add a "Local Variables" perl mode setting.
33700         Prompted by a patch from Ludovic Courtès.
33701         Improved by Eric Blake.
33702         * build-aux/useless-if-before-free: Likewise.
33703         * build-aux/announce-gen: Likewise.
33704         * build-aux/update-copyright: Likewise.
33705
33706 2009-10-29  Eric Blake  <ebb9@byu.net>
33707
33708         filenamecat-lgpl: adjust clients
33709         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33710         filenamecat.
33711         * modules/renameat (Depends-on): Likewise.
33712
33713         filenamecat: split into filenamecat-lgpl
33714         * modules/filenamecat-lgpl: New module.
33715         * modules/filenamecat (Files): Move library-safe files into
33716         filenamecat-lgpl.
33717         (Depends-on): Add filenamecat-lgpl.
33718         (configure.ac): Declare witness.
33719         * lib/filenamecat.h (file_name_concat): Only declare when using
33720         GPL module.
33721         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33722         Move...
33723         * lib/filenamecat-lgpl.c: ...into new file.
33724         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33725         (gl_FILE_NAME_CONCAT): Use it.
33726         * MODULES.html.sh (File system functions): Mention new module.
33727
33728         argp: avoid memory leak
33729         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33730         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33731         base_name, since the latter malloc()s and can call exit().
33732         Leak introduced 2006-07-03.
33733
33734         dirname-lgpl: adjust clients that don't need full dirname
33735         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33736         * modules/filenamecat (Depends-on): Likewise.
33737         * modules/linkat (Depends-on): Likewise.
33738         * modules/mkancesdirs (Depends-on): Likewise.
33739         * modules/mkdir (Depends-on): Likewise.
33740         * modules/openat (Depends-on): Likewise.
33741         * modules/savewd (Depends-on): Likewise.
33742         * modules/rename (Depends-on): Likewise.
33743         (License): Relax license.
33744         * modules/mkdir-tests (Depends-on): Drop progname.
33745         (Makefile.am): Delete unneeded LDADD.
33746         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33747
33748         dirname: split into dirname-lgpl
33749         * modules/dirname-lgpl: New module.
33750         * modules/dirname (Files): Move library-safe files into
33751         dirname-lgpl.
33752         (Depends-on): Add dirname-lgpl.
33753         (configure.ac): Declare witness.
33754         * modules/double-slash-root (License): Relax license.
33755         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33756         module.
33757         * lib/dirname.c (dir_len, mdir_name): Move...
33758         * lib/dirname-lgpl.c: ...into new file.
33759         * lib/basename.c (last_component, base_len): Move...
33760         * lib/basename-lgpl.c: ...into new file.
33761         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33762         (gl_DIRNAME): Use it.
33763         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33764         Mention new module.
33765         * modules/dirname-tests (Depends-on): Add progname.
33766         * tests/test-dirname.c (program_name): Delete.
33767
33768         mkdir: make safe for libraries
33769         * modules/mkdir (Depends-on): Drop xalloc.
33770         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33771         exit.
33772
33773         tests: avoid some compiler warnings
33774         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33775         literals.
33776         * tests/test-memchr.c (main): Avoid type mismatch.
33777         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33778         * tests/test-base64.c (main): Likewise.
33779         * tests/test-getdelim.c (main): Likewise.
33780         * tests/test-gethostname.c (main): Likewise.
33781         * tests/test-getline.c (main): Likewise.
33782         * tests/test-netinet_in.c (main): Likewise.
33783         * tests/test-select.c (open_server_socket, main): Likewise.
33784         * tests/test-select-stdin.c (main): Likewise.
33785         * tests/test-sockets.c (main): Likewise.
33786         * tests/test-strsignal.c (main): Likewise.
33787         * tests/test-sys_select.c (main): Likewise.
33788         * tests/test-sys_socket.c (main): Likewise.
33789         * tests/test-u64.c (main): Likewise.
33790         * tests/test-xfprintf-posix.c (main): Likewise.
33791         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33792
33793         sockets: avoid compiler warning
33794         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33795
33796         maint: detect usage(1) and other suspicious exits
33797         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33798
33799 2009-10-29  Jim Meyering  <meyering@redhat.com>
33800
33801         timespec: long-to-int truncation could make timespec_cmp malfunction
33802         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33803         a multiple of 2^32 nanoseconds as no difference.
33804
33805 2009-10-28  Jim Meyering  <meyering@redhat.com>
33806
33807         fprintftime: wrap macro code argument in "do {...} while(0)"
33808         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33809         cpy macro must be a statement that can be followed by a semicolon.
33810         Now that the else clause contains a comment and is hence longer
33811         than one line, I require curly braces.  That in turn requires
33812         that we wrap this code block in the standard do...while(0).
33813
33814         fprintftime: remove stray semicolon from previous change
33815         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33816
33817         fprintftime: avoid a warning about ignored fwrite return value
33818         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33819         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33820         that is unsafe.
33821         * modules/fprintftime (Depends-on): Add ignore-value.
33822
33823         exclude: avoid an unwarranted warning
33824         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33825
33826 2009-10-27  Eric Blake  <ebb9@byu.net>
33827
33828         fseek: avoid compilation failure when fflush is replaced
33829         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33830         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33831         module is in use.
33832         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33833         module is not in use; since REPLACE_FSEEK worked otherwise.
33834         (GNULIB_FTELLO): Likewise for ftell.
33835         Reported by Ian Beckwith and others.
33836
33837 2009-10-27  Bruno Haible  <bruno@clisp.org>
33838
33839         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33840         Reported by Jim Meyering.
33841
33842 2009-10-27  Jim Meyering  <jim@meyering.net>
33843             Bruno Haible  <bruno@clisp.org>
33844
33845         Avoid warning despite dropping the return value of fwrite.
33846         * lib/unicodeio.c: Include ignore-value.h.
33847         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33848         * modules/unicodeio (Depends-on): Add ignore-value.
33849
33850 2009-10-26  Eric Blake  <ebb9@byu.net>
33851
33852         areadlinkat: fix fallback path
33853         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33854         pointer and zero.
33855
33856 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33857
33858         Use a better IO block size for modern systems
33859         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33860         * lib/md2.c: Likewise.
33861         * lib/md4.c: Likewise.
33862         * lib/md5.c: Likewise.
33863         * lib/sha1.c: Likewise.
33864         * lib/sha256.c: Likewise.
33865         * lib/sha512.c: Likewise.
33866
33867 2009-10-22  Eric Blake  <ebb9@byu.net>
33868
33869         tests: avoid several compiler warnings
33870         * tests/test-getcwd.c (main): Avoid buffer underflow.
33871         * tests/test-getdate.c (main): String literals are not safe with
33872         putenv, so use setenv.  Declare unused argument.
33873         * modules/getdate-tests (Depends-on): Add setenv.
33874         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33875         problems with string literals in char *.
33876         * tests/test-hash.c (main): Avoid shadowing declaration.
33877         (insert_new): Treat string literals as char const *.
33878         * tests/test-getopt.h (test_getopt): Likewise.
33879         (getopt_loop): Alter types to minimize casting elsewhere.
33880         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33881         (test_getopt_long_posix): Likewise.
33882         (do_getopt_long): Add wrapper to minimize casting.
33883         * tests/test-atexit.c (clear_temp_file): Use void.
33884         * tests/test-areadlink-with-size.c (main): Declare unused
33885         arguments.
33886         * tests/test-areadlink.c (main): Likewise.
33887         * tests/test-areadlinkat-with-size.c (main): Likewise.
33888         * tests/test-areadlinkat.c (main): Likewise.
33889         * tests/test-canonicalize-lgpl.c (main): Likewise.
33890         * tests/test-canonicalize.c (main): Likewise.
33891         * tests/test-dirent-safer.c (main): Likewise.
33892         * tests/test-dirname.c (main): Likewise.
33893         * tests/test-dup2.c (main): Likewise.
33894         * tests/test-fchdir.c (main): Likewise.
33895         * tests/test-fcntl-h.c (main): Likewise.
33896         * tests/test-fcntl-safer.c (main): Likewise.
33897         * tests/test-fdopendir.c (main): Likewise.
33898         * tests/test-fdutimensat.c (main): Likewise.
33899         * tests/test-fflush.c (main): Likewise.
33900         * tests/test-filenamecat.c (main): Likewise.
33901         * tests/test-filevercmp.c (main): Likewise.
33902         * tests/test-fopen-safer.c (main): Likewise.
33903         * tests/test-fopen.c (main): Likewise.
33904         * tests/test-fpending.c (main): Likewise.
33905         * tests/test-fpurge.c (main): Likewise.
33906         * tests/test-freading.c (main): Likewise.
33907         * tests/test-fstatat.c (main): Likewise.
33908         * tests/test-fsync.c (main): Likewise.
33909         * tests/test-futimens.c (main): Likewise.
33910         * tests/test-getndelim2.c (main): Likewise.
33911         * tests/test-gettimeofday.c (main): Likewise.
33912         * tests/test-getopt.c (main): Likewise.
33913         * tests/test-i-ring.c (main): Likewise.
33914         * tests/test-inttypes.c (main): Likewise.
33915         * tests/test-link.c (main): Likewise.
33916         * tests/test-lstat.c (main): Likewise.
33917         * tests/test-math.c (main): Likewise.
33918         * tests/test-md5.c (main): Likewise.
33919         * tests/test-memchr2.c (main): Likewise.
33920         * tests/test-memrchr.c (main): Likewise.
33921         * tests/test-mkdir.c (main): Likewise.
33922         * tests/test-mkdirat.c (main): Likewise.
33923         * tests/test-mkfifoat.c (main): Likewise.
33924         * tests/test-open.c (main): Likewise.
33925         * tests/test-openat-safer.c (main): Likewise.
33926         * tests/test-openat.c (main): Likewise.
33927         * tests/test-quotearg.c (main): Likewise.
33928         * tests/test-rawmemchr.c (main): Likewise.
33929         * tests/test-readlink.c (main): Likewise.
33930         * tests/test-remove.c (main): Likewise.
33931         * tests/test-rename.c (main): Likewise.
33932         * tests/test-renameat.c (main): Likewise.
33933         * tests/test-rmdir.c (main): Likewise.
33934         * tests/test-sha1.c (main): Likewise.
33935         * tests/test-signal.c (main): Likewise.
33936         * tests/test-sigaction.c (main): Likewise.
33937         * tests/test-stat.c (main): Likewise.
33938         * tests/test-stat-time.c (main): Likewise.
33939         * tests/test-stddef.c (main): Likewise.
33940         * tests/test-stdint.c (main): Likewise.
33941         * tests/test-stdio.c (main): Likewise.
33942         * tests/test-stdlib.c (main): Likewise.
33943         * tests/test-strchrnul.c (main): Likewise.
33944         * tests/test-strerror.c (main): Likewise.
33945         * tests/test-string.c (main): Likewise.
33946         * tests/test-strtod.c (main): Likewise.
33947         * tests/test-strverscmp.c (main): Likewise.
33948         * tests/test-symlink.c (main): Likewise.
33949         * tests/test-symlinkat.c (main): Likewise.
33950         * tests/test-sys_stat.c (main): Likewise.
33951         * tests/test-sys_time.c (main): Likewise.
33952         * tests/test-time.c (main): Likewise.
33953         * tests/test-unistd.c (main): Likewise.
33954         * tests/test-unlink.c (main): Likewise.
33955         * tests/test-unlinkat.c (main): Likewise.
33956         * tests/test-utimens.c (main): Likewise.
33957         * tests/test-utimensat.c (main): Likewise.
33958         * tests/test-version-etc.c (main): Likewise.
33959         * tests/test-wchar.c (main): Likewise.
33960         * tests/test-wctype.c (main): Likewise.
33961         * tests/test-xprintf-posix.c (main): Likewise.
33962         * tests/test-posixtm.c (main): Likewise.
33963         (STREQ): Delete unused macro.
33964         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33965         shadowed variables.
33966         * tests/test-memchr.c (main): Likewise.
33967
33968 2009-10-21  Eric Blake  <ebb9@byu.net>
33969
33970         areadlinkat: avoid failure on older glibc
33971         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33972         rather than mis-comparing 0 against FUNC_RESULT of char*.
33973
33974 2009-10-21  Bruno Haible  <bruno@clisp.org>
33975
33976         * modules/stpncpy (License): Relicense under LGPLv2+.
33977         Reported by David Lutterkort <lutter@redhat.com>.
33978
33979 2009-10-20  Eric Blake  <ebb9@byu.net>
33980
33981         utimensat: work around Solaris 9 bug
33982         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33983         has trailing slash bugs.
33984         * tests/test-lutimens.h (test_lutimens): Enhance test.
33985         * tests/test-utimens.h (test_utimens): Likewise.
33986         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33987         * doc/posix-functions/utimes.texi (utimes): Likewise.
33988         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33989         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33990         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33991         * doc/posix-functions/futimens.texi (futimens): Likewise.
33992
33993         fdutimensat: new module
33994         * modules/fdutimensat: New file.
33995         * lib/fdutimensat.c (fdutimensat): Likewise.
33996         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33997         * MODULES.html.sh (File system functions): Mention module.
33998         * modules/fdutimensat-tests: New test.
33999         * tests/test-fdutimensat.c: Likewise.
34000
34001         doc: regenerate INSTALL
34002         * doc/INSTALL: Reflect recent autoconf update.
34003         * doc/INSTALL.ISO: Likewise.
34004         * doc/INSTALL.UTF-8: Likewise.
34005
34006 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34007
34008         acl: warn if ACL support is not detected
34009         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34010
34011 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34012
34013         * lib/nproc.h: Add extern "C" block for C++.
34014
34015 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34016             Bruno Haible  <bruno@clisp.org>
34017
34018         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34019         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34020         * doc/posix-functions/isalpha.texi: Likewise.
34021         * doc/posix-functions/isblank.texi: Likewise.
34022         * doc/posix-functions/iscntrl.texi: Likewise.
34023         * doc/posix-functions/isdigit.texi: Likewise.
34024         * doc/posix-functions/isgraph.texi: Likewise.
34025         * doc/posix-functions/islower.texi: Likewise.
34026         * doc/posix-functions/isprint.texi: Likewise.
34027         * doc/posix-functions/ispunct.texi: Likewise.
34028         * doc/posix-functions/isspace.texi: Likewise.
34029         * doc/posix-functions/isupper.texi: Likewise.
34030         * doc/posix-functions/isxdigit.texi: Likewise.
34031
34032 2009-10-18  Bruno Haible  <bruno@clisp.org>
34033
34034         Tests for module 'isblank'.
34035         * modules/isblank-tests: New file.
34036         * tests/test-isblank.c: New file.
34037
34038         New module 'isblank'.
34039         * lib/isblank.c: New file.
34040         * m4/isblank.m4: New file.
34041         * modules/isblank: New file.
34042         * doc/posix-functions/isblank.texi: Mention the new module.
34043
34044 2009-10-18  Bruno Haible  <bruno@clisp.org>
34045
34046         New module 'ctype'.
34047         * lib/ctype.in.h: New file.
34048         * m4/ctype.m4: New file.
34049         * modules/ctype: New file.
34050         * doc/posix-headers/ctype.texi: Mention the new module.
34051
34052 2009-10-18  Jim Meyering  <meyering@redhat.com>
34053
34054         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34055         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34056         right after its initialization, rather than farther down.
34057         Keeping these in close proximity makes it easier to ensure
34058         that each such variable is initialized.  E.g.,
34059
34060             LIB_CLOCK_GETTIME=
34061             AC_SUBST([LIB_CLOCK_GETTIME])
34062
34063         This change also increments these serial numbers.
34064         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34065         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34066         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34067
34068 2009-10-18  Bruno Haible  <bruno@clisp.org>
34069
34070         Don't let environment variables perturb build.
34071         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34072         (gl_PREREQ_GETHRXTIME): ... not here.
34073
34074 2009-10-18  Bruno Haible  <bruno@clisp.org>
34075
34076         Avoid symlink attack in localcharset module.
34077         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34078         (O_NOFOLLOW): Define fallback.
34079         (get_charset_aliases): Don't open the file if it is a symbolic link.
34080         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34081         gl_FCNTL_H.
34082         (gl_FCNTL_H): Require it.
34083         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34084         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34085         Reported by Fergal Glynn <fglynn@veracode.com>.
34086
34087 2009-10-18  Bruno Haible  <bruno@clisp.org>
34088
34089         Implement nproc for mingw.
34090         * lib/nproc.c: Include <windows.h>
34091         (num_processors): On native Windows platforms, try GetSystemInfo.
34092
34093 2009-10-18  Bruno Haible  <bruno@clisp.org>
34094
34095         Implement nproc for IRIX.
34096         * lib/nproc.c: Include <sys/sysmp.h>.
34097         (num_processors): On IRIX systems, try sysmp.
34098         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34099
34100 2009-10-18  Bruno Haible  <bruno@clisp.org>
34101
34102         Implement nproc for HP-UX.
34103         * lib/nproc.c: Include <sys/pstat.h>
34104         (num_processors): On HP-UX systems, try pstat_getdynamic.
34105         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34106         pstat_getdynamic.
34107
34108 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34109             Bruno Haible  <bruno@clisp.org>
34110
34111         Implement nproc for NetBSD, OpenBSD.
34112         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34113         (ARRAY_SIZE): New macro.
34114         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34115         * m4/nproc.m4: New file.
34116         * modules/nproc (Files): Add m4/nproc.m4.
34117         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34118         (Makefile.am): Instead, augment lib_SOURCES.
34119
34120 2009-10-18  Bruno Haible  <bruno@clisp.org>
34121
34122         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34123         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34124         sys/param.h.
34125
34126 2009-10-16  Eric Blake  <ebb9@byu.net>
34127
34128         utimensat: new module
34129         * modules/utimensat: New file.
34130         * lib/utimensat.c (utimensat): Likewise.
34131         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34132         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34133         so we can work around Linux bugs.
34134         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34135         * modules/sys_stat (Makefile.am): Substitute them.
34136         * lib/sys_stat.in.h (utimensat): Declare it.
34137         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34138         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34139         * modules/utimensat-tests: New test.
34140         * tests/test-utimensat.c: Likewise.
34141
34142         utimens: let lutimens work on non-symlinks
34143         * lib/utimens.c (lutimens): Fall back to utimens rather than
34144         failing with ENOSYS, when file is not a symlink.
34145         (utimens): Reduce redirection.
34146         * tests/test-lutimens.h (test_lutimens): Update test to cover
34147         non-symlinks.
34148         * tests/test-utimens.h (test_utimens): Update test to cover
34149         symlinks.
34150         * tests/test-utimens.c (main): Update caller.
34151
34152         utimens: cache whether utimensat syscall works
34153         * lib/utimens.c (utimensat_works_really): New cache variable.
34154         (fdutimens, lutimens): Use it to avoid failing syscall.
34155
34156         test-stat-time, test-utimens: improve portability
34157         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34158         ext4 on alpha, and for cygwin.
34159         * tests/test-utimens-common.h: New file.
34160         (nap): Factor delays into single function.
34161         * tests/test-lutimens.h (test_lutimens): Use new header.
34162         * tests/test-futimens.h (test_futimens): Likewise.
34163         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34164         timestamps to occur from same machine, as was done previously for
34165         test_utimens.
34166         * modules/utimens-tests (Files): Ship new file.
34167         * modules/futimens-tests (Files): Likewise.
34168         Reported in part by Jim Meyering.
34169
34170         sys_stat: sort replacement declarations
34171         * lib/sys_stat.in.h: Sort declarations.
34172         * lib/futimens.c (futimens): Fix typo.
34173
34174 2009-10-15  Jim Meyering  <meyering@redhat.com>
34175
34176         don't let environment settings perturb build
34177         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34178         could cause a configure-time and/or build-time malfunction.
34179         Typically, a configure-time function-in-library test is performed
34180         via code like this:
34181
34182           LIB_VAR=
34183           AC_SUBST([LIB_VAR])
34184           prefix_saved_LIBS=$LIBS
34185             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34186                        [test "$ac_cv_search_FUNC" = "none required" ||
34187                         LIB_VAR=$ac_cv_search_FUNC])
34188           LIBS=$prefix_saved_LIBS
34189
34190         However, in each of the files affected by this change, the LIB_VAR=
34191         initialization was omitted.  Thus, when set in the environment, its
34192         value would propagate into generated Makefiles when FUNC is not found
34193         in LIB_NAME.
34194         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34195         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34196         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34197
34198 2009-10-14  Eric Blake  <ebb9@byu.net>
34199
34200         fchdir: avoid infinite recursion in mingw
34201         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34202         recursing.
34203
34204         test-stat-time: port to mingw
34205         * tests/test-stat-time.c (force_unlink): Return a value.
34206         (test_ctime) [W32]: Fix compilation error.
34207         (nap): Don't call usleep with too large an argument.  Use
34208         force_unlink.
34209         * doc/pastposix-functions/usleep.texi (usleep): Document the
34210         portability issue.
34211
34212 2009-10-13  Jim Meyering  <meyering@redhat.com>
34213
34214         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34215         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34216         * modules/pipe-filter-ii: Likewise.
34217         * modules/sys_socket-tests: Likewise.
34218         * modules/tsearch-tests: Likewise.
34219         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34220         (check): Depend on it.
34221
34222 2009-10-12  Eric Blake  <ebb9@byu.net>
34223
34224         utimens-tests: port to NFS file systems
34225         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34226         comparisons to avoid spurious failures from timestamp drift
34227         between NFS machines.
34228
34229 2009-10-12  Eric Blake  <ebb9@byu.net>
34230
34231         stat-time-tests: minor cleanups
34232         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34233         * tests/test-stat-time.c (nap): Separate assignment from call.
34234         Suggested by Paolo Bonzini and Bruno Haible.
34235
34236         sys_stat: guarantee struct timespec
34237         * lib/sys_stat.in.h (includes): Always include <time.h>
34238         * modules/sys_stat (Depends-on): Add time.
34239         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34240         mode_t permission values.
34241         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34242         get at subsecond timestamps.
34243
34244 2009-10-10  Eric Blake  <ebb9@byu.net>
34245
34246         futimens: new module
34247         * modules/futimens: New file.
34248         * lib/futimens.c (futimens): Likewise.
34249         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34250         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34251         we can work around Linux bugs.
34252         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34253         * modules/sys_stat (Makefile.am): Substitute them.
34254         * lib/sys_stat.in.h (futimens): Declare it.
34255         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34256         * doc/posix-functions/futimens.texi (futimens): Likewise.
34257         * modules/futimens-tests: New test.
34258         * tests/test-futimens.c: Likewise.
34259
34260         utimens: introduce fdutimens
34261         * lib/utimens.h (fdutimens): New prototype.
34262         * lib/utimens.c (gl_futimens): Move guts...
34263         (fdutimens): ...to new interface.
34264         * tests/test-utimens.c (do_fdutimens): Use it.
34265
34266         utimens: add UTIME_NOW and UTIME_OMIT support
34267         * lib/utimens.c (validate_timespec, update_timespec): New helper
34268         functions.
34269         (gl_futimens, lutimens): Use them.
34270         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34271         stdbool, sys_stat.
34272         (Link): Mention resulting library dependency.
34273         * modules/utimecmp (Link): Likewise.
34274         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34275         (Makefile.am): Pick up library dependency.
34276         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34277         definition.
34278         * tests/test-sys_stat.c: Test the definitions.
34279         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34280         * NEWS: Document library dependency.
34281
34282         utimecmp: support symlink timestamps
34283         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34284         hashing when possible.  Use pathconf when available.
34285         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34286         * modules/utimecmp (Depends-on): Add lstat.
34287
34288         utimens: add lutimens interface
34289         * lib/utimens.c (lutimens): New function.
34290         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34291         * lib/utimens.h (lutimens): Declare new interface.
34292         * tests/test-utimens.c (main): Enhance test.
34293         * tests/test-lutimens.h (test_lutimens): New file.
34294         * modules/utimens-tests (Files): Distribute it.
34295         (Depends-on): Add symlink.
34296         (configure.ac): Check for usleep.
34297
34298         utimens: validate futimens usage
34299         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34300         fewer syscalls on failure later on.  Avoid compiler warning on
34301         mingw.
34302         * modules/utimens (Depends-on): Add dup2.
34303
34304         utimens: add test
34305         * modules/utimens-tests: New test.
34306         * tests/test-utimens.h: New file.
34307         * tests/test-futimens.h: Likewise.
34308         * tests/test-utimens.c: Likewise.
34309
34310         doc: mention timestamp portability issues
34311         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34312         instead.
34313         * doc/posix-functions/utime.texi (utime): Likewise.
34314         * doc/posix-functions/utimes.texi (utimes): Likewise.
34315         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34316         instead.
34317         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34318         module.
34319         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34320         Mention weakness with symlink timestamps.
34321         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34322         to utimensat/futimens instead.
34323         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34324
34325         test-dup2: enhance test
34326         * tests/test-dup2.c (main): Also check AT_FDCWD.
34327
34328         test-stat-time: avoid more spurious failures
34329         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34330         xfs; and avoid race if the two timestamps cross quantization edge.
34331
34332         relocatable: prefer 'file system' over 'filesystem'
34333         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34334         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34335         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34336         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34337         * lib/relocatable.c (compute_curr_prefix): Likewise.
34338
34339 2009-10-10  Jim Meyering  <meyering@redhat.com>
34340
34341         stat-time-tests: check for the usleep function
34342         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34343
34344 2009-10-10  Bruno Haible  <bruno@clisp.org>
34345
34346         * modules/xnanosleep: Put the Link section after the Include section.
34347
34348 2009-10-09  Eric Blake  <ebb9@byu.net>
34349
34350         dup2: work around FreeBSD 6.1 bug
34351         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34352         * doc/posix-functions/dup2.texi (dup2): Document it.
34353         Reported by Nelson H. F. Beebe and Jim Meyering.
34354
34355         test-stat-time: port to buggy NFS clients
34356         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34357         (test_ctime): Also skip test if mtime and ctime are skewed.
34358
34359         maint: prefer 'file system' over 'filesystem'
34360         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34361         * doc/posix-functions/lstat.texi (lstat): Likewise.
34362         * lib/file-has-acl.c (file_has_acl): Likewise.
34363         * lib/fwriteerror.c [TEST]: Likewise.
34364         * tests/test-areadlink.h (test_areadlink): Likewise.
34365         * tests/test-areadlinkat-with-size.c (main): Likewise.
34366         * tests/test-areadlinkat.c (main): Likewise.
34367         * tests/test-canonicalize-lgpl.c (main): Likewise.
34368         * tests/test-canonicalize.c (main): Likewise.
34369         * tests/test-fstatat.c (main): Likewise.
34370         * tests/test-linkat.c (main): Likewise.
34371         * tests/test-lstat.h (test_lstat_func): Likewise.
34372         * tests/test-mkdir.h (test_mkdir): Likewise.
34373         * tests/test-readlink.h (test_readlink): Likewise.
34374         * tests/test-remove.c (main): Likewise.
34375         * tests/test-rename.h (test_rename): Likewise.
34376         * tests/test-renameat.c (main): Likewise.
34377         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34378         * tests/test-symlink.h (test_symlink): Likewise.
34379         * tests/test-symlinkat.c (main): Likewise.
34380         * tests/test-unlink.h (test_unlink_func): Likewise.
34381         * tests/test-unlinkat.c (main): Likewise.
34382
34383         maint: make realtime library usage explicit
34384         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34385         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34386         * modules/settime (Link): Likewise.
34387         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34388
34389         test-stat-time: speed up execution
34390         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34391         warning on mingw.
34392         (nap): New helper function.
34393         (prepare_test): Use it to reduce sleep time.
34394         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34395         execution.
34396         * modules/stat-time-tests (configure.ac): Check for usleep.
34397
34398 2009-10-09  Jim Meyering  <meyering@redhat.com>
34399
34400         selinux-h: always use getfilecon wrappers
34401         * lib/getfilecon.c: New file.
34402         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34403         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34404         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34405         (fgetfilecon): Provide a stub.
34406         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34407         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34408         file unconditionally.
34409         When <selinux/selinux.h> is found, arrange to use wrappers.
34410         * modules/selinux-h (Files): Add getfilecon.c.
34411         (Makefile.am): Substitute include-next-related bits
34412         into the now-always-generated selinux/selinux.h file.
34413         * doc/glibc-functions/lgetfilecon.texi: New file.
34414         * doc/glibc-functions/fgetfilecon.texi: New file.
34415         * doc/glibc-functions/getfilecon.texi: New file.
34416         * doc/glibc-functions/getfilecon-desc.texi: New file.
34417         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34418         which to pull in the new files.
34419         * MODULES.html.sh (Misc): Add selinux-h.
34420
34421 2009-10-08  Jim Meyering  <meyering@redhat.com>
34422
34423         unistd: fix comment typo
34424         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34425
34426 2009-10-08  Eric Blake  <ebb9@byu.net>
34427
34428         areadlink: use SIZE_MAX consistently
34429         * modules/areadlink (Depends-on): Add stdint.
34430         * modules/areadlink-with-size (Depends-on): Likewise.
34431         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34432         gives NULL; drop sys/types, since unistd gives size_t; and add
34433         stdint for SIZE_MAX.
34434         (SIZE_MAX): Rely on headers.
34435         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34436         and add stdint.
34437         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34438         (SIZE_MAX): Likewise.
34439         (INITIAL_BUF_SIZE): Turn into enum.
34440         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34441
34442 2009-10-08  Jim Meyering  <meyering@redhat.com>
34443
34444         areadlinkat: avoid compilation failure
34445         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34446         Fix typo in comment.
34447
34448 2009-10-07  Eric Blake  <ebb9@byu.net>
34449
34450         areadlinkat-with-size: new module
34451         * modules/areadlinkat-with-size: New module.
34452         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34453         * lib/areadlink.h (areadlinkat): Declare it.
34454         * MODULES.html.sh (File system functions): Mention it.
34455         * modules/areadlinkat-with-size-tests: New test.
34456         * tests/test-areadlinkat-with-size.c: New file.
34457
34458         xreadlinkat: new module
34459         * modules/xreadlinkat: New module.
34460         * lib/xreadlinkat.c (xreadlinkat): New file.
34461         * lib/xreadlink.h (xreadlinkat): Declare it.
34462         * MODULES.html.sh (File system functions): Mention it.
34463
34464         areadlinkat: new module
34465         * lib/at-func.c (FUNC_FAIL): New define.
34466         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34467         * modules/areadlinkat: New module.
34468         * lib/linkat.c (areadlinkat): Move...
34469         * lib/areadlinkat.c (areadlinkat): ...to new file.
34470         * lib/areadlink.h (areadlinkat): Declare it.
34471         * modules/linkat (Depends-on): Add areadlinkat.
34472         * MODULES.html.sh (File system functions): Mention it.
34473         * modules/areadlinkat-tests: New test.
34474         * tests/test-areadlinkat.c: New file.
34475
34476         areadlink, areadlink-with-size: add tests
34477         * modules/areadlink-tests: New test.
34478         * modules/areadlink-with-size-tests: Likewise.
34479         * tests/test-areadlink.h: New file.
34480         * tests/test-areadlink.c: Likewise.
34481         * tests/test-areadlink-with-size.c: Likewise.
34482
34483         maint: minor cleanups
34484         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34485         _UNUSED_PARAMETER_ instead.
34486         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34487         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34488         * modules/linkat-tests (Files): Distribute test-link.h.
34489
34490         openat, utimens: whitespace cleanup
34491         * lib/openat.c: Prefer space throughout, rather than mix of 8
34492         spaces vs. tabs.
34493         * lib/at-func.c: Likewise.
34494         * lib/utimens.c: Likewise.
34495
34496         openat: avoid using wrong fd
34497         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34498         working directory chooses same fd.
34499         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34500
34501         mkdir, mkdirat: fix cygwin 1.5.x bug
34502         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34503         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34504         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34505         bug.
34506         (gl_PREREQ_MKDIR): Delete unused macro.
34507         * modules/mkdir (Files): Track file rename.
34508         (configure.ac): Update macro name.
34509         * modules/openat (Depends-on): Add mkdir.
34510         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34511
34512         mkdir, mkdirat: add tests
34513         * modules/mkdir-tests: New test.
34514         * tests/test-mkdir.h: New file.
34515         * tests/test-mkdir.c: Likewise.
34516         * tests/test-mkdirat.c: Likewise.
34517         * modules/openat-tests (Files): Add new files.
34518         (Makefile.am): Run new test.
34519
34520 2009-10-06  Eric Blake  <ebb9@byu.net>
34521
34522         doc: tweak *at function documentation
34523         * doc/posix-functions/faccessat.texi (faccessat): Mention
34524         known issue with replacement.
34525         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34526         * doc/posix-functions/linkat.texi (linkat): Likewise.
34527         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34528         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34529         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34530         * doc/posix-functions/renameat.texi (renameat): Likewise.
34531         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34532
34533         openat: fix GNU/Hurd bug in unlinkat
34534         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34535         broken.
34536         * doc/posix-functions/unlink.texi (unlink): Document this.
34537         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34538
34539         fdopendir: fix GNU/Hurd bug
34540         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34541         allowing non-directory fds.
34542         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34543         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34544         * modules/dirent (Makefile.am): Substitute it.
34545         * lib/dirent.in.h (fdopendir): Declare replacement.
34546         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34547         * tests/test-fdopendir.c (main): Test something other than
34548         /dev/null, since on Hurd that behaves like a directory.
34549
34550         test-symlink: port to GNU/Hurd
34551         * tests/test-symlink.h (test_symlink): Relax expected errno.
34552
34553         doc: tweak more cygwin information
34554         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34555         now compatible with glibc.
34556         * doc/posix-functions/getopt.texi (getopt): Likewise.
34557
34558         getopt-gnu: add another test
34559         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34560         guarantee behavior relied on by m4.
34561         * tests/test-getopt.c (main): Use it.
34562         * modules/getopt-posix-tests (Depends-on): Add setenv.
34563         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34564
34565         getopt: fix compilation on darwin
34566         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34567         include.
34568         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34569         Reported by Ludovic Courtès.
34570
34571 2009-10-06  Bruno Haible  <bruno@clisp.org>
34572
34573         * modules/size_max (Description): Discourage its use.
34574         Reported by Simon Josefsson.
34575
34576 2009-10-06  Jim Meyering  <meyering@redhat.com>
34577
34578         linkat: avoid compilation failure
34579         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34580
34581 2009-10-05  Eric Blake  <ebb9@byu.net>
34582
34583         linkat: support Linux 2.6.17
34584         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34585         linkat on Linux, but allow cache variable override.
34586         * lib/linkat.c (rpl_linkat): Define override.
34587         * modules/linkat (Depends-on): Add symlinkat.
34588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34589         * modules/unistd (Makefile.am): Substitute it.
34590         * lib/unistd.in.h (linkat): Declare replacement.
34591         Reported by Pádraig Brady.
34592
34593         quotearg: port test to systems with C.UTF-8 locale
34594         * tests/test-quotearg.c (struct result_strings): Add another
34595         member, differentiating between C.ASCII and C.UTF-8 handling.
34596         (compare_strings): Add parameter.
34597         (main): Adjust all callers.
34598
34599         getopt: avoid clash with FreeBSD _getopt_internal
34600         * lib/getopt.in.h (_getopt_internal): Override the name.
34601         * lib/getopt_int.h (includes): Pick up any overrides.
34602         Reported by Reuben Thomas.
34603
34604         hash: allow C89 compilation
34605         * lib/hash.c (check_tuning): Move declaration before statement.
34606         Reported by Reuben Thomas.
34607
34608 2009-10-05  Karl Berry  <karl@gnu.org>
34609
34610         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34611
34612 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34613             Bruno Haible  <bruno@clisp.org>
34614
34615         * lib/uname.c (uname): Use a table-driven algorithm to compute
34616         Windows NT versions.
34617
34618 2009-10-04  Bruno Haible  <bruno@clisp.org>
34619
34620         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34621         program_invocation_short_name.
34622         * modules/progname (configure.ac): Test for presence of
34623         program_invocation_short_name.
34624         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34625
34626 2009-10-04  Bruno Haible  <bruno@clisp.org>
34627
34628         * lib/progname.c (set_program_name): Fix comment.
34629         Reported by Jim Meyering.
34630
34631 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34632             Bruno Haible  <bruno@clisp.org>
34633
34634         * lib/uname.c: Include <string.h>.
34635         (uname): Do only one call to GetVersionEx in the common case.
34636
34637 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34638             Bruno Haible  <bruno@clisp.org>
34639
34640         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34641         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34642         (uname): Add support for Windows CE and various non-x86 CPU types.
34643
34644 2009-10-03  Bruno Haible  <bruno@clisp.org>
34645
34646         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34647         invocation to tests/configure.ac.
34648         Reported by Ian Beckwith <ianb@erislabs.net>.
34649
34650 2009-10-02  Eric Blake  <ebb9@byu.net>
34651
34652         fchdir: avoid compiler warning
34653         * lib/fchdir.c (canonicalize_file_name)
34654         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34655
34656         test-open: support mingw errno values
34657         * tests/test-open.h (test_open): Relax test.
34658         * tests/test-fopen.h (test_fopen): Likewise.
34659         * tests/test-openat-safer.c (main): Likewise.
34660
34661         open: fix opening directory on mingw
34662         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34663
34664         test-open: on GNU/Hurd, /dev/null is a directory
34665         * tests/test-fopen.h (main): Rename...
34666         (test_fopen): ...to this.  Use a guaranteed non-directory when
34667         confirming open behavior on trailing slash.
34668         * tests/test-openat-safer.c (main): Likewise.
34669         * tests/test-open.h (main): Likewise....
34670         (test_open): ...to this.
34671         * tests/test-fopen.c (main): Adjust caller.
34672         * tests/test-fopen-safer.c (main): Likewise.
34673         * tests/test-open.c (main): Likewise.
34674         * tests/test-fcntl-safer.c (main): Likewise.
34675         Reported by Samuel Thibault.
34676
34677         rename, fchdir: don't ignore chdir failure
34678         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34679         * lib/rename.c (rpl_rename) [W32]: Likewise.
34680         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34681         an empty destination directory if source cannot be renamed,
34682         although there is still possibility for failure.
34683         * doc/posix-functions/rename.texi (rename): Document the race.
34684         Reported by Jim Meyering.
34685
34686         maint: cleanup whitespace in recent commits
34687         * lib/rename.c (rpl_rename): Remove tabs.
34688         * tests/test-link.h (test_link): Likewise.
34689         * lib/fchdir.c (get_name): Likewise.
34690         Reported by Jim Meyering.
34691
34692 2009-10-02  Ben Pfaff  <blp@gnu.org>
34693
34694         relocatable-prog-wrapper: Add missing dependency on
34695         double-slash-root.
34696         * modules/relocatable-prog-wrapper: Add dependency.
34697         Reported by Ian Beckwith <ianb@erislabs.net>.
34698
34699 2009-10-02  Eric Blake  <ebb9@byu.net>
34700
34701         renameat: fix Solaris bugs
34702         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34703         needed fixing.
34704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34705         * modules/stdio (Makefile.am): Substitute it.
34706         * lib/stdio.in.h (renameat): Declare replacement.
34707         * lib/renameat.c (rpl_renameat): Implement fix.
34708
34709         renameat: new module
34710         * modules/renameat: New file.
34711         * lib/renameat.c (renameat): Likewise.
34712         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34714         * modules/stdio (Makefile.am): Substitute them.
34715         * lib/stdio.in.h (renameat): Declare it.
34716         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34717         * doc/posix-functions/renameat.texi (renameat): Likewise.
34718         * modules/renameat-tests: New test.
34719         * tests/test-renameat.c: Likewise.
34720
34721         rename: fix mingw bugs
34722         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34723         directory overwrite bugs.
34724
34725         rename: fix another cygwin 1.5 bug
34726         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34727         checks.
34728         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34729         unnecessary cygwin workarounds.  Also work around bug with moving
34730         full directory onto an empty one.
34731         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34732
34733         rename-dest-slash: merge into rename module
34734         * modules/rename-dest-slash (Status): Mark obsolete.
34735         (Depends-on): Add rename.
34736         (Files): Let rename do it all.
34737         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34738         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34739         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34740         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34741         * lib/rename.c (rpl_rename): Update comments.
34742
34743         rename: fix cygwin 1.5.x bugs
34744         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34745         * lib/rename.c (rpl_rename): Work around them.
34746         * modules/rename (Depends-on): Add same-inode.
34747
34748         rename: fix Solaris 10 bug
34749         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34750         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34751         was the only bug.
34752
34753         rename: fix Solaris 9 bug
34754         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34755         on non-directory.  Avoid calling exit.
34756         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34757         strdup.
34758         * modules/rename-tests (Depends-on): Drop lstat.
34759         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34760         (gl_PREREQ_RENAME): Delete unused macro.
34761
34762         rename-dest-slash: fix NetBSD bug
34763         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34764         links.
34765         * modules/rename-dest-slash (Depends-on): Add same-inode.
34766
34767         rename-tests: new test, exposes several platform bugs
34768         * modules/rename-tests: New file.
34769         * tests/test-rename.h: Likewise.
34770         * tests/test-rename.c: Likewise.
34771         * doc/posix-functions/rename.texi (rename): Improve documentation,
34772         including bugs that will eventually be fixed in gnulib.
34773
34774 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34775
34776         * lib/uname.c: Include <stdlib.h>
34777         (uname): Assume version info is available.
34778
34779 2009-10-02  Jim Meyering  <meyering@redhat.com>
34780
34781         gnu-web-doc-update: correct --help output
34782         * build-aux/gnu-web-doc-update: Make --help output relevant.
34783
34784         gnu-web-doc-update: add standard options
34785         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34786
34787         gnu-web-doc-update: New module.
34788         Use this script to automatically update the on-line web documentation
34789         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34790         * modules/gnu-web-doc-update: New file, from coreutils.
34791         * build-aux/gnu-web-doc-update: New script.
34792
34793 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34794
34795         link: LoadLibrary is not needed.
34796         * lib/link.c: Use GetModuleHandle.
34797
34798 2009-10-01  Eric Blake  <ebb9@byu.net>
34799
34800         getopt: bump serial number
34801         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34802         change.
34803
34804         tests: tighten link, rmdir, and remove tests
34805         * tests/test-link.h (includes): No need to use <config.h> here.
34806         Clean up if directory hard link was created, otherwise test for
34807         trailing '.'.
34808         * tests/test-linkat.c (main): Simplify.
34809         * tests/test-remove.c (main): Enhance test for trailing '.'.
34810         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34811
34812 2009-10-01  Jim Meyering  <meyering@redhat.com>
34813
34814         maint.mk: requiring "make major" was annoying, for a "minor" release.
34815         What is intended is "stable", to contrast with alpha and beta,
34816         so require "make stable", not "make major".
34817         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34818         (get_tool_versions): Likewise.
34819         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34820
34821 2009-09-30  Ben Pfaff  <blp@gnu.org>
34822
34823         Fix broken build of replacement for Windows tmpfile().
34824         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34825         flags argument added along with the 'mkostemp' module.
34826
34827 2009-09-28  Bruno Haible  <bruno@clisp.org>
34828
34829         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34830         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34831         to 'remove_elt'.
34832         (gl_list_remove): Update.
34833         * lib/gl_list.c (gl_list_remove): Update.
34834         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34835         to 'remove_elt'.
34836         (gl_oset_remove): Update.
34837         * lib/gl_list.c (gl_oset_remove): Update.
34838         Reported by Eric Blake.
34839
34840 2009-09-28  Eric Blake  <ebb9@byu.net>
34841
34842         doc: mention yet more cygwin 1.7 status
34843         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34844         cygwin.
34845         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34846         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34847
34848         argp: fix test failure
34849         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34850         that are not upper-case.  Pass correct range to tolower.
34851
34852 2009-09-27  Jim Meyering  <meyering@redhat.com>
34853
34854         test-yesno: work around sparc-dash here-document infelicity
34855         Without this change, the literal \177 byte in a here document
34856         would make dash 0.5.5.1-3 access uninitialized memory.
34857         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34858         Instead, use a marker, "@", and filter through tr to create the desired
34859         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34860
34861 2009-09-27  Bruno Haible  <bruno@clisp.org>
34862
34863         Disable untested support for new flavours of ACLs on AIX.
34864         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34865         progress.
34866         * lib/set-mode-acl.c (qset_acl): Likewise.
34867
34868 2008-12-07  Bruno Haible  <bruno@clisp.org>
34869
34870         Add support for new flavours of ACLs on AIX. (Untested.)
34871         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34872         (file_has_acl): Add support for newer AIX.
34873         * lib/set-mode-acl.c (qset_acl): Likewise.
34874         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34875         Rainer Tammer <tammer@tammer.net>.
34876
34877 2009-09-26  Eric Blake  <ebb9@byu.net>
34878
34879         argp: fix compilation of getopt
34880         * lib/getopt.in.h (includes): Use different guard than glibc.
34881         Reported by Sergey Poznyakoff.
34882
34883         doc: mention more cygwin 1.7 status
34884         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34885         bug.
34886         * doc/posix-functions/execl.texi (execl): Likewise.
34887         * doc/posix-functions/execle.texi (execle): Likewise.
34888         * doc/posix-functions/execlp.texi (execlp): Likewise.
34889         * doc/posix-functions/execv.texi (execv): Likewise.
34890         * doc/posix-functions/execve.texi (execve): Likewise.
34891         * doc/posix-functions/execvp.texi (execvp): Likewise.
34892         * doc/glibc-functions/canonicalize_file_name.texi
34893         (canonicalize_file_name): Cygwin 1.7 now provides this.
34894         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34895         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34896         on AT_SYMLINK_NOFOLLOW.
34897
34898 2009-09-24  Eric Blake  <ebb9@byu.net>
34899
34900         test-linkat: make test more robust
34901         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34902
34903         getopt: fix inclusion guards for cygwin
34904         * modules/getopt-posix (Depends-on): Add include-next.
34905         (Makefile.am): Substitute more items in replacement header.
34906         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34907         <getopt.h>.
34908         * lib/getopt.in.h (includes): Use split inclusion guard, and
34909         prefer <getopt.h> over include <unistd.h> when one is present.
34910         (option): Also override name of 'struct option'.
34911
34912         same-inode: revert prior change; it is not yet ready
34913         * NEWS: Undo mention of this change.
34914         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34915         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34916         * lib/cycle-check.c (cycle_check): Likewise.
34917         * lib/same.c (same_name): Likewise.
34918         * lib/at-func2.c (at_func2): Likewise.
34919
34920 2009-09-23  Eric Blake  <ebb9@byu.net>
34921
34922         linkat: new module
34923         * modules/linkat: New file.
34924         * lib/at-func2.c (at_func2): Likewise.
34925         * lib/linkat.c (linkat): Likewise.
34926         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34927         * lib/openat-priv.h (at_func2): Add declaration.
34928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34929         * modules/unistd (Makefile.am): Substitute them.
34930         * lib/unistd.in.h (linkat): Declare it.
34931         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34932         * doc/posix-functions/linkat.texi (linkat): Likewise.
34933         * doc/posix-functions/link.texi (link): Tweak wording.
34934         * tests/test-link.c (main): Move guts...
34935         * tests/test-link.h (test_link): ...into new file.
34936         * modules/linkat-tests: New test.
34937         * tests/test-linkat.c: Likewise.
34938         * modules/link-tests (Files): Ship new file.
34939         (Depends-on): Add stdbool.
34940
34941         dirname: add library-safe mdir_name
34942         * lib/dirname.h (mdir_name): New prototype.
34943         * lib/dirname.c (dir_name): Move guts...
34944         (mdir_name): ...to new function that avoids xalloc_die.
34945
34946         fchdir: another mingw fix
34947         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34948         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34949         on mingw (where it has not yet been ported), and make it optional
34950         elsewhere.
34951         (_gl_register_fd): Use it.
34952
34953         same-inode: make SAME_INODE tri-state, to port to mingw
34954         * NEWS: Mention this change.
34955         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34956         st_ino always being 0.
34957         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34958         * lib/cycle-check.c (cycle_check): Likewise.
34959         * lib/same.c (same_name): Likewise.
34960
34961         lstat: avoid mingw compilation error
34962         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34963         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34964         lstat ourselves.
34965         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34966         was adequate.
34967         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34968         the checks for lstat.
34969         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34970
34971         link: fix test failure on Solaris 9
34972         * lib/link.c (rpl_link): Don't assume link will catch bogus
34973         trailing slash on source.
34974
34975         test-symlinkat: enhance test
34976         * tests/test-readlink.c (main): Move guts...
34977         * tests/test-readlink.h (test_readlink): ...into new file.
34978         * tests/test-symlink.c (main): Move guts...
34979         * tests/test-symlink.h (test_symlink): ...into new file.
34980         * tests/test-symlinkat.c (main): Use new files for further
34981         coverage.
34982         (do_symlink, do_readlink): New helper functions.
34983         * modules/symlink-tests (Files): Ship new file.
34984         (Depends-on): Add stdbool.
34985         * modules/readlink-tests (Files): Ship new file.
34986         (Depends-on): Add stdbool.
34987         * modules/symlinkat-tests (Files): Use new files.
34988
34989 2009-09-23  Eric Blake  <ebb9@byu.net>
34990
34991         readlink: document portability issue with symlink length
34992         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34993         systems have bogus st_size on symlinks, and mention the
34994         areadlink-with-size module.
34995         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34996         * doc/posix-functions/readlink.texi (readlink): Mention the
34997         areadlink module, and ERANGE failure.
34998         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34999         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35000
35001         readlink: fix Solaris 9 bug with trailing slash
35002         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35003         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35004         * doc/posix-functions/readlink.texi (readlink): Document this.
35005         * modules/readlink-tests: New test.
35006         * tests/test-readlink.c: Likewise.
35007
35008         readlink: fix cygwin 1.5.x bug with return type
35009         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35010         * lib/unistd.in.h (readlink): Use ssize_t.
35011         * lib/readlink.c (readlink): Likewise.
35012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35013         * modules/unistd (Makefile.am): Substitute it.
35014         * lib/unistd.in.h (readlink): Declare replacement.
35015         * doc/posix-functions/readlink.texi (readlink): Document this.
35016
35017         symlink: use throughout gnulib
35018         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35019         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35020         symlink is not used.
35021         * modules/symlinkat (Depends-on): Add symlink.
35022         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35023         * modules/canonicalize-tests (Depends-on): Likewise.
35024         * modules/lstat-tests (Depends-on): Likewise.
35025         * modules/openat-tests (Depends-on): Likewise.
35026         * modules/remove-tests (Depends-on): Likewise.
35027         * modules/rmdir-tests (Depends-on): Likewise.
35028         * modules/unlink-tests (Depends-on): Likewise.
35029         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35030         * tests/test-canonicalize.c (symlink): Likewise.
35031         * tests/test-fstatat.c (symlink): Likewise.
35032         * tests/test-lstat.c (symlink): Likewise.
35033         * tests/test-remove.c (symlink): Likewise.
35034         * tests/test-rmdir.c (symlink): Likewise.
35035         * tests/test-unlink.c (symlink): Likewise.
35036         * tests/test-unlinkat.c (symlink): Likewise.
35037
35038         symlink: new module, for Solaris 9 bug
35039         * modules/symlink: New file.
35040         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35041         * lib/symlink.c: Likewise.
35042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35043         * modules/unistd (Makefile.am): Substitute them.
35044         * lib/unistd.in.h (symlink): Declare replacement.
35045         * MODULES.html.sh (File system functions): Mention it.
35046         * doc/posix-functions/symlink.texi (symlink): Likewise.
35047         * modules/symlink-tests: New test.
35048         * tests/test-symlink.c: Likewise.
35049
35050 2009-09-23  Bruno Haible  <bruno@clisp.org>
35051
35052         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35053         when needed.
35054         Test case: gnulib-tool --import --with-tests atexit inttypes.
35055         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35056
35057 2009-09-23  Bruno Haible  <bruno@clisp.org>
35058
35059         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35060         subcommand, not in a subshell.
35061
35062 2009-09-22  Eric Blake  <ebb9@byu.net>
35063
35064         unistd: sort replacement declarations
35065         * lib/unistd.in.h: Sort declarations.
35066
35067         open, openat: minor optimization
35068         * lib/open.c (open): If open succeeded, len is non-zero.
35069         * lib/openat.c (rpl_openat): Likewise.
35070
35071         link-follow: ensure correct result
35072         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35073         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35074         distinguish between possible failures.
35075
35076 2009-09-21  Eric Blake  <ebb9@byu.net>
35077
35078         fts: avoid compiler warning
35079         * lib/fts.c (dirent_inode_sort_may_be_useful)
35080         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35081
35082 2009-09-19  Bruno Haible  <bruno@clisp.org>
35083
35084         * lib/progreloc.c (canonicalize_file_name): New declaration.
35085
35086 2009-09-19  Eric Blake  <ebb9@byu.net>
35087
35088         link: fix quoting
35089         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35090
35091         openat: fix openat bugs on Solaris 9
35092         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35093         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35094         * modules/openat (Depends-on): Add open.
35095         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35096         * modules/fcntl-h (Makefile.am): Substitute it.
35097         * lib/fcntl.in.h (openat): Declare replacement.
35098         * doc/posix-functions/openat.texi (openat): Document this.
35099
35100         openat: move fstatat and unlinkat into correct files
35101         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35102         compiled.
35103         * lib/openat.c (fstatat, unlinkat): Move...
35104         * lib/fstatat.c (fstatat): ...into correct files.
35105         * lib/unlinkat.c (unlinkat): Likewise.
35106
35107         openat: fix unlinkat bugs on Solaris 9
35108         * lib/unlinkat.c (unlinkat): New file.
35109         * modules/openat (Depends-on): Add unlink.
35110         (Files): Distribute it.
35111         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35112         trailing slash behavior is broken.
35113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35114         * modules/unistd (Makefile.am): Substitute it.
35115         * lib/unistd.in.h (unlinkat): Declare replacement.
35116         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35117
35118         openat: fix fstatat bugs on Solaris 9
35119         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35120         stat.
35121         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35122
35123         test-unlinkat: enhance test, to expose Solaris 9 bug
35124         * tests/test-unlink.c (main): Factor guts...
35125         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35126         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35127         * tests/test-rmdir.c (main): Adjust caller.
35128         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35129         (unlinker): New helper function.
35130         (rmdirat): Enhance check.
35131         * modules/rmdir-tests (Depends-on): Add stdbool.
35132         * modules/unlink-tests (Depends-on): Likewise.
35133         (Files): Add test-unlink.h.
35134         * modules/openat-tests (Files): Likewise.
35135         (Depends-on): Add unlinkdir.
35136
35137         test-fstatat: new test, to expose Solaris 9 bugs
35138         * tests/test-stat.c (main): Factor guts...
35139         * tests/test-stat.h (test_stat_func): ...into new file.
35140         * tests/test-lstat.c (main): Factor guts...
35141         * tests/test-lstat.h (test_lstat_func): ...into new file.
35142         * tests/test-fstatat.c: New file.
35143         * modules/stat-tests (Files): Add test-stat.h.
35144         * modules/lstat-tests (Files): Add test-lstat.h.
35145         (Depends-on): Add stdbool.
35146         * modules/openat-tests (Depends-on): Add pathmax.
35147         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35148         (Makefile.am): Run new test.
35149
35150         remove: new module, for mingw and Solaris 9 bugs
35151         * modules/remove: New file.
35152         * lib/remove.c: Likewise.
35153         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35155         * modules/stdio (Makefile.am): Use them.
35156         * lib/stdio.in.h (remove): Declare replacement.
35157         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35158         * doc/posix-functions/remove.texi (remove): Likewise.
35159         * modules/remove-tests: New test.
35160         * tests/test-remove.c: Likewise.
35161
35162         unlink: new module, for Solaris 9 bug
35163         * modules/unlink: New file.
35164         * lib/unlink.c: Likewise.
35165         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35167         * modules/unistd (Makefile.am): Use them.
35168         * lib/unistd.in.h (stat): Declare replacement.
35169         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35170         * doc/posix-functions/unlink.texi (unlink): Likewise.
35171         * modules/unlink-tests: New test.
35172         * tests/test-unlink.c: Likewise.
35173
35174         lstat: fix Solaris 9 bug
35175         * lib/lstat.c (lstat): Also check for trailing slash on
35176         non-symlink, non-directories.  Use stat module to simplify logic.
35177         * doc/posix-functions/lstat.texi (lstat): Document it.
35178         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35179         (configure.ac): Check for symlink.
35180         * tests/test-lstat.c (main): Add more tests.
35181
35182         stat: add as dependency to other modules
35183         * modules/chown (Depends-on): Add stat.
35184         * modules/euidaccess (Depends-on): Likewise.
35185         * modules/fchdir (Depends-on): Likewise.
35186         * modules/isdir (Depends-on): Likewise.
35187         * modules/link (Depends-on): Likewise.
35188         * modules/lstat (Depends-on): Likewise.
35189         * modules/mkdir-p (Depends-on): Likewise.
35190         * modules/modechange (Depends-on): Likewise.
35191         * modules/open (Depends-on): Likewise.
35192         * modules/readlink (Depends-on): Likewise.
35193         * modules/same (Depends-on): Likewise.
35194
35195         stat: fix Solaris 9 bug
35196         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35197         slash.
35198         * lib/stat.c (rpl_stat): Work around it.
35199         * doc/posix-functions/stat.texi (stat): Update documentation.
35200
35201         stat: new module, for mingw bug
35202         * modules/stat: New file.
35203         * lib/stat.c: Likewise.
35204         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35205         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35206         * modules/sys_stat (Makefile.am): Use them.
35207         * lib/sys_stat.in.h (stat): Declare replacement.
35208         * lib/openat.c (fstatat): Deal with lstat and stat being function
35209         macros.
35210         * modules/openat (Depends-on): Add inline.
35211         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35212         * doc/posix-functions/stat.texi (stat): Likewise.
35213         * modules/stat-tests: New test.
35214         * tests/test-stat.c: Likewise.
35215
35216 2009-09-19  Jim Meyering  <meyering@redhat.com>
35217
35218         syntax-check: detect unnecessary inclusion of canonicalize.h
35219         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35220
35221 2009-09-19  Eric Blake  <ebb9@byu.net>
35222
35223         canonicalize-lgpl: adjust clients to use correct header
35224         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35225         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35226         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35227         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35228         * lib/progreloc.c (includes): Likewise.
35229
35230 2009-09-19  Jim Meyering  <meyering@redhat.com>
35231
35232         test-posixtm.c: correct a comment
35233         * tests/test-posixtm.c: Correct first-line comment.
35234         Spotted by Eric Blake.
35235
35236 2009-09-16  Jim Meyering  <meyering@redhat.com>
35237
35238         posixtm-tests: make T const-correct; add a test case
35239         * tests/test-posixtm.c (T): Declare const.
35240         Add a test for -(2^31+1).
35241         Remove useless can-succeed-only-in-2002 test.
35242
35243         posixtm-tests: adjust the sole failing test
35244         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35245         expected output matches what mktime now produces.  Cross-checked via
35246         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35247
35248         posixtm: move #ifdef'd tests into a new module
35249         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35250         * tests/test-posixtm.c: ... this new file.
35251         * modules/posixtm-tests: New module.
35252
35253 2009-09-19  Eric Blake  <ebb9@byu.net>
35254
35255         openat: simplify use of at-func.c
35256         * lib/at-func.c (includes): Include prerequisites here, to
35257         simplify requirements on client files.
35258         * lib/openat-priv.h: Add double-inclusion guard.
35259         * lib/faccessat.c (includes): Simplify.
35260         * lib/fchmodat.c (includes): Likewise.
35261         * lib/fchownat.c (includes): Likewise.
35262         * lib/mkdirat.c (includes): Likewise.
35263         * lib/mkfifoat.c (includes): Likewise.
35264         * lib/symlinkat.c (includes): Likewise.
35265
35266         openat: allow return of fd 0
35267         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35268         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35269         unistd-safer.
35270         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35271         <fcntl.h>; this module does not leak fds.
35272         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35273         must be allowed to return 0, leaving openat_safer to add the
35274         safety.
35275         (openat_permissive): Avoid writing to just-opened fd 2 if
35276         restoring the current directory fails.
35277         * lib/openat-die.c (openat_restore_fail): Add comment.
35278         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35279         (save_cwd): Guarantee safe fd, but without use of open_safer.
35280         * tests/test-openat.c: New test.
35281         * modules/openat-tests (Files, Makefile.am): Distribute and build
35282         new file.
35283
35284         relocatable-prog-wrapper: fix build
35285         * modules/relocatable-prog-wrapper (Files): Update name of
35286         canonicalize m4 file, broken on 2009-09-17.
35287         Reported by emad hajjar <aleppos@hotmail.com>.
35288
35289 2009-09-19  Bruno Haible  <bruno@clisp.org>
35290
35291         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35292         * lib/safe-alloc.c: Likewise.
35293         Reported by Ian Beckwith <ianb@erislabs.net>.
35294
35295 2009-09-18  Bruno Haible  <bruno@clisp.org>
35296
35297         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35298         Reported by <erobles@sensacd.com.mx>.
35299
35300 2009-09-17  Eric Blake  <ebb9@byu.net>
35301
35302         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35303         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35304         slashes when checking if last component is missing.
35305         * tests/test-canonicalize.c (main): Test this.
35306
35307         canonicalize, canonicalize-lgpl: honor // if distinct from /
35308         * modules/canonicalize (Files): Add double-slash-root.m4.
35309         * modules/canonicalize-lgpl (Files): Likewise.
35310         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35311         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35312         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35313         fallback definition.
35314         (canonicalize_filename_mode): Use it to protect //.
35315         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35316         (__realpath): Likewise.
35317         * tests/test-canonicalize.c (main): Test this.
35318         * tests/test-canonicalize-lgpl.c (main): Likewise.
35319         * modules/canonicalize-tests (Depends-on): Add same-inode.
35320         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35321
35322         canonicalize-lgpl: fix glibc bug with trailing slash
35323         * m4/canonicalize-lgpl.m4: Move contents...
35324         * m4/canonicalize.m4: ...here.
35325         (gl_CANONICALIZE_LGPL): Factor realpath check...
35326         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35327         glibc 2.3.5 bug, fixed 2005-04-27.
35328         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35329         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35330         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35331         * modules/canonicalize-lgpl (Files): Manage file rename.
35332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35333         * modules/stdlib (Makefile.am): Substitute witness.
35334         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35335         is needed.
35336         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35337         replacement is required.
35338         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35339         * doc/glibc-functions/canonicalize_file_name.texi
35340         (canonicalize_file_name): Document this.
35341         * doc/posix-functions/realpath.texi (realpath): Likewise.
35342
35343         canonicalize-lgpl: reject non-directory with trailing slash
35344         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35345         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35346         catches failures in glibc 2.3.5.
35347         * tests/test-canonicalize.c (main): Likewise.
35348
35349         canonicalize-lgpl: use native realpath if it works
35350         * lib/canonicalize-lgpl.c (realpath): Guard with
35351         FUNC_REALPATH_WORKS.
35352         * lib/stdlib.in.h (realpath): Make declaration optional based on
35353         HAVE_REALPATH.
35354         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35355         native realpath works.
35356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35357         * modules/stdlib (Makefile.am): Substitute witness.
35358
35359         canonicalize, canonicalize-lgpl: use <stdlib.h>
35360         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35361         (Include): Mention <stdlib.h>.
35362         (configure.ac): Mention functions we provide.
35363         * modules/canonicalize (configure.ac): Likewise.
35364         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35365         realpath if canonicalize_file_name is missing.
35366         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35367         * modules/stdlib (Makefile.am): Substitute witnesses.
35368         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35369         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35370         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35371         * NEWS: Document this.
35372         * doc/glibc-functions/canonicalize_file_name.texi
35373         (canonicalize_file_name): Likewise.
35374         * doc/posix-functions/realpath.texi (realpath): Likewise.
35375         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35376
35377         test-canonicalize: consolidate into single C program
35378         * tests/test-canonicalize.sh: Delete; move setup into...
35379         * tests/test-canonicalize.c (main): ...the program, making it
35380         easier to run in debugger.  Add some tests.
35381         * modules/canonicalize-tests (Files): Remove unused file.
35382         (Depends-on): Add progname.
35383         (configure.ac, Makefile.am): Simplify.
35384
35385         test-canonicalize-lgpl: consolidate into single C program
35386         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35387         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35388         easier to run in debugger.  Add some tests.
35389         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35390         (configure.ac, Makefile.am): Simplify.
35391
35392         canonicalize: avoid resolvepath
35393         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35394         unnecessary checks.
35395         * lib/canonicalize.c (includes): Simplify.
35396         (canonicalize_file_name): Drop resolvepath implementation.
35397         * modules/canonicalize (Depends-on): Drop filenamecat.
35398
35399         canonicalize: don't lose errno
35400         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35401         over calls to free.
35402
35403         canonicalize: simplify errno handling
35404         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35405         assignment.
35406
35407         canonicalize, canonicalize-lgpl: update module dependencies
35408         * modules/canonicalize (Depends-on): Add extensions, lstat,
35409         pathmax, stdlib.
35410         (Files): Drop pathmax.h.
35411         (configure.ac): Adjust macro name.
35412         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35413         lstat, stdlib, sys_stat.
35414         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35415         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35416         extensions.
35417         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35418         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35419         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35420         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35421         declaration, if available.
35422         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35423         we can rely on the readlink module.
35424         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35425         (includes): Use <unistd.h> unconditionally.
35426
35427 2009-09-17  Eric Blake  <ebb9@byu.net>
35428
35429         maint: make Include sections of modules consistent
35430         * modules/alloca: Use only header name; no need to list #include.
35431         * modules/alloca-opt: Likewise.
35432         * modules/arpa_inet: Likewise.
35433         * modules/canon-host: Likewise.
35434         * modules/configmake: Likewise.
35435         * modules/dirent: Likewise.
35436         * modules/eealloc: Likewise.
35437         * modules/environ: Likewise.
35438         * modules/fchdir: Likewise.
35439         * modules/fcntl: Likewise.
35440         * modules/fcntl-h: Likewise.
35441         * modules/gethrxtime: Likewise.
35442         * modules/gettime: Likewise.
35443         * modules/ignore-value: Likewise.
35444         * modules/inet_ntop: Likewise.
35445         * modules/inet_pton: Likewise.
35446         * modules/inttypes: Likewise.
35447         * modules/isnand-nolibm: Likewise.
35448         * modules/isnanf-nolibm: Likewise.
35449         * modules/mbchar: Likewise.
35450         * modules/mbfile: Likewise.
35451         * modules/mbiter: Likewise.
35452         * modules/mbuiter: Likewise.
35453         * modules/netdb: Likewise.
35454         * modules/netinet_in: Likewise.
35455         * modules/nproc: Likewise.
35456         * modules/pagealign_alloc: Likewise.
35457         * modules/poll: Likewise.
35458         * modules/printf-frexp: Likewise.
35459         * modules/pthread: Likewise.
35460         * modules/putenv: Likewise.
35461         * modules/random_r: Likewise.
35462         * modules/relocatable-prog: Likewise.
35463         * modules/search: Likewise.
35464         * modules/select: Likewise.
35465         * modules/selinux-h: Likewise.
35466         * modules/settime: Likewise.
35467         * modules/signal: Likewise.
35468         * modules/size_max: Likewise.
35469         * modules/socklen: Likewise.
35470         * modules/ssize_t: Likewise.
35471         * modules/stdarg: Likewise.
35472         * modules/stdbool: Likewise.
35473         * modules/stddef: Likewise.
35474         * modules/stdint: Likewise.
35475         * modules/stdio: Likewise.
35476         * modules/stdlib: Likewise.
35477         * modules/string: Likewise.
35478         * modules/strings: Likewise.
35479         * modules/sys_file: Likewise.
35480         * modules/sys_ioctl: Likewise.
35481         * modules/sys_select: Likewise.
35482         * modules/sys_socket: Likewise.
35483         * modules/sys_stat: Likewise.
35484         * modules/sys_time: Likewise.
35485         * modules/sys_times: Likewise.
35486         * modules/sys_utsname: Likewise.
35487         * modules/sys_wait: Likewise.
35488         * modules/sysexits: Likewise.
35489         * modules/time: Likewise.
35490         * modules/times: Likewise.
35491         * modules/tmpfile: Likewise.
35492         * modules/trim: Likewise.
35493         * modules/unistd: Likewise.
35494         * modules/wchar: Likewise.
35495         * modules/wctype: Likewise.
35496
35497 2009-09-17  Bruno Haible  <bruno@clisp.org>
35498
35499         Make getdate.y compile on QNX and NetBSD 5 / i386.
35500         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35501         TIME_T_FITS_IN_LONG_INT.
35502         * lib/getdate.y (long_time_t): New type.
35503         (relative_time): Change type of 'seconds' field to long_time_t.
35504         (get_date): Update types of local variables. Check against overflow
35505         during conversion from long_time_t to time_t.
35506         Reported by Matt Kraai <kraai@ftbfs.org>
35507         and Hasso Tepper <hasso@netbsd.org>.
35508
35509 2009-09-17  Bruno Haible  <bruno@clisp.org>
35510
35511         * modules/COPYING: Update copyright years.
35512         * modules/README: Likeiwse.
35513         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35514         Reported by Ian Beckwith <ianb@erislabs.net>.
35515
35516 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35517
35518         * users.txt: Update references for gnuit package.
35519
35520 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35521
35522         * m4/getdelim.m4: Fix typo in copyright line.
35523
35524 2009-09-17  Bruno Haible  <bruno@clisp.org>
35525
35526         * lib/atoll.c: Use the standard header with GPL copyright.
35527         * lib/argz.in.h: Likewise.
35528         * lib/glob.c: Likewise.
35529         * lib/glob-libc.h: Likewise.
35530         * lib/random_r.c: Likewise.
35531         * lib/siglist.h: Likewise.
35532         * lib/strsignal.c: Likewise.
35533         Reported by Ian Beckwith <ianb@erislabs.net>.
35534
35535 2009-09-17  Eric Blake  <ebb9@byu.net>
35536
35537         rmdir: ensure correct dependency order
35538         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35539
35540 2009-09-17  Bruno Haible  <bruno@clisp.org>
35541
35542         Disable assertion that fails on NetBSD 5 / i386.
35543         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35544         Reported by Sam Steingold <sds@gnu.org>
35545         and Hasso Tepper <hasso@netbsd.org>.
35546
35547 2009-09-16  Eric Blake  <ebb9@byu.net>
35548
35549         unlinkdir: port to mingw
35550         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35551         on which no one can unlink a directory.
35552
35553         stdlib: sort witness names
35554         * modules/stdlib (Makefile.am): Sort replacements.
35555         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35556         * lib/stdlib.in.h: Likewise.
35557
35558         parse-duration-tests: avoid link failure
35559         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35560         LIBINTL.
35561         Reported by Tom G. Christensen.
35562
35563         openat-tests: ensure unlinkat behaves like rmdir
35564         * tests/test-rmdir.c (main): Factor guts...
35565         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35566         * modules/rmdir-tests (Files): Ship new file.
35567         * modules/openat-tests: New test.
35568         * tests/test-unlinkat.c: Likewise.
35569
35570         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35571         * modules/rmdir-errno (Status, Notice): Now obsolete.
35572
35573         rmdir: work around cygwin 1.5.x and mingw bugs
35574         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35575         * lib/rmdir.c (rmdir): Work around it.
35576         * modules/rmdir (Status, Notice): No longer obsolete.
35577         (Files): Add dos.m4.
35578         (Depends-on): Add unistd.
35579         (configure.ac): Set witnesses.
35580         (License): Relax to LGPLv2+.
35581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35582         * modules/unistd (Makefile.am): Substitute witnesses.
35583         * lib/unistd.in.h (rmdir): Declare replacement.
35584         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35585         * modules/rmdir-tests: New tests.
35586         * tests/test-rmdir.c: Likewise.
35587
35588 2009-09-15  Eric Blake  <ebb9@byu.net>
35589
35590         fchdir: improve use of replacement functions
35591         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35592         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35593         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35594         REPLACE_CLOSEDIR.
35595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35596         * modules/sys_stat (Makefile.am): Substitute correct witness.
35597         * modules/dirent (Makefile.am): Likewise.
35598         * modules/unistd (Makefile.am): Likewise.
35599         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35600         * lib/unistd.in.h (dup): Likewise.
35601         * lib/sys_stat.in.h (fstat): Likewise.
35602
35603         maint: ignore gnulib-tool temp files
35604         * .gitignore: Ignore files created during gnulib-tool --test.
35605
35606 2009-09-13  Jim Meyering  <meyering@redhat.com>
35607
35608         posixtm: don't reject a time that specify "60" as the number of seconds
35609         * lib/posixtm.c (posixtime): The code to reject invalid dates
35610         would also reject a time specified with the .60 suffix.
35611         But POSIX allows that, in order to accommodate leap seconds.
35612         So don't reject it.
35613         (main): Adjust tests accordingly.
35614         * modules/posixtm (Depends-on): Add stpcpy.
35615
35616 2009-09-11  Jim Meyering  <meyering@redhat.com>
35617
35618         announce-gen: include [$release_type] in emitted Subject:
35619         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35620         e.g., [stable] in the emitted Subject: line.
35621
35622 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35623
35624         Remove obsolete macros from several modules.
35625         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35626         obsolete Autoconf macros with their modern counterparts.
35627         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35628         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35629         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35630         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35631         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35632         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35633         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35634         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35635         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35636         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35637         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35638         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35639         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35640         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35641         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35642         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35643         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35644         * m4/time_r.m4 (gl_TIME_R): Likewise.
35645         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35646         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35647         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35648
35649         Fix copyright header in build-aux scripts.
35650         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35651         recommendation.
35652         * build-aux/ncftpput-ftp: Likewise.
35653         * build-aux/update-copyright: Likewise.
35654
35655 2009-09-09  Eric Blake  <ebb9@byu.net>
35656
35657         test-link: allow Linux choice of errno
35658         * tests/test-link.c (main): Relax test for alternate error.
35659
35660         strndup: fix improper m4 caching
35661         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35662         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35663         (gl_PREREQ_STRNDUP): Delete.
35664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35665         * modules/string (Makefile.am): Substitute it.
35666         * lib/string.in.h (strndup): Modernize prototype.
35667
35668         getcwd: port to mingw
35669         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35670         different from the POSIX assumptions made throughout the getcwd
35671         module; fortunately, the mingw getcwd does not need replacement.
35672         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35673         * modules/getcwd-tests: New test.
35674         * tests/test-getcwd.c: Likewise.
35675
35676         link: fix platform bugs
35677         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35678         * lib/link.c (link): Work around them.  Fix related mingw bug.
35679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35680         * modules/unistd (Makefile.am): Substitute it.
35681         * lib/unistd.in.h (link): Declare replacement.
35682         * doc/posix-functions/link.texi (link): Document this.
35683         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35684
35685         test-link: consolidate into single C program, test more cases
35686         * tests/test-link.sh: Delete.
35687         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35688         at least Cygwin and Solaris.
35689         * modules/link-tests (Files): Remove unused file.
35690         (Depends-on): Add errno, sys_stat.
35691         (Makefile.am): Simplify.
35692
35693 2009-09-08  Bruno Haible  <bruno@clisp.org>
35694
35695         Work around towlower, towupper bug on mingw.
35696         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35697         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35698         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35699         * doc/posix-functions/towupper.texi: Likewise.
35700         Reported by Eric Blake.
35701
35702 2009-09-08  Jim Meyering  <meyering@redhat.com>
35703
35704         build: don't try to run autoheader if we don't use it
35705         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35706         is not used in configure.ac.
35707
35708 2009-09-08  Eric Blake  <ebb9@byu.net>
35709
35710         euidaccess: fix compilation error
35711         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35712
35713         rawmemchr: relax license
35714         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35715         okay.
35716         Reported by Jim Meyering.
35717
35718         mkfifoat: new module
35719         * modules/mkfifoat: New file.
35720         * lib/mkfifoat.c: Likewise.
35721         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35722         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35723         * modules/sys_stat (Makefile.am): Use them.
35724         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35725         * MODULES.html.sh (File system functions): Mention module.
35726         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35727         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35728         * modules/mkfifoat-tests: New test.
35729         * tests/test-mkfifoat.c: Likewise.
35730
35731         strchrnul: relax license
35732         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35733         okay.
35734         Reported by Jim Meyering.
35735
35736 2009-09-08  Eric Blake  <ebb9@byu.net>
35737
35738         fstatat: fix compilation on Solaris
35739         * lib/fstatat.c (includes): Add fcntl.h.
35740         Reported by Pádraig Brady.
35741
35742 2009-09-07  Eric Blake  <ebb9@byu.net>
35743
35744         rename: modernize replacement
35745         * modules/rename (Depends-on): Add stdio.
35746         (configure.ac): Declare witness.
35747         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35748         stdio take care of replacement.
35749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35750         * modules/stdio (Makefile.am): Substitute them.
35751         * lib/stdio.in.h (rename): Declare replacement.
35752         * lib/rename.c (includes): Allow cross-compilation to non-windows
35753         machines.
35754         * doc/posix-functions/rename.texi (rename): Improve
35755         documentation.
35756
35757         stdio: sort witness names
35758         * modules/stdio (Makefile.am): Sort replacements.
35759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35760         * lib/stdio.in.h: Likewise.
35761
35762         getcwd: minor cleanups
35763         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35764         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35765
35766         openat: provide more convenience names
35767         * modules/faccessat (configure.ac): Add C witness.
35768         * lib/unistd.in.h (readlinkat): Fix typo.
35769         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35770         convenience wrappers.
35771         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35772         wrappers in syntax checks.
35773
35774 2009-09-06  Eric Blake  <ebb9@byu.net>
35775
35776         doc: fix comments in recent patches
35777         * lib/faccessat.c: Mention correct function.
35778         * lib/fchmodat.c: Likewise.
35779         * lib/fchownat.c: Likewise.
35780         * lib/symlinkat.c: Likewise.
35781         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35782         constants.
35783
35784         faccessat, symlinkat: continue cleanup of previous patch
35785         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35786         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35787         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35789         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35790         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35791         set.
35792
35793 2009-09-06  Bruno Haible  <bruno@clisp.org>
35794
35795         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35796         (fstatat): Declare if GNULIB_FSTATAT is set.
35797         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35798         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35799         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35800         * modules/fcntl-h (Files): Remove m4/openat.m4.
35801         * modules/sys_stat (Files): Remove m4/openat.m4.
35802         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35803         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35804         * modules/unistd (Files): Remove m4/openat.m4.
35805         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35806         GNULIB_OPENAT.
35807         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35808         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35809         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35810         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35811         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35812         gl_OPENAT_DEFAULTS.
35813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35814         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35815         Don't require gl_OPENAT_DEFAULTS.
35816         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35817         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35818         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35819         (gl_OPENAT_DEFAULTS): Remove macro.
35820
35821 2009-09-06  Bruno Haible  <bruno@clisp.org>
35822
35823         * modules/openat (configure.ac): Remove unneeded witness.
35824
35825 2009-09-06  Bruno Haible  <bruno@clisp.org>
35826
35827         Set errno to ENOSYS when a function is entirely unsupported.
35828         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35829         EOPNOTSUPP.
35830         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35831         * modules/chown (Depends-on): Remove errno.
35832
35833 2009-09-06  Bruno Haible  <bruno@clisp.org>
35834
35835         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35836
35837 2009-09-06  Bruno Haible  <bruno@clisp.org>
35838
35839         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35840
35841 2009-09-06  Ben Pfaff  <blp@gnu.org>
35842             Bruno Haible  <bruno@clisp.org>
35843
35844         Work around a glibc bug in strtok_r.
35845         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35846         Undefine if UNDEFINE_STRTOK_R is set.
35847         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35849         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35850         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35851         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35852         UNDEFINE_STRTOK_R.
35853         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35854
35855 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35856
35857         exclude: minor fix
35858         * lib/exclude.c: Include wctype.h
35859
35860 2009-09-06  Akim Demaille  <demaille@gostai.com>
35861
35862         bootstrap: improve error message
35863         * build-aux/bootstrap (find_tool): Upon failure, report the list
35864         of candidates.
35865         Honor the initial value of the envvar.
35866
35867 2009-09-05  Eric Blake  <ebb9@byu.net>
35868
35869         symlinkat: new module
35870         * modules/symlinkat: New file.
35871         * lib/symlinkat.c: Likewise.
35872         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35874         * modules/unistd (Makefile.am): Use them.
35875         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35876         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35877         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35878         * MODULES.html.sh (File system functions): Mention module.
35879         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35880         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35881         * modules/symlinkat-tests: New test.
35882         * tests/test-symlinkat.c: Likewise.
35883
35884         test-openat-safer: add more checks
35885         * tests/test-openat-safer.c (main): Check more code paths.
35886
35887 2009-09-05  Jim Meyering  <meyering@redhat.com>
35888
35889         syntax-check: detect unnecessary inclusion of openat.h
35890         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35891
35892 2009-09-05  Bruno Haible  <bruno@clisp.org>
35893
35894         Support towlower, towupper.
35895         * doc/posix-functions/towlower.texi: Mention module wctype.
35896         * doc/posix-functions/towupper.texi: Likewise.
35897         * lib/wctype.in.h (towlower, towupper): New functions.
35898         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35899         (ASSERT): New macro.
35900         (e): New variable.
35901         (main): Test also towlower, towupper. Test WEOF argument.
35902         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35903
35904 2009-09-05  Bruno Haible  <bruno@clisp.org>
35905
35906         Fix conversion behaviour when the input is invalid.
35907         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35908         mark occurring in first pass of indirect conversion.
35909         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35910         input.
35911         Found by clang's static analyzer.
35912
35913 2009-09-05  Bruno Haible  <bruno@clisp.org>
35914
35915         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35916         where direct conversion is possible.
35917
35918 2009-09-04  Eric Blake  <ebb9@byu.net>
35919
35920         openat: fail with ENOENT on empty name
35921         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35922         buffer.
35923
35924         link-follow: fix logic bug in prior patch
35925         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35926         reversed sense of yes and no in prior patch.  Avoid confusing
35927         compilation failure with desired semantics.
35928
35929         link-follow: accomodate mingw and cross-compilation
35930         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35931         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35932         cross-compilation results to -1, to make linkat easier to
35933         implement when cross-compiling.  Trivially support mingw.
35934         * modules/link-follow (configure.ac): Call new name.
35935         * NEWS: Mention this.
35936
35937 2009-09-03  Eric Blake  <ebb9@byu.net>
35938
35939         faccessat: compile replacement
35940         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35941         needed.
35942
35943         fts: fix compilation error
35944         * lib/fts.c (includes): Re-add "openat.h", for
35945         openat_needs_fchdir.
35946
35947         faccessat: new module
35948         * modules/faccessat: New file.
35949         * lib/faccessat.c: Likewise.
35950         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35952         * modules/unistd (Makefile.am): Use it.
35953         * lib/unistd.in.h (faccessat): Declare it.
35954         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35955         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35956         * MODULES.html.sh (File system functions): Mention it.
35957         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35958         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35959
35960         euidaccess: prefer POSIX over non-standard implementation
35961         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35962         * lib/euidaccess.c (euidaccess): Use it if available.
35963
35964         openat: make template easier to use
35965         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35966         AT_FUNC_F2 to be undefined.
35967         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35968         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35969         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35970         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35971         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35972         Likewise.
35973         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35974         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35975         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35976         Likewise.
35977
35978         openat: declare in POSIX headers
35979         * NEWS: Mention this.
35980         * modules/openat (configure.ac): Declare witnesses.
35981         (Depends-on): Add fcntl-h, sys_stat, unistd.
35982         (Include): Mention correct headers.
35983         * modules/fcntl-h (Depends-on): Add link-warning.
35984         (Files): Add openat.m4.
35985         (Makefile.am): Substitute witnesses.
35986         * modules/sys_stat (Files, Makefile.am): Likewise.
35987         * modules/unistd (Files, Makefile.am): Likewise.
35988         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35989         (gl_OPENAT_DEFAULTS): New macro.
35990         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35992         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35993         (SYS_STAT_H): Remove unused variable.
35994         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35995         * lib/fcntl--.h (includes): Remove unneeded header.
35996         * lib/openat-safer.c (includes): Likewise.
35997         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35998         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35999         appropriate headers.
36000         (__OPENAT_PREFIX): Delete.
36001         * lib/fcntl.in.h (openat): Provide declaration.
36002         (AT_FDCWD): Fix Solaris bug.
36003         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36004         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36005         * lib/fchmodat.c (includes):  Adjust to find declaration.
36006         * lib/fchownat.c (includes): Likewise.
36007         * lib/mkdirat.c (includes): Likewise.
36008         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36009         still visible.
36010
36011 2009-09-02  Eric Blake  <ebb9@byu.net>
36012
36013         errno: use consistently
36014         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36015         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36016         * lib/canonicalize.c (ELOOP): Likewise.
36017         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36018         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36019         * lib/lchown.c (EOPNOTSUPP): Likewise.
36020         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36021         * lib/savewd.c (ESTALE): Likewise.
36022         * lib/settime.c (ENOSYS): Likewise.
36023         * lib/utimens.c (ENOSYS): Likewise.
36024         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36025         * lib/chdir-safer.c (ELOOP): Likewise.
36026         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36027         * modules/c-stack (Depends-on): Add errno.
36028         * modules/canonicalize (Depends-on): Likewise.
36029         * modules/chdir-safer (Depends-on): Likewise.
36030         * modules/fdopendir (Depends-on): Likewise.
36031         * modules/inet_ntop (Depends-on): Likewise.
36032         * modules/inet_pton (Depends-on): Likewise.
36033         * modules/lchown (Depends-on): Likewise.
36034         * modules/openat (Depends-on): Likewise.
36035         * modules/savewd (Depends-on): Likewise.
36036         * modules/settime (Depends-on): Likewise.
36037         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36038
36039         fts: avoid leaking fds
36040         * modules/fts (Depends-on): Add cloexec.
36041         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36042         flag.
36043
36044         fts: make directory fds more robust
36045         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36046         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36047
36048         backupfile, chdir-long, fts, savedir: make safer
36049         * lib/backupfile.c (includes): Use "dirent--.h", since
36050         numbered_backup can write to stderr during readdir.
36051         * lib/savedir.c (includes): Likewise.
36052         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36053         emulation can write to stderr on failure.
36054         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36055         * lib/getcwd.c: Document why opendir_safer is unused.
36056         * lib/glob.c: Likewise.
36057         * lib/scandir.c: Likewise.
36058         * lib/openat-proc.c: Likewise, for open_safer.
36059         * modules/backupfile (Depends-on): Add dirent-safer.
36060         * modules/savedir (Depends-on): Likewise.
36061         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36062         * modules/chdir-long (Depends-on): Add openat-safer.
36063
36064         openat-safer: new module
36065         * modules/openat-safer: New file.
36066         * lib/openat-safer.c: Likewise.
36067         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36068         * lib/fcntl-safer.h (openat_safer): Declare.
36069         * lib/fcntl--.h (openat): Override.
36070         * MODULES.html.sh (File descriptor based I/O): Mention it.
36071         * lib/openat.h: Add double-inclusion guards.
36072         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36073         "fcntl--.h", so we can implement openat.
36074         * modules/openat-safer-tests: New test.
36075         * tests/test-openat-safer.c: New file.
36076
36077         dirent-safer: new module
36078         * modules/dirent-safer: New file.
36079         * lib/dirent--.h: Likewise.
36080         * lib/dirent-safer.h: Likewise.
36081         * lib/opendir-safer.c: Likewise.
36082         * m4/dirent-safer.m4: Likewise.
36083         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36084         * modules/dirent-safer-tests: New test.
36085         * tests/test-dirent-safer.c: New file.
36086         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36087
36088         fdopendir: optimize on mingw
36089         * lib/unistd.in.h (_gl_directory_name): New prototype.
36090         * lib/fchdir.c (_gl_directory_name): Implement it.
36091         (fchdir): Use it to simplify implementation.
36092         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36093         fchdir, when available, to avoid calling [f]chdir().
36094
36095         fdopendir: split into its own module
36096         * lib/openat.c (fdopendir): Move...
36097         * lib/fdopendir.c: ...into new file.
36098         * modules/fdopendir: New module.
36099         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36100         * modules/openat (Depends-on): Add fdopendir.
36101         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36102         fdopendir here.
36103         * modules/savedir (Depends-on): Only need fdopendir, not full
36104         openat.
36105         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36106         * lib/openat.h (fdopendir): Drop prototype.
36107         * lib/dirent.in.h (fdopendir): Provide prototype.
36108         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36109         * modules/dirent (Makefile.am): Substitute them.
36110         * MODULES.html.sh (File system functions): Mention it.
36111         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36112         * modules/fdopendir-tests: New file.
36113         * tests/test-fdopendir.c: Likewise.
36114
36115         fchdir: use more consistent macro convention
36116         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36117         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36118         REPLACE_FCHDIR, rather than relying on config.h macros.
36119         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36120         inside a single make-time REPLACE_FCHDIR block, rather than using
36121         the config.h FCHDIR_REPLACEMENT.
36122         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36123         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36124         Manage fstat replacement.
36125         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36126         REPLACE_FCHDIR.
36127         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36128         (Makefile.am): Substitute REPLACE_FCHDIR.
36129         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36130         FCHDIR_REPLACEMENT.
36131         * lib/dup-safer.c (dup_safer): Likewise.
36132         * lib/dup2.c (rpl_dup2): Likewise.
36133         * lib/dup3.c (rpl_dup3): Likewise.
36134         * lib/open.c (rpl_open): Likewise.
36135
36136         fchdir: simplify error handling, and support dup3
36137         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36138         stdbool, malloc-posix, realloc-posix.
36139         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36140         (ensure_dirs_slot): Return false on allocation failure.
36141         (rpl_dup2): Delete.
36142         (_gl_register_dup): New function.
36143         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36144         (_gl_register_fd): Close fd on allocation failure.
36145         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36146         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36147         prototype.
36148         (rpl_dup2_fchdir): Delete prototype.
36149         * lib/open.c (open): Update caller.
36150         * lib/dup2.c (dup2): Track fchdir metadata.
36151         * lib/dup3.c (dup3): Likewise.
36152         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36154
36155 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36156
36157         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36158         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36159         don't pass arguments to AC_OUTPUT.
36160
36161 2009-09-02  Bruno Haible  <bruno@clisp.org>
36162
36163         * modules/mkdtemp (License): Relicense under LGPLv2+.
36164         Reported by Paolo Bonzini.
36165
36166 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36167
36168         Replace uses of obsolete autoconf macros in Jim's modules.
36169         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36170         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36171         can evoke a warning from autoconf when run with -Wobsolete
36172         enabled.  They were declared obsolete for good reasons (see
36173         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36174         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36175         should not continue using the deprecated macros.
36176         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36177         obsolete Autoconf macros with modern counterparts.
36178         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36179         * m4/dos.m4 (gl_AC_DOS): Likewise.
36180         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36181         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36182         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36183         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36184         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36185         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36186         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36187         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36188         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36189         Likewise.
36190         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36191         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36192         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36193         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36194         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36195         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36196
36197 2009-09-01  Eric Blake  <ebb9@byu.net>
36198
36199         fchdir: fix off-by-one bug in previous patch
36200         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36201         (_gl_unregister_fd): Delete useless if.
36202
36203 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36204
36205         maint.mk: sort the list of syntax-check rules
36206         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36207         easier to get a sense of progress when the rules are run sequentially
36208         and take a long time.
36209
36210 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36211
36212         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36213         * modules/netinet_in: Likewise.
36214         * modules/sys_file: Likewise.
36215         * modules/sys_ioctl: Likewise.
36216         * modules/sys_select: Likewise.
36217         * modules/sys_socket: Likewise.
36218         * modules/sys_stat: Likewise.
36219         * modules/sys_time: Likewise.
36220         * modules/sys_times: Likewise.
36221         * modules/sys_utsname: Likewise.
36222         * modules/sys_wait: Likewise.
36223
36224 2009-09-01  Jim Meyering  <meyering@redhat.com>
36225
36226         fts: help ensure that return values are not ignored
36227         * lib/fts_.h (__GNUC_PREREQ): Define.
36228         (__attribute_warn_unused_result__): Define.
36229         (fts_children, fts_close, fts_open, fts_read): Declare with
36230         __attribute_warn_unused_result__.
36231
36232         fts: fts_close now fails also when closing a dir file descriptor fails
36233         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36234         and propagate to caller, along with errno.
36235
36236         announce-gen: correct formatting in --help output
36237         * build-aux/announce-gen (usage): Move the one-line description in
36238         --help output "up", to where it belongs, just after Usage:.
36239
36240 2009-08-31  Eric Blake  <ebb9@byu.net>
36241
36242         fchdir: port to mingw
36243         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36244         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36245         opened, then use a substitute.
36246         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36247         replacement.
36248         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36249         (_gl_register_fd): No need to check stat if open already filters
36250         all directories.
36251         (fchdir): Fix error condition to match POSIX.
36252         * modules/fchdir (Depends-on): Add sys_stat.
36253         * doc/posix-functions/open.texi (open): Document the limitation.
36254         * modules/fchdir-tests: New file.
36255         * tests/test-fchdir.c: Likewise.
36256
36257         canonicalize: allow cross-testing from cygwin to mingw
36258         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36259         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36260         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36261         Likewise.
36262         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36263         target does not support symlinks.
36264         * tests/test-canonicalize-lgpl.sh: Likewise.
36265
36266         chown: avoid compilation warning on mingw
36267         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36268         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36269         mingw.
36270         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36271         * modules/chown (Depends-on): Add errno.
36272
36273 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36274
36275         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36276         command.
36277
36278 2009-08-31  Jim Meyering  <meyering@redhat.com>
36279
36280         canonicalize: remove useless initialization
36281         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36282         initialization of local, "end".
36283
36284 2009-08-30  Bruno Haible  <bruno@clisp.org>
36285
36286         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36287         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36288         ENOSYS.
36289
36290 2009-08-30  Bruno Haible  <bruno@clisp.org>
36291
36292         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36293         /usr/xpg4/bin/tr when it exists.
36294         * tests/test-pipe-filter-gi1.sh: Likewise.
36295
36296 2009-08-30  Bruno Haible  <bruno@clisp.org>
36297
36298         Work around deficient /usr/bin/id program on Solaris.
36299         * tests/test-file-has-acl.sh (ID): New variable.
36300         * tests/test-set-mode-acl.sh (ID): Likewise.
36301         * tests/test-copy-acl.sh (ID): Likewise.
36302         * tests/test-copy-file.sh (ID): Likewise.
36303
36304 2009-08-30  Bruno Haible  <bruno@clisp.org>
36305
36306         New module 'xstriconveh'.
36307         * lib/xstriconveh.h: New file.
36308         * lib/xstriconveh.c: New file.
36309         * modules/xstriconveh: New file.
36310
36311 2009-08-30  Bruno Haible  <bruno@clisp.org>
36312
36313         Make it easier to use mem_cd_iconveh.
36314         * lib/striconveh.h (iconveh_t): New type.
36315         (iconveh_open, iconveh_close): New declarations.
36316         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36317         with a single 'const iconveh_t *' argument.
36318         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36319         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36320         with a single 'const iconveh_t *' argument.
36321         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36322         * tests/test-striconveh.c (main): Update.
36323         * NEWS: Mention the change.
36324
36325 2009-08-30  Bruno Haible  <bruno@clisp.org>
36326
36327         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36328         problem.
36329
36330 2009-08-30  Bruno Haible  <bruno@clisp.org>
36331
36332         Work around iconv_open problem on Solaris.
36333         * lib/iconv_open-solaris.gperf: New file.
36334         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36335         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36336         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36337         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36338         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36339         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36340
36341 2009-08-29  Jim Meyering  <meyering@redhat.com>
36342
36343         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36344         * top/maint.mk (cvs-check): Remove target; it was just an alias
36345         to the better-named vc-diff-check.
36346         (maintainer-distcheck): Remove rule.  It was used only from
36347         the (alpha/beta/major) target, and all of its commands but one
36348         were coreutils-specific.
36349         (vc-dist): Remove rule.
36350         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36351         Run vc-diff-check, not vc-dist.
36352         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36353
36354 2009-08-27  Bruno Haible  <bruno@clisp.org>
36355
36356         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36357         of 0.
36358
36359 2009-08-27  Bruno Haible  <bruno@clisp.org>
36360
36361         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36362         compilers.
36363         * doc/func.texi: Document the SunPRO C bug.
36364
36365 2009-08-27  Bruno Haible  <bruno@clisp.org>
36366
36367         Fix link error on Solaris.
36368         * tests/test-parse-duration.c (xstrdup): Remove function.
36369
36370 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36371
36372         ignore-value: handle pointer types, too
36373         * lib/ignore-value.h (__attribute__): Remove definition.
36374         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36375         of a more concise and more-often effective "(void) i" statement.
36376         (ignore_ptr): New function to suppress warnings from functions that
36377         return pointers, and to make it explicit that one function doesn't
36378         handle all cases.
36379
36380 2009-08-25  Bruno Haible  <bruno@clisp.org>
36381
36382         dup2: work around a Linux bug.
36383         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36384         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36385         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36386         Reported by Simon Josefsson.
36387
36388 2009-08-25  Jim Meyering  <meyering@redhat.com>
36389
36390         libguestfs uses gnulib
36391         * users.txt: Add libguestfs.
36392
36393 2009-08-24  Eric Blake  <ebb9@byu.net>
36394
36395         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36396         * lib/pipe2.c (includes): Add binary-io.h.
36397         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36398
36399 2009-08-24  Bruno Haible  <bruno@clisp.org>
36400
36401         Tolerate declared but missing accept4 syscall.
36402         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36403         available.
36404         * lib/sys_socket.in.h (accept4): If the function is already present,
36405         override it.
36406         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36407         * modules/accept4 (Makefile.am): Compile accept4.c always.
36408         Reported by Paolo Bonzini and Eric Blake.
36409
36410 2009-08-23  Bruno Haible  <bruno@clisp.org>
36411
36412         New module 'accept4'.
36413         * lib/sys_socket.in.h (accept4): New declaration.
36414         * lib/accept4.c: New file.
36415         * m4/accept4.m4: New file.
36416         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36417         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36418         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36419         HAVE_ACCEPT4.
36420         * modules/accept4: New file.
36421         * doc/glibc-functions/accept4.texi: Mention the new module.
36422
36423 2009-08-24  Jim Meyering  <meyering@redhat.com>
36424
36425         progname: also set global program_invocation_name, when possible
36426         Before this change, a libtool-enabled program that calls glibc's
36427         error function would report the program name as
36428         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36429         * modules/progname (configure.ac): Check for a declaration of
36430         program_invocation_name.
36431         * lib/progname.c:  Include <errno.h>.
36432         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36433         Set program_invocation_name.
36434
36435 2009-08-23  Bruno Haible  <bruno@clisp.org>
36436
36437         * lib/dup3.c: Include <string.h>.
36438
36439 2009-08-23  Bruno Haible  <bruno@clisp.org>
36440
36441         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36442         * lib/pipe2.c (pipe2): Likewise.
36443         Suggested by Eric Blake.
36444
36445 2009-08-23  Bruno Haible  <bruno@clisp.org>
36446
36447         Tolerate declared but missing dup3 syscall.
36448         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36449         * lib/unistd.in.h (dup3): If the function is already present,
36450         override it.
36451         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36452         * modules/dup3 (Makefile.am): Compile dup3.c always.
36453         Reported by Paolo Bonzini.
36454
36455 2009-08-23  Bruno Haible  <bruno@clisp.org>
36456
36457         Tolerate declared but missing pipe2 syscall.
36458         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36459         available.
36460         * lib/unistd.in.h (pipe2): If the function is already present,
36461         override it.
36462         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36463         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36464         Reported by Paolo Bonzini.
36465
36466 2009-08-23  Bruno Haible  <bruno@clisp.org>
36467
36468         * lib/pipe2.c (pipe2): Move #ifs inside function.
36469
36470 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36471
36472         quotearg: document limitations of quote_these_too
36473         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36474         those limitations are created.
36475         * lib/quotearg.h (set_char_quoting): Document that digits and
36476         letters that are special after backslash are not permitted.
36477         (quotearg_char): Cross-reference set_char_quoting documentation.
36478
36479 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36480
36481         quotearg: implement custom_quoting_style
36482         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36483         right_quote fields.
36484         (set_custom_quoting): New public function.
36485         (quotearg_buffer_restyled): Add left_quote and right_quote
36486         arguments, handle them very much like locale quoting, and update
36487         all uses.
36488         (quotearg_n_custom): New public function.
36489         (quotearg_n_custom_mem): New public function.
36490         (quotearg_custom): New public function.
36491         (quotearg_custom_mem): New public function.
36492         * lib/quotearg.h: Prototype and document new public functions.
36493         (enum quoting_style): For escape_quoting_style and
36494         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36495         ignored even though they're otherwise like c_quoting_style.
36496         Add custom_quoting_style member and document with comparison to
36497         clocale_quoting_style.
36498         * tests/test-quotearg.c (custom_quotes): New array.
36499         (custom_results): New array.
36500         (main): Extend to test custom quoting.
36501
36502 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36503
36504         quotearg: fix right quote escaping when it's in quote_these_too
36505         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36506         quote, be sure to prepend only one backslash.
36507         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36508         (main): Test it.
36509
36510 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36511
36512         quotearg-tests: test escaping of embedded locale quotes
36513         * tests/test-quotearg.c (struct result_strings): Add member for
36514         new input.
36515         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36516         (inputs): Add new input.
36517         (results_g): Add expected results.
36518         (flag_results): Likewise.
36519         (locale_results): Likewise.
36520         (compare_strings): Check those.
36521
36522 2009-08-23  Bruno Haible  <bruno@clisp.org>
36523
36524         Tests for module 'dup3'.
36525         * modules/dup3-tests: New file.
36526         * tests/test-dup3.c: New file.
36527
36528         New module 'dup3'.
36529         * lib/unistd.in.h (dup3): New declaration.
36530         * lib/dup3.c: New file.
36531         * m4/dup3.m4: New file.
36532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36533         HAVE_DUP3.
36534         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36535         * modules/dup3: New file.
36536         * doc/glibc-functions/dup3.texi: Mention the new module.
36537
36538 2009-08-23  Bruno Haible  <bruno@clisp.org>
36539
36540         Tweak the dup2 test.
36541         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36542         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36543         the test file is still empty. Fix argument order of lseek.
36544
36545 2009-08-23  Bruno Haible  <bruno@clisp.org>
36546
36547         Avoid test link errors when the modules getopt-gnu, gettext are used.
36548         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36549         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36550
36551 2009-08-23  Bruno Haible  <bruno@clisp.org>
36552
36553         Fix getdtablesize() on mingw.
36554         * lib/getdtablesize.c (getdtablesize): Implement differently.
36555         * lib/unistd.in.h (getdtablesize): Improve comment.
36556
36557 2009-08-23  Bruno Haible  <bruno@clisp.org>
36558
36559         New module 'mkostemp'.
36560         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36561         * lib/stdlib.in.h (mksotemp): New declaration.
36562         * lib/mkostemp.c: New file, from glibc with modifications.
36563         * lib/tempname.h (GT_FILE): Remove outdated comment.
36564         (gen_tempname): Add flags argument.
36565         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36566         (__GT_FILE): Map to 1.
36567         (small_open, large_open): Remove macros.
36568         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36569         * lib/mkstemp.c (mkstemp): Update.
36570         * lib/mkdtemp.c (mkdtemp): Likewise.
36571         * m4/mkostemp.m4: New file.
36572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36573         HAVE_MKOSTEMP.
36574         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36575         HAVE_MKOSTEMP.
36576         * modules/mkostemp: New file, based on modules/mkstemp.
36577         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36578         * NEWS: Mention the change.
36579
36580 2009-08-23  Bruno Haible  <bruno@clisp.org>
36581
36582         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36583         Reported by Eric Blake.
36584
36585 2009-08-23  Bruno Haible  <bruno@clisp.org>
36586
36587         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36588         Reported by Eric Blake.
36589
36590 2009-08-23  Bruno Haible  <bruno@clisp.org>
36591
36592         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36593         * modules/pipe2 (Depends-on): Likewise.
36594
36595 2009-08-23  Eric Blake  <ebb9@byu.net>
36596
36597         fcntl-h: add O_TTY_INIT support
36598         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36599         * tests/test-fcntl-h.c (o): Test it.
36600         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36601
36602         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36603         * modules/fcntl: Move <fcntl.h> header replacement...
36604         * modules/fcntl-h: ...to new name, so as not to collide with
36605         like-named function.
36606         * tests/test-fcntl.c: Rename...
36607         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36608         * modules/fcntl-tests: Rename...
36609         * modules/fcntl-h-tests: ...to this.  Update test file name.
36610         * modules/chdir-long (Depends-on): Update clients.
36611         * modules/chdir-safer (Depends-on): Likewise.
36612         * modules/fcntl-safer (Depends-on): Likewise.
36613         * modules/fts (Depends-on): Likewise.
36614         * modules/mkancesdirs (Depends-on): Likewise.
36615         * modules/mkdir-p (Depends-on): Likewise.
36616         * modules/open (Depends-on): Likewise.
36617         * modules/savewd (Depends-on): Likewise.
36618         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36619         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36620
36621 2009-08-22  Bruno Haible  <bruno@clisp.org>
36622
36623         * modules/binary-io (License): Relicense under LGPL.
36624         * modules/pipe2 (License): Likewise.
36625
36626 2009-08-22  Bruno Haible  <bruno@clisp.org>
36627
36628         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36629         return value.
36630         * lib/pipe-filter-gi.c (filter_init): Likewise.
36631         Reported by Eric Blake.
36632
36633 2009-08-22  Bruno Haible  <bruno@clisp.org>
36634
36635         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36636         * modules/pipe (Depends-on): Add pipe2.
36637
36638 2009-08-22  Bruno Haible  <bruno@clisp.org>
36639
36640         Tests for module 'pipe2'.
36641         * modules/pipe2-tests: New file.
36642         * tests/test-pipe2.c: New file.
36643
36644         New module 'pipe2'.
36645         * lib/unistd.in.h (pipe2): New declaration.
36646         * lib/pipe2.c: New file.
36647         * m4/pipe2.m4: New file.
36648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36649         HAVE_PIPE2.
36650         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36651         * modules/pipe2: New file.
36652         * doc/glibc-functions/pipe2.texi: Mention the new module.
36653
36654 2009-08-22  Bruno Haible  <bruno@clisp.org>
36655
36656         Reference some new glibc functions.
36657         * doc/glibc-functions/accept4.texi: New file.
36658         * doc/glibc-functions/dup3.texi: New file.
36659         * doc/glibc-functions/mkostemp.texi: New file.
36660         * doc/glibc-functions/pipe2.texi: New file.
36661         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36662         (Glibc sys/socket.h): Refer to accept4.
36663         (Glibc unistd.h): Refer to dup3, pipe2.
36664         Reported by Eric Blake.
36665
36666 2009-08-22  Jim Meyering  <meyering@redhat.com>
36667             Bruno Haible  <bruno@clisp.org>
36668
36669         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36670         This makes it so packages using automake-1.11's silent-rules option
36671         can print e.g., a single "GEN    configmake.h" line, rather than
36672         the 30+ statements that perform the job.  If you want to see the
36673         actual commands, you can still run "make V=1".
36674         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36675         so that make output is abbreviated when those variables are defined
36676         appropriately.
36677         * modules/argz: Likewise.
36678         * modules/arpa_inet: Likewise.
36679         * modules/byteswap: Likewise.
36680         * modules/configmake: Likewise.
36681         * modules/dirent: Likewise.
36682         * modules/errno: Likewise.
36683         * modules/fcntl: Likewise.
36684         * modules/float: Likewise.
36685         * modules/fnmatch: Likewise.
36686         * modules/getopt-posix: Likewise.
36687         * modules/glob: Likewise.
36688         * modules/iconv_open: Likewise.
36689         * modules/inttypes: Likewise.
36690         * modules/localcharset: Likewise.
36691         * modules/locale: Likewise.
36692         * modules/math: Likewise.
36693         * modules/netdb: Likewise.
36694         * modules/netinet_in: Likewise.
36695         * modules/poll: Likewise.
36696         * modules/posix_spawnp-tests: Likewise.
36697         * modules/sched: Likewise.
36698         * modules/search: Likewise.
36699         * modules/selinux-h: Likewise.
36700         * modules/signal: Likewise.
36701         * modules/spawn: Likewise.
36702         * modules/stdarg: Likewise.
36703         * modules/stdbool: Likewise.
36704         * modules/stddef: Likewise.
36705         * modules/stdint: Likewise.
36706         * modules/stdio: Likewise.
36707         * modules/stdlib: Likewise.
36708         * modules/string: Likewise.
36709         * modules/strings: Likewise.
36710         * modules/sys_file: Likewise.
36711         * modules/sys_ioctl: Likewise.
36712         * modules/sys_select: Likewise.
36713         * modules/sys_socket: Likewise.
36714         * modules/sys_stat: Likewise.
36715         * modules/sys_time: Likewise.
36716         * modules/sys_times: Likewise.
36717         * modules/sys_utsname: Likewise.
36718         * modules/sys_wait: Likewise.
36719         * modules/sysexits: Likewise.
36720         * modules/time: Likewise.
36721         * modules/unistd: Likewise.
36722         * modules/wchar: Likewise.
36723         * modules/wctype: Likewise.
36724
36725 2009-08-22  Jim Meyering  <meyering@redhat.com>
36726
36727         announce-gen: detect write failure
36728         * build-aux/announce-gen: Add Coda at end.
36729         Remove equivalent-but-more-verbose block at top.
36730
36731 2009-08-19  Akim Demaille  <demaille@gostai.com>
36732
36733         bootstrap: --help to stdout.
36734         * bootstrap (usage): Don't send --help to stderr.
36735         Use a here doc instead of a long string.
36736
36737 2009-08-21  Eric Blake  <ebb9@byu.net>
36738
36739         test-popen-safer: split from test-popen
36740         * tests/test-popen.c (main): Move...
36741         * tests/test-popen.h: ...into new file.
36742         * tests/test-popen-safer2.c: New file.
36743         * modules/popen-tests (Files): Add test-popen.h.
36744         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36745         Suggested by Bruno Haible.
36746
36747         test-fcntl-safer: split from test-open
36748         * tests/test-open.c (main): Move...
36749         * tests/test-open.h: ...into new file.
36750         * tests/test-fcntl-safer.c: New file.
36751         * modules/open-tests (Files): Add test-open.h.
36752         * modules/fcntl-safer-tests: New file.
36753         Suggested by Bruno Haible.
36754
36755         test-fopen-safer: split from test-fopen
36756         * tests/test-fopen.c (main): Move...
36757         * tests/test-fopen.h: ...into new file.
36758         * tests/test-fopen-safer.c: New file.
36759         * modules/fopen-tests (Files): Add test-fopen.h.
36760         * modules/fopen-safer-tests: New file.
36761         Suggested by Bruno Haible.
36762
36763 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36764
36765         popen-safer: test O_CLOEXEC at run-time.
36766         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36767
36768 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36769
36770         fcntl: move more flags to the header
36771         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36772         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36773         * lib/fcntl.in.h: Do both things here.
36774
36775 2009-08-21  Jim Meyering  <meyering@redhat.com>
36776
36777         consistently remove $@-t before redirecting to it
36778         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36779         * modules/alloca-opt: Likewise.
36780         * modules/byteswap: Likewise.
36781         * modules/fnmatch: Likewise.
36782         * modules/getopt-posix: Likewise.
36783         * modules/glob: Likewise.
36784         * modules/poll: Likewise.
36785         * modules/posix_spawnp-tests: Likewise.
36786         * modules/sys_socket: Likewise.
36787         * modules/sysexits: Likewise.
36788
36789 2009-08-21  Eric Blake  <ebb9@byu.net>
36790
36791         popen: simplify access to original popen
36792         * lib/popen.c (rpl_popen): No need to worry about popen being a
36793         macro.
36794         Reported by Bruno Haible.
36795
36796 2009-08-20  Eric Blake  <ebb9@byu.net>
36797
36798         build: avoid some compiler warnings
36799         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36800         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36801         type.
36802         (new_exclude_segment, excluded_file_pattern_p)
36803         (excluded_file_name_p): Reduce scope.
36804         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36805         old-style declaration.
36806
36807 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36808
36809         * tests/test-exclude1.sh: Handle Windows EOL.
36810         * tests/test-exclude2.sh: Likewise.
36811         * tests/test-exclude3.sh: Likewise.
36812         * tests/test-exclude4.sh: Likewise.
36813         * tests/test-exclude5.sh: Likewise.
36814         * tests/test-exclude6.sh: Likewise.
36815         * tests/test-exclude7.sh: Likewise.
36816
36817 2009-08-19  Akim Demaille  <demaille@gostai.com>
36818
36819         bootstrap: find sha1sum when named gsha1sum.
36820         * bootstrap (find_tool): New.
36821         ($SHA1SUM): New.
36822         Use it.
36823
36824 2009-08-20  Jim Meyering  <meyering@redhat.com>
36825
36826         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36827         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36828         expression that converts "." in a file name to "\." in the resulting
36829         regexp.  Start with a dummy statement, so that prior shell variable
36830         definitions are expanded portably.  Reported by Simon Josefsson.
36831
36832 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36833
36834         Fix polling for writeability of a screen buffer.
36835         * lib/poll.c: Distinguish input and screen buffers for the
36836         Win32 implementation.
36837         * lib/select.c: Likewise.
36838
36839 2009-08-19  Eric Blake  <ebb9@byu.net>
36840
36841         popen-safer: prevent popen from clobbering std descriptors
36842         * modules/popen-safer: New file.
36843         * lib/popen-safer.c: Likewise.
36844         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36845         * lib/stdio--.h (popen): Provide override.
36846         * lib/stdio-safer.h (popen_safer): Provide declaration.
36847         * tests/test-popen.c (includes): Partially test this.
36848         * modules/popen-safer-tests: New file, for more tests.
36849         * tests/test-popen-safer.c: Likewise.
36850         * MODULES.html.sh (file stream based Input/Output): Mention it.
36851
36852         tests: test some of the *-safer modules
36853         * modules/fopen-safer (Depends-on): Add fopen.
36854         * modules/fcntl-safer (Depends-on): Add fcntl.
36855         * modules/stdlib-safer (Depends-on): Add stdlib.
36856         (configure.ac): Set indicator.
36857         * modules/unistd-safer (configure.ac): Likewise.
36858         * modules/tmpfile-safer (configure.ac): Likewise.
36859         (Depends-on): Add tmpfile.
36860         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36861         active.
36862         * tests/test-fopen.c (includes): Test safer versions when they are
36863         in use.
36864         * tests/test-open.c (includes): Likewise.
36865
36866         popen: fix cygwin 1.5 bug when stdin closed
36867         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36868         * modules/popen: New file.
36869         * modules/popen-tests: Likewise.
36870         * tests/test-popen.c: Likewise.
36871         * m4/popen.m4: Likewise.
36872         * lib/popen.c: Likewise.
36873         * lib/stdio.in.h (popen): New declaration.
36874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36875         * modules/stdio (Makefile.am): Likewise.
36876         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36877
36878 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36879
36880         maint.mk: give full control over update-copyright exclusions
36881         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36882         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36883         (update-copyright): Don't force inclusion of top-level
36884         ChangeLog.  Don't force exclusion of all COPYING files, but make
36885         them the default exclusion instead.
36886
36887 2009-08-16  Bruno Haible  <bruno@clisp.org>
36888
36889         Fix test failures on Solaris 10.
36890         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36891         tests when Solaris iconv() is used.
36892         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36893         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36894         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36895         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36896         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36897
36898 2009-08-16  Bruno Haible  <bruno@clisp.org>
36899
36900         Fix test failures on Solaris 10.
36901         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36902         'tr' program and pass it as first argument.
36903         * tests/test-pipe-filter-gi1.sh: Likewise.
36904         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36905         program as first argument.
36906         * tests/test-pipe-filter-gi1.c (main): Likewise.
36907
36908 2009-08-16  Eric Blake  <ebb9@byu.net>
36909
36910         fpurge: fix previous commits
36911         * modules/fpurge (Makefile.am): Make replacement conditional,
36912         partially reverting 2007-04-29 change; missed in previous
36913         attempt.
36914         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36915         is missing.
36916
36917 2009-08-16  Bruno Haible  <bruno@clisp.org>
36918
36919         Clarify fpurge's effect on the file position.
36920         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36921         * tests/test-fpurge.c (main): Make a second pass for checking the file
36922         position.
36923
36924 2009-08-16  Bruno Haible  <bruno@clisp.org>
36925
36926         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36927         declaration of fpurge is missing.
36928         * tests/test-fpurge.c (main): Check that the file has not more contents
36929         than expected. Close the file before removing it.
36930
36931 2009-08-15  Eric Blake  <ebb9@byu.net>
36932
36933         fpurge: don't wrap working cygwin implementation
36934         * lib/fpurge.c (fpurge): Fix comment typo.
36935         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36936         1.7 to avoid replacement.
36937         * tests/test-fpurge.c (main): Enhance test.
36938
36939 2009-08-15  Eric Blake  <ebb9@byu.net>
36940         and Jim Meyering  <meyering@redhat.com>
36941
36942         test-update-copyright: skip if perl is insufficient
36943         * tests/test-update-copyright.sh: Failure to run maintainer tool
36944         should not cause testsuite failure on cygwin 1.5.
36945
36946 2009-08-14  Eric Blake  <ebb9@byu.net>
36947
36948         doc: mention more functions added in cygwin 1.7.0
36949         * doc/posix-headers/limits.texi (limits.h): Update for recent
36950         cygwin additions.
36951         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36952         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36953         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36954         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36955         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36956
36957 2009-08-14  Eric Blake  <ebb9@byu.net>
36958
36959         maint.mk: simplify update-copyright rule
36960         * top/maint.mk (update-copyright-local): Delete, and document how
36961         to do it in cfg.mk instead.
36962         (update-copyright-exclude-regexp): Delete, and document how to do
36963         it in .x-update-copyright instead.
36964         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36965         exclude ChangeLog.
36966
36967 2009-08-14  Bruno Haible  <bruno@clisp.org>
36968
36969         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36970
36971 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36972
36973         maint.mk: support update-copyright-env
36974         * top/maint.mk (update-copyright-env): Define place-holder.
36975         (update-copyright): Expand $(update-copyright-env) before
36976         invoking update-copyright.
36977
36978 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36979
36980         update-copyright: implement forced reformatting
36981         * build-aux/update-copyright: Implement and document
36982         UPDATE_COPYRIGHT_FORCE.
36983         * tests/test-update-copyright.sh: Test it.
36984
36985 2009-08-14  Eric Blake  <ebb9@byu.net>
36986         and Bruno Haible  <bruno@clisp.org>
36987
36988         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36989         * tests/test-locale.c: Revert previous patch related to NULL.
36990         * tests/test-stdio.c: Likewise.
36991         * tests/test-stdlib.c: Likewise.
36992         * tests/test-string.c: Likewise.
36993         * tests/test-unistd.c: Likewise.
36994         * modules/time-tests (Depends-on): Add verify.
36995         * modules/wchar-tests (Depends-on): Likewise.
36996         * tests/test-time.c: Test for NULL compliance.
36997         * tests/test-wchar.c: Likewise.
36998         * modules/locale (Depends-on): Add stddef.
36999         * modules/stdio (Depends-on): Likewise.
37000         * modules/stdlib (Depends-on): Likewise.
37001         * modules/string (Depends-on): Likewise.
37002         * modules/time (Depends-on): Likewise.
37003         * modules/unistd (Depends-on): Likewise.
37004         * modules/wchar (Depends-on): Likewise.
37005         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37006         * lib/stdlib.in.h (includes): Likewise.
37007         * lib/string.in.h (includes): Likewise.
37008         * lib/time.in.h (includes): Likewise.
37009         * lib/unistd.in.h (includes): Likewise.
37010         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37011         replaced.
37012         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37013         * m4/stddef_h.m4: New file.
37014         * modules/stddef: Likewise.
37015         * lib/stddef.in.h: Likewise.
37016         * modules/stddef-tests: Likewise.
37017         * tests/test-stddef.c: Likewise.
37018         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37019         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37020         * doc/posix-headers/locale.texi (locale.h): Likewise.
37021         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37022         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37023         * doc/posix-headers/string.texi (string.h): Likewise.
37024         * doc/posix-headers/time.texi (time.h): Likewise.
37025         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37026         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37027
37028 2009-08-14  Eric Blake  <ebb9@byu.net>
37029
37030         doc: improve git diff of texinfo files
37031         * .gitattributes: Add rule for *.texi files, with hint on how to
37032         use it.
37033         Copied from m4, and based on a report by Bruno Haible.
37034
37035 2009-08-14  Bruno Haible  <bruno@clisp.org>
37036
37037         Disable multithread support by default on Cygwin 1.5.x for real.
37038         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37039
37040 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37041
37042         update-copyright: much ado about intervals
37043         * build-aux/update-copyright: Implement and document
37044         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37045         of copyright year intervals.
37046         Also, document UPDATE_COPYRIGHT_YEAR.
37047         * tests/test-update-copyright.sh: Test it.
37048
37049         update-copyright: convert 2-digit to 4-digit years
37050         * build-aux/update-copyright: Implement and document.
37051         * tests/test-update-copyright.sh: Update.
37052
37053 2009-08-14  Jim Meyering  <meyering@redhat.com>
37054
37055         test-exclude: avoid coreutils "make check" failure
37056         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37057         just as in test-argmatch.c.
37058
37059 2009-08-13  Eric Blake  <ebb9@byu.net>
37060
37061         test-dup2: fix bad assumption
37062         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37063         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37064
37065         test-version-etc: fix CRLF portability issue
37066         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37067         recognize \r.
37068         * tests/test-argp-version-etc-1.sh: Likewise.
37069
37070         getopt: update client modules
37071         * modules/argp (Depends-on): Use getopt-gnu.
37072         * modules/git-merge-changelog (Depends-on): Likewise.
37073         * modules/long-options (Depends-on): Likewise.
37074         * modules/xstrtol (Depends-on): Likewise.
37075
37076 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37077
37078         * tests/test-version-etc.sh: Don't fail on different
37079         project/version.  Don't fail on CRLF differences.  Rewrite to use
37080         multiple -e instead of multiple sed forks, suggested by Eric Blake
37081         <ebb9@byu.net>.
37082         * tests/test-argp-version-etc-1.sh: Likewise.
37083
37084 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37085
37086         * tests/test-version-etc.sh: Don't fail on different
37087         project/version.
37088
37089 2009-08-12  Bruno Haible  <bruno@clisp.org>
37090
37091         Tests for modules 'getopt-posix', 'getopt-gnu'.
37092         * modules/getopt-posix-tests: New file.
37093         * tests/test-getopt.c: New file.
37094         * tests/test-getopt.h: New file.
37095         * tests/test-getopt_long.h: New file.
37096
37097         New modules 'getopt-posix', 'getopt-gnu'.
37098         * modules/getopt-gnu: New file, renamed from modules/getopt.
37099         * modules/getopt-posix: New file.
37100         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37101         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37102         (gl_GETOPT): Remove macro.
37103         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37104         Disable the test against BSD systems that declare optreset. Test
37105         against mingw bug. Test against lack of support of optional arguments
37106         on many platforms.
37107         * doc/glibc-headers/getopt.texi: Update module name and list of
37108         relevant platforms.
37109         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37110         'getopt-gnu' and more portability problems.
37111         * NEWS: Mention the changes.
37112
37113 2009-08-12  Bruno Haible  <bruno@clisp.org>
37114
37115         Ensure that optarg etc. get declared by <unistd.h>.
37116         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37117         AC_USE_SYSTEM_EXTENSIONS.
37118         * modules/getopt (Depends-on): Add 'extensions'.
37119
37120 2009-08-12  Bruno Haible  <bruno@clisp.org>
37121
37122         Avoid test link errors.
37123         * modules/pipe-filter-ii-tests (Makefile.am): Define
37124         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37125         * modules/pipe-filter-gi-tests (Makefile.am): Define
37126         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37127         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37128
37129 2009-08-12  Bruno Haible  <bruno@clisp.org>
37130
37131         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37132         gl_GETOPT_SUBSTITUTE before.
37133         (gl_GETOPT): Use it.
37134         * m4/argp.m4 (gl_ARGP): Update.
37135         Reported by Sergey Poznyakoff.
37136
37137         * m4/getopt.m4: Reorder macros.
37138         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37139         (gl_GETOPT_SUBSTITUTE): Remove macro.
37140
37141 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37142
37143         Minor improvement in gitlog-to-changelog
37144
37145         * build-aux/gitlog-to-changelog: New option `--format' makes
37146         output format string configurable.
37147
37148 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37149
37150         Optimize exclude: use hash tables for non-wildcard patterns.
37151
37152         * lib/exclude.c: Include hash.h and mbuiter.h
37153         (struct exclude_pattern, exclude_segment): New data types.
37154         (struct exclude): Rewrite.
37155         (fnmatch_pattern_has_wildcards): New function.
37156         (new_exclude_segment, free_exclude_segment): New functions.
37157         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37158         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37159         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37160         * modules/exclude: Depend on hash and mbuiter.
37161
37162         * modules/exclude-tests: New file.
37163         * tests/test-exclude.c: New file.
37164         * tests/test-exclude1.sh: New file.
37165         * tests/test-exclude2.sh: New file.
37166         * tests/test-exclude3.sh: New file.
37167         * tests/test-exclude4.sh: New file.
37168         * tests/test-exclude5.sh: New file.
37169         * tests/test-exclude6.sh: New file.
37170         * tests/test-exclude7.sh: New file.
37171
37172 2009-08-12  Bruno Haible  <bruno@clisp.org>
37173
37174         Ensure that getopt() gets declared by <unistd.h>.
37175         * lib/unistd.in.h: Conditionally include getopt.h.
37176         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37177         Set GNULIB_UNISTD_H_GETOPT.
37178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37179         GNULIB_UNISTD_H_GETOPT.
37180         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37181
37182 2009-08-12  Bruno Haible  <bruno@clisp.org>
37183
37184         Clarify logic.
37185         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37186         gl_replace_getopt instead of GETOPT_H.
37187
37188 2009-08-12  Bruno Haible  <bruno@clisp.org>
37189
37190         * m4/getopt.m4: Add comments.
37191
37192 2009-08-12  Bruno Haible  <bruno@clisp.org>
37193
37194         Disable multithread support by default on Cygwin 1.5.x.
37195         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37196         set gl_use_threads=no if not specified otherwise.
37197
37198 2009-08-11  Bruno Haible  <bruno@clisp.org>
37199
37200         Avoid compilation error on NetBSD 5.0.
37201         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37202         * tests/test-stdio.c: Likewise.
37203         * tests/test-stdlib.c: Likewise.
37204         * tests/test-string.c: Likewise.
37205         * tests/test-unistd.c: Likewise.
37206         Reported by Greg Troxel <gdt@ir.bbn.com>
37207         at <https://savannah.gnu.org/support/?106973>.
37208
37209 2009-08-11  Bruno Haible  <bruno@clisp.org>
37210
37211         * modules/dup2-tests (Depends-on): Remove close.
37212
37213         Undo 2009-07-19 commit.
37214         * modules/acl-tests (Depends-on): Remove close.
37215         * modules/binary-io-tests (Depends-on): Likewise.
37216         * modules/closein-tests (Depends-on): Likewise.
37217         * modules/flock-tests (Depends-on): Likewise.
37218         * modules/fsync-tests (Depends-on): Likewise.
37219         * modules/lseek-tests (Depends-on): Likewise.
37220         * modules/pipe-tests (Depends-on): Likewise.
37221         * modules/posix_spawn-tests (Depends-on): Likewise.
37222         * modules/posix_spawnp-tests (Depends-on): Likewise.
37223         * modules/stat-time-tests (Depends-on): Likewise.
37224         * modules/yesno-tests (Depends-on): Likewise.
37225
37226 2009-08-10  Bruno Haible  <bruno@clisp.org>
37227
37228         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37229
37230 2009-08-10  Bruno Haible  <bruno@clisp.org>
37231
37232         Fix a gcc warning.
37233         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37234
37235 2009-08-10  Bruno Haible  <bruno@clisp.org>
37236
37237         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37238         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37239         not only the first time.
37240         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37241         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37242         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37243         is 1, not only the the first time.
37244
37245 2009-08-10  Bruno Haible  <bruno@clisp.org>
37246
37247         Make it possible to use module 'gethostname' without module 'close'.
37248         * lib/unistd.in.h (close): Evoke a link error only if
37249         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37251         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37252         * modules/unistd (Makefile.am): Substitute
37253         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37254         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37255         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37256         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37257         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37258         * modules/sys_ioctl (Makefile.am): Substitute
37259         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37260         * modules/socket (configure.ac): On native Windows, set
37261         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37262         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37263         Reported by Sam Steingold <sds@gnu.org>.
37264
37265 2009-08-10  Bruno Haible  <bruno@clisp.org>
37266
37267         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37268         * modules/ioctl (configure.ac): Likewise.
37269
37270 2009-08-10  Bruno Haible  <bruno@clisp.org>
37271
37272         Avoid collision between gnulib wrapper and libintl wrapper.
37273         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37274         already defined in intl/printf.c.
37275         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37276         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37277
37278 2009-08-09  Bruno Haible  <bruno@clisp.org>
37279
37280         Make <sys/select.h> really self-contained, also on Solaris 10.
37281         * lib/sys_select.in.h: Include <string.h>.
37282         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37283         Solaris 10 problem.
37284         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37285         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37286         Reported by Jim Meyering.
37287
37288 2009-08-09  Bruno Haible  <bruno@clisp.org>
37289
37290         Avoid warnings from 'aclocal' that are due to a use of macro name
37291         AM_XGETTEXT_OPTION that is not defined in automake.
37292         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37293         automake.
37294         * modules/error (configure.ac): Likewise.
37295         * modules/propername (configure.ac): Likewise.
37296         * modules/vasprintf (configure.ac): Likewise.
37297         * modules/verror (configure.ac): Likewise.
37298         * modules/xprintf (configure.ac): Likewise.
37299         * modules/xvasprintf (configure.ac): Likewise.
37300
37301 2009-08-08  Bruno Haible  <bruno@clisp.org>
37302
37303         Avoid compilation error in C++ mode.
37304         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37305         Reported by Sam Steingold <sds@gnu.org>.
37306
37307 2009-08-08  Bruno Haible  <bruno@clisp.org>
37308
37309         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37310         for the various Unix platforms.
37311         * doc/posix-headers/limits.texi: Update platforms list regarding
37312         HOST_NAME_MAX.
37313         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37314
37315 2009-08-07  Jim Meyering  <meyering@redhat.com>
37316
37317         selinux-at: fix typo in a comment
37318         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37319         Spotted by Paolo Bonzini.
37320
37321         selinux-at: remove redundant m4 code, add documentation
37322         * modules/selinux-at (configure.ac): Remove redundant code.
37323         LIB_SELINUX is already set via the dependent module, selinux-h.
37324         (Include): Add quotes around selinux-at.h.
37325         * lib/selinux-at.h: Add documentation.
37326         Reported by Bruno Haible in
37327         http://marc.info/?l=gnulib-bug&m=124958988300749
37328
37329 2009-08-07  Bruno Haible  <bruno@clisp.org>
37330
37331         Avoid link error on MacOS X 10.3 and 10.4.
37332         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37333         on non-ELF systems.
37334         * lib/argp-pv.c (argp_program_version): Likewise.
37335         Reported by Simon Josefsson.
37336
37337 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37338
37339         * tests/test-version-etc.sh: Use $EXEEXT.
37340
37341 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37342
37343         update-copyright: update documentation to point to maint.mk
37344         * build-aux/update-copyright: Here.
37345
37346 2009-08-06  Jim Meyering  <meyering@redhat.com>
37347
37348         maint.mk: support update-copyright-local
37349         * top/maint.mk (update-copyright-local): Define place-holder.
37350         (update-copyright): Depend on $(update-copyright-local).
37351
37352 2009-08-06  Jim Meyering  <meyering@redhat.com>
37353
37354         selinux-at: new module
37355         Initially written for coreutils, this module will soon be
37356         used by findutils, too.
37357         * MODULES.html.sh [Misc]: Add selinux-at.
37358         * lib/selinux-at.h: New file, from coreutils.
37359         * lib/selinux-at.c: Likewise.
37360         * modules/selinux-at: Likewise.
37361         (License): Change from LGPL to GPL, since it depends
37362         on the GPL'd openat module.
37363
37364         doc: update README
37365         * README: Remove references to cogito.
37366         Remove cvs-repo-updating instructions from 2007.
37367         Don't imply that CVS is better if you have limited disk space.
37368
37369 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37370
37371         update-copyright: support C-style comments
37372         * build-aux/update-copyright: Implement and document.
37373         * tests/test-update-copyright.sh: Test.
37374
37375 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37376
37377         update-copyright: support omitted "(C)"
37378         * build-aux/update-copyright: Implement and document.  Also,
37379         allow variable whitespace before "(C)".
37380         * tests/test-update-copyright.sh: Test.
37381
37382 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37383
37384         update-copyright: don't trip on non-FSF copyright statements
37385         * build-aux/update-copyright: Fix so that the first correctly
37386         formatted FSF copyright statement is recognized no matter what
37387         appears before it.  Update documentation.
37388         * tests/test-update-copyright.sh: Test that.
37389
37390 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37391
37392         update-copyright: clean up code a little
37393         * build-aux/update-copyright: Append "_re" to the name of any
37394         variable holding a regular expression.
37395         Replace "old" and "new" with "stmt" in variable names.
37396         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37397         handled correctly.
37398         Format code more consistently.
37399
37400 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37401
37402         update-copyright-tests: improve portability
37403         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37404         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37405
37406 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37407
37408         update-copyright: support @copyright{} and &copy;
37409         * build-aux/update-copyright: Implement and document.
37410         * tests/test-update-copyright.sh: Test.
37411
37412 2009-08-04  Jim Meyering  <meyering@redhat.com>
37413
37414         update-copyright-tests: correctly test EOL=\r\n handling
37415         * tests/test-update-copyright.sh: Put \r at the end of some lines
37416         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37417
37418         maint.mk: make update-copyright exclusion list more configurable
37419         * top/maint.mk (update-copyright): Default to excluding COPYING,
37420         but allow an override, in case someone does want to update that file.
37421
37422         maint.mk: don't update copyright date in COPYING
37423         * top/maint.mk (update-copyright): Exclude COPYING.
37424
37425         maint.mk: add a copyright-updating rule
37426         * top/maint.mk (update-copyright): New rule.
37427         Derived from coreutils/Makefile.am.
37428
37429         update-copyright: rename some variables
37430         * build-aux/update-copyright: Rename a few variables for clarity.
37431         Tweak syntax.  List Joel E. Denny as coauthor.
37432
37433 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37434
37435         update-copyright: fix bug for 2-digit last year and add tests
37436         * build-aux/update-copyright: Fix bug.
37437         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37438         specified.
37439         * modules/update-copyright-tests: New
37440         * tests/test-update-copyright.sh: New.
37441
37442 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37443
37444         update-copyright: handle leading tabs in line prefix
37445         * build-aux/update-copyright: Count leading tabs as 8 spaces
37446         when computing margin.  This helps with the formatting of
37447         ChangeLogs, for example.
37448         Fix documentation a little.
37449
37450 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37451
37452         update-copyright: support EOL=\r\n
37453         * build-aux/update-copyright: Implement that.
37454
37455 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37456
37457         update-copyright: automatically format copyright statements
37458         * build-aux/update-copyright: Implement that.
37459         Also, be a little more predictable and safer by always failing
37460         when the full copyright format is not perfectly recognized as an
37461         unbroken whole.  Discussed at
37462         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37463         Rewrite documentation.
37464
37465 2009-08-03  Bruno Haible  <bruno@clisp.org>
37466
37467         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37468
37469 2009-08-02  Bruno Haible  <bruno@clisp.org>
37470
37471         Tests for module 'uname'.
37472         * modules/uname-tests: New file.
37473         * tests/test-uname.c: New file.
37474
37475         New module 'uname'.
37476         * lib/uname.c: New file.
37477         * m4/uname.m4: New file.
37478         * modules/uname: New file.
37479         * doc/posix-functions/uname.texi: Mention the new module.
37480
37481 2009-08-02  Bruno Haible  <bruno@clisp.org>
37482
37483         Tests for module 'sys_utsname'.
37484         * modules/sys_utsname-tests: New file.
37485         * tests/test-sys_utsname.c: New file.
37486
37487         New module 'sys_utsname'.
37488         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37489         * m4/sys_utsname_h.m4: New file.
37490         * modules/sys_utsname: New file.
37491         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37492
37493 2009-08-02  Bruno Haible  <bruno@clisp.org>
37494
37495         Implicitly initialize the sockets library.
37496         * lib/gethostname.c: Include sockets.h.
37497         (rpl_gethostname): Invoke gl_sockets_startup.
37498         * lib/socket.c: Include sockets.h.
37499         (rpl_socket): Invoke gl_sockets_startup.
37500         * modules/gethostname (Depends-on): Add sockets.
37501         * modules/socket (Depends-on): Likewise.
37502         * tests/test-poll.c: Don't include sockets.h.
37503         (main): Don't invoke gl_sockets_startup.
37504         * tests/test-select.c: Don't include sockets.h.
37505         (main): Don't invoke gl_sockets_startup.
37506
37507 2009-08-02  Bruno Haible  <bruno@clisp.org>
37508
37509         Allow multiple calls to gl_sockets_startup.
37510         * lib/sockets.c (initialized_sockets_version): New variable.
37511         (gl_sockets_startup): Do nothing if already called for this or a higher
37512         version.
37513         (gl_sockets_cleanup): Reset initialized_sockets_version.
37514
37515 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37516
37517         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37518         different project/version.
37519
37520 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37521             Bruno Haible  <bruno@clisp.org>
37522
37523         Tests for module 'pipe-filter-gi'.
37524         * modules/pipe-filter-gi-tests: New file.
37525         * tests/test-pipe-filter-gi1.sh: New file.
37526         * tests/test-pipe-filter-gi1.c: New file.
37527         * tests/test-pipe-filter-gi2.sh: New file.
37528         * tests/test-pipe-filter-gi2-main.c: New file.
37529         * tests/test-pipe-filter-gi2-child.c: New file.
37530
37531         New module 'pipe-filter-gi'.
37532         * lib/pipe-filter-gi.c: New file.
37533         * modules/pipe-filter-gi: New file.
37534
37535 2009-08-02  Bruno Haible  <bruno@clisp.org>
37536             Paolo Bonzini  <bonzini@gnu.org>
37537
37538         Tests for module 'pipe-filter-ii'.
37539         * modules/pipe-filter-ii-tests: New file.
37540         * tests/test-pipe-filter-ii1.sh: New file.
37541         * tests/test-pipe-filter-ii1.c: New file.
37542         * tests/test-pipe-filter-ii2.sh: New file.
37543         * tests/test-pipe-filter-ii2-main.c: New file.
37544         * tests/test-pipe-filter-ii2-child.c: New file.
37545
37546         New module 'pipe-filter-ii'.
37547         * lib/pipe-filter.h: New file.
37548         * lib/pipe-filter-ii.c: New file.
37549         * lib/pipe-filter-aux.h: New file.
37550         * modules/pipe-filter-ii: New file.
37551
37552 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37553
37554         * lib/gc-libgcrypt.c: Change copyright to FSF.
37555         * lib/gc-gnulib.c: Likewise.
37556
37557 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37558
37559         * lib/gethostname.c: Include limits.h.
37560
37561 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37562             Bruno Haible  <bruno@clisp.org>
37563
37564         Ensure HOST_NAME_MAX as part of the gethostname module.
37565         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37566         define also HOST_NAME_MAX.
37567         * tests/test-gethostname.c: Include <limits.h>.
37568         (main): Check also HOST_NAME_MAX.
37569         * doc/posix-headers/limits.texi: Document the mingw problem.
37570
37571 2009-08-02  Bruno Haible  <bruno@clisp.org>
37572
37573         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37574         Add comments.
37575
37576 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37577
37578         * lib/gethostname.c: Add Windows wrapper.
37579         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37580         * modules/gethostname: Depend on sys_socket & errno, for also
37581         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37582         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37583
37584 2009-07-31  Jim Meyering  <meyering@redhat.com>
37585
37586         getloadavg: fix symbol name in comment
37587         * lib/getloadavg.c: Correct a typo I introduced when adding
37588         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37589         Matt Kraai spotted the problem.
37590
37591 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37592
37593         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37594         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37595         code also if ! defined N_NAME_POINTER.
37596         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37597         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37598         but the n_name member is a 12-byte array.
37599
37600 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37601
37602         update-copyright: generalize comment handling
37603         * build-aux/update-copyright: Handle copyright statements
37604         within more comment styles.
37605         Document usage.
37606         Report any file with an external copyright holder or parse failure.
37607
37608 2009-07-29  Jim Meyering  <meyering@redhat.com>
37609
37610         mktime: correct setting of REPLACE_MKTIME
37611         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37612
37613         update-copyright: new module
37614         * modules/update-copyright: New file.
37615         * build-aux/update-copyright: New file.
37616         * MODULES.html.sh (maint+release support): Add update-copyright.
37617
37618 2009-07-27  Bruno Haible  <bruno@clisp.org>
37619
37620         Fix compilation error when <ctime> is used and mktime is replaced.
37621         * lib/time.in.h (mktime): New declaration.
37622         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37623         REPLACE_MKTIME instead of defining mktime in config.h.
37624         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37625         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37626         Reported by Ross McFarland <rwmcfa1@neces.com>.
37627
37628 2009-07-27  Bruno Haible  <bruno@clisp.org>
37629
37630         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37631         Reported by Matt Kraai <mkraai@beckman.com>.
37632
37633 2009-07-25  Jim Meyering  <meyering@redhat.com>
37634
37635         maint.mk: avoid warnings about missing files
37636         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37637         diagnostic when .prev-version does not exist.
37638         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37639         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37640         nonexistent cfg.mk.
37641         Suggestions from Simon Josefsson.
37642
37643 2009-07-25  Bruno Haible  <bruno@clisp.org>
37644
37645         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37646         defined as macros. Needed on QNX 6.4.1.
37647         Reported by Matt Kraai <mkraai@beckman.com>.
37648
37649 2009-07-23  Jim Meyering  <meyering@redhat.com>
37650
37651         maint.mk: invoke "make dist" with a working value of XZ_OPT
37652         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37653
37654 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37655
37656         Make fseeko.c compile on QNX.
37657         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37658
37659 2009-07-22  Peter Simons  <simons@cryp.to>
37660
37661         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37662         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37663         * lib/md4.h: Likewise.
37664         * lib/md5.h: Likewise.
37665         * lib/sha1.h: Likewise.
37666         * lib/sha256.h: Likewise.
37667         * lib/sha512.h: Likewise.
37668
37669         tests-sha1: don't assign literal string to 'char *' variable
37670         * tests/test-sha1.c (main): Declare locals with "const" to match
37671         attributes of the right hand side.
37672
37673 2009-07-21  Eric Blake  <ebb9@byu.net>
37674
37675         dup2: fix more mingw problems
37676         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37677         fd to itself.
37678         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37679         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37680         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37681         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37682         care of mingw bugs.
37683
37684 2009-07-21  Jim Meyering  <meyering@redhat.com>
37685
37686         vc-list-files: avoid failure when /bin/sh is dash
37687         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37688         On some Debian based systems, /bin/sh is a symlink to dash, and running
37689         this command would omit the "/" following each 'tests' prefix:
37690           dash -x build-aux/vc-list-files -C . tests
37691         That is because bash and dash work differently:
37692           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37693           bash ok
37694           dash odd
37695
37696 2009-07-21  Eric Blake  <ebb9@byu.net>
37697
37698         dup2-tests: test previous patch
37699         * modules/dup2-tests: New file.
37700         * tests/test-dup2.c: Likewise.
37701         * tests/test-open.c (main): Avoid unspecified behavior.
37702         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37703         test.
37704
37705         dup2: work around mingw and cygwin 1.5 bug
37706         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37708         * modules/unistd (Makefile.am): Substitute it.
37709         * lib/unistd.in.h (dup2): Declare the replacement.
37710         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37711         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37712         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37713         * modules/execute (Depends-on): Add dup2.
37714         * modules/fseterr (Depends-on): Likewise.
37715         * modules/pipe (Depends-on): Likewise.
37716         * modules/posix_spawn-internal (Depends-on): Likewise.
37717
37718 2009-07-21  Bruno Haible  <bruno@clisp.org>
37719
37720         * modules/.gitattributes: New file.
37721
37722 2009-07-20  Bruno Haible  <bruno@clisp.org>
37723
37724         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37725         (main): Use it.
37726
37727 2009-07-20  Eric Blake  <ebb9@byu.net>
37728
37729         test-pipe: make a bit more robust.
37730         * tests/test-pipe.c (myerr): Allow error messages regardless of
37731         what we do to stderr.
37732         (test_pipe): Rearrange to avoid deadlock.
37733         (child_main): Try a larger read, to ensure we avoided deadlock.
37734         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37735         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37736         if misused.
37737
37738 2009-07-19  Jim Meyering  <meyering@redhat.com>
37739
37740         fts: avoid false-positive cycle-detection
37741         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37742         for each new command line argument.
37743
37744 2009-07-19  Bruno Haible  <bruno@clisp.org>
37745
37746         Fix build error on mingw with the modules sys_select and unistd.
37747         * modules/acl-tests (Depends-on): Add close.
37748         * modules/binary-io-tests (Depends-on): Likewise.
37749         * modules/closein-tests (Depends-on): Likewise.
37750         * modules/flock-tests (Depends-on): Likewise.
37751         * modules/fsync-tests (Depends-on): Likewise.
37752         * modules/lseek-tests (Depends-on): Likewise.
37753         * modules/pipe-tests (Depends-on): Likewise.
37754         * modules/posix_spawn-tests (Depends-on): Likewise.
37755         * modules/posix_spawnp-tests (Depends-on): Likewise.
37756         * modules/stat-time-tests (Depends-on): Likewise.
37757         * modules/yesno-tests (Depends-on): Likewise.
37758
37759 2009-07-19  Bruno Haible  <bruno@clisp.org>
37760
37761         Unify conditionals.
37762         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37763         macros, not at the compiler macros.
37764         * lib/pipe.c: Likewise.
37765         * lib/execute.c: Likewise.
37766         * lib/spawni.c: Likewise.
37767
37768 2009-07-19  Bruno Haible  <bruno@clisp.org>
37769
37770         Fix handling of closed stdin/stdout/stderr on mingw.
37771         * lib/w32spawn.h: Include unistd.h.
37772         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37773         file descriptor with O_NOINHERIT flag.
37774         (fd_safer_noinherit): New function, based on fd-safer.c.
37775         (dup_safer_noinherit): New function, based on dup-safer.c.
37776         (undup_safer_noinherit): New function.
37777         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37778         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37779         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37780         instead of fd_safer.
37781         * tests/test-pipe.c: Include <windows.h>.
37782         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37783         result.
37784
37785         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37786         from main.
37787         (test_pipe): Pass an extra argument for disambiguation.
37788         (main): Invoke parent_main or child_main.
37789
37790         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37791         consistently.
37792
37793 2009-07-18  Eric Blake  <ebb9@byu.net>
37794
37795         test-pipe: fix mingw build
37796         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37797
37798 2009-07-18  Bruno Haible  <bruno@clisp.org>
37799
37800         * modules/pipe-tests (Makefile.am): Fix typo.
37801
37802 2009-07-18  Eric Blake  <ebb9@byu.net>
37803
37804         error: fix mingw build
37805         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37806         Reported by Bruno Haible.
37807
37808         error: avoid undefined use of stdout
37809         * lib/error.c (error, error_at_line): Check that fd 1 is open
37810         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37811         is handling faults and the close_stdout module wants to report the
37812         detection of closed stdout as an error.
37813
37814 2009-07-17  Eric Blake  <ebb9@byu.net>
37815
37816         pipe: be robust in face of closed fds
37817         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37818         should cause child to misbehave.
37819         * modules/pipe-tests: New module.
37820         * tests/test-pipe.c: New file.
37821         * tests/test-pipe.sh: New file.
37822         Reported by Akim Demaille.
37823
37824 2009-07-14  Bruno Haible  <bruno@clisp.org>
37825
37826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37827         Reported by anonymous kc.
37828
37829 2009-07-07  Jim Meyering  <meyering@redhat.com>
37830
37831         maint.mk: don't look for translatable strings in *.m4 or *.mk
37832         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37833         when searching for translatable strings.
37834
37835 2009-07-05  Jim Meyering  <meyering@redhat.com>
37836
37837         remove superfluous parentheses in STREQ definition
37838         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37839         * lib/getugroups.c (STREQ): Likewise.
37840         * lib/fnmatch.c (STREQ): Likewise.
37841         Spotted by Bruno Haible.
37842
37843 2009-07-04  Jim Meyering  <meyering@redhat.com>
37844
37845         argv-iter: new module
37846         * MODULES.html.sh: Add argv-iter.
37847         * lib/argv-iter.c, lib/argv-iter.h: New files.
37848         * modules/argv-iter: New file.
37849         * modules/argv-iter-tests: New file.
37850         * tests/test-argv-iter.c: Test it.
37851
37852 2009-07-04  Bruno Haible  <bruno@clisp.org>
37853
37854         Fix assertion.
37855         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37856         contains more exact copies of a given entry than file2, leave the extra
37857         copies unpaired rather than aborting.
37858         Reported by Eric Blake.
37859
37860 2009-07-02  Bruno Haible  <bruno@clisp.org>
37861
37862         Speedup git-merge-changelog for git cherry-pick.
37863         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37864         (entries_mapping_get): New function, extracted from compute_mapping.
37865         (entries_mapping_reverse_get): New function.
37866         (compute_mapping): Add a 'full' argument. Return the result in a
37867         'struct entries_mapping'.
37868         (main): Update. Access the mappings through entries_mapping_get.
37869         Reported by Eric Blake.
37870
37871 2009-07-02  Bruno Haible  <bruno@clisp.org>
37872
37873         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37874         best_i.
37875
37876 2009-07-02  Bruno Haible  <bruno@clisp.org>
37877
37878         Speed up approximate search for matching ChangeLog entries.
37879         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37880         argument. Call fstrcmp_bounded instead of fstrcmp.
37881         (compute_mapping, try_split_merged_entry, main): Update callers.
37882
37883 2009-07-02  Bruno Haible  <bruno@clisp.org>
37884
37885         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37886
37887 2009-06-30  Bruno Haible  <bruno@clisp.org>
37888
37889         Reduce the number of uc_is_cased calls.
37890         * lib/unicase.h (casing_suffix_context_t): Add
37891         'first_char_except_ignorable' field.
37892         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37893         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37894         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37895         Update initializer.
37896         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37897         case-ignorable characters.
37898         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37899         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37900         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37901         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37902         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37903
37904 2009-06-30  Bruno Haible  <bruno@clisp.org>
37905
37906         Tests for module 'unicase/ignorable'.
37907         * modules/unicase/ignorable-tests: New file.
37908         * tests/unicase/test-ignorable.c: New file, generated by
37909         gen-uni-tables.
37910
37911         Tests for module 'unicase/cased'.
37912         * modules/unicase/cased-tests: New file.
37913         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37914         * tests/unicase/test-predicate-part1.h: New file, derived from
37915         tests/unictype/test-predicate-part1.h.
37916         * tests/unicase/test-predicate-part2.h: New file, same as
37917         tests/unictype/test-predicate-part2.h.
37918
37919         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37920         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37921         (output_casing_properties): New function.
37922         (main): Call it.
37923         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37924         * lib/unicase/cased.c: Include unictype/bitmap.h.
37925         (uc_is_cased): Define through a bitmap lookup.
37926         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37927         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37928         (uc_is_case_ignorable): Define through a bitmap lookup.
37929         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37930         lib/unictype/bitmap.h.
37931         (Depends-on): Add inline. Clean up.
37932         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37933         lib/unictype/bitmap.h.
37934         (Depends-on): Add inline. Clean up.
37935         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37936         recognition.
37937         * tests/unicase/test-u16-tolower.c (main): Likewise.
37938         * tests/unicase/test-u32-tolower.c (main): Likewise.
37939
37940 2009-06-30  Bruno Haible  <bruno@clisp.org>
37941
37942         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37943         * lib/unicase/u16-casemap.c: Likewise.
37944         * lib/unicase/u32-casemap.c: Likewise.
37945
37946 2009-06-29  Bruno Haible  <bruno@clisp.org>
37947
37948         Define u32_casefold as a wrapper around u32_ct_casefold.
37949         * lib/unicase/u32-casefold.c: Update.
37950         * modules/unicase/u32-casefold (Depends-on): Add
37951         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37952         unicase/empty-suffix-context. Clean up.
37953
37954         Define u16_casefold as a wrapper around u16_ct_casefold.
37955         * lib/unicase/u16-casefold.c: Update.
37956         * modules/unicase/u16-casefold (Depends-on): Add
37957         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37958         unicase/empty-suffix-context. Clean up.
37959
37960         Define u8_casefold as a wrapper around u8_ct_casefold.
37961         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37962         * lib/unicase/u8-casefold.c: Update.
37963         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37964         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37965
37966         Define u32_totitle as a wrapper around u32_ct_totitle.
37967         * lib/unicase/u32-totitle.c: Update.
37968         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37969         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37970
37971         Define u16_totitle as a wrapper around u16_ct_totitle.
37972         * lib/unicase/u16-totitle.c: Update.
37973         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37974         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37975
37976         Define u8_totitle as a wrapper around u8_ct_totitle.
37977         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37978         functions.
37979         (FUNC): Delegate to U_CT_TOTITLE.
37980         * lib/unicase/u8-totitle.c: Update.
37981         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37982         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37983
37984         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37985         invocation.
37986         * modules/unicase/u32-tolower (Depends-on): Add
37987         unicase/empty-prefix-context, unicase/empty-suffix-context.
37988
37989         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37990         invocation.
37991         * modules/unicase/u16-tolower (Depends-on): Add
37992         unicase/empty-prefix-context, unicase/empty-suffix-context.
37993
37994         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37995         * modules/unicase/u8-tolower (Depends-on): Add
37996         unicase/empty-prefix-context, unicase/empty-suffix-context.
37997
37998         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37999         invocation.
38000         * modules/unicase/u32-toupper (Depends-on): Add
38001         unicase/empty-prefix-context, unicase/empty-suffix-context.
38002
38003         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38004         invocation.
38005         * modules/unicase/u16-toupper (Depends-on): Add
38006         unicase/empty-prefix-context, unicase/empty-suffix-context.
38007
38008         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38009         * modules/unicase/u8-toupper (Depends-on): Add
38010         unicase/empty-prefix-context, unicase/empty-suffix-context.
38011
38012         New module 'unicase/u32-ct-casefold'.
38013         * lib/unicase/u32-ct-casefold.c: New file.
38014         * modules/unicase/u32-ct-casefold: New file.
38015
38016         New module 'unicase/u16-ct-casefold'.
38017         * lib/unicase/u16-ct-casefold.c: New file.
38018         * modules/unicase/u16-ct-casefold: New file.
38019
38020         New module 'unicase/u8-ct-casefold'.
38021         * lib/unicase/u8-ct-casefold.c: New file.
38022         * lib/unicase/u-ct-casefold.h: New file, derived from
38023         lib/unicase/u-casefold.h.
38024         * modules/unicase/u8-ct-casefold: New file.
38025
38026         New module 'unicase/u32-ct-totitle'.
38027         * lib/unicase/u32-ct-totitle.c: New file.
38028         * modules/unicase/u32-ct-totitle: New file.
38029
38030         New module 'unicase/u16-ct-totitle'.
38031         * lib/unicase/u16-ct-totitle.c: New file.
38032         * modules/unicase/u16-ct-totitle: New file.
38033
38034         New module 'unicase/u8-ct-totitle'.
38035         * lib/unicase/u8-ct-totitle.c: New file.
38036         * lib/unicase/u-ct-totitle.h: New file, derived from
38037         lib/unicase/u-totitle.h.
38038         * modules/unicase/u8-ct-totitle: New file.
38039
38040         New module 'unicase/u32-ct-tolower'.
38041         * lib/unicase/u32-ct-tolower.c: New file.
38042         * modules/unicase/u32-ct-tolower: New file.
38043
38044         New module 'unicase/u16-ct-tolower'.
38045         * lib/unicase/u16-ct-tolower.c: New file.
38046         * modules/unicase/u16-ct-tolower: New file.
38047
38048         New module 'unicase/u8-ct-tolower'.
38049         * lib/unicase/u8-ct-tolower.c: New file.
38050         * modules/unicase/u8-ct-tolower: New file.
38051
38052         New module 'unicase/u32-ct-toupper'.
38053         * lib/unicase/u32-ct-toupper.c: New file.
38054         * modules/unicase/u32-ct-toupper: New file.
38055
38056         New module 'unicase/u16-ct-toupper'.
38057         * lib/unicase/u16-ct-toupper.c: New file.
38058         * modules/unicase/u16-ct-toupper: New file.
38059
38060         New module 'unicase/u8-ct-toupper'.
38061         * lib/unicase/u8-ct-toupper.c: New file.
38062         * modules/unicase/u8-ct-toupper: New file.
38063
38064         Add context arguments to u*_casemap functions.
38065         * lib/unicase/unicasemap.h: Include unicase.h.
38066         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38067         suffix_context arguments.
38068         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38069         functions.
38070         (FUNC): Add prefix_context and suffix_context arguments. Use
38071         uc_is_cased and uc_is_case_ignorable.
38072         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38073         * lib/unicase/u16-casemap.c: Likewise.
38074         * lib/unicase/u32-casemap.c: Likewise.
38075         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38076         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38077         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38078         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38079         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38080         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38081
38082         New module 'unicase/u32-suffix-context'.
38083         * lib/unicase/u32-suffix-context.c: New file.
38084         * modules/unicase/u32-suffix-context: New file.
38085
38086         New module 'unicase/u16-suffix-context'.
38087         * lib/unicase/u16-suffix-context.c: New file.
38088         * modules/unicase/u16-suffix-context: New file.
38089
38090         New module 'unicase/u8-suffix-context'.
38091         * lib/unicase/u8-suffix-context.c: New file.
38092         * lib/unicase/u-suffix-context.h: New file.
38093         * modules/unicase/u8-suffix-context: New file.
38094
38095         New module 'unicase/empty-suffix-context'.
38096         * lib/unicase/empty-suffix-context.c: New file.
38097         * modules/unicase/empty-suffix-context: New file.
38098
38099         New module 'unicase/u32-prefix-context'.
38100         * lib/unicase/u32-prefix-context.c: New file.
38101         * modules/unicase/u32-prefix-context: New file.
38102
38103         New module 'unicase/u16-prefix-context'.
38104         * lib/unicase/u16-prefix-context.c: New file.
38105         * modules/unicase/u16-prefix-context: New file.
38106
38107         New module 'unicase/u8-prefix-context'.
38108         * lib/unicase/u8-prefix-context.c: New file.
38109         * lib/unicase/u-prefix-context.h: New file.
38110         * lib/unicase/context.h: New file.
38111         * modules/unicase/u8-prefix-context: New file.
38112
38113         New module 'unicase/empty-prefix-context'.
38114         * lib/unicase/empty-prefix-context.c: New file.
38115         * modules/unicase/empty-prefix-context: New file.
38116
38117         New module 'unicase/ignorable'.
38118         * lib/unicase/ignorable.c: New file.
38119         * modules/unicase/ignorable: New file.
38120
38121         New module 'unicase/cased'.
38122         * lib/unicase/caseprop.h: New file.
38123         * lib/unicase/cased.c: New file.
38124         * modules/unicase/cased: New file.
38125
38126         New functions for case mapping of substrings.
38127         * lib/unicase.h (casing_prefix_context_t): New type.
38128         (unicase_empty_prefix_context): New variable.
38129         (u8_casing_prefix_context, u16_casing_prefix_context,
38130         u32_casing_prefix_context, u8_casing_prefixes_context,
38131         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38132         declarations.
38133         (casing_suffix_context_t): New type.
38134         (unicase_empty_suffix_context): New variable.
38135         (u8_casing_suffix_context, u16_casing_suffix_context,
38136         u32_casing_suffix_context, u8_casing_suffixes_context,
38137         u16_casing_suffixes_context, u32_casing_suffixes_context,
38138         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38139         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38140         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38141         declarations.
38142
38143 2009-06-28  Jim Meyering  <meyering@redhat.com>
38144
38145         boostrap: indent only with spaces
38146         * build-aux/bootstrap: Indent only with spaces, never TABs.
38147
38148         bootstrap: split long lines
38149         * build-aux/bootstrap: Keep line length < 80.
38150
38151         bootstrap: sync from coreutils
38152         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38153         just as autoreconf does.  Verify a list of prerequisite
38154         package-name,version-number pairs if defined in bootstrap.conf.
38155         Refer to README-prereq, if prerequisites are not satisfied.
38156
38157 2009-06-27  Eric Blake  <ebb9@byu.net>
38158
38159         tests: add test for bogus NULL definition
38160         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38161         * tests/test-stdlib.c: Likewise.
38162         * tests/test-string.c: Likewise.
38163         * tests/test-locale.c: Likewise.
38164         * tests/test-unistd.c: Likewise.
38165         * modules/stdio-tests (Depends-on): Add verify.
38166         * modules/stdlib-tests (Depends-on): Likewise.
38167         * modules/string-tests (Depends-on): Likewise.
38168         * modules/locale-tests (Depends-on): Likewise.
38169         * modules/unistd-tests (Depends-on): Likewise.
38170
38171 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38172
38173         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38174         self-explaining comment.
38175         * m4/selinux-selinux-h: Update serial.
38176         (gl_LIBSELINUX): New macro, adding a warning for missing development
38177         packages to code extracted from...
38178         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38179         Add warning for missing development packages here, too.
38180
38181 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38182
38183         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38184
38185 2009-06-25  Eric Blake  <ebb9@byu.net>
38186
38187         version-etc: fix regression
38188         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38189         gcc.
38190         (version_etc): Use it, to catch bugs with trailing NULL.
38191         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38192         (version_etc_va): Fix logic bug.
38193         * modules/version-etc-tests: Add test.
38194         * tests/test-version-etc.c: New file.
38195         * tests/test-version-etc.sh: Likewise.
38196
38197 2009-06-25  Sam Steingold  <sds@gnu.org>
38198
38199         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38200         mbtowc declaration.
38201
38202 2009-06-25  Eric Blake  <ebb9@byu.net>
38203
38204         fpurge: migrate into <stdio.h>
38205         * lib/fpurge.h: Delete...
38206         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38207         * lib/fpurge.c (fpurge): Change declaring header.
38208         * modules/fpurge (Files): Drop deleted file.
38209         (Depends-on): Add stdio.
38210         (configure.ac): Set witness.
38211         * modules/stdio (Makefile.am): Support fpurge macros.
38212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38213         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38214         * lib/fflush.c: Update client.
38215         * tests/test-fpurge.c: Likewise.
38216         * NEWS: Mention the change.
38217
38218 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38219
38220         * lib/argp-version-etc.c (program_authors): Add const
38221         qualifier.
38222         * lib/version-etc.c: Fix typos in the comments.
38223         * modules/argp-version-etc: Depends on version-etc.
38224
38225 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38226
38227         argp-version-etc: new module.
38228
38229         * lib/argp-version-etc.c: New file.
38230         * lib/argp-version-etc.h: New file.
38231         * modules/argp-version-etc: New file.
38232         * modules/argp-version-etc-tests: New file.
38233         * tests/test-argp-version-etc.c: New test.
38234         * tests/test-argp-version-etc-1.sh: New test.
38235
38236 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38237
38238         Provide additional interfaces and documentation for version-etc
38239         module.
38240
38241         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38242         interfaces.
38243         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38244         prototypes.
38245
38246 2009-06-24  Bruno Haible  <bruno@clisp.org>
38247
38248         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38249         HAVE_LIB${NAME} macro.
38250         Reported by Sam Steingold <sds@gnu.org>.
38251
38252 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38253
38254         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38255         needed.
38256
38257 2009-06-21  Bruno Haible  <bruno@clisp.org>
38258
38259         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38260         work.
38261         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38262         together with LIB${NAME}, LTLIB${NAME}.
38263         Reported by Sam Steingold <sds@gnu.org>.
38264
38265 2009-06-20  Jim Meyering  <meyering@redhat.com>
38266
38267         tests: make sc_require_test_exit_idiom more generic
38268         * top/maint.mk (Exit_witness_file): New overridable variable.
38269         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38270         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38271
38272 2009-06-19  Jim Meyering  <meyering@redhat.com>
38273
38274         hash: reverse order of src/dst parameters in an internal interface
38275         * lib/hash.c (transfer_entries): Reverse order of parameters to
38276         put DST before SRC.  Adjust callers.
38277
38278         tests: test-hash: avoid wholesale duplication
38279         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38280         Instead, use a loop and add a single conditional.
38281
38282         tests: test-hash: allow seed selection via a command line argument
38283         * tests/test-hash.c (get_seed): New function.
38284         (main): Use it.
38285
38286 2009-06-19  Eric Blake  <ebb9@byu.net>
38287
38288         hash: avoid memory leak on allocation failure
38289         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38290         failure.  Factor repeated algorithm...
38291         (transfer_entries): ...into new helper routine.
38292         (hash_delete): React to hash_rehash return value.
38293
38294         hash: reduce memory pressure in hash_rehash no-op case
38295         * lib/hash.c (next_prime): Avoid overflow.
38296         (hash_initialize): Factor bucket size computation...
38297         (compute_bucket_size): ...into new helper function.
38298         (hash_rehash): Use new function and open coding to reduce memory
38299         pressure, and avoid a memory leak in USE_OBSTACK code.
38300         Reported by Jim Meyering.
38301
38302 2009-06-18  Eric Blake  <ebb9@byu.net>
38303
38304         hash: make rotation more obvious
38305         * modules/hash (Depends-on): Add bitrotate and stdint.
38306         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38307         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38308         (SIZE_MAX): Rely on headers for definition.
38309         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38310         (raw_hasher): Use rotr_sz.
38311         Suggested by Jim Meyering.
38312
38313         hash: fix memory leak in last patch
38314         * lib/hash.c (hash_rehash): Avoid memory leak.
38315
38316         hash: avoid no-op rehashing
38317         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38318
38319         hash: provide default callback functions
38320         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38321         (hash_initialize): Use them as defaults.
38322         * tests/test-hash.c (main): Test this.
38323
38324         hash: minor optimization
38325         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38326         when possible.
38327         (hash_initialize): Document this promise.
38328         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38329         * tests/test-hash.c (hash_compare_strings): Test this.
38330
38331 2009-06-18  Bruno Haible  <bruno@clisp.org>
38332
38333         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38334         going to be replaced anyway.
38335
38336 2009-06-18  Bruno Haible  <bruno@clisp.org>
38337
38338         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38339         in one place.
38340         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38341         be replaced anyway.
38342
38343 2009-06-18  Eric Blake  <ebb9@byu.net>
38344
38345         hash: check for resize before insertion
38346         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38347         threshold before insertion, so that a pathological hash_rehash
38348         that fills every bucket can still trigger another rehash.
38349
38350 2009-06-18  Jim Meyering  <meyering@redhat.com>
38351
38352         hash-tests: add a loop around the small tests
38353         * tests/test-hash.c (main): Repeat small tests with selected
38354         small initial table sizes.
38355
38356 2009-06-17  Eric Blake  <ebb9@byu.net>
38357
38358         hash: minor cleanups
38359         * lib/hash.h (hash_entry): Make opaque, by moving...
38360         * lib/hash.c (hash_entry): ...here.
38361         (hash_insert): Clarify restrictions on what can be inserted.
38362         (hash_get_next): Clarify when it is safe to remove an element
38363         during traversal.
38364         (check_tuning): Skip verification when tuning is known safe.
38365         (hash_initialize): Clarify restrictions on tuning.
38366
38367 2009-06-17  Jim Meyering  <jim@meyering.net>
38368         and Eric Blake  <ebb9@byu.net>
38369
38370         hash-tests: new module
38371         * modules/hash-tests: New file.
38372         * tests/test-hash.c: New file.
38373
38374 2009-06-17  Eric Blake  <ebb9@byu.net>
38375
38376         strstr-simple: document new module
38377         * MODULES.html.sh: Document new module.
38378
38379         strstr, strcasestr: replace on platforms with broken memchr
38380         * modules/strstr: Split into...
38381         * modules/strstr-simple: ...new module that does not care about
38382         performance, but does care about glibc bug.
38383         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38384         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38385         if platform memchr is broken, per Debian bug 521737.
38386         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38387         memchr.
38388         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38389         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38390         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38391         * modules/mountlist (Depends-on): Add strstr-simple.
38392         * modules/gen-uni-tables (Depends-on): Likewise.
38393         * modules/argz (Depends-on): Add strstr.
38394
38395 2009-06-17  Bruno Haible  <bruno@clisp.org>
38396
38397         * modules/posix_spawn-internal (Depends-on): Add errno.
38398
38399 2009-06-17  Bruno Haible  <bruno@clisp.org>
38400
38401         Define missing ESTALE on Interix 3.5.
38402         * lib/errno.in.h (ESTALE): Assign a value if missing.
38403         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38404         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38405         missing.
38406         * doc/posix-headers/errno.texi: Mention the Interix bug.
38407         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38408
38409 2009-06-15  Eric Blake  <ebb9@byu.net>
38410
38411         memchr, memchr2: add valgrind exception
38412         * lib/memchr.valgrind: New file.
38413         * lib/memchr2.valgrind: New file.
38414         * modules/memchr (Files): Distribute valgrind file.
38415         * modules/memchr2 (Files): Likewise.
38416
38417         docs: memchr is no longer obsolete
38418         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38419         * lib/string.in.h (memchr): Simplify logic.
38420
38421 2009-06-14  Jim Meyering  <meyering@redhat.com>
38422
38423         link-follow: fix the "checking..." message to not mention trailing slash
38424         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38425         never considered trailing slashes.
38426
38427 2009-06-14  Bruno Haible  <bruno@clisp.org>
38428
38429         * m4/memchr.m4: Mention also the bug on IA-64.
38430         * doc/posix-functions/memchr.texi: Likewise.
38431
38432 2009-06-12  Eric Blake  <ebb9@byu.net>
38433
38434         memchr: detect broken x86_64 and alpha implementations
38435         * modules/memchr-tests (Depends-on): Move mmap detection...
38436         * modules/memchr (Depends-on): ...here.
38437         (configure.ac): Set indicator.
38438         * lib/string.in.h (memchr): Declare replacement.
38439         * modules/string (Makefile.am): Trigger replacement.
38440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38441         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38442         bugs.
38443         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38444         * modules/getpagesize (License): Relax license.
38445
38446 2009-06-11  Bruno Haible  <bruno@clisp.org>
38447
38448         * lib/idpriv.h: Add more references.
38449
38450 2009-06-08  Bruno Haible  <bruno@clisp.org>
38451
38452         Tests for module 'idpriv-droptemp'.
38453         * modules/idpriv-droptemp-tests: New file.
38454         * tests/test-idpriv-droptemp.sh: New file.
38455         * tests/test-idpriv-droptemp.su.sh: New file.
38456         * tests/test-idpriv-droptemp.c: New file.
38457
38458         New module 'idpriv-droptemp'.
38459         * lib/idpriv-droptemp.c: New file.
38460         * modules/idpriv-droptemp: New file.
38461
38462 2009-06-08  Bruno Haible  <bruno@clisp.org>
38463
38464         Tests for module 'idpriv-drop'.
38465         * modules/idpriv-drop-tests: New file.
38466         * tests/test-idpriv-drop.sh: New file.
38467         * tests/test-idpriv-drop.su.sh: New file.
38468         * tests/test-idpriv-drop.c: New file.
38469
38470         New module 'idpriv-drop'.
38471         * lib/idpriv.h: New file.
38472         * lib-idpriv-drop.c: New file.
38473         * m4/idpriv.m4: New file.
38474         * modules/idpriv-drop: New file.
38475
38476 2009-06-08  Bruno Haible  <bruno@clisp.org>
38477
38478         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38479         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38480         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38481         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38482         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38483         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38484         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38485
38486 2009-06-08  Eric Blake  <ebb9@byu.net>
38487
38488         test-strstr: use memory fence, when possible
38489         * tests/test-strstr.c (main): Use memory fence, in order to be
38490         more likely to trigger Debian bug 521737.
38491         * modules/strstr-tests (Files): Pull in additional files.
38492
38493         memchr: no longer obsolete, for wider field testing
38494         * modules/memchr (Status, Notice): Delete, this module is no
38495         longer obsolete.
38496         * modules/vasnprintf (Depends-on): Add memchr.
38497
38498 2009-06-07  Jim Meyering  <meyering@redhat.com>
38499
38500         hash: declare some functions with the warn_unused_result attribute
38501         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38502
38503 2009-06-07  Bruno Haible  <bruno@clisp.org>
38504
38505         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38506         Reported by Eric Blake.
38507
38508 2009-06-06  Eric Blake  <ebb9@byu.net>
38509
38510         test-alignof: fix typo with long double
38511         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38512         compiler error.
38513
38514 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38515
38516         Escape non-texinfo { and }s.
38517         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38518         markup error.
38519
38520 2009-06-04  Jim Meyering  <meyering@redhat.com>
38521
38522         gitlog-to-changelog: don't infloop on an empty commit log
38523         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38524         Reported by Boris Petersen <transacid@centerim.org>.
38525
38526 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38527
38528         version-etc: extend for packagers
38529         Add three new configure options, intended for packagers:
38530           --with-packager="packager name"
38531           --with-packager-version="packager-specific version"
38532           --with-packager-bug-reports="packager bug reporting"
38533         An example with coreutils:
38534           $ ./configure \
38535             --with-packager=Gentoo \
38536             --with-packager-bug-report=http://bugs.gentoo.org/ \
38537             --with-packager-version="patchset 1.6"
38538           $ ./src/ls --version | head -n2
38539           ls (GNU coreutils) 7.1-dirty
38540           Packaged by Gentoo (patchset 1.6)
38541         Note that the bug reporting info via --help doesn't show up because
38542         coreutils uses its own custom emit_bug_reporting_address() implementation
38543         in src/system.h.  If it didn't, it'd look like:
38544           $ ./src/ls --help | tail -n4
38545           Report bugs to <bug-coreutils@gnu.org>.
38546           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38547           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38548           General help using GNU software: <http://www.gnu.org/gethelp/>.
38549         * lib/version-etc.c: Print new information, if provided.
38550         * m4/version-etc.m4: New file.
38551         * modules/version-etc (Files): Add m4/version-etc.m4.
38552         (configure.ac): Add gl_VERSION_ETC.
38553
38554 2009-05-31  Bruno Haible  <bruno@clisp.org>
38555
38556         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38557         and 'int64_t'.
38558         * modules/alignof-tests (Dependencies): Add stdint.
38559         Reported by Eric Blake.
38560
38561 2009-05-31  Bruno Haible  <bruno@clisp.org>
38562
38563         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38564         restriction due to compiler bugs.
38565         Reported by Eric Blake.
38566
38567 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38568             Bruno Haible  <bruno@clisp.org>
38569
38570         Fix test-alignof failure.
38571         * lib/alignof.h (alignof_slot): New macro.
38572         (alignof_type): New macro, with the same semantics as the previous
38573         'alignof'.
38574         (alignof): Alias to alignof_slot.
38575         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38576         check that the results are usable as constant expressions.
38577
38578 2009-05-31  Bruno Haible  <bruno@clisp.org>
38579
38580         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38581         * tests/test-memchr.c (main): Check that memchr does not read past the
38582         first occurrence of the byte.
38583         * tests/test-strstr.c (main): Update comment.
38584         Suggested by Eric Blake.
38585
38586 2009-05-30  Bruno Haible  <bruno@clisp.org>
38587
38588         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38589         detail how to use dumpbin.
38590         Reported by David Byron <dbyron@dbyron.com>.
38591
38592 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38593
38594         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38595
38596 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38597
38598         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38599
38600 2009-05-28  Bruno Haible  <bruno@clisp.org>
38601
38602         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38603         build-aux/ files.
38604
38605 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38606
38607         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38608
38609 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38610
38611         * gnulib-tool (sed_transform_main_lib_file)
38612         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38613         regexps.
38614
38615 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38616
38617         * tests/test-strstr.c: Add another self-test.
38618         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38619         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38620
38621 2009-05-23  Bruno Haible  <bruno@clisp.org>
38622
38623         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38624         change.
38625
38626 2009-05-21  Bruno Haible  <bruno@clisp.org>
38627
38628         Simplify use of mode_t varargs.
38629         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38630         uses 'mode_t' or 'int'.
38631         * lib/openat.c (openat): Likewise.
38632         * lib/open-safer.c (open_safer): Likewise.
38633         * m4/mode_t.m4: New file.
38634         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38635         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38636         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38637         * modules/open (Files): Add m4/mode_t.m4.
38638         * modules/openat (Files): Likewise.
38639         * modules/fcntl-safer (Files): Likewise.
38640         Suggested by Eric Blake.
38641
38642 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38643
38644         * doc/glibc-functions/fallocate.texi: New file.
38645         * doc/gnulib.texi: Include it.
38646
38647 2009-05-21  Eric Blake  <ebb9@byu.net>
38648             Bruno Haible  <bruno@clisp.org>
38649
38650         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38651         invocations.
38652         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38653
38654 2009-05-21  Eric Blake  <ebb9@byu.net>
38655             Bruno Haible  <bruno@clisp.org>
38656
38657         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38658         include_next. Fix of 2008-11-20 commit.
38659         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38660         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38661         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38662         NEXT_MATH_H.
38663         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38664         instead of NEXT_MATH_H.
38665
38666 2009-05-21  Bruno Haible  <bruno@clisp.org>
38667
38668         Avoid redefinition warnings for SIZE_MAX.
38669         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38670         Reported by Simon Josefsson.
38671
38672 2009-05-21  Bruno Haible  <bruno@clisp.org>
38673
38674         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38675         AC_CACHE_VAL.
38676
38677 2009-05-20  Bruno Haible  <bruno@clisp.org>
38678
38679         Make zeroptr.h work on mingw.
38680         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38681         mprotect.
38682         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38683         * modules/memchr2-tests (configure.ac): Likewise.
38684         * modules/memcmp-tests (configure.ac): Likewise.
38685         * modules/memmem-tests (configure.ac): Likewise.
38686         * modules/memrchr-tests (configure.ac): Likewise.
38687         Reported by Simon Josefsson.
38688
38689 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38690
38691         * tests/test-glob.c: Include string.h for strcmp prototype.
38692
38693 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38694
38695         * modules/getdelim (Depends-on): Add explicit stdint, although it
38696         was implicitly already pulled in via realloc-posix.
38697         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38698
38699 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38700
38701         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38702         G. Christensen" <tgc@jupiterrise.com>.
38703         * m4/sys_socket_h.m4: Check for sa_family_t.
38704         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38705         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38706         * tests/test-sys_socket.c: Check that sa_family_t works.
38707
38708 2009-05-18  Eric Blake  <ebb9@byu.net>
38709
38710         maint.mk: allow gnulib_dir in VPATH build
38711         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38712
38713 2009-05-15  Jim Meyering  <meyering@redhat.com>
38714
38715         maint.mk: Give gnulib_dir a default definition.
38716         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38717         Thus, most packages no longer need to specify this variable in cfg.mk
38718
38719 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38720
38721         rename.m4: fix typos that would make non-mingw cross-configure fail
38722         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38723
38724 2009-05-13  Eric Blake  <ebb9@byu.net>
38725
38726         mmap-anon: avoid out-of-order autoconf expansion
38727         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38728         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38729         * modules/memchr-tests (Depends-on): Add extensions.
38730         * modules/memchr2-tests (Depends-on): Add extensions.
38731         * modules/memcmp-tests (Depends-on): Add extensions.
38732         * modules/memmem-tests (Depends-on): Add extensions.
38733         * modules/memrchr-tests (Depends-on): Add extensions.
38734
38735 2009-05-13  Bruno Haible  <bruno@clisp.org>
38736
38737         Make some tests ISO C 99 compliant.
38738         * tests/zerosize-ptr.h: New file.
38739         * tests/test-memchr.c: Include zerosize-ptr.h.
38740         (main): Use a zero-size object pointer instead of NULL.
38741         * tests/test-memchr2.c: Include zerosize-ptr.h.
38742         (main): Use a zero-size object pointer instead of NULL.
38743         * tests/test-memcmp.c: Include zerosize-ptr.h.
38744         (main): Use a zero-size object pointer instead of NULL.
38745         * tests/test-memmem.c: Include zerosize-ptr.h.
38746         (main): Use a zero-size object pointer instead of NULL.
38747         * tests/test-memrchr.c: Include zerosize-ptr.h.
38748         (main): Use a zero-size object pointer instead of NULL.
38749         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38750         m4/mmap-anon.m4.
38751         (Depends-on): Add getpagesize.
38752         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38753         * modules/memchr2-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/memcmp-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/memmem-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/memrchr-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
38770 2009-05-12  Bruno Haible  <bruno@clisp.org>
38771
38772         Tests for module 'alignof'.
38773         * modules/alignof-tests: New file.
38774         * tests/test-alignof.c: New file.
38775
38776 2009-05-12  Bruno Haible  <bruno@clisp.org>
38777
38778         Fix alignof macro.
38779         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38780         vendor compilers that are always correct.
38781
38782 2009-05-12  Bruno Haible  <bruno@clisp.org>
38783
38784         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38785         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38786         not whether its fully works.
38787
38788 2009-05-12  Bruno Haible  <bruno@clisp.org>
38789
38790         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38791
38792 2009-05-12  Jim Meyering  <meyering@redhat.com>
38793
38794         * top/maint.mk: Adjust backslash alignment.
38795
38796 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38797
38798         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38799
38800 2009-05-11  Eric Blake  <ebb9@byu.net>
38801
38802         argp: avoid undefined behavior
38803         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38804         macros.
38805
38806 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38807
38808         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38809         user.name to prevent git commit from complaining.
38810
38811 2009-05-10  Bruno Haible  <bruno@clisp.org>
38812
38813         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38814         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38815         it rewrites every file name only once.
38816         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38817
38818 2009-05-08  Bruno Haible  <bruno@clisp.org>
38819
38820         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38821         instead of 'max'.
38822
38823 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38824
38825         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38826         sockaddr_storage test.
38827
38828 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38829
38830         * modules/sys_socket (Makefile.am): Substitute
38831         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38832         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38833         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38834         * tests/test-sys_socket.c: Check sockaddr_storage.
38835
38836 2009-05-08  Bruno Haible  <bruno@clisp.org>
38837
38838         New module 'alignof'.
38839         * lib/alignof.h: New file.
38840         * modules/alignof: New file.
38841
38842 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38843             Bruno Haible  <bruno@clisp.org>
38844
38845         Fix test-file-has-acl on FreeBSD.
38846         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38847         mask is implicitly added.
38848         * tests/test-file-has-acl.c: Include <signal.h>.
38849         (main): Terminate the test after 5 seconds.
38850         * modules/acl-tests (configure.ac): Check for alarm function.
38851
38852 2009-05-04  Bruno Haible  <bruno@clisp.org>
38853
38854         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38855         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38856         * modules/errno (configure.ac): Drop AC_REQUIRE.
38857         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38858         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38859
38860 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38861
38862         * modules/glob-tests: New module.
38863         * tests/test-glob.c: Add.
38864
38865 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38866
38867         * modules/fnmatch-tests: New module.
38868         * tests/test-fnmatch.c: Add.
38869
38870 2009-05-04  Eric Blake  <ebb9@byu.net>
38871
38872         maint: make the new no-submodule-changes rule VPATH-safe
38873         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38874
38875 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38876             Bruno Haible  <bruno@clisp.org>
38877
38878         acl: Fix infinite loop on FreeBSD.
38879         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38880         of return value from acl_get_entry.
38881         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38882         Likewise.
38883
38884 2009-05-03  Bruno Haible  <bruno@clisp.org>
38885
38886         * lib/acl-internal.h (acl_entries): Clarify return value.
38887         * lib/acl_entries.c (acl_entries): Likewise.
38888
38889 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38890
38891         Bug fix in acl module.
38892         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38893
38894 2009-05-03  Bruno Haible  <bruno@clisp.org>
38895
38896         Create gperf-generated file in the source dir, not in the build dir.
38897         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38898         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38899         * modules/unicase/locale-language (unicase/locale-languages.h):
38900         Likewise.
38901         * modules/unicase/special-casing (unicase/special-casing-table.h):
38902         Likewise.
38903         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38904         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38905         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38906         Reported by Ralf Wildenhues.
38907
38908 2009-05-03  Bruno Haible  <bruno@clisp.org>
38909
38910         * modules/fnmatch (Description, configure.ac): Taken from
38911         fnmatch-posix.
38912         * modules/fnmatch-posix: Turn into a symbolic reference to the
38913         'fnmatch' module, and deprecate.
38914         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38915
38916 2009-05-03  Bruno Haible  <bruno@clisp.org>
38917
38918         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38919         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38920         Reported by Ralf Wildenhues.
38921
38922 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38923
38924         * m4/fnmatch.m4: Fix fnmatch re-define.
38925
38926 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38927
38928         priv-set: new module and tests; adapt write-any-file
38929         * lib/priv-set.c: New file.
38930         * lib/priv-set.h: New file.
38931         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38932         * lib/write-any-file.c: Simplify by using priv-set module.
38933         * m4/priv-set.m4: New file.
38934         * modules/priv-set: New file.
38935         * modules/unlinkdir: Add dependency on priv-set module.
38936         * modules/write-any-file: Likewise.
38937
38938         Tests for module 'priv-set'.
38939         * modules/priv-set-tests: New file.
38940         * tests/test-priv-set.c: New file.
38941
38942 2009-05-03  Jim Meyering  <meyering@redhat.com>
38943             Bruno Haible  <bruno@clisp.org>
38944
38945         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38946         use the converted UTF-8 variant of the name instead.
38947
38948 2009-05-03  Jim Meyering  <meyering@redhat.com>
38949
38950         tests: tighten some getdate tests
38951         * tests/test-getdate.c (main): Tighten tests: require equality,
38952         not just greater than.  Set TZ envvar to UTC0.
38953
38954 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38955
38956         getdate: correctly interpret "next monday" when run on a Monday
38957         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38958         that e.g., "next tues" (when run on a tuesday) results in a date
38959         that is one week in the future, and not today's date.
38960         I.e., add a week when the wday is the same as the current one.
38961         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38962         and earlier by Martin Bernreuther and Jan Minář.
38963         * tests/test-getdate.c (main): Check that "next DAY" is always in
38964         the future and that "last DAY" is always in the past.
38965
38966 2009-05-02  Jim Meyering  <meyering@redhat.com>
38967
38968         build: ensure that a release build fails when a submodule is unclean
38969         * top/maint.mk (no-submodule-changes): New rule.
38970         (alpha beta major): Depend on it.
38971
38972 2009-05-02  Bruno Haible  <bruno@clisp.org>
38973
38974         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38975         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38976         shell variable gl_fnmatch_required to detect which variant is
38977         requested.
38978         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38979         gl_FUNC_FNMATCH_POSIX.
38980         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38981         exclude fnmatch-posix.
38982
38983 2009-05-02  Bruno Haible  <bruno@clisp.org>
38984
38985         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38986         * modules/mbsrtowcs (License): Change to LGPLv2+.
38987         * modules/strnlen1 (License): Likewise.
38988         Reported by Simon Josefsson.
38989
38990 2009-05-02  Bruno Haible  <bruno@clisp.org>
38991
38992         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38993         "cross".
38994         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38995         gnulib-tool was called with option --source-base=lib.
38996
38997 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38998
38999         Use automake *-local hooks without commands, for extensibility.
39000         * modules/localcharset (Makefile.am): Rename install-exec-local
39001         rule to install-exec-localcharset, and make it a prerequisite of
39002         install-exec-local.  Likewise, rename the uninstall-local rule to
39003         uninstall-localcharset, and make it a prerequisite of the former.
39004
39005 2009-05-01  Bruno Haible  <bruno@clisp.org>
39006
39007         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39008         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39009         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39010         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39011         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39012         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39013         m4/locale-zh.m4, m4/codeset.m4.
39014
39015         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39016         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39017         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39018         m4/locale-zh.m4.
39019
39020         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39021         REPLACE_WCRTOMB if mbstate_t must be replaced.
39022         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39023         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39024
39025 2009-05-01  Bruno Haible  <bruno@clisp.org>
39026
39027         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39028         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39029         dngettext, dcngettext, textdomain, bindtextdomain,
39030         bind_textdomain_codeset): Undefine before redefining.
39031
39032 2009-04-30  Bruno Haible  <bruno@clisp.org>
39033
39034         Fix bug introduced on 2009-04-25.
39035         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39036         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39037         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39038         is defined.
39039         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39040         is defined.
39041         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39042         is defined.
39043         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39044
39045 2009-04-28  Bruno Haible  <bruno@clisp.org>
39046
39047         Comment tweaks.
39048         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39049         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39050         * lib/unicase.h (u*_casexfrm): Likewise.
39051         Reported by Paolo Bonzini.
39052
39053 2009-04-28  Bruno Haible  <bruno@clisp.org>
39054
39055         Fix a compilation error.
39056         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39057         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39058         Reported by Jim Meyering.
39059
39060 2009-04-27  Bruno Haible  <bruno@clisp.org>
39061
39062         New module 'libunistring'.
39063         * modules/libunistring: New file.
39064         * m4/libunistring.m4: New file.
39065         * MODULES.html.sh (Unicode string functions): Add it.
39066
39067 2009-04-27  Eric Blake  <ebb9@byu.net>
39068
39069         maint.mk: allow package-specific header to provide <config.h>
39070         * top/maint.mk (sc_require_config_h): New variable.
39071         (sc_require_config_h, sc_require_config_h_first): Use it.
39072
39073 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39074
39075         * top/maint.mk (sc_avoid_if_before_free): Except
39076         useless-if-before-free script.
39077
39078 2009-04-27  Eric Blake  <ebb9@byu.net>
39079
39080         maintainer-makefile: depend on all required helper scripts
39081         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39082         useless-if-before-free.
39083         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39084         version, rather than assuming gnulib checkout is available.
39085         Reported by Simen Josefsson.
39086
39087 2009-04-26  Bruno Haible  <bruno@clisp.org>
39088
39089         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39090         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39091         "../" or "..".
39092
39093 2009-04-26  Bruno Haible  <bruno@clisp.org>
39094
39095         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39096         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39097         AC_LIB_HAVE_LINKFLAGS.
39098
39099 2009-04-26  Bruno Haible  <bruno@clisp.org>
39100
39101         Simplify calling convention of u*_conv_from_encoding.
39102         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39103         u32_conv_from_encoding): Expect a resultbuf argument and return the
39104         result directly as a pointer.
39105         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39106         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39107         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39108         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39109         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39110         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39111         Update.
39112         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39113         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39114         * lib/vasnprintf.c (VASNPRINTF): Update.
39115         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39116         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39117         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39118         * NEWS: Mention the change.
39119
39120 2009-04-26  Bruno Haible  <bruno@clisp.org>
39121
39122         Simplify calling convention of u*_conv_to_encoding.
39123         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39124         u32_conv_to_encoding): Expect a resultbuf argument and return the
39125         result directly as a pointer.
39126         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39127         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39128         freeing scaled_offsets if mem_iconveha failed.
39129         * lib/unicase/u-casexfrm.h (FUNC): Update.
39130         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39131         * lib/vasnprintf.c (VASNPRINTF): Update.
39132         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39133         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39134         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39135         * NEWS: Mention the change.
39136
39137 2009-04-26  Bruno Haible  <bruno@clisp.org>
39138
39139         Avoid test failures on AIX and OSF/1.
39140         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39141         malloc(0).
39142         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39143         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39144         Likewise.
39145         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39146         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39147         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39148         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39149         * doc/posix-functions/malloc.texi: Document the portability problem
39150         related to malloc(0).
39151
39152 2009-04-26  Bruno Haible  <bruno@clisp.org>
39153
39154         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39155         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39156         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39157
39158 2009-04-25  Bruno Haible  <bruno@clisp.org>
39159
39160         Avoid link error when creating a namespace clean library.
39161         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39162         as macro with arguments if already defined as an alias.
39163         * lib/signbitf.c (gl_signbitf): Don't undefine.
39164         * lib/signbitd.c (gl_signbitd): Don't undefine.
39165         * lib/signbitl.c (gl_signbitl): Don't undefine.
39166
39167 2009-04-25  Jim Meyering  <meyering@redhat.com>
39168
39169         vc-list-files: fix another quoting bug
39170         * build-aux/vc-list-files: Avoid sed backslash expansion
39171         of pathological directory names.
39172
39173 2009-04-25  Eric Blake  <ebb9@byu.net>
39174
39175         vc-list-files: fix shell quoting error
39176         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39177         timestamp.
39178
39179 2009-04-25  Jim Meyering  <meyering@redhat.com>
39180
39181         vc-list-files: restore lost functionality with subdir argument
39182         * build-aux/vc-list-files: When given a non-"." sub-directory
39183         argument, substitute the $dir/ prefix back onto each resulting name.
39184         Otherwise, coreutils' root_tests check would fail.
39185
39186 2009-04-24  Eric Blake  <ebb9@byu.net>
39187
39188         vc-list-files: ignore git symlinks
39189         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39190         than ls-files, to ignore git symlinks.
39191
39192         maint.mk: import improvements from m4
39193         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39194         (move_if_change): Delete unused macro.
39195         (news-date-check, vc-diff-check): Support VPATH builds.
39196         (announcement): Likewise.  Split --bootstrap-tools list...
39197         (boostrap-tools): ...into separate list, which can be overridden
39198         in cfg.mk.
39199         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39200         requiring dependency on useless-if-before-free module.
39201         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39202         Support VPATH builds.
39203
39204 2009-04-24  Jim Meyering  <meyering@redhat.com>
39205
39206         maint.mk: remove coreutils-specific rules and variables
39207         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39208         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39209         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39210
39211         maint.mk: remove obsolete rule
39212         * top/maint.mk (rel-check): Remove rule.
39213         (WGET, WGETFLAGS): Remove now-unused variables.
39214
39215 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39216
39217         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39218         consistency.
39219
39220         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39221         '$(PATH_SEPARATOR)' instead of ':'.
39222
39223 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39224
39225         * lib/getopt1.c (main): Use 'const' for static array.
39226
39227 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39228
39229         * top/maint.mk: Sync with coreutils.
39230         * NEWS: Explain incompatibilities.
39231
39232 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39233             Bruno Haible  <bruno@clisp.org>
39234
39235         Fix cross-compilation results.
39236         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39237         statement, as third argument of AC_TRY_RUN.
39238         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39239         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39240         Likewise.
39241         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39242         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39243         Likewise.
39244         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39245         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39246         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39247
39248 2009-04-20  Bruno Haible  <bruno@clisp.org>
39249
39250         Avoid test failure on mingw.
39251         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39252
39253 2009-04-20  Bruno Haible  <bruno@clisp.org>
39254
39255         Avoid compilation error on mingw.
39256         * modules/localename-tests (Depends-on): Add locale.
39257
39258 2009-04-19  Bruno Haible  <bruno@clisp.org>
39259
39260         Support for building a shared library on Windows platforms.
39261         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39262         (main): Test the presence of UNINORM_NFC here.
39263         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39264         (main): Test the presence of UNINORM_NFD here.
39265         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39266         (main): Test the presence of UNINORM_NFKC here.
39267         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39268         (main): Test the presence of UNINORM_NFKD here.
39269
39270 2009-04-19  Bruno Haible  <bruno@clisp.org>
39271
39272         Avoid a compiler warning.
39273         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39274         Change type of variable 'sequence'.
39275
39276 2009-04-19  Bruno Haible  <bruno@clisp.org>
39277
39278         * modules/configmake (Makefile.am): When the contents of configmake.h
39279         does not change, arrange to preserve its modification time.
39280
39281 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39282
39283         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39284         gettext domain.
39285
39286 2009-04-16  Jim Meyering  <meyering@redhat.com>
39287
39288         useless-if-before-free: improve conversion code
39289         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39290         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39291
39292 2009-04-14  Bruno Haible  <bruno@clisp.org>
39293
39294         * modules/fcntl (Depends-on): Add extensions.
39295         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39296
39297 2009-04-12  Ben Pfaff  <blp@gnu.org>
39298
39299         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39300         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39301
39302 2009-03-20  Ben Pfaff  <blp@gnu.org>
39303
39304         Make rename replace existing destinations on Windows.
39305         * m4/rename.m4: Add test for Mingw.
39306         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39307         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39308         * doc/posix-functions/rename.texi: Document.
39309
39310 2009-04-10  Bruno Haible  <bruno@clisp.org>
39311
39312         New include file "iconveh.h".
39313         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39314         * lib/striconveh.h: Include it.
39315         (enum iconv_ilseq_handler): Remove definition.
39316         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39317         striconveh.h.
39318         * lib/striconveha.c: Include striconveh.h.
39319         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39320         * modules/striconveh (Files): Add lib/iconveh.h.
39321         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39322         lib/striconveh.h.
39323
39324 2009-04-10  Bruno Haible  <bruno@clisp.org>
39325
39326         * lib/uniconv.h: Update comment.
39327
39328 2009-04-10  Bruno Haible  <bruno@clisp.org>
39329
39330         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39331         always.
39332         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39333         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39334         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39335         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39336         "unistring-notinline.h", so that the function gets defined always.
39337         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39338         * lib/unistr/u8-uctomb.c: Likewise.
39339         * lib/unistr/u16-mbtouc.c: Likewise.
39340         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39341         * lib/unistr/u16-uctomb.c: Likewise.
39342         * lib/unistr/u32-mbtouc.c: Likewise.
39343         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39344         * lib/unistr/u32-uctomb.c: Likewise.
39345
39346 2009-04-10  Bruno Haible  <bruno@clisp.org>
39347
39348         Mark 'utime' obsolete.
39349         * modules/utime (Status, Notice): New sections.
39350         Suggested by Jim Meyering.
39351
39352         Fix cross-compile guess for utime test.
39353         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39354         autoconf.
39355         * doc/posix-functions/utime.texi: Give more precisions.
39356         Reported by Jan <ipif@ymail.com>.
39357
39358 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39359
39360         filevercmp: correct today's change
39361         * lib/filevercmp.c: Also handle coreutils' test inputs.
39362         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39363
39364         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39365         for reporting it.
39366         * lib/filevercmp.c: Special handle for "", "." and "..".
39367         * tests/test-filevercmp.c: Enlarge the set suite.
39368
39369 2009-04-07  Jim Meyering  <meyering@redhat.com>
39370
39371         useless-if-before-free: show how to remove braced useless free, too
39372         * build-aux/useless-if-before-free: still only in a comment, though.
39373
39374 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39375
39376         maint.mk: import changes to syntax-check macros from coreutils
39377         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39378         Use them in the relevant macros.
39379
39380 2009-04-06  Bruno Haible  <bruno@clisp.org>
39381
39382         Fix unportable use of bit-fields.
39383         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39384         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39385         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39386
39387 2009-04-06  Bruno Haible  <bruno@clisp.org>
39388
39389         Avoid test failures on AIX and OSF/1.
39390         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39391         that malloc(0) = NULL.
39392         * tests/unicase/test-u8-tolower.c (check): Likewise.
39393         * tests/unicase/test-u8-totitle.c (check): Likewise.
39394         * tests/unicase/test-u8-toupper.c (check): Likewise.
39395         * tests/unicase/test-u16-casefold.c (check): Likewise.
39396         * tests/unicase/test-u16-tolower.c (check): Likewise.
39397         * tests/unicase/test-u16-totitle.c (check): Likewise.
39398         * tests/unicase/test-u16-toupper.c (check): Likewise.
39399         * tests/unicase/test-u32-casefold.c (check): Likewise.
39400         * tests/unicase/test-u32-tolower.c (check): Likewise.
39401         * tests/unicase/test-u32-totitle.c (check): Likewise.
39402         * tests/unicase/test-u32-toupper.c (check): Likewise.
39403         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39404         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39405         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39406         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39407         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39408         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39409         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39410         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39411         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39412         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39413         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39414         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39415
39416 2009-04-05  Bruno Haible  <bruno@clisp.org>
39417
39418         Work around an autoconf limitation.
39419         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39420         comment line if it would be longer than 3 KB.
39421
39422 2009-04-05  Bruno Haible  <bruno@clisp.org>
39423
39424         Avoid test failure with libiconv-1.13.
39425         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39426         of the expected test results.
39427
39428 2009-04-05  Bruno Haible  <bruno@clisp.org>
39429
39430         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39431         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39432         that it should be installed.
39433
39434 2009-04-05  Bruno Haible  <bruno@clisp.org>
39435
39436         * gnulib-tool: New option --copy-file.
39437         (func_usage): Document it.
39438         (func_dest_tmpfilename): Moved out of func_import.
39439         (func_add_file, func_update_file): New functions, extracted from
39440         func_import.
39441         (func_import): Update.
39442
39443 2009-04-05  Karl Berry  <karl@gnu.org>
39444
39445         * README: prominently mention gnulib-tool.
39446         Rearrange sections so getting the code is near the top.
39447
39448 2009-04-05  Bruno Haible  <bruno@clisp.org>
39449
39450         * lib/unicase.h: Mention u*_cmp2.
39451         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39452         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39453         * lib/unicase/ulc-casecmp.c: Likewise.
39454         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39455         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39456         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39457         unistr/u8-cmp.
39458         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39459         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39460         unistr/u16-cmp.
39461         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39462         unistr/u32-cmp.
39463
39464         * lib/uninorm.h: Mention u*_cmp2.
39465         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39466         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39467         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39468         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39469         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39470         unistr/u8-cmp.
39471         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39472         unistr/u16-cmp.
39473         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39474         unistr/u32-cmp.
39475
39476         New module 'unistr/u32-cmp2'.
39477         * lib/unistr/u32-cmp2.c: New file.
39478         * modules/unistr/u32-cmp2: New file.
39479
39480         New module 'unistr/u16-cmp2'.
39481         * lib/unistr/u16-cmp2.c: New file.
39482         * modules/unistr/u16-cmp2: New file.
39483
39484         New module 'unistr/u8-cmp2'.
39485         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39486         * lib/unistr/u8-cmp2.c: New file.
39487         * lib/unistr/u-cmp2.h: New file.
39488         * modules/unistr/u8-cmp2: New file.
39489
39490 2009-04-05  Bruno Haible  <bruno@clisp.org>
39491
39492         * lib/unictype.h (uc_property_is_valid): New macro.
39493         * tests/unictype/test-pr_byname.c (main): Use it.
39494
39495         * lib/unistr.h: Doc fixes.
39496         * lib/uniconv.h: Doc fixes.
39497         * lib/unictype.h: Doc fixes.
39498
39499 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39500
39501         Port coreutils 7.2 to Solaris 8.
39502
39503         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39504         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39505         for Solaris 8.  This is a bit of a hack, as it means it's the
39506         caller's responsibility to add -lnsl if needed, but most likely it
39507         won't be needed since only getaddrinfo uses this and getaddrinfo
39508         isn't needed on Solaris 8.
39509
39510         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39511         problem to Solaris 8 encountered with coreutils 7.2, which
39512         resulted in a message "fnmatch.c:292: warning: passing argument 4
39513         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39514         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39515
39516 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39517
39518         * m4/ld-version-script.m4: Add FIXME comment.
39519
39520 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39521
39522         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39523         SOVERSION variable.
39524
39525 2009-04-02  Bruno Haible  <bruno@clisp.org>
39526
39527         * Makefile (info, html, dvi, pdf): Combine the rules.
39528         Suggested by Jim Meyering.
39529
39530 2009-04-01  Bruno Haible  <bruno@clisp.org>
39531
39532         * Makefile (info, html, dvi, pdf): New targets.
39533         Reported by Reuben Thomas <rrt@sc3d.org>.
39534
39535 2009-04-01  Bruno Haible  <bruno@clisp.org>
39536
39537         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39538         can be put into PATH.
39539         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39540
39541 2009-04-01  Bruno Haible  <bruno@clisp.org>
39542
39543         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39544
39545 2009-04-01  Bruno Haible  <bruno@clisp.org>
39546
39547         Rename module 'visibility'.
39548         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39549         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39550         * doc/gnulib.texi: Update.
39551         * MODULES.html.sh (Misc): Update.
39552         * NEWS: Mention the change.
39553
39554 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39555
39556         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39557         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39558         Eric Blake <ebb9@byu.net> for review.
39559         * MODULES.html.sh: Add lib-msvc-compat.
39560         * doc/gnulib.texi: Link to new section.
39561         * m4/ld-output-def.m4: New file.
39562         * doc/ld-output-def.texi: New file.
39563
39564 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39565
39566         Rename ld-version-script to lib-symbol-versions.  Suggested by
39567         Bruno Haible <bruno@clisp.org>.
39568         * modules/ld-version-script: Renamed to lib-symbol-versions.
39569         * doc/ld-version-script.texi: Fix module name.
39570         * MODULES.html.sh: Add lib-symbol-versions.
39571
39572 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39573
39574         * modules/u64-tests: New file.
39575         * tests/test-u64.c: New file.
39576
39577 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39578
39579         * MODULES.html.sh: Mention u64.
39580         * modules/u64: New module.
39581         * modules/crypto/sha512: Depend on u64 module instead of providing
39582         u64.h.
39583
39584 2009-03-27  Eric Blake  <ebb9@byu.net>
39585
39586         test-strerror: make debugging EAI_SYSTEM easier
39587         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39588         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39589         failure was EAI_SYSTEM.
39590
39591 2009-03-25  Bruno Haible  <bruno@clisp.org>
39592
39593         Fix a problem with --enable-relocatable on Solaris 7.
39594         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39595         since 2008-02-24.
39596
39597 2009-03-25  Eric Blake  <ebb9@byu.net>
39598
39599         test-sockets: avoid gcc warning
39600         * tests/test-sockets.c (main): Silence compiler warning.
39601
39602 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39603
39604         New modules nproc, pthread, contributed by Glen Lenker.
39605
39606         * MODULES.html.sh: Add pthread, nproc.
39607         * lib/nproc.c: New file.
39608         * lib/nproc.h: New file.
39609         * lib/pthread.in.h: New file.
39610         * m4/pthread.m4: New file.
39611         * modules/nproc: New file.
39612         * modules/pthread: New file.
39613
39614 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39615
39616         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39617         New variable.
39618
39619 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39620
39621         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39622         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39623         * tests/test-filevercmp.c: Add tests for backup suffixes.
39624
39625 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39626
39627         * modules/stdlib (Depends-on): Add stdint, needed when defining
39628         struct random_data on, for example, HP-UX 10.20.  Reported by
39629         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39630
39631 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39632
39633         * lib/readline.c (readline): Call fflush on stdout after printing
39634         prompt.
39635
39636 2009-03-20  Bruno Haible  <bruno@clisp.org>
39637
39638         Remove dependency from 'close' module to -lws2_32 on native Windows.
39639         * lib/close-hook.h: New file.
39640         * lib/close-hook.c: New file.
39641         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39642         w32sock.h.
39643         (_gl_close_fd_maybe_socket): Remove function.
39644         (rpl_close): Invoke execute_all_close_hooks instead of
39645         _gl_close_fd_maybe_socket.
39646         * lib/sockets.c: Include close-hook.h, w32sock.h.
39647         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39648         (close_sockets_hook): New variable.
39649         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39650         (gl_sockets_cleanup): Unregister it.
39651         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39652         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39653         * modules/close-hook: New file.
39654         * modules/close (Files): Remove lib/w32sock.h.
39655         (Depends-on): Add close-hook.
39656         (Link): Remove section.
39657         * modules/sockets (Files): Add lib/w32sock.h.
39658         (Depends-on): Add close-hook.
39659         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39660         invocation.
39661         * NEWS: Mention that LIB_CLOSE is gone.
39662
39663 2009-03-23  Eric Blake  <ebb9@byu.net>
39664
39665         signal-tests: test previous patch
39666         * tests/test-signal.c: New file.
39667         * modules/signal-tests: Likewise.
39668
39669         signal.h: always support 'volatile sig_atomic_t'
39670         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39671         (gl_SIGNAL_H_DEFAULTS): Add a default.
39672         * modules/signal (Makefile.am): Substitute if needed.
39673         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39674         users can blindly add volatile.
39675         * doc/posix-headers/signal.texi (signal.h): Document it.
39676         Reported by Matthew Woehlke.
39677
39678 2009-03-23  Jim Meyering  <meyering@redhat.com>
39679
39680         pathmax: PATH_MAX: use pathconf only when available
39681         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39682         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39683         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39684         This avoids a link failure in a PSP cross-compilation environment
39685         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39686
39687         * lib/vasnprintf.c (divide): Fix typo in comment.
39688
39689 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39690
39691         * gnulib-tool (func_filter_filelist): Fix comment.
39692
39693 2009-03-20  Bruno Haible  <bruno@clisp.org>
39694
39695         Make sockets.h self-contained.
39696         * lib/sockets.c: Include sockets.h first.
39697         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39698
39699 2009-03-19  Eric Blake  <ebb9@byu.net>
39700
39701         doc: mention more functions added in cygwin 1.7.0
39702         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39703         addition.
39704         * doc/posix-functions/log2f.texi: Likewise.
39705
39706 2009-03-19  Jim Meyering  <meyering@redhat.com>
39707
39708         fsusage: avoid syntax error due to statement-before-declaration
39709         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39710         after all declarations.  Reported by Matthew Woehlke in
39711         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39712
39713 2009-03-18  Eric Blake  <ebb9@byu.net>
39714
39715         build-aux/compile: sync from automake
39716         * build-aux/compile: New file, from automake.
39717         * config/srclist.txt: Mention build-aux/compile.
39718
39719 2009-03-17  Bruno Haible  <bruno@clisp.org>
39720
39721         * lib/git-merge-changelog.c: Fix typo in comment.
39722         Reported by Reuben Thomas <rrt@sc3d.org>.
39723
39724 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39725
39726         * m4/regex.m4: update and improve help for
39727         --without-included-regex.
39728
39729 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39730
39731         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39732         failure on missing include files.
39733
39734 2009-03-17  Eric Blake  <ebb9@byu.net>
39735
39736         doc: mention more functions added in cygwin 1.7.0
39737         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39738         addition.
39739         * doc/posix-functions/fwscanf.texi: Likewise.
39740         * doc/posix-functions/swprintf.texi: Likewise.
39741         * doc/posix-functions/swscanf.texi: Likewise.
39742         * doc/posix-functions/vfwprintf.texi: Likewise.
39743         * doc/posix-functions/vfwscanf.texi: Likewise.
39744         * doc/posix-functions/vswprintf.texi: Likewise.
39745         * doc/posix-functions/vswscanf.texi: Likewise.
39746         * doc/posix-functions/vwprintf.texi: Likewise.
39747         * doc/posix-functions/vwscanf.texi: Likewise.
39748         * doc/posix-functions/wcscasecmp.texi: Likewise.
39749         * doc/posix-functions/wcsdup.texi: Likewise.
39750         * doc/posix-functions/wcsftime.texi: Likewise.
39751         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39752         * doc/posix-functions/wprintf.texi: Likewise.
39753         * doc/posix-functions/wscanf.texi: Likewise.
39754         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39755
39756 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39757
39758         maint.mk: really add $(AM_MAKEFLAGS)
39759         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39760         was inadvertently omitted in the last commit.
39761         Spotted by Bruno Haible.
39762
39763         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39764         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39765         $(AM_MAKEFLAGS)' rather than plain `make'.
39766
39767         gnulib-tool: execute $MAKE not make
39768         * gnulib-tool: Default $MAKE to 'make'.
39769         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39770         than make.  Initialize $MAKE in the do-autobuild script.
39771
39772         gnulib-tool: use $MAKE not make in generated files
39773         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39774         make, in generated files.  Initialize $MAKE in the do-autobuild
39775         script.
39776
39777         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39778
39779         GNUmakefile: disable parallelism only for multiple, recursive targets
39780         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39781         additions in the Makefile.
39782         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39783         by Automake.
39784         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39785         are listed on the command line and at least one of them is
39786         listed in $(ALL_RECURSIVE_TARGETS).
39787
39788 2009-03-14  Bruno Haible  <bruno@clisp.org>
39789
39790         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39791         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39792         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39793         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39794         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39795         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39796         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39797         unistr/u8-uctomb.
39798         * modules/unistr/u8-strchr (Depends-on): Likewise.
39799         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39800         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39801         unistr/u16-uctomb.
39802         * modules/unistr/u16-strchr (Depends-on): Likewise.
39803         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39804
39805 2009-03-12  Bruno Haible  <bruno@clisp.org>
39806
39807         Work around select() bug on Interix 3.5.
39808         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39809         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39810         * m4/select.m4: New file.
39811         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39812         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39813         * modules/select (Files): Add m4/select.m4.
39814         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39815         * modules/nanosleep (Depends-on): Add select.
39816         * modules/poll (Depends-on): Likewise.
39817         * doc/posix-functions/select.texi: Mention the Interix bug.
39818         Reported by Markus Duft <mduft@gentoo.org>.
39819
39820         * lib/select.c: Renamed from lib/winsock-select.c.
39821         * modules/select (Files): Add lib/select.c, remove
39822         lib/winsock-select.c.
39823         (configure.ac): Update.
39824
39825 2009-03-12  Jim Meyering  <meyering@redhat.com>
39826
39827         avoid gcc warnings about unused macro definitions
39828         * lib/readtokens.c (STREQ): Remove unused definition.
39829         * lib/xmalloc.c (SIZE_MAX): Likewise.
39830         * lib/openat-die.c (N_): Likewise.
39831         * lib/mountlist.c (SIZE_MAX): Remove definition.
39832         Instead, include <stdint.h>.
39833         * lib/readutmp.c: Likewise.
39834         * modules/readutmp (Depends-on): Add stdint.
39835         * modules/mountlist (Depends-on): Add stdint.
39836         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39837
39838 2009-03-10  Bruno Haible  <bruno@clisp.org>
39839
39840         Tests for module 'mbmemcasecoll'.
39841         * modules/mbmemcasecoll-tests: New file.
39842         * tests/test-mbmemcasecoll1.sh: New file.
39843         * tests/test-mbmemcasecoll2.sh: New file.
39844         * tests/test-mbmemcasecoll3.sh: New file.
39845         * tests/test-mbmemcasecoll.c: New file.
39846
39847         New module 'mbmemcasecoll'.
39848         * lib/mbmemcasecoll.h: New file.
39849         * lib/mbmemcasecoll.c: New file.
39850         * modules/mbmemcasecoll: New file.
39851
39852         * tests/test-mbmemcasecmp.h: New file, extracted from
39853         tests/test-mbmemcasecmp.c.
39854         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39855         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39856         (main): Update.
39857         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39858
39859 2009-03-09  Bruno Haible  <bruno@clisp.org>
39860
39861         Tests for module 'mbmemcasecmp'.
39862         * modules/mbmemcasecmp-tests: New file.
39863         * tests/test-mbmemcasecmp1.sh: New file.
39864         * tests/test-mbmemcasecmp2.sh: New file.
39865         * tests/test-mbmemcasecmp3.sh: New file.
39866         * tests/test-mbmemcasecmp.c: New file.
39867
39868         New module 'mbmemcasecmp'.
39869         * lib/mbmemcasecmp.h: New file.
39870         * lib/mbmemcasecmp.c: New file.
39871         * modules/mbmemcasecmp: New file.
39872
39873 2009-03-09  Bruno Haible  <bruno@clisp.org>
39874
39875         Tests for module 'unicase/ulc-casecoll'.
39876         * modules/unicase/ulc-casecoll-tests: New file.
39877         * tests/unicase/test-ulc-casecoll1.sh: New file.
39878         * tests/unicase/test-ulc-casecoll2.sh: New file.
39879         * tests/unicase/test-ulc-casecoll.c: New file.
39880
39881         New module 'unicase/ulc-casecoll'.
39882         * lib/unicase.h (ulc_casecoll): New declaration.
39883         * lib/unicase/ulc-casecoll.c: New file.
39884         * modules/unicase/ulc-casecoll: New file.
39885
39886         New module 'unicase/ulc-casexfrm'.
39887         * lib/unicase.h (ulc_casexfrm): New declaration.
39888         * lib/unicase/ulc-casexfrm.c: New file.
39889         * modules/unicase/ulc-casexfrm: New file.
39890
39891 2009-03-09  Bruno Haible  <bruno@clisp.org>
39892
39893         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39894         invocations.
39895
39896         * m4/mbscasecmp.m4: Remove file.
39897         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39898         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39899
39900         * m4/mbscasestr.m4: Remove file.
39901         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39902         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39903
39904         * m4/mbschr.m4: Remove file.
39905         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39906         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39907
39908         * m4/mbscspn.m4: Remove file.
39909         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39910         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39911
39912         * m4/mbslen.m4: Remove file.
39913         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39914         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39915
39916         * m4/mbsncasecmp.m4: Remove file.
39917         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39918         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39919
39920         * m4/mbsnlen.m4: Remove file.
39921         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39922         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39923
39924         * m4/mbspbrk.m4: Remove file.
39925         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39926         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39927
39928         * m4/mbspcasecmp.m4: Remove file.
39929         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39930         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39931
39932         * m4/mbsrchr.m4: Remove file.
39933         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39934         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39935
39936         * m4/mbssep.m4: Remove file.
39937         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39938         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39939
39940         * m4/mbsspn.m4: Remove file.
39941         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39942         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39943
39944         * m4/mbsstr.m4: Remove file.
39945         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39946         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39947
39948         * m4/mbstok_r.m4: Remove file.
39949         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39950         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39951
39952         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39953
39954         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39955         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39956
39957         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39958
39959 2009-03-08  Bruno Haible  <bruno@clisp.org>
39960
39961         Tests for module 'unicase/ulc-casecmp'.
39962         * modules/unicase/ulc-casecmp-tests: New file.
39963         * tests/unicase/test-ulc-casecmp1.sh: New file.
39964         * tests/unicase/test-ulc-casecmp2.sh: New file.
39965         * tests/unicase/test-ulc-casecmp.c: New file.
39966
39967         New module 'unicase/ulc-casecmp'.
39968         * lib/unicase.h (ulc_casecmp): New declaration.
39969         * lib/unicase/ulc-casecmp.c: New file.
39970         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39971         'const SRC_UNIT *'.
39972         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39973         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39974         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39975         * modules/unicase/ulc-casecmp: New file.
39976
39977         Tests for module 'unicase/u32-is-cased'.
39978         * modules/unicase/u32-is-cased-tests: New file.
39979         * tests/unicase/test-u32-is-cased.c: New file.
39980
39981         Tests for module 'unicase/u16-is-cased'.
39982         * modules/unicase/u16-is-cased-tests: New file.
39983         * tests/unicase/test-u16-is-cased.c: New file.
39984
39985         Tests for module 'unicase/u8-is-cased'.
39986         * modules/unicase/u8-is-cased-tests: New file.
39987         * tests/unicase/test-u8-is-cased.c: New file.
39988         * tests/unicase/test-is-cased.h: New file.
39989
39990         New module 'unicase/u32-is-cased'.
39991         * lib/unicase/u32-is-cased.c: New file.
39992         * modules/unicase/u32-is-cased: New file.
39993
39994         New module 'unicase/u16-is-cased'.
39995         * lib/unicase/u16-is-cased.c: New file.
39996         * modules/unicase/u16-is-cased: New file.
39997
39998         New module 'unicase/u8-is-cased'.
39999         * lib/unicase/u8-is-cased.c: New file.
40000         * lib/unicase/u-is-cased.h: New file.
40001         * modules/unicase/u8-is-cased: New file.
40002
40003         Tests for module 'unicase/u32-is-casefolded'.
40004         * modules/unicase/u32-is-casefolded-tests: New file.
40005         * tests/unicase/test-u32-is-casefolded.c: New file.
40006
40007         Tests for module 'unicase/u16-is-casefolded'.
40008         * modules/unicase/u16-is-casefolded-tests: New file.
40009         * tests/unicase/test-u16-is-casefolded.c: New file.
40010
40011         Tests for module 'unicase/u8-is-casefolded'.
40012         * modules/unicase/u8-is-casefolded-tests: New file.
40013         * tests/unicase/test-u8-is-casefolded.c: New file.
40014         * tests/unicase/test-is-casefolded.h: New file.
40015
40016         New module 'unicase/u32-is-casefolded'.
40017         * lib/unicase/u32-is-casefolded.c: New file.
40018         * modules/unicase/u32-is-casefolded: New file.
40019
40020         New module 'unicase/u16-is-casefolded'.
40021         * lib/unicase/u16-is-casefolded.c: New file.
40022         * modules/unicase/u16-is-casefolded: New file.
40023
40024         New module 'unicase/u8-is-casefolded'.
40025         * lib/unicase/u8-is-casefolded.c: New file.
40026         * modules/unicase/u8-is-casefolded: New file.
40027
40028         Tests for module 'unicase/u32-is-titlecase'.
40029         * modules/unicase/u32-is-titlecase-tests: New file.
40030         * tests/unicase/test-u32-is-titlecase.c: New file.
40031
40032         Tests for module 'unicase/u16-is-titlecase'.
40033         * modules/unicase/u16-is-titlecase-tests: New file.
40034         * tests/unicase/test-u16-is-titlecase.c: New file.
40035
40036         Tests for module 'unicase/u8-is-titlecase'.
40037         * modules/unicase/u8-is-titlecase-tests: New file.
40038         * tests/unicase/test-u8-is-titlecase.c: New file.
40039         * tests/unicase/test-is-titlecase.h: New file.
40040
40041         New module 'unicase/u32-is-titlecase'.
40042         * lib/unicase/u32-is-titlecase.c: New file.
40043         * modules/unicase/u32-is-titlecase: New file.
40044
40045         New module 'unicase/u16-is-titlecase'.
40046         * lib/unicase/u16-is-titlecase.c: New file.
40047         * modules/unicase/u16-is-titlecase: New file.
40048
40049         New module 'unicase/u8-is-titlecase'.
40050         * lib/unicase/u8-is-titlecase.c: New file.
40051         * modules/unicase/u8-is-titlecase: New file.
40052
40053         Tests for module 'unicase/u32-is-lowercase'.
40054         * modules/unicase/u32-is-lowercase-tests: New file.
40055         * tests/unicase/test-u32-is-lowercase.c: New file.
40056
40057         Tests for module 'unicase/u16-is-lowercase'.
40058         * modules/unicase/u16-is-lowercase-tests: New file.
40059         * tests/unicase/test-u16-is-lowercase.c: New file.
40060
40061         Tests for module 'unicase/u8-is-lowercase'.
40062         * modules/unicase/u8-is-lowercase-tests: New file.
40063         * tests/unicase/test-u8-is-lowercase.c: New file.
40064         * tests/unicase/test-is-lowercase.h: New file.
40065
40066         New module 'unicase/u32-is-lowercase'.
40067         * lib/unicase/u32-is-lowercase.c: New file.
40068         * modules/unicase/u32-is-lowercase: New file.
40069
40070         New module 'unicase/u16-is-lowercase'.
40071         * lib/unicase/u16-is-lowercase.c: New file.
40072         * modules/unicase/u16-is-lowercase: New file.
40073
40074         New module 'unicase/u8-is-lowercase'.
40075         * lib/unicase/u8-is-lowercase.c: New file.
40076         * modules/unicase/u8-is-lowercase: New file.
40077
40078         Tests for module 'unicase/u32-is-uppercase'.
40079         * modules/unicase/u32-is-uppercase-tests: New file.
40080         * tests/unicase/test-u32-is-uppercase.c: New file.
40081
40082         Tests for module 'unicase/u16-is-uppercase'.
40083         * modules/unicase/u16-is-uppercase-tests: New file.
40084         * tests/unicase/test-u16-is-uppercase.c: New file.
40085
40086         Tests for module 'unicase/u8-is-uppercase'.
40087         * modules/unicase/u8-is-uppercase-tests: New file.
40088         * tests/unicase/test-u8-is-uppercase.c: New file.
40089         * tests/unicase/test-is-uppercase.h: New file.
40090
40091         New module 'unicase/u32-is-uppercase'.
40092         * lib/unicase/u32-is-uppercase.c: New file.
40093         * modules/unicase/u32-is-uppercase: New file.
40094
40095         New module 'unicase/u16-is-uppercase'.
40096         * lib/unicase/u16-is-uppercase.c: New file.
40097         * modules/unicase/u16-is-uppercase: New file.
40098
40099         New module 'unicase/u8-is-uppercase'.
40100         * lib/unicase/u8-is-uppercase.c: New file.
40101         * modules/unicase/u8-is-uppercase: New file.
40102
40103         New module 'unicase/u32-is-invariant'.
40104         * lib/unicase/u32-is-invariant.c: New file.
40105         * modules/unicase/u32-is-invariant: New file.
40106
40107         New module 'unicase/u16-is-invariant'.
40108         * lib/unicase/u16-is-invariant.c: New file.
40109         * modules/unicase/u16-is-invariant: New file.
40110
40111         New module 'unicase/u8-is-invariant'.
40112         * lib/unicase/u8-is-invariant.c: New file.
40113         * lib/unicase/invariant.h: New file.
40114         * lib/unicase/u-is-invariant.h: New file.
40115         * modules/unicase/u8-is-invariant: New file.
40116
40117         Tests for module 'unicase/u32-casecoll'.
40118         * modules/unicase/u32-casecoll-tests: New file.
40119         * tests/unicase/test-u32-casecoll.c: New file.
40120
40121         Tests for module 'unicase/u16-casecoll'.
40122         * modules/unicase/u16-casecoll-tests: New file.
40123         * tests/unicase/test-u16-casecoll.c: New file.
40124
40125         Tests for module 'unicase/u8-casecoll'.
40126         * modules/unicase/u8-casecoll-tests: New file.
40127         * tests/unicase/test-u8-casecoll.c: New file.
40128
40129         New module 'unicase/u32-casecoll'.
40130         * lib/unicase/u32-casecoll.c: New file.
40131         * modules/unicase/u32-casecoll: New file.
40132
40133         New module 'unicase/u16-casecoll'.
40134         * lib/unicase/u16-casecoll.c: New file.
40135         * modules/unicase/u16-casecoll: New file.
40136
40137         New module 'unicase/u8-casecoll'.
40138         * lib/unicase/u8-casecoll.c: New file.
40139         * lib/unicase/u-casecoll.h: New file.
40140         * modules/unicase/u8-casecoll: New file.
40141
40142         New module 'unicase/u32-casexfrm'.
40143         * lib/unicase/u32-casexfrm.c: New file.
40144         * modules/unicase/u32-casexfrm: New file.
40145
40146         New module 'unicase/u16-casexfrm'.
40147         * lib/unicase/u16-casexfrm.c: New file.
40148         * modules/unicase/u16-casexfrm: New file.
40149
40150         New module 'unicase/u8-casexfrm'.
40151         * lib/unicase/u8-casexfrm.c: New file.
40152         * lib/unicase/u-casexfrm.h: New file.
40153         * modules/unicase/u8-casexfrm: New file.
40154
40155         Tests for module 'unicase/u32-casecmp'.
40156         * modules/unicase/u32-casecmp-tests: New file.
40157         * tests/unicase/test-u32-casecmp.c: New file.
40158
40159         Tests for module 'unicase/u16-casecmp'.
40160         * modules/unicase/u16-casecmp-tests: New file.
40161         * tests/unicase/test-u16-casecmp.c: New file.
40162
40163         Tests for module 'unicase/u8-casecmp'.
40164         * modules/unicase/u8-casecmp-tests: New file.
40165         * tests/unicase/test-u8-casecmp.c: New file.
40166         * tests/unicase/test-casecmp.h: New file.
40167
40168         New module 'unicase/u32-casecmp'.
40169         * lib/unicase/u32-casecmp.c: New file.
40170         * modules/unicase/u32-casecmp: New file.
40171
40172         New module 'unicase/u16-casecmp'.
40173         * lib/unicase/u16-casecmp.c: New file.
40174         * modules/unicase/u16-casecmp: New file.
40175
40176         New module 'unicase/u8-casecmp'.
40177         * lib/unicase/u8-casecmp.c: New file.
40178         * lib/unicase/u-casecmp.h: New file.
40179         * modules/unicase/u8-casecmp: New file.
40180
40181         Tests for module 'unicase/u32-casefold'.
40182         * modules/unicase/u32-casefold-tests: New file.
40183         * tests/unicase/test-u32-casefold.c: New file.
40184
40185         Tests for module 'unicase/u16-casefold'.
40186         * modules/unicase/u16-casefold-tests: New file.
40187         * tests/unicase/test-u16-casefold.c: New file.
40188
40189         Tests for module 'unicase/u8-casefold'.
40190         * modules/unicase/u8-casefold-tests: New file.
40191         * tests/unicase/test-u8-casefold.c: New file.
40192
40193         New module 'unicase/u32-casefold'.
40194         * lib/unicase/u32-casefold.c: New file.
40195         * modules/unicase/u32-casefold: New file.
40196
40197         New module 'unicase/u16-casefold'.
40198         * lib/unicase/u16-casefold.c: New file.
40199         * modules/unicase/u16-casefold: New file.
40200
40201         New module 'unicase/u8-casefold'.
40202         * lib/unicase/u8-casefold.c: New file.
40203         * lib/unicase/u-casefold.h: New file.
40204         * modules/unicase/u8-casefold: New file.
40205
40206         New module 'unicase/tocasefold'.
40207         * lib/unicase/casefold.h: New file.
40208         * lib/unicase/tocasefold.c: New file.
40209         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40210         * modules/unicase/tocasefold: New file.
40211
40212         Tests for module 'unicase/u32-totitle'.
40213         * modules/unicase/u32-totitle-tests: New file.
40214         * tests/unicase/test-u32-totitle.c: New file.
40215
40216         Tests for module 'unicase/u16-totitle'.
40217         * modules/unicase/u16-totitle-tests: New file.
40218         * tests/unicase/test-u16-totitle.c: New file.
40219
40220         Tests for module 'unicase/u8-totitle'.
40221         * modules/unicase/u8-totitle-tests: New file.
40222         * tests/unicase/test-u8-totitle.c: New file.
40223
40224         New module 'unicase/u32-totitle'.
40225         * lib/unicase/u32-totitle.c: New file.
40226         * modules/unicase/u32-totitle: New file.
40227
40228         New module 'unicase/u16-totitle'.
40229         * lib/unicase/u16-totitle.c: New file.
40230         * modules/unicase/u16-totitle: New file.
40231
40232         New module 'unicase/u8-totitle'.
40233         * lib/unicase/u8-totitle.c: New file.
40234         * lib/unicase/u-totitle.h: New file.
40235         * modules/unicase/u8-totitle: New file.
40236
40237         Tests for module 'unicase/u32-tolower'.
40238         * modules/unicase/u32-tolower-tests: New file.
40239         * tests/unicase/test-u32-tolower.c: New file.
40240
40241         Tests for module 'unicase/u16-tolower'.
40242         * modules/unicase/u16-tolower-tests: New file.
40243         * tests/unicase/test-u16-tolower.c: New file.
40244
40245         Tests for module 'unicase/u8-tolower'.
40246         * modules/unicase/u8-tolower-tests: New file.
40247         * tests/unicase/test-u8-tolower.c: New file.
40248
40249         New module 'unicase/u32-tolower'.
40250         * lib/unicase/u32-tolower.c: New file.
40251         * modules/unicase/u32-tolower: New file.
40252
40253         New module 'unicase/u16-tolower'.
40254         * lib/unicase/u16-tolower.c: New file.
40255         * modules/unicase/u16-tolower: New file.
40256
40257         New module 'unicase/u8-tolower'.
40258         * lib/unicase/u8-tolower.c: New file.
40259         * modules/unicase/u8-tolower: New file.
40260
40261         Tests for module 'unicase/u32-toupper'.
40262         * modules/unicase/u32-toupper-tests: New file.
40263         * tests/unicase/test-u32-toupper.c: New file.
40264
40265         Tests for module 'unicase/u16-toupper'.
40266         * modules/unicase/u16-toupper-tests: New file.
40267         * tests/unicase/test-u16-toupper.c: New file.
40268
40269         Tests for module 'unicase/u8-toupper'.
40270         * modules/unicase/u8-toupper-tests: New file.
40271         * tests/unicase/test-u8-toupper.c: New file.
40272
40273         New module 'unicase/u32-toupper'.
40274         * lib/unicase/u32-toupper.c: New file.
40275         * modules/unicase/u32-toupper: New file.
40276
40277         New module 'unicase/u16-toupper'.
40278         * lib/unicase/u16-toupper.c: New file.
40279         * modules/unicase/u16-toupper: New file.
40280
40281         New module 'unicase/u8-toupper'.
40282         * lib/unicase/u8-toupper.c: New file.
40283         * modules/unicase/u8-toupper: New file.
40284
40285         New module 'unicase/u32-casemap'.
40286         * lib/unicase/u32-casemap.c: New file.
40287         * modules/unicase/u32-casemap: New file.
40288
40289         New module 'unicase/u16-casemap'.
40290         * lib/unicase/u16-casemap.c: New file.
40291         * modules/unicase/u16-casemap: New file.
40292
40293         New module 'unicase/u8-casemap'.
40294         * lib/unicase/unicasemap.h: New file.
40295         * lib/unicase/u8-casemap.c: New file.
40296         * lib/unicase/u-casemap.h: New file.
40297         * modules/unicase/u8-casemap: New file.
40298
40299         New module 'unicase/special-casing'.
40300         * lib/unicase/special-casing.h: New file.
40301         * lib/unicase/special-casing.c: New file.
40302         * lib/unicase/special-casing-table.gperf: New file, generated by
40303         gen-uni-tables.c.
40304         * modules/unicase/special-casing: New file.
40305
40306         Tests for module 'unicase/locale-language'.
40307         * modules/unicase/locale-language-tests: New file.
40308         * tests/unicase/test-locale-language.sh: New file.
40309         * tests/unicase/test-locale-language.c: New file.
40310
40311         New module 'unicase/locale-language'.
40312         * lib/unicase/locale-language.c: New file.
40313         * lib/unicase/locale-languages.gperf: New file.
40314         * modules/unicase/locale-language: New file.
40315
40316         Generate more tables for case conversion and case folding.
40317         * lib/gen-uni-tables.c (SCC_*): New enum items.
40318         (struct special_casing_rule): New type.
40319         (casing_rules, num_casing_rules, allocated_casing_rules): New
40320         variables.
40321         (add_casing_rule, fill_casing_rules): New functions.
40322         (struct casefold_rule): New type.
40323         (casefolding_rules, num_casefolding_rules,
40324         allocated_casefolding_rules): New variables.
40325         (fill_casefolding_rules): New function.
40326         (unicode_casefold): New variable.
40327         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40328         sort_casing_rules, output_casing_rules): New functions.
40329         (main): Accept to more arguments: SpecialCasing.txt and
40330         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40331         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40332         Output mapping for casefolding.
40333
40334         * lib/unicase.h: Include stdbool.h, uninorm.h.
40335         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40336         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40337         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40338         arguments.
40339         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40340         resultp arguments.
40341         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40342         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40343         resultp arguments.
40344         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40345         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40346         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40347         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40348         declarations.
40349         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40350
40351 2009-03-08  Bruno Haible  <bruno@clisp.org>
40352
40353         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40354         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40355         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40356         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40357
40358 2009-03-07  Bruno Haible  <bruno@clisp.org>
40359
40360         Adjust u*_normcmp, u*_normcoll API.
40361         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40362         u16_normcoll, u32_normcoll): Change failure conventions.
40363         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40364         errno and return -1.
40365         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40366
40367 2009-03-07  Bruno Haible  <bruno@clisp.org>
40368
40369         Tests for module 'uninorm/u32-normcoll'.
40370         * modules/uninorm/u32-normcoll-tests: New file.
40371         * tests/uninorm/test-u32-normcoll.c: New file.
40372
40373         Tests for module 'uninorm/u16-normcoll'.
40374         * modules/uninorm/u16-normcoll-tests: New file.
40375         * tests/uninorm/test-u16-normcoll.c: New file.
40376
40377         Tests for module 'uninorm/u8-normcoll'.
40378         * modules/uninorm/u8-normcoll-tests: New file.
40379         * tests/uninorm/test-u8-normcoll.c: New file.
40380
40381 2009-03-07  Bruno Haible  <bruno@clisp.org>
40382
40383         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40384         tests/uninorm/test-u32-normcmp.c.
40385         * tests/uninorm/test-u32-normcmp.c: Include it.
40386         (test_nonascii): New function, extracted from main. Add some more
40387         tests.
40388         (main): Invoke test_ascii and test_nonascii.
40389         * modules/uninorm/u32-normcmp-tests (Files): Add
40390         tests/uninorm/test-u32-normcmp.h.
40391         (Depends-on): Remove uninorm/u32-normcmp.
40392
40393         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40394         tests/uninorm/test-u16-normcmp.c.
40395         * tests/uninorm/test-u16-normcmp.c: Include it.
40396         (test_nonascii): New function, extracted from main. Add some more
40397         tests.
40398         (main): Invoke test_ascii and test_nonascii.
40399         * modules/uninorm/u16-normcmp-tests (Files): Add
40400         tests/uninorm/test-u16-normcmp.h.
40401         (Depends-on): Remove uninorm/u16-normcmp.
40402
40403         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40404         tests/uninorm/test-u8-normcmp.c.
40405         * tests/uninorm/test-u8-normcmp.c: Include it.
40406         (test_nonascii): New function, extracted from main. Add some more
40407         tests.
40408         (main): Invoke test_ascii and test_nonascii.
40409         * modules/uninorm/u8-normcmp-tests (Files): Add
40410         tests/uninorm/test-u8-normcmp.h.
40411         (Depends-on): Remove uninorm/u8-normcmp.
40412
40413 2009-03-07  Bruno Haible  <bruno@clisp.org>
40414
40415         New module 'uninorm/u32-normcoll'.
40416         * lib/uninorm/u32-normcoll.c: New file.
40417         * modules/uninorm/u32-normcoll: New file.
40418
40419         New module 'uninorm/u16-normcoll'.
40420         * lib/uninorm/u16-normcoll.c: New file.
40421         * modules/uninorm/u16-normcoll: New file.
40422
40423         New module 'uninorm/u8-normcoll'.
40424         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40425         declarations.
40426         * lib/uninorm/u8-normcoll.c: New file.
40427         * lib/uninorm/u-normcoll.h: New file.
40428         * modules/uninorm/u8-normcoll: New file.
40429
40430         New module 'uninorm/u32-normxfrm'.
40431         * lib/uninorm/u32-normxfrm.c: New file.
40432         * modules/uninorm/u32-normxfrm: New file.
40433
40434         New module 'uninorm/u16-normxfrm'.
40435         * lib/uninorm/u16-normxfrm.c: New file.
40436         * modules/uninorm/u16-normxfrm: New file.
40437
40438         New module 'uninorm/u8-normxfrm'.
40439         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40440         declarations.
40441         * lib/uninorm/u8-normxfrm.c: New file.
40442         * lib/uninorm/u-normxfrm.h: New file.
40443         * modules/uninorm/u8-normxfrm: New file.
40444
40445 2009-03-07  Bruno Haible  <bruno@clisp.org>
40446
40447         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40448         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40449         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40450
40451 2009-03-07  Bruno Haible  <bruno@clisp.org>
40452
40453         New module 'memxfrm'.
40454         * lib/memxfrm.h: New file.
40455         * lib/memxfrm.c: New file.
40456         * modules/memxfrm: New file.
40457
40458 2009-03-07  Bruno Haible  <bruno@clisp.org>
40459
40460         New module 'memcmp2'.
40461         * lib/memcmp2.h: New file.
40462         * lib/memcmp2.c: New file.
40463         * modules/memcmp2: New file.
40464
40465 2009-03-07  Bruno Haible  <bruno@clisp.org>
40466
40467         Tests for module 'uninorm/decomposing-form'.
40468         * modules/uninorm/decomposing-form-tests: New file.
40469         * tests/uninorm/test-decomposing-form.c: New file.
40470
40471         New module 'uninorm/decomposing-form'.
40472         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40473         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40474         Add 'decomposing_variant' field.
40475         * lib/uninorm/decomposing-form.c: New file.
40476         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40477         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40478         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40479         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40480         * modules/uninorm/decomposing-form: New file.
40481         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40482         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40483
40484 2009-03-07  Bruno Haible  <bruno@clisp.org>
40485
40486         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40487         strings.
40488
40489 2009-03-06  Bruno Haible  <bruno@clisp.org>
40490
40491         Tests for module 'uninorm/u32-normcmp'.
40492         * tests/uninorm/test-u32-normcmp.c: New file.
40493         * modules/uninorm/u32-normcmp-tests: New file.
40494
40495         Tests for module 'uninorm/u16-normcmp'.
40496         * tests/uninorm/test-u16-normcmp.c: New file.
40497         * modules/uninorm/u16-normcmp-tests: New file.
40498
40499         Tests for module 'uninorm/u8-normcmp'.
40500         * tests/uninorm/test-u8-normcmp.c: New file.
40501         * modules/uninorm/u8-normcmp-tests: New file.
40502
40503         New module 'uninorm/u32-normcmp'.
40504         * lib/uninorm/u32-normcmp.c: New file.
40505         * modules/uninorm/u32-normcmp: New file.
40506
40507         New module 'uninorm/u16-normcmp'.
40508         * lib/uninorm/u16-normcmp.c: New file.
40509         * modules/uninorm/u16-normcmp: New file.
40510
40511         New module 'uninorm/u8-normcmp'.
40512         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40513         declarations.
40514         * lib/uninorm/u8-normcmp.c: New file.
40515         * lib/uninorm/u-normcmp.h: New file.
40516         * modules/uninorm/u8-normcmp: New file.
40517
40518 2009-03-06  Bruno Haible  <bruno@clisp.org>
40519
40520         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40521         Reported by Eric Blake.
40522
40523 2009-03-06  Eric Blake  <ebb9@byu.net>
40524             Bruno Haible  <bruno@clisp.org>
40525
40526         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40527         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40528         condition.
40529         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40530         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40531         condition.
40532         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40533
40534 2009-03-06  Eric Blake  <ebb9@byu.net>
40535
40536         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40537         to avoid compiler warnings.
40538         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40539
40540 2009-03-05  Bruno Haible  <bruno@clisp.org>
40541
40542         * tests/test-ftell.c (main): Disable test beyond end of file on
40543         FreeMiNT.
40544         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40545
40546 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40547
40548         * lib/filevercmp.c: Move hidden files up in ordering.
40549         * tests/test-filevercmp.c: Add tests for hidden files.
40550
40551 2009-03-04  Bruno Haible  <bruno@clisp.org>
40552
40553         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40554         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40555         AM_CFLAGS.
40556         Reported by Simon Josefsson.
40557
40558 2009-03-03  Bruno Haible  <bruno@clisp.org>
40559
40560         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40561         Reported by Simon Josefsson.
40562
40563         * doc/ld-version-script.texi: Update node reference.
40564
40565 2009-03-03  Bruno Haible  <bruno@clisp.org>
40566
40567         * modules/visibility (License): Change to 'unlimited'.
40568         Suggested by Simon Josefsson.
40569
40570 2009-03-03  Jim Meyering  <meyering@redhat.com>
40571
40572         unlinkdir: cannot_unlink_dir may modify process state
40573         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40574         it's neither thread-safe nor appropriate for use in a library.
40575
40576 2009-03-03  Eric Blake  <ebb9@byu.net>
40577
40578         test-closein: silence test under Darwin
40579         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40580         care if it dies from EPIPE or EBADF.
40581
40582 2009-03-03  Bruno Haible  <bruno@clisp.org>
40583
40584         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40585         earlier.
40586         * doc/visibility.texi: Fix @node and @section.
40587
40588 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40589
40590         * doc/gnulib.texi: Link to sections for ld version script and
40591         visibility.
40592         * doc/visibility.texi: Add @node and @section.
40593         * modules/ld-version-script: New module.
40594         * m4/ld-version-script.m4: New file.
40595         * doc/ld-version-script.texi: New file.
40596
40597 2009-03-02  David Lutterkort  <lutter@redhat.com>
40598
40599         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40600         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40601
40602 2009-03-02  Bruno Haible  <bruno@clisp.org>
40603
40604         * doc/visibility.texi: Mention libtool's -export-symbols option.
40605
40606 2009-03-02  Jim Meyering  <meyering@redhat.com>
40607
40608         announce-gen: new option: --no-print-checksums
40609         * build-aux/announce-gen (usage): Describe it.
40610         (print_checksums): Print a newline here, not in the [*] footnote.
40611         (main): Honor it.
40612
40613 2009-03-01  Bruno Haible  <bruno@clisp.org>
40614
40615         Use socklen_t in the native Windows replacements prototypes.
40616         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40617         instead of 'int'.
40618         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40619         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40620         * modules/getsockopt (Depends-on): Add socklen.
40621         * modules/setsockopt (Depends-on): Add socklen.
40622
40623 2009-03-01  Bruno Haible  <bruno@clisp.org>
40624
40625         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40626         least 4.2.
40627
40628 2009-03-01  Eric Blake  <ebb9@byu.net>
40629             Bruno Haible  <bruno@clisp.org>
40630
40631         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40632         error messages.
40633         * lib/wait-process.c (wait_subprocess): Omit error message about
40634         deadly signal sent to the child of termsigp != NULL.
40635
40636 2009-03-01  Eric Blake  <ebb9@byu.net>
40637
40638         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40639
40640 2009-03-01  Bruno Haible  <bruno@clisp.org>
40641
40642         Avoid a gcc warning.
40643         * tests/test-sched.c (b): Make global.
40644         Reported by Eric Blake.
40645
40646 2009-01-19  Martin Lambers  <marlam@marlam.de>
40647
40648         Provide POSIX semantics for socket timeout options on W32.
40649         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40650         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40651         * modules/setsockopt: Depend on sys_time module for struct timeval.
40652         * modules/getsockopt: Depend on sys_time module for struct timeval.
40653
40654 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40655
40656         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40657         __USE_GNU, for consistency with netdb.in.h.
40658         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40659
40660 2009-03-01  Bruno Haible  <bruno@clisp.org>
40661
40662         More support for FreeMiNT.
40663         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40664         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40665
40666 2009-03-01  Bruno Haible  <bruno@clisp.org>
40667
40668         More support for FreeMiNT.
40669         * lib/fpurge.c (fpurge): Correct last commit.
40670         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40671
40672 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40673
40674         Fix unportable awk script in vc-list-files.
40675         * build-aux/vc-list-files: In the replacement awk script, use
40676         substr with a second argument of 1, not zero.
40677         Report by Simon Josefsson.
40678
40679 2009-02-28  Bruno Haible  <bruno@clisp.org>
40680
40681         More support for FreeMiNT.
40682         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40683         to FreeMiNT today.
40684         * lib/fwriting.c (fwriting): Likewise.
40685         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40686
40687 2009-02-28  Bruno Haible  <bruno@clisp.org>
40688
40689         * tests/test-freadseek.c (main): Disable test beyond end of file on
40690         FreeMiNT.
40691         * tests/test-ftello.c (main): Likewise.
40692         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40693
40694 2009-02-28  Bruno Haible  <bruno@clisp.org>
40695
40696         Add tentative support for FreeMiNT.
40697         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40698         * lib/fpurge.c (fpurge): Likewise.
40699         * lib/freadable.c (freadable): Likewise.
40700         * lib/freading.c (freading): Likewise.
40701         * lib/freadptr.c (freadptr): Likewise.
40702         * lib/freadseek.c (freadptrinc): Likewise.
40703         * lib/fseeko.c (rpl_fseeko): Likewise.
40704         * lib/fseterr.c (fseterr): Likewise.
40705         * lib/fwritable.c (fwritable): Likewise.
40706         * lib/fwriting.c (fwriting): Likewise.
40707         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40708         Hourihane.
40709         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40710
40711 2009-02-28  Bruno Haible  <bruno@clisp.org>
40712
40713         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40714         SIGCHLD.
40715         Reported by Jim Meyering.
40716
40717 2009-02-28  Bruno Haible  <bruno@clisp.org>
40718
40719         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40720         Mention the results of these tests on various platforms.
40721         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40722         order.
40723         * doc/posix-functions/printf.texi: Likewise.
40724         * doc/posix-functions/snprintf.texi: Likewise.
40725         * doc/posix-functions/sprintf.texi: Likewise.
40726         * doc/posix-functions/vfprintf.texi: Likewise.
40727         * doc/posix-functions/vprintf.texi: Likewise.
40728         * doc/posix-functions/vsnprintf.texi: Likewise.
40729         * doc/posix-functions/vsprintf.texi: Likewise.
40730         * doc/glibc-functions/obstack_printf.texi: Likewise.
40731         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40732
40733 2009-02-28  Bruno Haible  <bruno@clisp.org>
40734
40735         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40736         Reported by Loïc Minier <lool@dooz.org>.
40737
40738 2009-02-27  Bruno Haible  <bruno@clisp.org>
40739
40740         * gnulib-tool (func_import): Make the sed expression used to create the
40741         sed script for updating the .gitignore file POSIX compliant.
40742         Reported by Eric Blake.
40743
40744 2009-02-27  Bruno Haible  <bruno@clisp.org>
40745
40746         * gnulib-tool (sed): Don't alias as "sed --posix".
40747         Reported by Eric Blake.
40748
40749 2009-02-27  Bruno Haible  <bruno@clisp.org>
40750
40751         Avoid test link errors.
40752         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40753         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40754         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40755         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40756         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40757
40758 2009-02-27  Bruno Haible  <bruno@clisp.org>
40759
40760         Avoid spurious "(cached)" in configure output.
40761         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40762         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40763         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40764         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40765         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40766         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40767         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40768         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40769         Reported by Eric Blake.
40770
40771 2009-02-27  Eric Blake  <ebb9@byu.net>
40772
40773         printf: fix regression in previous patch
40774         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40775
40776 2009-02-27  Bruno Haible  <bruno@clisp.org>
40777
40778         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40779         value.
40780         * lib/stdint.in.h: Likewise.
40781         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40782
40783 2009-02-27  Eric Blake  <ebb9@byu.net>
40784
40785         doc: mention more functions added in cygwin 1.7.0
40786         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40787         addition.
40788         * doc/posix-functions/open_wmemstream.texi: Likewise.
40789         * doc/posix-functions/wcsnlen.texi: Likewise.
40790         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40791         * doc/posix-functions/wcstod.texi: Likewise.
40792         * doc/posix-functions/wcstof.texi: Likewise.
40793         * doc/posix-functions/wcstoimax.texi: Likewise.
40794         * doc/posix-functions/wcstok.texi: Likewise.
40795         * doc/posix-functions/wcstoumax.texi: Likewise.
40796
40797         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40798         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40799         * doc/posix-functions/fprintf.texi: Update.
40800         * doc/posix-functions/printf.texi: Update.
40801         * doc/posix-functions/snprintf.texi: Update.
40802         * doc/posix-functions/sprintf.texi: Update.
40803         * doc/posix-functions/vfprintf.texi: Update.
40804         * doc/posix-functions/vprintf.texi: Update.
40805         * doc/posix-functions/vsnprintf.texi: Update.
40806         * doc/posix-functions/vsprintf.texi: Update.
40807         * doc/glibc-functions/obstack_printf.texi: Update.
40808         * doc/glibc-functions/obstack_vprintf.texi: Update.
40809
40810 2009-02-26  Eric Blake  <ebb9@byu.net>
40811
40812         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40813         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40814         compilation bug by using runtime conversion.
40815         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40816         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40817         * modules/ceill-tests (Files): Use nan.h.
40818         * modules/floorl-tests (Files): Likewise.
40819         * modules/frexpl-tests (Files): Likewise.
40820         * modules/isnanl-tests (Files): Likewise.
40821         * modules/ldexpl-tests (Files): Likewise.
40822         * modules/roundl-tests (Files): Likewise.
40823         * modules/truncl-tests (Files): Likewise.
40824         * tests/test-ceill.c (main): Use a working NaN.
40825         * tests/test-floorl.c (main): Likewise.
40826         * tests/test-frexpl.c (main): Likewise.
40827         * tests/test-isnan.c (test_long_double): Likewise.
40828         * tests/test-isnanl.h (main): Likewise.
40829         * tests/test-ldexpl.h (main): Likewise.
40830         * tests/test-roundl.h (main): Likewise.
40831         * tests/test-truncl.h (main): Likewise.
40832         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40833
40834 2009-02-26  Eric Blake  <ebb9@byu.net>
40835             Bruno Haible  <bruno@clisp.org>
40836
40837         Work around a *printf bug with %ls on Solaris.
40838         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40839         precision is specified, sprintf stops converting the wide string
40840         argument when the number of bytes that have been produced by this
40841         conversion equals or exceeds the precision.
40842         * doc/posix-functions/fprintf.texi: Update.
40843         * doc/posix-functions/printf.texi: Update.
40844         * doc/posix-functions/snprintf.texi: Update.
40845         * doc/posix-functions/sprintf.texi: Update.
40846         * doc/posix-functions/vfprintf.texi: Update.
40847         * doc/posix-functions/vprintf.texi: Update.
40848         * doc/posix-functions/vsnprintf.texi: Update.
40849         * doc/posix-functions/vsprintf.texi: Update.
40850         * doc/glibc-functions/obstack_printf.texi: Update.
40851         * doc/glibc-functions/obstack_vprintf.texi: Update.
40852
40853 2009-02-26  Eric Blake  <ebb9@byu.net>
40854
40855         stdlib: favor compiler check of random.h
40856         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40857         to avoid an ObjC random.h installed by Swarm.
40858
40859 2009-02-26  Bruno Haible  <bruno@clisp.org>
40860
40861         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40862         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40863         Reported by Gary V. Vaughan <gary@gnu.org>.
40864
40865 2009-02-26  Bruno Haible  <bruno@clisp.org>
40866
40867         Fix *printf behaviour regarding the %ls directive.
40868         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40869         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40870         NEED_PRINTF_DIRECTIVE_LS.
40871         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40872         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40873         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40874         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40875         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40876         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40877         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40878         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40879         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40880         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40881         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40882         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40883         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40884         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40885         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40886         * doc/posix-functions/fprintf.texi: Update.
40887         * doc/posix-functions/printf.texi: Update.
40888         * doc/posix-functions/snprintf.texi: Update.
40889         * doc/posix-functions/sprintf.texi: Update.
40890         * doc/posix-functions/vfprintf.texi: Update.
40891         * doc/posix-functions/vprintf.texi: Update.
40892         * doc/posix-functions/vsnprintf.texi: Update.
40893         * doc/posix-functions/vsprintf.texi: Update.
40894         * doc/glibc-functions/obstack_printf.texi: Update.
40895         * doc/glibc-functions/obstack_vprintf.texi: Update.
40896         Reported by Eric Blake.
40897
40898 2009-02-25  Bruno Haible  <bruno@clisp.org>
40899
40900         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40901         with known value.
40902         Reported by Gary V. Vaughan <gary@gnu.org>.
40903
40904 2009-02-25  Bruno Haible  <bruno@clisp.org>
40905
40906         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40907         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40908         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40909         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40910         Reported by Gary V. Vaughan <gary@gnu.org>.
40911
40912 2009-02-25  Bruno Haible  <bruno@clisp.org>
40913
40914         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40915         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40916         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40917         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40918         Reported by Gary V. Vaughan <gary@gnu.org>.
40919
40920 2009-02-25  Eric Blake  <ebb9@byu.net>
40921
40922         tests: skip fseek/ftell tests if ungetc is broken
40923         * m4/ungetc.m4: New file.
40924         * modules/fseek-tests: Split test, so ungetc dependency is
40925         separate from rest of test.
40926         * modules/fseeko-tests: Likewise.
40927         * modules/ftell-tests: Likewise.
40928         * modules/ftello-tests: Likewise.
40929         * tests/test-fseek.c (main): Isolate ungetc dependency.
40930         * tests/test-fseeko.c (main): Likewise.
40931         * tests/test-ftell.c (main): Likewise.
40932         * tests/test-ftello.c (main): Likewise.
40933         * tests/test-fseek2.sh: New file.
40934         * tests/test-fseeko2.sh: Likewise.
40935         * tests/test-ftell2.sh: Likewise.
40936         * tests/test-ftello2.sh: Likewise.
40937
40938 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40939
40940         test-getaddrinfo: fix usage of skip return code 77
40941         * tests/test-gettaddrinfo.c: Return skip code 77 only
40942         for first occurance of skip (4x77 is not 77)
40943
40944 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40945
40946         strtod: avoid C99 decl-after-statement
40947         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40948
40949 2009-02-24  Eric Blake  <ebb9@byu.net>
40950
40951         strtod: detect HP-UX 11.31 bug
40952         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40953         Reported by Gary V. Vaughan.
40954
40955 2009-02-23  Bruno Haible  <bruno@clisp.org>
40956
40957         Fix invalid read past end of memory block.
40958         * lib/vasnprintf.c (DCHAR_SET): Define.
40959         (local_wcslen): Define only when needed.
40960         (local_strnlen, local_wcsnlen): New functions.
40961         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40962         directives that involve a conversion ourselves.
40963         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40964         wcsnlen, mbrtowc, wcrtomb.
40965         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40966         * tests/test-vasprintf-posix.c (test_function): Likewise.
40967         * tests/test-snprintf-posix.h (test_function): Likewise.
40968         * tests/test-sprintf-posix.h (test_function): Likewise.
40969         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40970
40971 2009-02-22  Bruno Haible  <bruno@clisp.org>
40972
40973         Implement new clarified decomposition of Hangul syllables.
40974         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40975         of type LTV, return only a pairwise decomposition.
40976         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40977         Likewise.
40978         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40979         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40980         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40981
40982 2009-02-22  Bruno Haible  <bruno@clisp.org>
40983
40984         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40985         zero-length results and shrink excess allocated memory.
40986         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40987         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40988         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40989         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40990         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40991         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40992         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40993         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40994         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40995         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40996         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40997         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40998
40999 2009-02-21  Bruno Haible  <bruno@clisp.org>
41000
41001         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41002         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41003         spaces after a period. Put a space between a macro name and its
41004         argument list. Trivial rewordings.
41005         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41006         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41007         (main): Return 0 explicitly.
41008
41009 2009-02-21  Bruno Haible  <bruno@clisp.org>
41010
41011         Tests for module 'uninorm/filter'.
41012         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41013         * modules/uninorm/filter-tests: New file.
41014
41015         New module 'uninorm/filter'.
41016         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41017         uninorm_filter_flush, uninorm_filter_free): New declarations.
41018         * lib/uninorm/uninorm-filter.c: New file.
41019         * modules/uninorm/filter: New file.
41020
41021 2009-02-21  Bruno Haible  <bruno@clisp.org>
41022
41023         Tests for module 'uninorm/nfkc'.
41024         * tests/uninorm/test-nfkc.c: New file.
41025         * tests/uninorm/test-u8-nfkc.c: New file.
41026         * tests/uninorm/test-u16-nfkc.c: New file.
41027         * tests/uninorm/test-u32-nfkc.c: New file.
41028         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41029         * tests/uninorm/test-u32-nfkc-big.c: New file.
41030         * modules/uninorm/nfkc-tests: New file.
41031
41032         New module 'uninorm/nfkc'.
41033         * lib/uninorm/nfkc.c: New file.
41034         * modules/uninorm/nfkc: New file.
41035
41036         Tests for module 'uninorm/nfkd'.
41037         * tests/uninorm/test-nfkd.c: New file.
41038         * tests/uninorm/test-u8-nfkd.c: New file.
41039         * tests/uninorm/test-u16-nfkd.c: New file.
41040         * tests/uninorm/test-u32-nfkd.c: New file.
41041         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41042         * tests/uninorm/test-u32-nfkd-big.c: New file.
41043         * modules/uninorm/nfkd-tests: New file.
41044
41045         New module 'uninorm/nfkd'.
41046         * lib/uninorm/nfkd.c: New file.
41047         * modules/uninorm/nfkd: New file.
41048
41049         Tests for module 'uninorm/nfc'.
41050         * tests/uninorm/test-nfc.c: New file.
41051         * tests/uninorm/test-u8-nfc.c: New file.
41052         * tests/uninorm/test-u16-nfc.c: New file.
41053         * tests/uninorm/test-u32-nfc.c: New file.
41054         * tests/uninorm/test-u32-nfc-big.sh: New file.
41055         * tests/uninorm/test-u32-nfc-big.c: New file.
41056         * modules/uninorm/nfc-tests: New file.
41057
41058         New module 'uninorm/nfc'.
41059         * lib/uninorm/nfc.c: New file.
41060         * modules/uninorm/nfc: New file.
41061
41062         Tests for module 'uninorm/nfd'.
41063         * tests/uninorm/test-nfd.c: New file.
41064         * tests/uninorm/test-u8-nfd.c: New file.
41065         * tests/uninorm/test-u16-nfd.c: New file.
41066         * tests/uninorm/test-u32-nfd.c: New file.
41067         * tests/uninorm/test-u32-nfd-big.sh: New file.
41068         * tests/uninorm/test-u32-nfd-big.c: New file.
41069         * tests/uninorm/test-u32-normalize-big.h: New file.
41070         * tests/uninorm/test-u32-normalize-big.c: New file.
41071         * tests/uninorm/NormalizationTest.txt: New file, created from
41072         Unicode 5.1.0 NormalizationTest.txt.
41073         * modules/uninorm/nfd-tests: New file.
41074
41075         New module 'uninorm/nfd'.
41076         * lib/uninorm/nfd.c: New file.
41077         * modules/uninorm/nfd: New file.
41078
41079         New module 'uninorm/u32-normalize'.
41080         * lib/uninorm/u32-normalize.c: New file.
41081         * modules/uninorm/u32-normalize: New file.
41082
41083         New module 'uninorm/u16-normalize'.
41084         * lib/uninorm/u16-normalize.c: New file.
41085         * modules/uninorm/u16-normalize: New file.
41086
41087         New module 'uninorm/u8-normalize'.
41088         * lib/uninorm/u8-normalize.c: New file.
41089         * lib/uninorm/normalize-internal.h: New file.
41090         * lib/uninorm/u-normalize-internal.h: New file.
41091         * modules/uninorm/u8-normalize: New file.
41092
41093         New module 'uninorm/decompose-internal'.
41094         * lib/uninorm/decompose-internal.c: New file.
41095         * modules/uninorm/decompose-internal: New file.
41096
41097         Tests for module 'uninorm/composition'.
41098         * tests/uninorm/test-composition.c: New file.
41099         * modules/uninorm/composition-tests: New file.
41100
41101         New module 'uninorm/composition'.
41102         * lib/uninorm/composition.c: New file.
41103         * lib/uninorm/composition-table.gperf: New file, generated by
41104         gen-uni-tables.
41105         * modules/uninorm/composition: New file.
41106
41107         Tests for module 'uninorm/compat-decomposition'.
41108         * tests/uninorm/test-compat-decomposition.c: New file.
41109         * modules/uninorm/compat-decomposition-tests: New file.
41110
41111         New module 'uninorm/compat-decomposition'.
41112         * lib/uninorm/decompose-internal.h: New file.
41113         * lib/uninorm/compat-decomposition.c: New file.
41114         * modules/uninorm/compat-decomposition: New file.
41115
41116         Tests for module 'uninorm/canonical-decomposition'.
41117         * tests/uninorm/test-canonical-decomposition.c: New file.
41118         * modules/uninorm/canonical-decomposition-tests: New file.
41119
41120         New module 'uninorm/canonical-decomposition'.
41121         * lib/uninorm/canonical-decomposition.c: New file.
41122         * modules/uninorm/canonical-decomposition: New file.
41123
41124         Tests for module 'uninorm/decomposition'.
41125         * tests/uninorm/test-decomposition.c: New file.
41126         * modules/uninorm/decomposition-tests: New file.
41127
41128         New module 'uninorm/decomposition'.
41129         * lib/uninorm/decomposition.c: New file.
41130         * modules/uninorm/decomposition: New file.
41131
41132         New module 'uninorm/decomposition-table'.
41133         * lib/uninorm/decomposition-table.h: New file.
41134         * lib/uninorm/decomposition-table.c: New file.
41135         * lib/uninorm/decomposition-table1.h: New file, generated by
41136         gen-uni-tables.
41137         * lib/uninorm/decomposition-table2.h: New file, generated by
41138         gen-uni-tables.
41139         * modules/uninorm/decomposition-table: New file.
41140
41141         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41142         (UC_DECOMP_*): New enumeration items.
41143         (get_decomposition): New function.
41144         (struct decomp_table): New type.
41145         (output_decomposition, output_decomposition_tables): New functions.
41146         (unicode_composition_exclusions): New variable.
41147         (fill_composition_exclusions, debug_output_composition_tables): New
41148         functions.
41149         (main): Accept one more argument. Invoke fill_composition_exclusions.
41150         Output decomposition and composition tables.
41151
41152         New module 'uninorm/base'.
41153         * lib/uninorm.h: New file.
41154         * lib/unictype.h: Update comment.
41155         * modules/uninorm/base: New file.
41156
41157 2009-02-21  David Lutterkort  <lutter@redhat.com>
41158
41159         Tests for module 'safe-alloc'.
41160         * tests/test-safe-alloc.c: New file.
41161         * modules/safe-alloc-tests: New file.
41162
41163         New module 'safe-alloc'.
41164         * lib/safe-alloc.h: New file.
41165         * lib/safe-alloc.c: New file.
41166         * m4/safe-alloc.m4: New file.
41167         * modules/safe-alloc: New file.
41168         * doc/safe-alloc.texi: New file.
41169         * doc/gnulib.texi: Include it.
41170         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41171         safe-alloc.
41172
41173 2009-02-18  Bruno Haible  <bruno@clisp.org>
41174
41175         Fix link error on non-glibc systems.
41176         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41177         variable.
41178         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41179
41180 2009-02-18  Jim Meyering  <meyering@redhat.com>
41181
41182         fts: avoid used-uninitialized error due to recent change
41183         * lib/fts.c (fts_read): Guard uses of the new member,
41184         parent->fts_n_dirs_remaining, since it's not relevant for
41185         the parent of a directory specified on the command-line.
41186
41187 2009-02-17  James Youngman  <jay@gnu.org>
41188             Bruno Haible  <bruno@clisp.org>
41189
41190         * m4/include_next.m4: Reformulate comment.
41191
41192 2009-02-16  Jim Meyering  <meyering@redhat.com>
41193
41194         fts: add #if guards so that the fts_lgpl module still builds
41195         * lib/fts.c: Guard just-added hash-table-using parts with
41196         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41197         Reported by Simon Josefsson.
41198
41199 2009-02-15  Bruno Haible  <bruno@clisp.org>
41200
41201         * modules/array-mergesort-tests: New file.
41202         * tests/test-array-mergesort.c: New file.
41203
41204         New module 'array-mergesort'.
41205         * modules/array-mergesort: New file.
41206         * lib/array-mergesort.h: New file.
41207
41208 2009-02-15  Bruno Haible  <bruno@clisp.org>
41209
41210         Fix 2009-02-07 commit.
41211         * lib/gen-uni-tables.c (output_predicate, output_category,
41212         output_combclass, output_bidi_category, output_decimal_digit,
41213         output_digit, output_numeric, output_mirror, output_scripts,
41214         output_ident_category, output_simple_mapping): Fix format directives.
41215         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41216
41217 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41218
41219         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41220         fixes are available from IBM.
41221
41222 2009-02-13  Jim Meyering  <meyering@redhat.com>
41223
41224         fts: arrange not to stat non-directories in more cases
41225         This makes GNU find (when it doesn't need to stat each file)
41226         *much* more efficient at traversing reiserfs file systems.
41227         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41228         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41229         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41230         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41231         (leaf_optimization_applies): New function.
41232         (LCO_hash, LCO_compare): New helper functions.
41233         (link_count_optimize_ok): New function.
41234         (fts_stat): Initialize new member (if dir).
41235         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41236         we've just stat'ed a directory.  Skip the stat call when possible.
41237         ---
41238         Note this AFS-related exchange:
41239         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41240         and note find's pioctl call in find/fstype.c.
41241         But that is necessary only if you want to enable the
41242         optimization for AFS, and for now, I don't.
41243
41244         fts: move a function definition "up" (no semantic change)
41245         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41246         "up" to precede upcoming use of a related function.
41247
41248 2009-02-11  Jim Meyering  <meyering@redhat.com>
41249
41250         fts: correct internal computation of nlinks (optimization-related)
41251         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41252         whether the current entry is a directory, so don't test it.
41253
41254 2009-02-10  Bruno Haible  <bruno@clisp.org>
41255
41256         Tests for module 'uniwbrk/ulc-wordbreaks'.
41257         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41258         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41259         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41260
41261         Tests for module 'uniwbrk/u32-wordbreaks'.
41262         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41263         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41264
41265         Tests for module 'uniwbrk/u16-wordbreaks'.
41266         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41267         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41268
41269         Tests for module 'uniwbrk/u8-wordbreaks'.
41270         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41271         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41272
41273 2009-02-10  Bruno Haible  <bruno@clisp.org>
41274
41275         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41276         property.
41277         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41278         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41279         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41280
41281 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41282
41283         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41284         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41285
41286 2009-02-10  Bruno Haible  <bruno@clisp.org>
41287
41288         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41289         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41290         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41291         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41292         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41293         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41294
41295 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41296
41297         * lib/sockets.h (gl_fd_to_handle): New function.
41298
41299         * tests/test-sockets.c: Call gl_fd_to_handle.
41300
41301 2009-02-09  Bruno Haible  <bruno@clisp.org>
41302
41303         * doc/havelib.texi: Document the conventions on bi-arch systems.
41304
41305 2009-02-08  Bruno Haible  <bruno@clisp.org>
41306
41307         Document the AC_LIB_LINKFLAGS macro.
41308         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41309         * doc/gnulib.texi: Include it.
41310
41311 2009-02-08  Bruno Haible  <bruno@clisp.org>
41312
41313         Fix wrong order of sections, compared to TOC.
41314         * doc/gnulib.texi: Include relocatable-maint.texi after the
41315         "Regular expressions" node, not before.
41316
41317 2009-02-08  Bruno Haible  <bruno@clisp.org>
41318
41319         Tests for module 'unicase/totitle'.
41320         * modules/unicase/totitle-tests: New file.
41321
41322         Tests for module 'unicase/tolower'.
41323         * modules/unicase/tolower-tests: New file.
41324
41325         Tests for module 'unicase/toupper'.
41326         * modules/unicase/toupper-tests: New file.
41327         * tests/unicase/test-mapping-part1.h: New file.
41328         * tests/unicase/test-mapping-part2.h: New file.
41329
41330         New module 'unicase/totitle'.
41331         * modules/unicase/totitle: New file.
41332         * lib/unicase/totitle.c: New file.
41333
41334         New module 'unicase/tolower'.
41335         * modules/unicase/tolower: New file.
41336         * lib/unicase/tolower.c: New file.
41337
41338         New module 'unicase/toupper'.
41339         * modules/unicase/toupper: New file.
41340         * lib/unicase/toupper.c: New file.
41341         * lib/unicase/simple-mapping.h: New file.
41342
41343         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41344         (mapping_table): New structure.
41345         (output_simple_mapping): New function.
41346         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41347         * modules/gen-uni-tables (Description): Update.
41348         * lib/unicase/toupper.h: New file, automatically generated by
41349         gen-uni-tables.
41350         * lib/unicase/tolower.h: New file, automatically generated by
41351         gen-uni-tables.
41352         * lib/unicase/totitle.h: New file, automatically generated by
41353         gen-uni-tables.
41354         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41355         gen-uni-tables.
41356         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41357         gen-uni-tables.
41358         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41359         gen-uni-tables.
41360
41361         New module 'unicase/base'.
41362         * modules/unicase/base: New file.
41363         * lib/unicase.h: New file.
41364
41365 2009-02-08  Bruno Haible  <bruno@clisp.org>
41366
41367         New module 'uniwbrk/ulc-wordbreaks'.
41368         * modules/uniwbrk/ulc-wordbreaks: New file.
41369         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41370
41371         New module 'uniwbrk/u32-wordbreaks'.
41372         * modules/uniwbrk/u32-wordbreaks: New file.
41373         * lib/uniwbrk/u32-wordbreaks.c: New file.
41374
41375         New module 'uniwbrk/u16-wordbreaks'.
41376         * modules/uniwbrk/u16-wordbreaks: New file.
41377         * lib/uniwbrk/u16-wordbreaks.c: New file.
41378
41379         New module 'uniwbrk/u8-wordbreaks'.
41380         * modules/uniwbrk/u8-wordbreaks: New file.
41381         * lib/uniwbrk/u8-wordbreaks.c: New file.
41382         * lib/uniwbrk/u-wordbreaks.h: New file.
41383
41384         New module 'uniwbrk/table'.
41385         * modules/uniwbrk/table: New file.
41386         * lib/uniwbrk/wbrktable.h: New file.
41387         * lib/uniwbrk/wbrktable.c: New file.
41388
41389         New module 'uniwbrk/wordbreak-property'.
41390         * modules/uniwbrk/wordbreak-property: New file.
41391         * lib/uniwbrk/wordbreak-property.c: New file.
41392
41393         * lib/gen-uni-tables.c (WBP_*): New enum items.
41394         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41395         (unicode_org_wbp): New variable.
41396         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41397         New functions.
41398         (wbp_table): New structure.
41399         (output_wbp, output_wbrk_tables): New functions.
41400         (main): Accept additional argument. Invoke fill_org_wbp,
41401         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41402         output_wbrk_tables.
41403         * modules/gen-uni-tables (Description): Update.
41404         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41405         gen-uni-tables.
41406
41407         New module 'uniwbrk/base'.
41408         * modules/uniwbrk/base: New file.
41409         * lib/uniwbrk.h: New file.
41410
41411 2009-02-08  Bruno Haible  <bruno@clisp.org>
41412
41413         Update to Unicode 5.1.0.
41414         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41415         U+2185..U+2188.
41416         (is_property_default_ignorable_code_point): Don't include characters
41417         of category Cc or Cs and not-a-characters.
41418         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41419         U+0D79, U+109E, U+109F, U+A60C.
41420         * lib/unictype/bidi_of.h: Regenerated.
41421         * lib/unictype/blocks.h: Regenerated.
41422         * lib/unictype/categ_C.h: Regenerated.
41423         * lib/unictype/categ_Cf.h: Regenerated.
41424         * lib/unictype/categ_Cn.h: Regenerated.
41425         * lib/unictype/categ_L.h: Regenerated.
41426         * lib/unictype/categ_Ll.h: Regenerated.
41427         * lib/unictype/categ_Lm.h: Regenerated.
41428         * lib/unictype/categ_Lo.h: Regenerated.
41429         * lib/unictype/categ_Lu.h: Regenerated.
41430         * lib/unictype/categ_M.h: Regenerated.
41431         * lib/unictype/categ_Mc.h: Regenerated.
41432         * lib/unictype/categ_Me.h: Regenerated.
41433         * lib/unictype/categ_Mn.h: Regenerated.
41434         * lib/unictype/categ_N.h: Regenerated.
41435         * lib/unictype/categ_Nd.h: Regenerated.
41436         * lib/unictype/categ_Nl.h: Regenerated.
41437         * lib/unictype/categ_No.h: Regenerated.
41438         * lib/unictype/categ_P.h: Regenerated.
41439         * lib/unictype/categ_Pd.h: Regenerated.
41440         * lib/unictype/categ_Pe.h: Regenerated.
41441         * lib/unictype/categ_Pf.h: Regenerated.
41442         * lib/unictype/categ_Pi.h: Regenerated.
41443         * lib/unictype/categ_Po.h: Regenerated.
41444         * lib/unictype/categ_Ps.h: Regenerated.
41445         * lib/unictype/categ_S.h: Regenerated.
41446         * lib/unictype/categ_Sk.h: Regenerated.
41447         * lib/unictype/categ_Sm.h: Regenerated.
41448         * lib/unictype/categ_So.h: Regenerated.
41449         * lib/unictype/categ_of.h: Regenerated.
41450         * lib/unictype/combining.h: Regenerated.
41451         * lib/unictype/ctype_alnum.h: Regenerated.
41452         * lib/unictype/ctype_alpha.h: Regenerated.
41453         * lib/unictype/ctype_graph.h: Regenerated.
41454         * lib/unictype/ctype_lower.h: Regenerated.
41455         * lib/unictype/ctype_print.h: Regenerated.
41456         * lib/unictype/ctype_punct.h: Regenerated.
41457         * lib/unictype/ctype_upper.h: Regenerated.
41458         * lib/unictype/decdigit.h: Regenerated.
41459         * lib/unictype/digit.h: Regenerated.
41460         * lib/unictype/mirror.h: Regenerated.
41461         * lib/unictype/numeric.h: Regenerated.
41462         * lib/unictype/pr_alphabetic.h: Regenerated.
41463         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41464         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41465         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41466         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41467         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41468         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41469         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41470         * lib/unictype/pr_combining.h: Regenerated.
41471         * lib/unictype/pr_dash.h: Regenerated.
41472         * lib/unictype/pr_decimal_digit.h: Regenerated.
41473         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41474         * lib/unictype/pr_deprecated.h: Regenerated.
41475         * lib/unictype/pr_diacritic.h: Regenerated.
41476         * lib/unictype/pr_extender.h: Regenerated.
41477         * lib/unictype/pr_format_control.h: Regenerated.
41478         * lib/unictype/pr_grapheme_base.h: Regenerated.
41479         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41480         * lib/unictype/pr_grapheme_link.h: Regenerated.
41481         * lib/unictype/pr_id_continue.h: Regenerated.
41482         * lib/unictype/pr_id_start.h: Regenerated.
41483         * lib/unictype/pr_ideographic.h: Regenerated.
41484         * lib/unictype/pr_ignorable_control.h: Regenerated.
41485         * lib/unictype/pr_lowercase.h: Regenerated.
41486         * lib/unictype/pr_math.h: Regenerated.
41487         * lib/unictype/pr_numeric.h: Regenerated.
41488         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41489         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41490         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41491         * lib/unictype/pr_other_id_continue.h: Regenerated.
41492         * lib/unictype/pr_other_lowercase.h: Regenerated.
41493         * lib/unictype/pr_other_math.h: Regenerated.
41494         * lib/unictype/pr_punctuation.h: Regenerated.
41495         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41496         * lib/unictype/pr_soft_dotted.h: Regenerated.
41497         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41498         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41499         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41500         * lib/unictype/pr_uppercase.h: Regenerated.
41501         * lib/unictype/pr_xid_continue.h: Regenerated.
41502         * lib/unictype/pr_xid_start.h: Regenerated.
41503         * lib/unictype/pr_zero_width.h: Regenerated.
41504         * lib/unictype/scripts.h: Regenerated.
41505         * lib/unictype/scripts_byname.gperf: Regenerated.
41506         * lib/unictype/sy_java_ident.h: Regenerated.
41507         * lib/unilbrk/lbrkprop1.h: Regenerated.
41508         * lib/unilbrk/lbrkprop2.h: Regenerated.
41509         * tests/unictype/test-categ_C.c: Regenerated.
41510         * tests/unictype/test-categ_Cf.c: Regenerated.
41511         * tests/unictype/test-categ_Cn.c: Regenerated.
41512         * tests/unictype/test-categ_L.c: Regenerated.
41513         * tests/unictype/test-categ_Ll.c: Regenerated.
41514         * tests/unictype/test-categ_Lm.c: Regenerated.
41515         * tests/unictype/test-categ_Lo.c: Regenerated.
41516         * tests/unictype/test-categ_Lu.c: Regenerated.
41517         * tests/unictype/test-categ_M.c: Regenerated.
41518         * tests/unictype/test-categ_Mc.c: Regenerated.
41519         * tests/unictype/test-categ_Me.c: Regenerated.
41520         * tests/unictype/test-categ_Mn.c: Regenerated.
41521         * tests/unictype/test-categ_N.c: Regenerated.
41522         * tests/unictype/test-categ_Nd.c: Regenerated.
41523         * tests/unictype/test-categ_Nl.c: Regenerated.
41524         * tests/unictype/test-categ_No.c: Regenerated.
41525         * tests/unictype/test-categ_P.c: Regenerated.
41526         * tests/unictype/test-categ_Pd.c: Regenerated.
41527         * tests/unictype/test-categ_Pe.c: Regenerated.
41528         * tests/unictype/test-categ_Pf.c: Regenerated.
41529         * tests/unictype/test-categ_Pi.c: Regenerated.
41530         * tests/unictype/test-categ_Po.c: Regenerated.
41531         * tests/unictype/test-categ_Ps.c: Regenerated.
41532         * tests/unictype/test-categ_S.c: Regenerated.
41533         * tests/unictype/test-categ_Sk.c: Regenerated.
41534         * tests/unictype/test-categ_Sm.c: Regenerated.
41535         * tests/unictype/test-categ_So.c: Regenerated.
41536         * tests/unictype/test-ctype_alnum.c: Regenerated.
41537         * tests/unictype/test-ctype_alpha.c: Regenerated.
41538         * tests/unictype/test-ctype_graph.c: Regenerated.
41539         * tests/unictype/test-ctype_lower.c: Regenerated.
41540         * tests/unictype/test-ctype_print.c: Regenerated.
41541         * tests/unictype/test-ctype_punct.c: Regenerated.
41542         * tests/unictype/test-ctype_upper.c: Regenerated.
41543         * tests/unictype/test-decdigit.h: Regenerated.
41544         * tests/unictype/test-digit.h: Regenerated.
41545         * tests/unictype/test-numeric.h: Regenerated.
41546         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41547         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41548         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41549         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41550         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41551         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41552         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41553         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41554         * tests/unictype/test-pr_combining.c: Regenerated.
41555         * tests/unictype/test-pr_dash.c: Regenerated.
41556         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41557         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41558         * tests/unictype/test-pr_deprecated.c: Regenerated.
41559         * tests/unictype/test-pr_diacritic.c: Regenerated.
41560         * tests/unictype/test-pr_extender.c: Regenerated.
41561         * tests/unictype/test-pr_format_control.c: Regenerated.
41562         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41563         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41564         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41565         * tests/unictype/test-pr_id_continue.c: Regenerated.
41566         * tests/unictype/test-pr_id_start.c: Regenerated.
41567         * tests/unictype/test-pr_ideographic.c: Regenerated.
41568         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41569         * tests/unictype/test-pr_lowercase.c: Regenerated.
41570         * tests/unictype/test-pr_math.c: Regenerated.
41571         * tests/unictype/test-pr_numeric.c: Regenerated.
41572         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41573         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41574         Regenerated.
41575         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41576         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41577         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41578         * tests/unictype/test-pr_other_math.c: Regenerated.
41579         * tests/unictype/test-pr_punctuation.c: Regenerated.
41580         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41581         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41582         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41583         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41584         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41585         * tests/unictype/test-pr_uppercase.c: Regenerated.
41586         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41587         * tests/unictype/test-pr_xid_start.c: Regenerated.
41588         * tests/unictype/test-pr_zero_width.c: Regenerated.
41589
41590         Update to Unicode 5.1.0.
41591         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41592         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41593         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41594         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41595         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41596         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41597         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41598         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41599         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41600         (nonspacing_table_ind): Update.
41601         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41602
41603         Update to Unicode 5.1.0.
41604         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41605         code transform.
41606         * lib/uniname/uniname.c (unicode_character_name,
41607         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41608         * lib/uniname/uninames.h: Regenerated.
41609         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41610
41611 2009-02-07  Bruno Haible  <bruno@clisp.org>
41612
41613         Merge gen-ctype and gen-lbrk into a single program.
41614         * lib/gen-uni-tables.c: New file, incorporating
41615         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41616         Add directory prefixes to the names of the generated files.
41617         * lib/unictype/gen-ctype.c: Remove file.
41618         * lib/unilbrk/gen-lbrk.c: Remove file.
41619         * modules/gen-uni-tables: New file.
41620         * modules/unictype/gen-ctype: Remove file.
41621         * modules/unilbrk/gen-lbrk: Remove file.
41622
41623 2009-02-07  Bruno Haible  <bruno@clisp.org>
41624
41625         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41626
41627         New module 'unistr/u32-strcoll'.
41628         * modules/unistr/u32-strcoll: New file.
41629         * lib/unistr/u32-strcoll.c: New file.
41630
41631         New module 'unistr/u16-strcoll'.
41632         * modules/unistr/u16-strcoll: New file.
41633         * lib/unistr/u16-strcoll.c: New file.
41634
41635         New module 'unistr/u8-strcoll'.
41636         * modules/unistr/u8-strcoll: New file.
41637         * lib/unistr/u8-strcoll.c: New file.
41638         * lib/unistr/u-strcoll.h: New file.
41639
41640 2009-02-07  Bruno Haible  <bruno@clisp.org>
41641
41642         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41643         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41644         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41645         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41646         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41647         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41648
41649 2009-02-07  Bruno Haible  <bruno@clisp.org>
41650
41651         Make 64-bit clean.
41652         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41653         output_combclass, output_bidi_category, output_decimal_digit,
41654         output_digit, output_numeric, output_mirror, output_scripts,
41655         output_ident_category): Use proper width specifier in format strings.
41656
41657 2009-02-07  Bruno Haible  <bruno@clisp.org>
41658
41659         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41660         failure behaviour.
41661
41662 2009-02-07  Jim Meyering  <meyering@redhat.com>
41663
41664         regex: avoid compilation failure with upcoming gcc-4.4
41665         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41666         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41667         "... error: integer overflow in preprocessor expression".
41668
41669 2009-02-05  Ben Pfaff  <blp@gnu.org>
41670
41671         Fix link errors on Windows when close module is used.
41672         * modules/close: Add $(LIB_CLOSE) to Link section.
41673         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41674         $(LIB_CLOSE) on Windows.
41675
41676 2009-02-05  Jim Meyering  <meyering@redhat.com>
41677
41678         still avoid unused-parameter warnings, but do it cleanly
41679         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41680         (get_fs_usage): Cast to void instead.
41681         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41682         (dev_from_mount_options, read_file_system_list): Cast to void.
41683         Prompted by Bruno Haible.
41684
41685 2009-02-04  Jim Meyering  <meyering@redhat.com>
41686
41687         fsusage.c: correct copyright year
41688         * lib/fsusage.c: Reflect year in which the change is pushed into
41689
41690         avoid misc. warnings
41691         * lib/fsusage.c (UNUSED_PARAM): Define.
41692         (get_fs_usage): Mark parameter "disk" as unused.
41693         * lib/getugroups.c (getgrent): Use "void" in prototype.
41694         * lib/mountlist.c: Mark unused parameters.
41695         (read_file_system_list): Declare a local with "const".
41696         * lib/nanosleep.c (getnow): Declare static.
41697         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41698
41699         dirfd: set errno upon failure
41700         * lib/dirfd.c: Include <errno.h>.
41701         Set errno to ENOTSUP when returning -1.
41702         * modules/dirfd (Depends-on): Add errno.
41703         Suggested by John Kodis <kodis@comcast.net>.
41704
41705 2009-02-01  Bruno Haible  <bruno@clisp.org>
41706
41707         Don't assume sizeof (long) >= sizeof (void *).
41708         * lib/memcmp.c: Include stdint.h.
41709         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41710         srcp2 to 'const byte *'.
41711         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41712         types to uintptr_t.
41713         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41714         * modules/memcmp (Depends-on): Add stdint.
41715         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41716
41717 2009-01-30  Eric Blake  <ebb9@byu.net>
41718
41719         fix more require-before-expand issues
41720         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41721         expand, AC_PROG_AWK.
41722         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41723
41724 2009-01-28  Eric Blake  <ebb9@byu.net>
41725
41726         version-etc: use consistent URL formatting
41727         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41728         Improve formatting.  Use fputs for string without %.
41729
41730 2009-01-28  Jim Meyering  <meyering@redhat.com>
41731
41732         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41733         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41734         "underquoted definition of NAME" from autoconf-2.59.
41735
41736 2009-01-28  Bruno Haible  <bruno@clisp.org>
41737
41738         * doc/gnulib.texi: Add "Obsolete modules" to index.
41739
41740 2009-01-28  Jim Meyering  <meyering@redhat.com>
41741
41742         useless-if-before-free: recognize more variants
41743         * build-aux/useless-if-before-free: Also recognize e.g.,
41744         if (NULL != p) free (p);
41745
41746 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41747
41748         test-getaddrinfo: skip (don't fail) this test when there's no network
41749         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41750         on the presumption that it means you lack network access.
41751
41752 2009-01-26  Jim Meyering  <meyering@redhat.com>
41753
41754         fflush: avoid warnings on modern systems
41755         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41756         pos and result, into scopes where they're used.
41757
41758 2009-01-26  Eric Blake  <ebb9@byu.net>
41759
41760         Silence warning reintroduced by recent extensions patch.
41761         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41762         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41763         autoconf.
41764
41765         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41766         * m4/00gnulib.m4: New file.
41767         * gnulib-tool (func_get_filelist): Always use it.
41768         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41769         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41770
41771 2009-01-25  Bruno Haible  <bruno@clisp.org>
41772
41773         Make test-quotearg work on MacOS X and AIX.
41774         * tests/test-quotearg.sh: New file.
41775         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41776         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41777         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41778         include <libintl.h>.
41779         (fake_locale): Remove variable.
41780         (gettext, dgettext, dcgettext): Remove functions.
41781         (main): Instead of setting a fake locale, set a real locale. Call
41782         textdomain and bindtextdomain.
41783         * modules/quotearg-tests (Files): Add the new files.
41784         (Depends-on): Add gettext, setenv, unsetenv.
41785         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41786         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41787         Augment TESTS_ENVIRONMENT.
41788
41789 2009-01-25  Bruno Haible  <bruno@clisp.org>
41790
41791         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41792         fr_FR.ISO8859-1 locale on MacOS X.
41793         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41794         ja_JP.eucJP locale on MacOS X.
41795         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41796         zh_CN.GB18030 locale on MacOS X.
41797
41798 2009-01-25  Bruno Haible  <bruno@clisp.org>
41799
41800         Avoid link errors on MacOS X 10.3.
41801         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41802         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41803
41804 2009-01-25  Bruno Haible  <bruno@clisp.org>
41805
41806         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41807         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41808         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41809         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41810         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41811         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41812         posix_spawnattr_init, posix_spawnattr_setsigmask,
41813         posix_spawnattr_setflags, posix_spawnattr_destroy.
41814
41815         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41816         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41817         * modules/execute (Files): Remove m4/posix_spawn.m4.
41818         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41819         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41820         posix_spawnattr_init, posix_spawnattr_setsigmask,
41821         posix_spawnattr_setflags, posix_spawnattr_destroy.
41822
41823 2009-01-25  Bruno Haible  <bruno@clisp.org>
41824
41825         * lib/glthread/threadlib.c: Include <stdlib.h>.
41826
41827 2009-01-25  Bruno Haible  <bruno@clisp.org>
41828
41829         * lib/glthread/threadlib.c (dummy): New declaration.
41830
41831 2009-01-25  Bruno Haible  <bruno@clisp.org>
41832
41833         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41834         multibyte characters also for the GB18030 encoding. Don't crash when
41835         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41836
41837 2009-01-25  Bruno Haible  <bruno@clisp.org>
41838
41839         Avoid redefining 'struct random_data' on OSF/1 5.1.
41840         * lib/stdlib.in.h: Include <random.h> if it exists.
41841         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41842         HAVE_RANDOM_H. Include <random.h> when testing whether
41843         'struct random_data' exists.
41844         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41845
41846 2009-01-25  Bruno Haible  <bruno@clisp.org>
41847
41848         Don't install charset.alias on MacOS X >= 10.3.
41849         * lib/localcharset.c (DARWIN7): New macro.
41850         (get_charset_aliases): Hardcode the result for Darwin7.
41851         * modules/localcharset (install-exec-local): Don't install
41852         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41853
41854 2009-01-25  Bruno Haible  <bruno@clisp.org>
41855
41856         Don't install charset.alias on mingw and Cygwin.
41857         * modules/localcharset (install-exec-local): Don't install
41858         charset.alias on mingw and Cygwin, if the file does not yet exist.
41859         The result for these platforms is hardcoded in localcharset.c.
41860
41861 2009-01-25  Bruno Haible  <bruno@clisp.org>
41862
41863         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41864         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41865         before requiring AC_USE_SYSTEM_EXTENSIONS.
41866
41867 2009-01-25  Jim Meyering  <meyering@redhat.com>
41868
41869         c-strtod: avoid warnings
41870         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41871         "assignment discards qualifiers from pointer target type" warnings.
41872
41873 2009-01-24  Bruno Haible  <bruno@clisp.org>
41874
41875         Add support for non-UTF-8 locales on MacOS X.
41876         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41877         canonical encodings. For Darwin 7 and newer, don't map traditional
41878         encodings to UTF-8.
41879         Reported by Vincent Lefevre <vincent@vinc17.org>
41880         at <http://savannah.gnu.org/bugs/?25235>.
41881
41882 2009-01-24  Bruno Haible  <bruno@clisp.org>
41883
41884         * doc/gnulib.texi (Obsolete modules): New section.
41885         Reported by Mike Frysinger <vapier@gentoo.org>.
41886
41887 2009-01-24  Bruno Haible  <bruno@clisp.org>
41888
41889         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41890         (%.dvi): New rule.
41891
41892 2009-01-24  Bruno Haible  <bruno@clisp.org>
41893
41894         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41895         Reported by Eric Blake.
41896
41897 2009-01-24  Bruno Haible  <bruno@clisp.org>
41898
41899         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41900         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41901         Reported by Gary V. Vaughan <gary@gnu.org>.
41902
41903 2009-01-24  Bruno Haible  <bruno@clisp.org>
41904
41905         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41906
41907 2009-01-23  Bruno Haible  <bruno@clisp.org>
41908
41909         Make c-strtod, c-strtold usable in libraries.
41910         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41911         (C_STRTOD): Call strdup instead of xstrdup.
41912         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41913         * modules/c-strtold (Depends-on): Likewise.
41914         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41915         * NEWS: Mention the change.
41916         Reported by Michael Gold <mgold@ncf.ca>.
41917
41918 2009-01-23  Jim Meyering  <meyering@redhat.com>
41919
41920         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41921         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41922         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41923
41924 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41925
41926         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41927         GNU CoreUtils.
41928         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41929         * modules/version-etc (Description): Update.
41930
41931 2009-01-22  Bruno Haible  <bruno@clisp.org>
41932
41933         Cache the C locale object.
41934         * lib/c-strtod.c (c_locale_cache): New variable.
41935         (c_locale): New function.
41936         (C_STRTOD): Use it, and don't call freelocale.
41937         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41938         Suggested by Paolo Bonzini.
41939
41940 2009-01-21  Bruno Haible  <bruno@clisp.org>
41941
41942         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41943         conditions other than overflow.
41944
41945 2009-01-21  Bruno Haible  <bruno@clisp.org>
41946
41947         * lib/c-strtod.c: Include errno.h.
41948         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41949         value from STRTOD_L and STRTOD.
41950
41951 2009-01-21  Bruno Haible  <bruno@clisp.org>
41952         and Jim Meyering  <meyering@redhat.com>
41953
41954         nanosleep: skip configure test (fail it) for apple universal builds
41955         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41956         universal builds, assume that nanosleep does not work.
41957         * modules/nanosleep (Depends-on): Add multiarch.
41958
41959         mktime: skip configure test (fail it) for apple universal builds
41960         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41961         universal builds, assume that mktime does not work.
41962         * modules/mktime (Depends-on): Add multiarch.
41963
41964 2009-01-21  Eric Blake  <ebb9@byu.net>
41965
41966         multiarch: avoid expand-before-require warning
41967         * modules/multiarch (configure.ac): Require, rather than expand,
41968         gl_MULTIARCH.
41969         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41970         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41971         enforce that all clients require it.  Partial reversion of
41972         2008-12-29 patch.
41973
41974         error: avoid expand-before-require warning
41975         * modules/errno (configure.ac): Require, rather than expand,
41976         gl_HEADER_ERRNO_H.
41977         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41978         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41979         enforce that all clients require it.
41980
41981         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41982         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41983         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41984         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41985
41986 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41987
41988         Revert:
41989         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41990
41991         regex: do not depend on obsolete modules.
41992         * modules/regex: Remove memcmp and memmove.
41993
41994 2009-01-20  Bruno Haible  <bruno@clisp.org>
41995
41996         Make the 'link' module link on Windows NT 4.
41997         * lib/link.c (_WIN32_WINNT): Don't define.
41998         (CreateHardLinkFuncType): New type.
41999         (CreateHardLinkFunc, initialized): New variables.
42000         (initialize): New function.
42001         (link): Invoke CreateHardLink indirectly through the function pointer.
42002
42003 2009-01-20  Bruno Haible  <bruno@clisp.org>
42004
42005         Fix compilation failure on mingw.
42006         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42007
42008 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42009
42010         * doc/c-strtod.texi: Mention a couple of restrictions.
42011
42012 2009-01-20  Jim Meyering  <meyering@redhat.com>
42013
42014         gettimeofday: move more declarations out of functions
42015         * lib/gettimeofday.c: Move extern declarations of tzset and
42016         gmtime out of containing functions.  Prompted by Bruno Haible.
42017
42018 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42019
42020         regex: do not depend on obsolete modules.
42021         * modules/regex: Remove memcmp and memmove.
42022
42023 2009-01-19  Bruno Haible  <bruno@clisp.org>
42024
42025         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42026         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42027         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42028         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42029         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42030
42031 2009-01-19  Bruno Haible  <bruno@clisp.org>
42032
42033         * tests/test-link.c: Include <errno.h>.
42034         (main): Exit with code 77 when a hard link cannot be created due to
42035         the file system.
42036         * tests/test-link.sh: Skip test when a hard link cannot be created due
42037         to the file system.
42038         Suggested by Eric Blake.
42039
42040 2009-01-19  Martin Lambers  <marlam@marlam.de>
42041
42042         * modules/link-tests: New file.
42043         * tests/test-link.sh: New file.
42044         * tests/test-link.c: New file.
42045
42046 2009-01-19  Eric Blake  <ebb9@byu.net>
42047
42048         doc: mention another function added in cygwin 1.7.0
42049         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42050         Another new function in cygwin 1.7.
42051
42052 2009-01-19  Bruno Haible  <bruno@clisp.org>
42053
42054         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42055         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42056         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42057         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42058         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42059         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42060         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42061         * m4/md4.m4 (gl_MD4): Likewise.
42062         * m4/md5.m4 (gl_MD5): Likewise.
42063         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42064         * m4/sha1.m4 (gl_SHA1): Likewise.
42065         * m4/sha256.m4 (gl_SHA256): Likewise.
42066         * m4/sha512.m4 (gl_SHA512): Likewise.
42067
42068 2009-01-19  Bruno Haible  <bruno@clisp.org>
42069
42070         * modules/uniname/uniname-tests (Depends-on): Add progname.
42071         * tests/uniname/test-uninames.c: Include progname.h.
42072         (main): Call set_program_name.
42073
42074         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42075         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42076         (main): Call set_program_name.
42077
42078         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42079         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42080         (main): Call set_program_name.
42081
42082         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42083         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42084         (main): Call set_program_name.
42085
42086         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42087         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42088         (main): Call set_program_name.
42089
42090         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42091         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42092         (main): Call set_program_name.
42093
42094         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42095         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42096         (main): Call set_program_name.
42097
42098         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42099         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42100         (main): Call set_program_name.
42101
42102         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42103         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42104         (main): Call set_program_name.
42105
42106 2009-01-19  Eric Blake  <ebb9@byu.net>
42107
42108         test-unistd: test previous patch
42109         * tests/test-unistd.c: Test *_FILENO macros.
42110
42111         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42112         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42113         Guarantee a definition.
42114         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42115         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42116         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42117         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42118         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42119         Likewise.
42120         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42121         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42122         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42123         Likewise.
42124         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42125         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42126         (STDERR_FILENO): Likewise.
42127         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42128         (STDERR_FILENO): Likewise.
42129         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42130         (STDERR_FILENO): Likewise.
42131         Reported by Elbert Pol.
42132
42133 2009-01-19  Eric Blake  <ebb9@byu.net>
42134
42135         doc: mention more functions added in cygwin 1.7.0
42136         * doc/posix-functions/abort.texi (abort): Update wording related
42137         to cygwin.
42138         * doc/posix-functions/daylight.texi (daylight): Likewise.
42139         * doc/posix-functions/optarg.texi (optarg): Likewise.
42140         * doc/posix-functions/optarg.texi (opterr): Likewise.
42141         * doc/posix-functions/optarg.texi (optind): Likewise.
42142         * doc/posix-functions/optarg.texi (optopt): Likewise.
42143         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42144         worked in 1.5.x, and was withdrawn in 1.7.
42145         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42146         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42147         cygwin versions.
42148         * doc/posix-functions/perror.texi (perror): Likewise.
42149         * doc/posix-functions/printf.texi (printf): Likewise.
42150         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42151         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42152         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42153         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42154         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42155         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42156         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42157         Likewise.
42158         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42159         Likewise.
42160         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42161         this function.
42162         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42163         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42164         Likewise.
42165         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42166         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42167         * doc/posix-functions/confstr.texi (confstr): Likewise.
42168         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42169         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42170         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42171         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42172         * doc/posix-functions/fputws.texi (fputws): Likewise.
42173         * doc/posix-functions/fwide.texi (fwide): Likewise.
42174         * doc/posix-functions/getwc.texi (getwc): Likewise.
42175         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42176         * doc/posix-functions/putwc.texi (putwc): Likewise.
42177         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42178         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42179         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42180         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42181         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42182         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42183         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42184         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42185         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42186         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42187         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42188
42189 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42190
42191         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42192         * lib/ioctl.c: Include <sys/ioctl.h>.
42193
42194 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42195
42196         * modules/getdate-tests (Depends-on): Add progname.
42197         * tests/test-getdate.c: Use progname module, to avoid link errors
42198         on non-glibc systems.
42199
42200 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42201
42202         * modules/filenamecat-tests (Depends-on): Add progname.
42203         * modules/fstrcmp-tests (Depends-on): Likewise.
42204
42205         * tests/test-filenamecat.c: Use progname module, to avoid link
42206         errors on non-glibc systems.
42207         * tests/test-fstrcmp.c: Likewise.
42208
42209 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42210
42211         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42212         * lib/gettimeofday.c: Move extern declaration out of function.
42213
42214 2009-01-18  Bruno Haible  <bruno@clisp.org>
42215
42216         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42217         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42218         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42219
42220 2009-01-18  Bruno Haible  <bruno@clisp.org>
42221
42222         * lib/strftime.c (MEMPCPY): Remove unused macro.
42223         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42224
42225 2009-01-18  Martin Lambers  <marlam@marlam.de>
42226
42227         New module 'link'.
42228         * lib/unistd.in.h (link): New declaration.
42229         * lib/link.c: New file.
42230         * m4/link.m4: New file.
42231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42232         HAVE_LINK.
42233         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42234         * modules/link: New file.
42235         * doc/posix-functions/link.texi: Mention the new module.
42236
42237 2009-01-18  Bruno Haible  <bruno@clisp.org>
42238
42239         * tests/test-avltree_list.c (main): Call set_program_name.
42240         * tests/test-avltree_oset.c (main): Likewise.
42241         * tests/test-obstack-printf.c: Include progname.h.
42242         (main): Call set_program_name.
42243         * tests/test-quotearg.c: Include progname.h.
42244         (main): Call set_program_name.
42245         * tests/test-xmemdup0.c: Include progname.h.
42246         (main): Call set_program_name.
42247
42248 2009-01-18  Bruno Haible  <bruno@clisp.org>
42249
42250         New module 'alphasort'.
42251         * lib/dirent.in.h (alphasort): New declaration.
42252         * lib/alphasort.c: New file, from glibc with modifications.
42253         * m4/alphasort.m4: New file.
42254         * modules/alphasort: New file.
42255         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42256         HAVE_ALPHASORT.
42257         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42258         HAVE_ALPHASORT.
42259         * doc/posix-functions/alphasort.texi: Mention the new module and the
42260         portability problems.
42261
42262 2009-01-18  Bruno Haible  <bruno@clisp.org>
42263
42264         New module 'scandir'.
42265         * lib/dirent.in.h (scandir): New declaration.
42266         * lib/scandir.c: New file, from glibc with modifications.
42267         * m4/scandir.m4: New file.
42268         * modules/scandir: New file.
42269         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42270         HAVE_SCANDIR.
42271         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42272         HAVE_SCANDIR.
42273         * doc/posix-functions/scandir.texi: Mention the new module and the
42274         portability problems.
42275
42276 2009-01-17  Bruno Haible  <bruno@clisp.org>
42277
42278         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42279         Update documentation.
42280         (func_remove_suffix): Escape all dots in the suffix. Update
42281         documentation.
42282         (func_filter_filelist): Update documentation.
42283         Reported by Ralf Wildenhues.
42284
42285 2009-01-17  Bruno Haible  <bruno@clisp.org>
42286
42287         * modules/dprintf-posix-tests: New file.
42288         * tests/test-dprintf-posix.sh: New file.
42289         * tests/test-dprintf-posix.c: New file.
42290
42291         New modules 'dprintf', 'dprintf-posix'.
42292         * lib/stdio.in.h (dprintf): New declaration.
42293         * lib/dprintf.c: New file.
42294         * m4/dprintf.m4: New file.
42295         * m4/dprintf-posix.m4: New file.
42296         * modules/dprintf: New file.
42297         * modules/dprintf-posix: New file.
42298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42299         HAVE_DPRINTF, REPLACE_DPRINTF.
42300         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42301         HAVE_DPRINTF, REPLACE_DPRINTF.
42302         * doc/posix-functions/dprintf.texi: Mention the new modules.
42303
42304 2009-01-17  Bruno Haible  <bruno@clisp.org>
42305
42306         * modules/vdprintf-posix-tests: New file.
42307         * tests/test-vdprintf-posix.sh: New file.
42308         * tests/test-vdprintf-posix.c: New file.
42309
42310         New modules 'vdprintf', 'vdprintf-posix'.
42311         * lib/stdio.in.h (vdprintf): New declaration.
42312         * lib/vdprintf.c: New file.
42313         * m4/vdprintf.m4: New file.
42314         * m4/vdprintf-posix.m4: New file.
42315         * modules/vdprintf: New file.
42316         * modules/vdprintf-posix: New file.
42317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42318         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42319         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42320         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42321         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42322
42323 2009-01-17  Bruno Haible  <bruno@clisp.org>
42324
42325         Fix replacement of fopen on mingw.
42326         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42327         mingw.
42328
42329 2009-01-17  Bruno Haible  <bruno@clisp.org>
42330
42331         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42332         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42333
42334 2009-01-17  Bruno Haible  <bruno@clisp.org>
42335
42336         Avoid test-fflush2.sh failure on mingw.
42337         * tests/test-fflush2.c: Include binary-io.h.
42338         (main): Put standard input into binary mode.
42339         * modules/fflush-tests (Depends-on): Add binary-io.
42340
42341 2009-01-17  Bruno Haible  <bruno@clisp.org>
42342
42343         * lib/wchar.in.h: In another particular situation, include only the
42344         system's <wchar.h> file.
42345         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42346         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42347         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42348
42349 2009-01-17  Bruno Haible  <bruno@clisp.org>
42350
42351         Support for stripping executables in --enable-relocatable.
42352         * build-aux/install-reloc: Expect one more argument, or an environment
42353         variable RELOC_STRIP_PROG. If set, strip the destination program and
42354         its wrapper.
42355         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42356         RELOC_STRIP_PROG.
42357         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42358         to set RELOCATABLE_STRIP.
42359         * NEWS: Mention the new Makefile requirement.
42360
42361 2009-01-17  Bruno Haible  <bruno@clisp.org>
42362
42363         * build-aux/install-reloc: Remove debugging information left over by
42364         C compiler on MacOS X.
42365
42366 2009-01-17  Bruno Haible  <bruno@clisp.org>
42367
42368         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42369         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42370         _NSGetExecutablePath.
42371
42372 2009-01-16  Jim Meyering  <meyering@redhat.com>
42373
42374         strerror: avoid warnings about discarding "const"
42375         * lib/strerror.c (rpl_strerror): Instead of returning a const
42376         string from each and every "case", use a variable, and add a single
42377         cast after the switch.
42378
42379 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42380
42381         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42382
42383 2009-01-16  Bruno Haible  <bruno@clisp.org>
42384
42385         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42386         array initializer syntax that also works in C++ mode.
42387         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42388
42389 2009-01-16  Jim Meyering  <meyering@redhat.com>
42390
42391         poll: suppress a warning
42392         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42393         to ignore "...unsigned expression < 0 is always false" warnings.
42394
42395 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42396
42397         poll: remove declarations of unused variables
42398         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42399         sockbuf and optlen.
42400
42401 2009-01-15  Bruno Haible  <bruno@clisp.org>
42402
42403         Make fflush-after-ungetc POSIX compliant on BSD systems.
42404         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42405         (clear_ungetc_buffer): Implement also for other systems.
42406         (rpl_fflush): On glibc systems, invoke
42407         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42408         clear_ungetc_buffer after fetching the stream's position, not before.
42409
42410 2009-01-15  Bruno Haible  <bruno@clisp.org>
42411
42412         Make fflush-after-ungetc POSIX compliant on glibc systems.
42413         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42414         after ungetc.
42415         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42416         (rpl_fflush): On glibc systems, simply call the system's fflush
42417         function after clearing the ungetc buffer.
42418         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42419         Instead, lseek only to the end of file, then use the system's fseeko
42420         for the rest. On glibc systems, reset the EOF indicator bit.
42421
42422 2009-01-15  Jim Meyering  <meyering@redhat.com>
42423
42424         openmp.m4: revert quote-adding change, for portability to older autoconf
42425         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42426         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42427         Simon Josefsson noticed the problem when using autoconf-2.61.
42428
42429 2009-01-15  Bruno Haible  <bruno@clisp.org>
42430
42431         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42432         * tests/test-fflush2.c (ASSERT): Always fail.
42433         (main): Add two tests for fflush() after ungetc(), taking into account
42434         the Austin Group's clarification.
42435         Suggested by Eric Blake.
42436
42437 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42438
42439         mktime.m4: remove K&R-style function prototypes
42440         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42441         for the Sun C++ compiler.
42442
42443 2009-01-14  Bruno Haible  <bruno@clisp.org>
42444
42445         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42446         while including <wchar.h>.
42447         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42448         the system's <wchar.h> file.
42449         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42450
42451 2009-01-14  Bruno Haible  <bruno@clisp.org>
42452
42453         * m4/csharp.m4: Don't mention gettext on the serial number line.
42454         * m4/csharpexec.m4: Likewise.
42455         * m4/eaccess.m4: Likewise.
42456         * m4/javaexec.m4: Likewise.
42457         * m4/sig_atomic_t.m4: Likewise.
42458         * m4/tmpdir.m4: Likewise.
42459         * m4/intldir.m4: Bump gettext version.
42460         * m4/lib-ld.m4: Likewise.
42461
42462 2009-01-14  Bruno Haible  <bruno@clisp.org>
42463
42464         * lib/progname.c (set_program_name): Add more comments.
42465         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42466
42467 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42468
42469         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42470         were sys/stat.h does not define it.
42471
42472 2009-01-14  Jim Meyering  <meyering@redhat.com>
42473
42474         many *.m4 files: improve m4 quoting
42475         99% of this change was performed by running the following commands:
42476         git ls-files | grep '\.m4$' | xargs perl -pi \
42477           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42478           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42479           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42480           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42481         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42482         The remainder were to add Copyright dates, increment serial numbers,
42483         undo some changes in comments, exclude m4/intl.m4, and add quotes
42484         around the "1" in ",1" where the unusual spacing prohibited the
42485         above regexps from doing the job.  For more details, see
42486         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42487         * m4/acl.m4: Modified.
42488         * m4/afs.m4: Likewise.
42489         * m4/alloca.m4: Likewise.
42490         * m4/argp.m4: Likewise.
42491         * m4/argz.m4: Likewise.
42492         * m4/atexit.m4: Likewise.
42493         * m4/bison-i18n.m4: Likewise.
42494         * m4/bison.m4: Likewise.
42495         * m4/byteswap.m4: Likewise.
42496         * m4/c-stack.m4: Likewise.
42497         * m4/c-strtod.m4: Likewise.
42498         * m4/calloc.m4: Likewise.
42499         * m4/canonicalize-lgpl.m4: Likewise.
42500         * m4/chown.m4: Likewise.
42501         * m4/clock_time.m4: Likewise.
42502         * m4/codeset.m4: Likewise.
42503         * m4/copy-file.m4: Likewise.
42504         * m4/csharp.m4: Likewise.
42505         * m4/csharpcomp.m4: Likewise.
42506         * m4/csharpexec.m4: Likewise.
42507         * m4/d-ino.m4: Likewise.
42508         * m4/d-type.m4: Likewise.
42509         * m4/dirfd.m4: Likewise.
42510         * m4/double-slash-root.m4: Likewise.
42511         * m4/eaccess.m4: Likewise.
42512         * m4/eealloc.m4: Likewise.
42513         * m4/environ.m4: Likewise.
42514         * m4/errno_h.m4: Likewise.
42515         * m4/euidaccess.m4: Likewise.
42516         * m4/execute.m4: Likewise.
42517         * m4/fatal-signal.m4: Likewise.
42518         * m4/fchdir.m4: Likewise.
42519         * m4/fcntl_h.m4: Likewise.
42520         * m4/fileblocks.m4: Likewise.
42521         * m4/filenamecat.m4: Likewise.
42522         * m4/findprog.m4: Likewise.
42523         * m4/flexmember.m4: Likewise.
42524         * m4/fnmatch.m4: Likewise.
42525         * m4/fopen.m4: Likewise.
42526         * m4/fpending.m4: Likewise.
42527         * m4/fprintf-posix.m4: Likewise.
42528         * m4/free.m4: Likewise.
42529         * m4/frexp.m4: Likewise.
42530         * m4/frexpl.m4: Likewise.
42531         * m4/fsusage.m4: Likewise.
42532         * m4/ftruncate.m4: Likewise.
42533         * m4/gc-camellia.m4: Likewise.
42534         * m4/gc-random.m4: Likewise.
42535         * m4/gc.m4: Likewise.
42536         * m4/getaddrinfo.m4: Likewise.
42537         * m4/getcwd-abort-bug.m4: Likewise.
42538         * m4/getcwd-path-max.m4: Likewise.
42539         * m4/getdate.m4: Likewise.
42540         * m4/getdomainname.m4: Likewise.
42541         * m4/getgroups.m4: Likewise.
42542         * m4/gethostname.m4: Likewise.
42543         * m4/gethrxtime.m4: Likewise.
42544         * m4/getline.m4: Likewise.
42545         * m4/getloadavg.m4: Likewise.
42546         * m4/getndelim2.m4: Likewise.
42547         * m4/getpass.m4: Likewise.
42548         * m4/gettext.m4: Likewise.
42549         * m4/gettime.m4: Likewise.
42550         * m4/gettimeofday.m4: Likewise.
42551         * m4/gnulib-common.m4: Likewise.
42552         * m4/group-member.m4: Likewise.
42553         * m4/host-os.m4: Likewise.
42554         * m4/iconv.m4: Likewise.
42555         * m4/iconv_open.m4: Likewise.
42556         * m4/inet_ntop.m4: Likewise.
42557         * m4/inet_pton.m4: Likewise.
42558         * m4/inline.m4: Likewise.
42559         * m4/intldir.m4: Likewise.
42560         * m4/intlmacosx.m4: Likewise.
42561         * m4/intmax.m4: Likewise.
42562         * m4/intmax_t.m4: Likewise.
42563         * m4/inttypes.m4: Likewise.
42564         * m4/inttypes_h.m4: Likewise.
42565         * m4/inttypes-pri.m4: Likewise.
42566         * m4/isapipe.m4: Likewise.
42567         * m4/isnand.m4: Likewise.
42568         * m4/isnanf.m4: Likewise.
42569         * m4/isnanl.m4: Likewise.
42570         * m4/javacomp.m4: Likewise.
42571         * m4/javaexec.m4: Likewise.
42572         * m4/jm-winsz1.m4: Likewise.
42573         * m4/jm-winsz2.m4: Likewise.
42574         * m4/lchown.m4: Likewise.
42575         * m4/lcmessage.m4: Likewise.
42576         * m4/ldexpl.m4: Likewise.
42577         * m4/lib-ld.m4: Likewise.
42578         * m4/lib-link.m4: Likewise.
42579         * m4/libsigsegv.m4: Likewise.
42580         * m4/link-follow.m4: Likewise.
42581         * m4/localcharset.m4: Likewise.
42582         * m4/locale-fr.m4: Likewise.
42583         * m4/locale-ja.m4: Likewise.
42584         * m4/locale-tr.m4: Likewise.
42585         * m4/locale-zh.m4: Likewise.
42586         * m4/lock.m4: Likewise.
42587         * m4/longlong.m4: Likewise.
42588         * m4/ls-mntd-fs.m4: Likewise.
42589         * m4/lstat.m4: Likewise.
42590         * m4/malloc.m4: Likewise.
42591         * m4/mathl.m4: Likewise.
42592         * m4/mbrtowc.m4: Likewise.
42593         * m4/mbstate_t.m4: Likewise.
42594         * m4/mbswidth.m4: Likewise.
42595         * m4/memchr.m4: Likewise.
42596         * m4/memcmp.m4: Likewise.
42597         * m4/memcpy.m4: Likewise.
42598         * m4/memmem.m4: Likewise.
42599         * m4/memmove.m4: Likewise.
42600         * m4/mempcpy.m4: Likewise.
42601         * m4/memrchr.m4: Likewise.
42602         * m4/memset.m4: Likewise.
42603         * m4/minmax.m4: Likewise.
42604         * m4/mkdir-slash.m4: Likewise.
42605         * m4/mkdtemp.m4: Likewise.
42606         * m4/mktime.m4: Likewise.
42607         * m4/mmap-anon.m4: Likewise.
42608         * m4/mountlist.m4: Likewise.
42609         * m4/nanosleep.m4: Likewise.
42610         * m4/nls.m4: Likewise.
42611         * m4/nocrash.m4: Likewise.
42612         * m4/open.m4: Likewise.
42613         * m4/openat.m4: Likewise.
42614         * m4/openmp.m4: Likewise.
42615         * m4/pathmax.m4: Likewise.
42616         * m4/perl.m4: Likewise.
42617         * m4/physmem.m4: Likewise.
42618         * m4/pipe.m4: Likewise.
42619         * m4/po.m4: Likewise.
42620         * m4/poll.m4: Likewise.
42621         * m4/posixtm.m4: Likewise.
42622         * m4/posixver.m4: Likewise.
42623         * m4/printf-frexp.m4: Likewise.
42624         * m4/printf-frexpl.m4: Likewise.
42625         * m4/printf-posix.m4: Likewise.
42626         * m4/printf-posix-rpl.m4: Likewise.
42627         * m4/printf.m4: Likewise.
42628         * m4/progtest.m4: Likewise.
42629         * m4/putenv.m4: Likewise.
42630         * m4/readline.m4: Likewise.
42631         * m4/readlink.m4: Likewise.
42632         * m4/readutmp.m4: Likewise.
42633         * m4/realloc.m4: Likewise.
42634         * m4/regex.m4: Likewise.
42635         * m4/relocatable.m4: Likewise.
42636         * m4/relocatable-lib.m4: Likewise.
42637         * m4/rename-dest-slash.m4: Likewise.
42638         * m4/rename.m4: Likewise.
42639         * m4/rmdir-errno.m4: Likewise.
42640         * m4/rmdir.m4: Likewise.
42641         * m4/roundf.m4: Likewise.
42642         * m4/roundl.m4: Likewise.
42643         * m4/rpmatch.m4: Likewise.
42644         * m4/save-cwd.m4: Likewise.
42645         * m4/selinux-selinux-h.m4: Likewise.
42646         * m4/setenv.m4: Likewise.
42647         * m4/settime.m4: Likewise.
42648         * m4/sig2str.m4: Likewise.
42649         * m4/sig_atomic_t.m4: Likewise.
42650         * m4/signalblocking.m4: Likewise.
42651         * m4/signbit.m4: Likewise.
42652         * m4/sigpipe.m4: Likewise.
42653         * m4/sockets.m4: Likewise.
42654         * m4/sockpfaf.m4: Likewise.
42655         * m4/st_dm_mode.m4: Likewise.
42656         * m4/stat-time.m4: Likewise.
42657         * m4/stdbool.m4: Likewise.
42658         * m4/stdint.m4: Likewise.
42659         * m4/stdint_h.m4: Likewise.
42660         * m4/stpcpy.m4: Likewise.
42661         * m4/stpncpy.m4: Likewise.
42662         * m4/strcase.m4: Likewise.
42663         * m4/strchrnul.m4: Likewise.
42664         * m4/strcspn.m4: Likewise.
42665         * m4/strdup.m4: Likewise.
42666         * m4/strftime.m4: Likewise.
42667         * m4/strndup.m4: Likewise.
42668         * m4/strnlen.m4: Likewise.
42669         * m4/strpbrk.m4: Likewise.
42670         * m4/strptime.m4: Likewise.
42671         * m4/strsep.m4: Likewise.
42672         * m4/strtod.m4: Likewise.
42673         * m4/strtoimax.m4: Likewise.
42674         * m4/strtok_r.m4: Likewise.
42675         * m4/strtol.m4: Likewise.
42676         * m4/strtoll.m4: Likewise.
42677         * m4/strtoul.m4: Likewise.
42678         * m4/strtoull.m4: Likewise.
42679         * m4/strtoumax.m4: Likewise.
42680         * m4/strverscmp.m4: Likewise.
42681         * m4/threadlib.m4: Likewise.
42682         * m4/timegm.m4: Likewise.
42683         * m4/tm_gmtoff.m4: Likewise.
42684         * m4/tmpdir.m4: Likewise.
42685         * m4/tmpfile.m4: Likewise.
42686         * m4/tzset.m4: Likewise.
42687         * m4/uintmax_t.m4: Likewise.
42688         * m4/unlinkdir.m4: Likewise.
42689         * m4/unlocked-io.m4: Likewise.
42690         * m4/uptime.m4: Likewise.
42691         * m4/userspec.m4: Likewise.
42692         * m4/utimbuf.m4: Likewise.
42693         * m4/utime.m4: Likewise.
42694         * m4/utimes-null.m4: Likewise.
42695         * m4/utimes.m4: Likewise.
42696         * m4/vararrays.m4: Likewise.
42697         * m4/vasnprintf.m4: Likewise.
42698         * m4/vfprintf-posix.m4: Likewise.
42699         * m4/vprintf-posix.m4: Likewise.
42700         * m4/wait-process.m4: Likewise.
42701         * m4/wchar_t.m4: Likewise.
42702         * m4/wint_t.m4: Likewise.
42703         * m4/write-any-file.m4: Likewise.
42704         * m4/yield.m4: Likewise.
42705
42706 2009-01-13  Bruno Haible  <bruno@clisp.org>
42707
42708         Avoid test-copy-file.sh failures when ACL support insufficient.
42709         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42710         TESTS_ENVIRONMENT.
42711         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42712         Reported by Jim Meyering.
42713
42714 2009-01-13  Bruno Haible  <bruno@clisp.org>
42715
42716         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42717         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42718         * modules/unistdio/u8-printf-parse (Files): Likewise.
42719         * modules/unistdio/u32-printf-parse (Files): Likewise.
42720         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42721
42722 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42723
42724         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42725         and m4/inttypes_h.m4 too.
42726
42727 2009-01-12  Eric Blake  <ebb9@byu.net>
42728
42729         tests: IRIX 6.2 cc can't compile -0.0 into .data
42730         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42731         rather than at compile-time.
42732         * tests/test-floorl.c (minus_zero): Likewise.
42733         * tests/test-frexpl.c (minus_zero): Likewise.
42734         * tests/test-isnan.c (minus_zerol): Likewise.
42735         * tests/test-isnanl.h (minus_zero): Likewise.
42736         * tests/test-ldexpl.c (minus_zero): Likewise.
42737         * tests/test-roundl.c (minus_zero): Likewise.
42738         * tests/test-signbit.c (minus_zerol): Likewise.
42739         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42740         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42741         * tests/test-truncl.c (minus_zero): Likewise.
42742         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42743         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42744         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42745
42746 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42747
42748         regex: fix glibc bug 9697
42749         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42750         handling.
42751
42752 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42753
42754         regex: fix glibc bug 697
42755         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42756         being NULL also if there are no backreferences.
42757
42758 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42759
42760         regex: merge glibc changes
42761         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42762         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42763         re_string_skip_chars, re_string_reconstruct): Likewise.
42764         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42765
42766 2009-01-07  Jim Meyering  <meyering@redhat.com>
42767
42768         poll: filter through cppi
42769         * lib/poll.c: Indent cpp directives to reflect nesting.
42770
42771 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42772
42773         poll: don't return uninitialized
42774         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42775
42776 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42777
42778         avoid compile failure on AIX 6.1
42779         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42780         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42781
42782 2009-01-04  Jim Meyering  <meyering@redhat.com>
42783
42784         remove duplicate inclusion of <stdio.h>
42785         * tests/test-fprintf-posix.c: Likewise.
42786         * tests/test-printf-posix.c: Likewise.
42787         * tests/test-snprintf-posix.c: Likewise.
42788         * tests/test-sprintf-posix.c: Likewise.
42789         * tests/test-vasprintf-posix.c: Likewise.
42790         * tests/test-vfprintf-posix.c: Likewise.
42791         * tests/test-vprintf-posix.c: Likewise.
42792         * tests/test-vsnprintf-posix.c: Likewise.
42793         * tests/test-vsprintf-posix.c: Likewise.
42794
42795 2009-01-03  Jim Meyering  <meyering@redhat.com>
42796
42797         gnulib-tool: fix sed-based filtering
42798         * gnulib-tool (func_filter_filelist): Remove extra backslash
42799         in sed_fff_filter definition.
42800
42801 2009-01-02  Jim Meyering  <meyering@redhat.com>
42802
42803         strftime: avoid compilation failure on Solaris 2.6
42804         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42805         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42806         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42807         be available.  Reported by Tom G. Christensen.  Details in
42808         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42809
42810 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42811             Bruno Haible  <bruno@clisp.org>
42812
42813         Speed up gnulib-tool by doing more string processing through shell
42814         built-ins.
42815         * gnulib-tool (fast_func_append): New variable.
42816         (func_remove_prefix, func_remove_suffix): New functions.
42817         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42818         (func_filter_filelist): New function.
42819         (func_get_dependencies): Use func_remove_suffix instead of sed.
42820         (func_get_automake_snippet): Use func_filter_filelist instead of a
42821         subshell and sed invocation.
42822
42823 2009-01-01  Bruno Haible  <bruno@clisp.org>
42824
42825         Fix a security bug.
42826         * gnulib-tool (func_import, import, update): Don't allow the characters
42827         '"', '$', '`', '\' in macro arguments that become part of commands that
42828         are evaluated.
42829
42830 2009-01-01  Bruno Haible  <bruno@clisp.org>
42831
42832         * gnulib-tool (func_reset_sigpipe): Add more comments.
42833
42834 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42835
42836         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42837         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42838         already know the answer.
42839
42840 2009-01-01  Jim Meyering  <meyering@redhat.com>
42841
42842         * lib/version-etc.c (version_etc_va): Update copyright year.
42843
42844 2008-12-30  Bruno Haible  <bruno@clisp.org>
42845
42846         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42847         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42848         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42849
42850 2008-12-29  Eric Blake  <ebb9@byu.net>
42851
42852         multiarch: avoid autoconf AC_REQUIRE bug
42853         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42854         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42855         2.63 and older.
42856         Reported by Bruno Haible, and analyzed in
42857         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42858
42859 2008-12-29  Bruno Haible  <bruno@clisp.org>
42860
42861         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42862         files in subdirectories correctly.
42863         Reported by Ralf Wildenhues.
42864
42865 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42866
42867         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42868         rather than 'join FILE -', for Solaris join.
42869
42870 2008-12-29  Bruno Haible  <bruno@clisp.org>
42871
42872         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42873         quoting.
42874         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42875         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42876         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42877         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42878         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42879         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42880         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42881         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42882         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42883         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42884         * m4/nls.m4 (AM_NLS): Likewise.
42885         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42886         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42887         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42888         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42889         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42890         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42891         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42892         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42893         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42894         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42895         * m4/xsize.m4 (gl_XSIZE): Likewise.
42896         Suggested by Jim Meyering.
42897
42898 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42899
42900         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42901         * lib/parse-duration.c: use a switch instead of cascading if's.
42902
42903 2008-12-29  Eric Blake  <ebb9@byu.net>
42904
42905         wchar.h: supply WEOF on Irix 5.3
42906         * lib/wchar.in.h (wint_t): Also supply WEOF.
42907         * lib/wctype.in.h (wint_t): Likewise.
42908         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42909         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42910         Reported by Tom G. Christensen.
42911
42912 2008-12-26  Bruno Haible  <bruno@clisp.org>
42913
42914         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42915         i486, i586, i686.
42916
42917 2008-12-26  Bruno Haible  <bruno@clisp.org>
42918
42919         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42920
42921 2008-12-26  Bruno Haible  <bruno@clisp.org>
42922
42923         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42924         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42925         not __STDC_CONSTANT_MACROS.
42926         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42927
42928 2008-12-25  Bruno Haible  <bruno@clisp.org>
42929
42930         Add support for universal builds to vasnprintf.
42931         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42932         universal builds, guess no.
42933         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42934         * modules/vasprintf-posix (Depends-on): Likewise.
42935         * modules/fprintf-posix (Depends-on): Likewise.
42936         * modules/vfprintf-posix (Depends-on): Likewise.
42937         * modules/snprintf-posix (Depends-on): Likewise.
42938         * modules/vsnprintf-posix (Depends-on): Likewise.
42939         * modules/sprintf-posix (Depends-on): Likewise.
42940         * modules/vsprintf-posix (Depends-on): Likewise.
42941         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42942         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42943         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42944         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42945         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42946         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42947         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42948
42949         Add support for universal builds to <inttypes.h>.
42950         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42951         _SCNu64_PREFIX): In Apple
42952         universal builds, define directly, using _LP64.
42953         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42954         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42955         * modules/inttypes (Depends-on): Add multiarch.
42956         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42957
42958         Add support for universal builds to <stdint.h>.
42959         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42960         universal builds, define directly, using _LP64.
42961         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42962         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42963         and size_t.
42964         * modules/stdint (Depends-on): Add multiarch.
42965         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42966
42967         New module 'multiarch'.
42968         * modules/multiarch: New file.
42969         * m4/multiarch.m4: New file.
42970
42971 2008-12-25  Bruno Haible  <bruno@clisp.org>
42972
42973         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42974
42975 2008-12-25  Bruno Haible  <bruno@clisp.org>
42976
42977         * modules/btowc (License): Relicense under LGPLv2+.
42978         * modules/mbsinit (License): Likewise.
42979         * modules/mbrtowc (License): Likewise.
42980         * modules/wcrtomb (License): Likewise.
42981         * modules/streq (License): Likewise.
42982         Reported by David Lutterkort <lutter@redhat.com>.
42983
42984 2008-12-23  Bruno Haible  <bruno@clisp.org>
42985
42986         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42987
42988 2008-12-23  Bruno Haible  <bruno@clisp.org>
42989
42990         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42991         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42992         GETADDRINFO_LIB, not in LIBS.
42993         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42994         * modules/canon-host (Link): Likewise.
42995         * NEWS: Mention the change.
42996         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42997         GETADDRINFO_LIB.
42998
42999 2008-12-22  Bruno Haible  <bruno@clisp.org>
43000
43001         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43002         * doc/posix-functions/iswalpha_l.texi: Likewise.
43003         * doc/posix-functions/iswblank_l.texi: Likewise.
43004         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43005         * doc/posix-functions/iswctype_l.texi: Likewise.
43006         * doc/posix-functions/iswdigit_l.texi: Likewise.
43007         * doc/posix-functions/iswgraph_l.texi: Likewise.
43008         * doc/posix-functions/iswlower_l.texi: Likewise.
43009         * doc/posix-functions/iswprint_l.texi: Likewise.
43010         * doc/posix-functions/iswpunct_l.texi: Likewise.
43011         * doc/posix-functions/iswspace_l.texi: Likewise.
43012         * doc/posix-functions/iswupper_l.texi: Likewise.
43013         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43014         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43015         * doc/posix-functions/open_wmemstream.texi: Likewise.
43016         * doc/posix-functions/swscanf.texi: Likewise.
43017         * doc/posix-functions/towctrans_l.texi: Likewise.
43018         * doc/posix-functions/towlower.texi: Likewise.
43019         * doc/posix-functions/towlower_l.texi: Likewise.
43020         * doc/posix-functions/towupper.texi: Likewise.
43021         * doc/posix-functions/towupper_l.texi: Likewise.
43022         * doc/posix-functions/vfwprintf.texi: Likewise.
43023         * doc/posix-functions/vfwscanf.texi: Likewise.
43024         * doc/posix-functions/vswscanf.texi: Likewise.
43025         * doc/posix-functions/vwprintf.texi: Likewise.
43026         * doc/posix-functions/vwscanf.texi: Likewise.
43027         * doc/posix-functions/wcpcpy.texi: Likewise.
43028         * doc/posix-functions/wcpncpy.texi: Likewise.
43029         * doc/posix-functions/wcscasecmp.texi: Likewise.
43030         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43031         * doc/posix-functions/wcscoll_l.texi: Likewise.
43032         * doc/posix-functions/wcsdup.texi: Likewise.
43033         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43034         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43035         * doc/posix-functions/wcsnlen.texi: Likewise.
43036         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43037         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43038         * doc/posix-functions/wctrans_l.texi: Likewise.
43039         * doc/posix-functions/wctype_l.texi: Likewise.
43040         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43041         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43042         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43043         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43044         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43045         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43046         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43047         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43048         * doc/glibc-functions/wcschrnul.texi: Likewise.
43049         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43050         * doc/glibc-functions/wcstod_l.texi: Likewise.
43051         * doc/glibc-functions/wcstof_l.texi: Likewise.
43052         * doc/glibc-functions/wcstol_l.texi: Likewise.
43053         * doc/glibc-functions/wcstold_l.texi: Likewise.
43054         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43055         * doc/glibc-functions/wcstoq.texi: Likewise.
43056         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43057         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43058         * doc/glibc-functions/wcstouq.texi: Likewise.
43059         * doc/glibc-functions/wmempcpy.texi: Likewise.
43060
43061 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43062             Eric Blake  <ebb9@byu.net>
43063             Paolo Bonzini  <bonzini@gnu.org>
43064             Bruno Haible  <bruno@clisp.org>
43065
43066         Make c-stack work on Haiku.
43067         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43068         (c_stack_action): Use SA_ONSTACK flag.
43069
43070 2008-12-22  Bruno Haible  <bruno@clisp.org>
43071
43072         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43073
43074 2008-12-22  Bruno Haible  <bruno@clisp.org>
43075
43076         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43077         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43078         being overridden.
43079         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43080         New macros.
43081         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43082         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43083         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43084         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43085
43086 2008-12-22  Bruno Haible  <bruno@clisp.org>
43087
43088         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43089         from test code.
43090
43091 2008-12-22  Eric Blake  <ebb9@byu.net>
43092
43093         Avoid gcc warnings on cygwin.
43094         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43095         Avoid unused variable.
43096         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43097         Likewise.
43098
43099 2008-12-22  Bruno Haible  <bruno@clisp.org>
43100
43101         Remove HAVE_MBRTOWC conditionals.
43102         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43103         (mbscasecmp): Assume mbrtowc function.
43104         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43105         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43106         * lib/mbschr.c: Include mbuiter.h unconditionally.
43107         (mbschr): Assume mbrtowc function.
43108         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43109         (mbscspn): Assume mbrtowc function.
43110         * lib/mbslen.c: Include mbuiter.h unconditionally.
43111         (mbslen): Assume mbrtowc function.
43112         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43113         (mbsncasecmp): Assume mbrtowc function.
43114         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43115         (mbsnlen): Assume mbrtowc function.
43116         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43117         (mbspbrk): Assume mbrtowc function.
43118         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43119         (mbspcasecmp): Assume mbrtowc function.
43120         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43121         (mbsrchr): Assume mbrtowc function.
43122         * lib/mbssep.c: Include mbuiter.h unconditionally.
43123         (mbssep): Assume mbrtowc function.
43124         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43125         (mbsspn): Assume mbrtowc function.
43126         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43127         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43128         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43129         (mbstok_r): Assume mbrtowc function.
43130         * lib/propername.c: Include mbuiter.h unconditionally.
43131         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43132         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43133         (trim2): Assume mbrtowc function.
43134         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43135         (mbsnwidth): Assume mbrtowc function.
43136         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43137         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43138         fallback definitions.
43139         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43140
43141 2008-12-22  Bruno Haible  <bruno@clisp.org>
43142
43143         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43144
43145 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43146
43147         * modules/regex: Request emulations for the mb*/wc* functions we need.
43148         * m4/regex.m4: Don't look for those functions here.
43149         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43150
43151 2008-12-22  Bruno Haible  <bruno@clisp.org>
43152
43153         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43154
43155 2008-12-21  Bruno Haible  <bruno@clisp.org>
43156
43157         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43158         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43159         (Include): Remove conditionalization.
43160         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43161         (Include): Remove conditionalization.
43162         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43163         (Include): Remove conditionalization.
43164         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43165         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43166         * NEWS: Mention the change.
43167         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43168         via Sergey Poznyakoff <gray@gnu.org.ua>.
43169
43170 2008-12-21  Bruno Haible  <bruno@clisp.org>
43171
43172         * MODULES.html.sh (Extended multibyte and wide character utilities
43173         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43174         wcrtomb, wcsrtombs.
43175         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43176         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43177         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43178         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43179
43180 2008-12-21  Bruno Haible  <bruno@clisp.org>
43181
43182         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43183
43184 2008-12-21  Bruno Haible  <bruno@clisp.org>
43185
43186         * modules/wcsnrtombs-tests: New file.
43187         * tests/test-wcsnrtombs1.sh: New file.
43188         * tests/test-wcsnrtombs2.sh: New file.
43189         * tests/test-wcsnrtombs3.sh: New file.
43190         * tests/test-wcsnrtombs4.sh: New file.
43191         * tests/test-wcsnrtombs.c: New file.
43192
43193         New module 'wcsnrtombs'.
43194         * lib/wchar.in.h (wcsnrtombs): New declaration.
43195         * lib/wcsnrtombs.c: New file.
43196         * lib/wcsrtombs-state.c: New file.
43197         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43198         (internal_state): Remove variable.
43199         * m4/wcsnrtombs.m4: New file.
43200         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43201         compilation units.
43202         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43203         HAVE_WCSNRTOMBS.
43204         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43205         HAVE_WCSNRTOMBS.
43206         * modules/wcsnrtombs: New file.
43207         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43208         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43209
43210 2008-12-21  Bruno Haible  <bruno@clisp.org>
43211
43212         * modules/wcsrtombs-tests: New file.
43213         * tests/test-wcsrtombs1.sh: New file.
43214         * tests/test-wcsrtombs2.sh: New file.
43215         * tests/test-wcsrtombs3.sh: New file.
43216         * tests/test-wcsrtombs4.sh: New file.
43217         * tests/test-wcsrtombs.c: New file.
43218
43219         New module 'wcsrtombs'.
43220         * lib/wchar.in.h (wcsrtombs): New declaration.
43221         * lib/wcsrtombs.c: New file.
43222         * m4/wcsrtombs.m4: New file.
43223         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43224         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43225         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43226         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43227         * modules/wcsrtombs: New file.
43228         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43229         bugs.
43230
43231 2008-12-21  Bruno Haible  <bruno@clisp.org>
43232
43233         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43234         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43235         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43236         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43237         if not correct.
43238         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43239         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43240         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43241         m4/locale-zh.m4, m4/codeset.m4.
43242         * doc/posix-functions/wcrtomb.texi: Document the bug.
43243
43244 2008-12-21  Bruno Haible  <bruno@clisp.org>
43245
43246         Work around a btowc() bug on IRIX 6.5.
43247         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43248         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43249         REPLACE_WTOBC if not.
43250         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43251         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43252         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43253
43254 2008-12-21  Bruno Haible  <bruno@clisp.org>
43255
43256         * modules/wcrtomb-tests: New file.
43257         * tests/test-wcrtomb.sh: New file.
43258         * tests/test-wcrtomb.c: New file.
43259
43260         New module 'wcrtomb'.
43261         * lib/wchar.in.h (wcrtomb): New declaration.
43262         * lib/wcrtomb.c: New file.
43263         * m4/wcrtomb.m4: New file.
43264         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43265         HAVE_WCRTOMB.
43266         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43267         HAVE_WCRTOMB.
43268         * modules/wcrtomb: New file.
43269         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43270
43271 2008-12-21  Bruno Haible  <bruno@clisp.org>
43272
43273         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43274         * modules/mbsrtowcs (Files): Likewise.
43275         * modules/wctob (Files): Likewise.
43276         * modules/c-strcase-tests (Files): Likewise.
43277         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43278         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43279         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43280         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43281         * modules/vasnprintf-posix-tests (Files): Likewise.
43282
43283 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43284
43285         gitlog-to-changelog: pass all command-line arguments to git-log
43286         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43287         it is sometimes convenient to filter the commits in various ways.
43288         gitlog-to-changelog only allows --since to specify a start date,
43289         but git-log itself supports many other filtering mechanisms.
43290         At the moment, I want to filter by branch name.  Rather than
43291         adding a --branch option to gitlog-to-changelog, it seems more
43292         flexible to simply pass all options directly to git-log and let
43293         git do the work.  Notice that this effectively makes --since a
43294         redundant option for gitlog-to-changelog, but removing it would
43295         require current usage to change since calls would then require
43296         an additional '--'.
43297
43298 2008-12-21  Bruno Haible  <bruno@clisp.org>
43299
43300         * modules/mbsnrtowcs-tests: New file.
43301         * tests/test-mbsnrtowcs1.sh: New file.
43302         * tests/test-mbsnrtowcs2.sh: New file.
43303         * tests/test-mbsnrtowcs3.sh: New file.
43304         * tests/test-mbsnrtowcs4.sh: New file.
43305         * tests/test-mbsnrtowcs.c: New file.
43306
43307         New module 'mbsnrtowcs'.
43308         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43309         * lib/mbsnrtowcs.c: New file.
43310         * lib/mbsrtowcs-state.c: New file.
43311         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43312         (internal_state): Remove variable.
43313         * m4/mbsnrtowcs.m4: New file.
43314         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43315         compilation units.
43316         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43317         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43318         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43319         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43320         * modules/mbsnrtowcs: New file.
43321         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43322         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43323         portability problem.
43324
43325 2008-12-21  Bruno Haible  <bruno@clisp.org>
43326
43327         Work around mbsrtowcs bug.
43328         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43329         (gl_FUNC_MBSRTOWCS): Invoke it.
43330         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43331         m4/locale-zh.m4.
43332         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43333
43334 2008-12-21  Bruno Haible  <bruno@clisp.org>
43335
43336         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43337
43338 2008-12-21  Bruno Haible  <bruno@clisp.org>
43339
43340         Update doc for AIX.
43341         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43342         16-bit wchar_t type.
43343         * doc/posix-functions/btowc.texi: Likewise.
43344         * doc/posix-functions/fgetwc.texi: Likewise.
43345         * doc/posix-functions/fgetws.texi: Likewise.
43346         * doc/posix-functions/fputwc.texi: Likewise.
43347         * doc/posix-functions/fputws.texi: Likewise.
43348         * doc/posix-functions/fwide.texi: Likewise.
43349         * doc/posix-functions/fwprintf.texi: Likewise.
43350         * doc/posix-functions/fwscanf.texi: Likewise.
43351         * doc/posix-functions/getwchar.texi: Likewise.
43352         * doc/posix-functions/getwc.texi: Likewise.
43353         * doc/posix-functions/iswalnum.texi: Likewise.
43354         * doc/posix-functions/iswalpha.texi: Likewise.
43355         * doc/posix-functions/iswblank.texi: Likewise.
43356         * doc/posix-functions/iswcntrl.texi: Likewise.
43357         * doc/posix-functions/iswctype.texi: Likewise.
43358         * doc/posix-functions/iswdigit.texi: Likewise.
43359         * doc/posix-functions/iswgraph.texi: Likewise.
43360         * doc/posix-functions/iswlower.texi: Likewise.
43361         * doc/posix-functions/iswprint.texi: Likewise.
43362         * doc/posix-functions/iswpunct.texi: Likewise.
43363         * doc/posix-functions/iswspace.texi: Likewise.
43364         * doc/posix-functions/iswupper.texi: Likewise.
43365         * doc/posix-functions/iswxdigit.texi: Likewise.
43366         * doc/posix-functions/mbrtowc.texi: Likewise.
43367         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43368         * doc/posix-functions/mbstowcs.texi: Likewise.
43369         * doc/posix-functions/mbtowc.texi: Likewise.
43370         * doc/posix-functions/putwchar.texi: Likewise.
43371         * doc/posix-functions/putwc.texi: Likewise.
43372         * doc/posix-functions/swprintf.texi: Likewise.
43373         * doc/posix-functions/tolower.texi: Likewise.
43374         * doc/posix-functions/toupper.texi: Likewise.
43375         * doc/posix-functions/towctrans.texi: Likewise.
43376         * doc/posix-functions/ungetwc.texi: Likewise.
43377         * doc/posix-functions/vswprintf.texi: Likewise.
43378         * doc/posix-functions/wcrtomb.texi: Likewise.
43379         * doc/posix-functions/wcscat.texi: Likewise.
43380         * doc/posix-functions/wcschr.texi: Likewise.
43381         * doc/posix-functions/wcscmp.texi: Likewise.
43382         * doc/posix-functions/wcscoll.texi: Likewise.
43383         * doc/posix-functions/wcscpy.texi: Likewise.
43384         * doc/posix-functions/wcscspn.texi: Likewise.
43385         * doc/posix-functions/wcsftime.texi: Likewise.
43386         * doc/posix-functions/wcslen.texi: Likewise.
43387         * doc/posix-functions/wcsncat.texi: Likewise.
43388         * doc/posix-functions/wcsncmp.texi: Likewise.
43389         * doc/posix-functions/wcsncpy.texi: Likewise.
43390         * doc/posix-functions/wcspbrk.texi: Likewise.
43391         * doc/posix-functions/wcsrchr.texi: Likewise.
43392         * doc/posix-functions/wcsrtombs.texi: Likewise.
43393         * doc/posix-functions/wcsspn.texi: Likewise.
43394         * doc/posix-functions/wcsstr.texi: Likewise.
43395         * doc/posix-functions/wcstod.texi: Likewise.
43396         * doc/posix-functions/wcstof.texi: Likewise.
43397         * doc/posix-functions/wcstoimax.texi: Likewise.
43398         * doc/posix-functions/wcstok.texi: Likewise.
43399         * doc/posix-functions/wcstold.texi: Likewise.
43400         * doc/posix-functions/wcstoll.texi: Likewise.
43401         * doc/posix-functions/wcstol.texi: Likewise.
43402         * doc/posix-functions/wcstombs.texi: Likewise.
43403         * doc/posix-functions/wcstoull.texi: Likewise.
43404         * doc/posix-functions/wcstoul.texi: Likewise.
43405         * doc/posix-functions/wcstoumax.texi: Likewise.
43406         * doc/posix-functions/wcswidth.texi: Likewise.
43407         * doc/posix-functions/wcsxfrm.texi: Likewise.
43408         * doc/posix-functions/wctob.texi: Likewise.
43409         * doc/posix-functions/wctomb.texi: Likewise.
43410         * doc/posix-functions/wctrans.texi: Likewise.
43411         * doc/posix-functions/wctype.texi: Likewise.
43412         * doc/posix-functions/wcwidth.texi: Likewise.
43413         * doc/posix-functions/wmemchr.texi: Likewise.
43414         * doc/posix-functions/wmemcmp.texi: Likewise.
43415         * doc/posix-functions/wmemcpy.texi: Likewise.
43416         * doc/posix-functions/wmemmove.texi: Likewise.
43417         * doc/posix-functions/wmemset.texi: Likewise.
43418         * doc/posix-functions/wprintf.texi: Likewise.
43419         * doc/posix-functions/wscanf.texi: Likewise.
43420
43421 2008-12-21  Bruno Haible  <bruno@clisp.org>
43422
43423         Update doc for HP-UX 11.11.
43424         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43425         in HP-UX version 11.00, not in all versions of HP-UX 11.
43426         * doc/posix-functions/fwide.texi: Likewise.
43427         * doc/posix-functions/fwprintf.texi: Likewise.
43428         * doc/posix-functions/fwscanf.texi: Likewise.
43429         * doc/posix-functions/inet_ntop.texi: Likewise.
43430         * doc/posix-functions/inet_pton.texi: Likewise.
43431         * doc/posix-functions/mbrlen.texi: Likewise.
43432         * doc/posix-functions/mbrtowc.texi: Likewise.
43433         * doc/posix-functions/mbsinit.texi: Likewise.
43434         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43435         * doc/posix-functions/swprintf.texi: Likewise.
43436         * doc/posix-functions/swscanf.texi: Likewise.
43437         * doc/posix-functions/towctrans.texi: Likewise.
43438         * doc/posix-functions/vfwprintf.texi: Likewise.
43439         * doc/posix-functions/vswprintf.texi: Likewise.
43440         * doc/posix-functions/vwprintf.texi: Likewise.
43441         * doc/posix-functions/wcrtomb.texi: Likewise.
43442         * doc/posix-functions/wcsrtombs.texi: Likewise.
43443         * doc/posix-functions/wcsstr.texi: Likewise.
43444         * doc/posix-functions/wctob.texi: Likewise.
43445         * doc/posix-functions/wctrans.texi: Likewise.
43446         * doc/posix-functions/wmemchr.texi: Likewise.
43447         * doc/posix-functions/wmemcmp.texi: Likewise.
43448         * doc/posix-functions/wmemcpy.texi: Likewise.
43449         * doc/posix-functions/wmemmove.texi: Likewise.
43450         * doc/posix-functions/wmemset.texi: Likewise.
43451         * doc/posix-functions/wprintf.texi: Likewise.
43452         * doc/posix-functions/wscanf.texi: Likewise.
43453
43454 2008-12-21  Bruno Haible  <bruno@clisp.org>
43455
43456         Work around a portability problem.
43457         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43458         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43459
43460 2008-12-20  Bruno Haible  <bruno@clisp.org>
43461
43462         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43463         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43464         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43465         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43466         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43467
43468         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43469         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43470         set.
43471         (GNULIB_defined_mbstate_t): New macro.
43472         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43473         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43474         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43475         reuses the system's mbrtowc function but works around the bugs.
43476         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43477         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43478         macros.
43479         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43480         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43481         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43482         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43483         REPLACE_MBSINIT if mbsinit needs to be overridden.
43484         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43485         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43486         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43487         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43488         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43489         m4/locale-zh.m4.
43490         (Depends): Add mbsinit.
43491         * modules/mbsinit (Depends): Add mbrtowc.
43492         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43493
43494 2008-12-20  Bruno Haible  <bruno@clisp.org>
43495
43496         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43497         so that there are no conversion errors on AIX.
43498         * tests/test-mbsrtowcs.c (main): LIkewise.
43499
43500 2008-12-20  Bruno Haible  <bruno@clisp.org>
43501
43502         Work around wctob bug on Solaris <= 9.
43503         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43504         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43505         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43506         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43507         * modules/wctob (Files): Add m4/locale-fr.m4.
43508         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43509
43510 2008-12-20  Bruno Haible  <bruno@clisp.org>
43511
43512         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43513         /dev/null.
43514         * tests/test-select-in.sh: Likewise.
43515         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43516
43517 2008-12-20  Bruno Haible  <bruno@clisp.org>
43518
43519         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43520         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43521         Cygwin 1.5.x.
43522
43523 2008-12-20  Bruno Haible  <bruno@clisp.org>
43524
43525         Ensure mbstate_t is defined on HP-UX 11.11.
43526         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43527         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43528         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43529         AC_USE_SYSTEM_EXTENSIONS.
43530         * modules/fnmatch (Depends-on): Add extensions.
43531         * modules/mbrlen (Depends-on): Likewise.
43532         * modules/mbrtowc (Depends-on): Likewise.
43533         * modules/mbsinit (Depends-on): Likewise.
43534         * modules/mbsrtowcs (Depends-on): Likewise.
43535         * modules/mbswidth (Depends-on): Likewise.
43536         * modules/quotearg (Depends-on): Likewise.
43537         * modules/strftime (Depends-on): Likewise.
43538
43539 2008-12-20  Bruno Haible  <bruno@clisp.org>
43540
43541         Ensure wctob is declared on IRIX 6.5.
43542         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43543         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43544         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43545         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43546         of HAVE_WCTOB.
43547         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43548         HAVE_WCTOB.
43549         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43550
43551 2008-12-19  Bruno Haible  <bruno@clisp.org>
43552
43553         * modules/mbsrtowcs-tests: New file.
43554         * tests/test-mbsrtowcs1.sh: New file.
43555         * tests/test-mbsrtowcs2.sh: New file.
43556         * tests/test-mbsrtowcs3.sh: New file.
43557         * tests/test-mbsrtowcs4.sh: New file.
43558         * tests/test-mbsrtowcs.c: New file.
43559
43560         New module 'mbsrtowcs'.
43561         * lib/wchar.in.h (mbsrtowcs): New declaration.
43562         * lib/mbsrtowcs.c: New file.
43563         * m4/mbsrtowcs.m4: New file.
43564         * modules/mbsrtowcs: New file.
43565         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43566         HAVE_MBSRTOWCS.
43567         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43568         HAVE_MBSRTOWCS.
43569         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43570
43571 2008-12-19  Bruno Haible  <bruno@clisp.org>
43572
43573         New module 'mbrlen'.
43574         * lib/wchar.in.h (mbrlen): New declaration.
43575         * lib/mbrlen.c: New file.
43576         * m4/mbrlen.m4: New file.
43577         * modules/mbrlen: New file.
43578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43579         HAVE_MBRLEN.
43580         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43581         HAVE_MBRLEN.
43582         * doc/posix-functions/mbrlen.texi: Document the new module.
43583
43584 2008-12-19  Bruno Haible  <bruno@clisp.org>
43585
43586         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43587         * modules/mbrtowc (Depends-on): Add verify.
43588         Suggested by Paul Eggert.
43589
43590 2008-12-18  Bruno Haible  <bruno@clisp.org>
43591
43592         * modules/mbsinit-tests: New file.
43593         * tests/test-mbsinit.sh: New file.
43594         * tests/test-mbsinit.c: New file.
43595
43596 2008-12-18  Bruno Haible  <bruno@clisp.org>
43597
43598         * modules/mbrtowc-tests: New file.
43599         * tests/test-mbrtowc1.sh: New file.
43600         * tests/test-mbrtowc2.sh: New file.
43601         * tests/test-mbrtowc3.sh: New file.
43602         * tests/test-mbrtowc4.sh: New file.
43603         * tests/test-mbrtowc.c: New file.
43604
43605         New module 'mbrtowc'.
43606         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43607         mbsinit and mbrtowc.
43608         (mbrtowc): New declaration.
43609         * lib/mbrtowc.c: New file.
43610         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43611         * modules/mbrtowc: New file.
43612         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43613         HAVE_MBRTOWC.
43614         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43615         HAVE_MBRTOWC.
43616         * doc/posix-functions/mbrtowc.texi: Document the new module.
43617
43618 2008-12-18  Bruno Haible  <bruno@clisp.org>
43619
43620         New module 'wctob'.
43621         * lib/wchar.in.h (wctob): New declaration.
43622         * lib/wctob.c: New file.
43623         * m4/wctob.m4: New file.
43624         * modules/wctob: New file.
43625         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43626         HAVE_WCTOB.
43627         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43628         * doc/posix-functions/wctob.texi: Document the new module.
43629
43630 2008-12-18  Bruno Haible  <bruno@clisp.org>
43631
43632         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43633         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43634
43635 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43636
43637         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43638         G. Christensen" <tgc@jupiterrise.com>.
43639
43640         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43641         G. Christensen" <tgc@jupiterrise.com>.
43642
43643         * lib/flock.c: Need to include string.h.  Reported by "Tom
43644         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43645         <ebb9@byu.net>.
43646
43647 2008-12-18  Bruno Haible  <bruno@clisp.org>
43648
43649         * m4/locale-ja.m4: New file, from GNU gettext.
43650
43651 2008-12-17  Bruno Haible  <bruno@clisp.org>
43652
43653         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43654         Suggested by Eric Blake.
43655
43656 2008-12-17  Bruno Haible  <bruno@clisp.org>
43657
43658         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43659
43660 2008-12-17  Bruno Haible  <bruno@clisp.org>
43661
43662         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43663         * modules/mbsinit (Depends-on): Add verify.
43664         Suggested by Paul Eggert.
43665
43666 2008-12-17  Bruno Haible  <bruno@clisp.org>
43667
43668         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43669         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43670         gl_FUNC_MBRTOWC.
43671         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43672         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43673         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43674         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43675         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43676         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43677         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43678         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43679         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43680         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43681         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43682         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43683         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43684         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43685         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43686         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43687         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43688         * modules/trim (configure.ac): Likewise.
43689
43690 2008-12-17  Bruno Haible  <bruno@clisp.org>
43691
43692         * modules/btowc-tests: New file.
43693         * tests/test-btowc1.sh: New file.
43694         * tests/test-btowc2.sh: New file.
43695         * tests/test-btowc.c: New file.
43696
43697         New module 'btowc'.
43698         * lib/wchar.in.h (btowc): New declaration.
43699         * lib/btowc.c: New file.
43700         * m4/btowc.m4: New file.
43701         * modules/btowc: New file.
43702         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43703         HAVE_BTOWC.
43704         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43705         * doc/posix-functions/btowc.texi: Document the new module.
43706
43707 2008-12-17  Bruno Haible  <bruno@clisp.org>
43708
43709         New module 'mbsinit'.
43710         * lib/wchar.in.h (mbsinit): New declaration.
43711         * lib/mbsinit.c: New file.
43712         * m4/mbsinit.m4: New file.
43713         * modules/mbsinit: New file.
43714         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43715         HAVE_MBSINIT.
43716         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43717         HAVE_MBSINIT.
43718         * doc/posix-functions/mbsinit.texi: Document the new module.
43719
43720 2008-12-16  Bruno Haible  <bruno@clisp.org>
43721
43722         * lib/unistd.in.h: Add comment.
43723         * tests/test-environ.c: Don't include <stdlib.h>.
43724
43725 2008-12-16  Bruno Haible  <bruno@clisp.org>
43726
43727         * lib/parse-duration.h (parse_duration): Document return value
43728         convention.
43729         * lib/parse-duration.c: Include specification header first. Add
43730         comments.
43731         (_): Remove macro.
43732         (parse_year_month_day, parse_hour_minute_second): Move side effects
43733         outside of strchr call.
43734         (parse_non_iso8601): Move side effects outside of isspace call.
43735         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43736         call.
43737
43738 2008-12-16  Bruno Haible  <bruno@clisp.org>
43739
43740         * tests/test-parse-duration.sh: Produce no output when the test
43741         succeeds.
43742
43743 2008-12-16  Bruno Haible  <bruno@clisp.org>
43744
43745         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43746         expressions.
43747
43748 2008-12-15  Bruno Haible  <bruno@clisp.org>
43749
43750         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43751         * doc/glibc-functions/flistxattr.texi: Likewise.
43752         * doc/glibc-functions/fopencookie.texi: Likewise.
43753         * doc/glibc-functions/fremovexattr.texi: Likewise.
43754         * doc/glibc-functions/fsetxattr.texi: Likewise.
43755         * doc/glibc-functions/getxattr.texi: Likewise.
43756         * doc/glibc-functions/lgetxattr.texi: Likewise.
43757         * doc/glibc-functions/listxattr.texi: Likewise.
43758         * doc/glibc-functions/llistxattr.texi: Likewise.
43759         * doc/glibc-functions/lremovexattr.texi: Likewise.
43760         * doc/glibc-functions/lsetxattr.texi: Likewise.
43761         * doc/glibc-functions/removexattr.texi: Likewise.
43762         * doc/glibc-functions/setxattr.texi: Likewise.
43763         * doc/posix-functions/open_memstream.texi: Likewise.
43764
43765 2008-12-15  Eric Blake  <ebb9@byu.net>
43766
43767         Update doc for cygwin 1.7.
43768         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43769         functions.
43770         * doc/posix-functions/fchmodat.texi: Likewise.
43771         * doc/posix-functions/fchownat.texi: Likewise.
43772         * doc/posix-functions/fdopendir.texi: Likewise.
43773         * doc/posix-functions/fmemopen.texi: Likewise.
43774         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43775         * doc/posix-functions/fstatat.texi: Likewise.
43776         * doc/posix-functions/futimens.texi: Likewise.
43777         * doc/posix-functions/gai_strerror.texi: Likewise.
43778         * doc/posix-functions/getaddrinfo.texi: Likewise.
43779         * doc/posix-functions/getnameinfo.texi: Likewise.
43780         * doc/posix-functions/if_freenameindex.texi: Likewise.
43781         * doc/posix-functions/if_indextoname.texi: Likewise.
43782         * doc/posix-functions/if_nameindex.texi: Likewise.
43783         * doc/posix-functions/if_nametoindex.texi: Likewise.
43784         * doc/posix-functions/insque.texi: Likewise.
43785         * doc/posix-functions/linkat.texi: Likewise.
43786         * doc/posix-functions/llrint.texi: Likewise.
43787         * doc/posix-functions/llrintf.texi: Likewise.
43788         * doc/posix-functions/llrintl.texi: Likewise.
43789         * doc/posix-functions/lockf.texi: Likewise.
43790         * doc/posix-functions/lrintl.texi: Likewise.
43791         * doc/posix-functions/mkdirat.texi: Likewise.
43792         * doc/posix-functions/mkfifoat.texi: Likewise.
43793         * doc/posix-functions/mknodat.texi: Likewise.
43794         * doc/posix-functions/mq_close.texi: Likewise.
43795         * doc/posix-functions/mq_getattr.texi: Likewise.
43796         * doc/posix-functions/mq_notify.texi: Likewise.
43797         * doc/posix-functions/mq_open.texi: Likewise.
43798         * doc/posix-functions/mq_receive.texi: Likewise.
43799         * doc/posix-functions/mq_send.texi: Likewise.
43800         * doc/posix-functions/mq_setattr.texi: Likewise.
43801         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43802         * doc/posix-functions/mq_timedsend.texi: Likewise.
43803         * doc/posix-functions/mq_unlink.texi: Likewise.
43804         * doc/posix-functions/open_memstream.texi: Likewise.
43805         * doc/posix-functions/openat.texi: Likewise.
43806         * doc/posix-functions/posix_fadvise.texi: Likewise.
43807         * doc/posix-functions/posix_fallocate.texi: Likewise.
43808         * doc/posix-functions/posix_madvise.texi: Likewise.
43809         * doc/posix-functions/posix_memalign.texi: Likewise.
43810         * doc/posix-functions/posix_openpt.texi: Likewise.
43811         * doc/posix-functions/readlinkat.texi: Likewise.
43812         * doc/posix-functions/remque.texi: Likewise.
43813         * doc/posix-functions/renameat.texi: Likewise.
43814         * doc/posix-functions/rintl.texi: Likewise.
43815         * doc/posix-functions/sem_unlink.texi: Likewise.
43816         * doc/posix-functions/shm_open.texi: Likewise.
43817         * doc/posix-functions/shm_unlink.texi: Likewise.
43818         * doc/posix-functions/signgam.texi: Likewise.
43819         * doc/posix-functions/sigset.texi: Likewise.
43820         * doc/posix-functions/stpcpy.texi: Likewise.
43821         * doc/posix-functions/stpncpy.texi: Likewise.
43822         * doc/posix-functions/strerror.texi: Likewise.
43823         * doc/posix-functions/strtod.texi: Likewise.
43824         * doc/posix-functions/symlinkat.texi: Likewise.
43825         * doc/posix-functions/unlinkat.texi: Likewise.
43826         * doc/posix-functions/utimensat.texi: Likewise.
43827         * doc/glibc-functions/bindresvport.texi: Likewise.
43828         * doc/glibc-functions/dn_expand.texi: Likewise.
43829         * doc/glibc-functions/exp10.texi: Likewise.
43830         * doc/glibc-functions/exp10f.texi: Likewise.
43831         * doc/glibc-functions/fgetxattr.texi: Likewise.
43832         * doc/glibc-functions/flistxattr.texi: Likewise.
43833         * doc/glibc-functions/fopencookie.texi: Likewise.
43834         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43835         * doc/glibc-functions/fremovexattr.texi: Likewise.
43836         * doc/glibc-functions/fsetxattr.texi: Likewise.
43837         * doc/glibc-functions/getifaddrs.texi: Likewise.
43838         * doc/glibc-functions/getxattr.texi: Likewise.
43839         * doc/glibc-functions/lgetxattr.texi: Likewise.
43840         * doc/glibc-functions/listxattr.texi: Likewise.
43841         * doc/glibc-functions/llistxattr.texi: Likewise.
43842         * doc/glibc-functions/lremovexattr.texi: Likewise.
43843         * doc/glibc-functions/lsetxattr.texi: Likewise.
43844         * doc/glibc-functions/pow10.texi: Likewise.
43845         * doc/glibc-functions/pow10f.texi: Likewise.
43846         * doc/glibc-functions/rcmd_af.texi: Likewise.
43847         * doc/glibc-functions/removexattr.texi: Likewise.
43848         * doc/glibc-functions/res_init.texi: Likewise.
43849         * doc/glibc-functions/res_mkquery.texi: Likewise.
43850         * doc/glibc-functions/res_query.texi: Likewise.
43851         * doc/glibc-functions/res_querydomain.texi: Likewise.
43852         * doc/glibc-functions/res_send.texi: Likewise.
43853         * doc/glibc-functions/rresvport_af.texi: Likewise.
43854         * doc/glibc-functions/setxattr.texi: Likewise.
43855         * doc/glibc-functions/strcasestr.texi: Likewise.
43856
43857 2008-12-15  Bruno Haible  <bruno@clisp.org>
43858
43859         Fix compilation error on OSF/1 4.0.
43860         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43861         <sys/time.h>, simply delegate to the system header.
43862         Reported by Daniel Richard G. <oss@teragram.com>.
43863
43864 2008-12-15  Bruno Haible  <bruno@clisp.org>
43865
43866         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43867         * doc/posix-functions/fchmodat.texi: Likewise.
43868         * doc/posix-functions/fchownat.texi: Likewise.
43869         * doc/posix-functions/fdopendir.texi: Likewise.
43870         * doc/posix-functions/fstatat.texi: Likewise.
43871         * doc/posix-functions/mkdirat.texi: Likewise.
43872         * doc/posix-functions/unlinkat.texi: Likewise.
43873
43874 2008-12-14  Bruno Haible  <bruno@clisp.org>
43875
43876         Update doc for POSIX:2008.
43877         * doc/posix-functions/faccessat.texi: New file.
43878         * doc/posix-functions/fchmodat.texi: New file.
43879         * doc/posix-functions/fchownat.texi: New file.
43880         * doc/posix-functions/fdopendir.texi: New file.
43881         * doc/posix-functions/fstatat.texi: New file.
43882         * doc/posix-functions/futimens.texi: New file.
43883         * doc/posix-functions/linkat.texi: New file.
43884         * doc/posix-functions/mkdirat.texi: New file.
43885         * doc/posix-functions/mkfifoat.texi: New file.
43886         * doc/posix-functions/mknodat.texi: New file.
43887         * doc/posix-functions/open_wmemstream.texi: New file.
43888         * doc/posix-functions/openat.texi: New file.
43889         * doc/posix-functions/psiginfo.texi: New file.
43890         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43891         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43892         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43893         * doc/posix-functions/readlinkat.texi: New file.
43894         * doc/posix-functions/renameat.texi: New file.
43895         * doc/posix-functions/strerror_l.texi: New file.
43896         * doc/posix-functions/symlinkat.texi: New file.
43897         * doc/posix-functions/unlinkat.texi: New file.
43898         * doc/posix-functions/utimensat.texi: New file.
43899         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43900
43901 2008-12-14  Bruno Haible  <bruno@clisp.org>
43902
43903         Update doc for POSIX:2008.
43904         * doc/posix-functions/alphasort.texi: Renamed from
43905         doc/glibc-functions/alphasort.texi.
43906         * doc/posix-functions/dirfd.texi: Renamed from
43907         doc/glibc-functions/dirfd.texi.
43908         * doc/posix-functions/dprintf.texi: Renamed from
43909         doc/glibc-functions/dprintf.texi.
43910         * doc/posix-functions/duplocale.texi: Renamed from
43911         doc/glibc-functions/duplocale.texi.
43912         * doc/posix-functions/fexecve.texi: Renamed from
43913         doc/glibc-functions/fexecve.texi.
43914         * doc/posix-functions/fmemopen.texi: Renamed from
43915         doc/glibc-functions/fmemopen.texi.
43916         * doc/posix-functions/freelocale.texi: Renamed from
43917         doc/glibc-functions/freelocale.texi.
43918         * doc/posix-functions/getdate_err.texi: Renamed from
43919         doc/glibc-functions/getdate_err.texi.
43920         * doc/posix-functions/isalnum_l.texi: Renamed from
43921         doc/glibc-functions/isalnum_l.texi.
43922         * doc/posix-functions/isalpha_l.texi: Renamed from
43923         doc/glibc-functions/isalpha_l.texi.
43924         * doc/posix-functions/isblank_l.texi: Renamed from
43925         doc/glibc-functions/isblank_l.texi.
43926         * doc/posix-functions/iscntrl_l.texi: Renamed from
43927         doc/glibc-functions/iscntrl_l.texi.
43928         * doc/posix-functions/isdigit_l.texi: Renamed from
43929         doc/glibc-functions/isdigit_l.texi.
43930         * doc/posix-functions/isgraph_l.texi: Renamed from
43931         doc/glibc-functions/isgraph_l.texi.
43932         * doc/posix-functions/islower_l.texi: Renamed from
43933         doc/glibc-functions/islower_l.texi.
43934         * doc/posix-functions/isprint_l.texi: Renamed from
43935         doc/glibc-functions/isprint_l.texi.
43936         * doc/posix-functions/ispunct_l.texi: Renamed from
43937         doc/glibc-functions/ispunct_l.texi.
43938         * doc/posix-functions/isspace_l.texi: Renamed from
43939         doc/glibc-functions/isspace_l.texi.
43940         * doc/posix-functions/isupper_l.texi: Renamed from
43941         doc/glibc-functions/isupper_l.texi.
43942         * doc/posix-functions/iswalnum_l.texi: Renamed from
43943         doc/glibc-functions/iswalnum_l.texi.
43944         * doc/posix-functions/iswalpha_l.texi: Renamed from
43945         doc/glibc-functions/iswalpha_l.texi.
43946         * doc/posix-functions/iswblank_l.texi: Renamed from
43947         doc/glibc-functions/iswblank_l.texi.
43948         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43949         doc/glibc-functions/iswcntrl_l.texi.
43950         * doc/posix-functions/iswctype_l.texi: Renamed from
43951         doc/glibc-functions/iswctype_l.texi.
43952         * doc/posix-functions/iswdigit_l.texi: Renamed from
43953         doc/glibc-functions/iswdigit_l.texi.
43954         * doc/posix-functions/iswgraph_l.texi: Renamed from
43955         doc/glibc-functions/iswgraph_l.texi.
43956         * doc/posix-functions/iswlower_l.texi: Renamed from
43957         doc/glibc-functions/iswlower_l.texi.
43958         * doc/posix-functions/iswprint_l.texi: Renamed from
43959         doc/glibc-functions/iswprint_l.texi.
43960         * doc/posix-functions/iswpunct_l.texi: Renamed from
43961         doc/glibc-functions/iswpunct_l.texi.
43962         * doc/posix-functions/iswspace_l.texi: Renamed from
43963         doc/glibc-functions/iswspace_l.texi.
43964         * doc/posix-functions/iswupper_l.texi: Renamed from
43965         doc/glibc-functions/iswupper_l.texi.
43966         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43967         doc/glibc-functions/iswxdigit_l.texi.
43968         * doc/posix-functions/isxdigit_l.texi: Renamed from
43969         doc/glibc-functions/isxdigit_l.texi.
43970         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43971         doc/glibc-functions/mbsnrtowcs.texi.
43972         * doc/posix-functions/mkdtemp.texi: Renamed from
43973         doc/glibc-functions/mkdtemp.texi.
43974         * doc/posix-functions/newlocale.texi: Renamed from
43975         doc/glibc-functions/newlocale.texi.
43976         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43977         doc/glibc-functions/nl_langinfo_l.texi.
43978         * doc/posix-functions/open_memstream.texi: Renamed from
43979         doc/glibc-functions/open_memstream.texi.
43980         * doc/posix-functions/opterr.texi: Renamed from
43981         doc/glibc-functions/opterr.texi.
43982         * doc/posix-functions/optind.texi: Renamed from
43983         doc/glibc-functions/optind.texi.
43984         * doc/posix-functions/optopt.texi: Renamed from
43985         doc/glibc-functions/optopt.texi.
43986         * doc/posix-functions/psignal.texi: Renamed from
43987         doc/glibc-functions/psignal.texi.
43988         * doc/posix-functions/scandir.texi: Renamed from
43989         doc/glibc-functions/scandir.texi.
43990         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43991         doc/glibc-functions/sched_get_priority_min.texi.
43992         * doc/posix-functions/signgam.texi: Renamed from
43993         doc/glibc-functions/signgam.texi.
43994         * doc/posix-functions/stpcpy.texi: Renamed from
43995         doc/glibc-functions/stpcpy.texi.
43996         * doc/posix-functions/stpncpy.texi: Renamed from
43997         doc/glibc-functions/stpncpy.texi.
43998         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43999         doc/glibc-functions/strcasecmp_l.texi.
44000         * doc/posix-functions/strcoll_l.texi: Renamed from
44001         doc/glibc-functions/strcoll_l.texi.
44002         * doc/posix-functions/strfmon_l.texi: Renamed from
44003         doc/glibc-functions/strfmon_l.texi.
44004         * doc/posix-functions/strftime_l.texi: Renamed from
44005         doc/glibc-functions/strftime_l.texi.
44006         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44007         doc/glibc-functions/strncasecmp_l.texi.
44008         * doc/posix-functions/strndup.texi: Renamed from
44009         doc/glibc-functions/strndup.texi.
44010         * doc/posix-functions/strnlen.texi: Renamed from
44011         doc/glibc-functions/strnlen.texi.
44012         * doc/posix-functions/strsignal.texi: Renamed from
44013         doc/glibc-functions/strsignal.texi.
44014         * doc/posix-functions/strxfrm_l.texi: Renamed from
44015         doc/glibc-functions/strxfrm_l.texi.
44016         * doc/posix-functions/timer_gettime.texi: Renamed from
44017         doc/glibc-functions/timer_gettime.texi.
44018         * doc/posix-functions/tolower_l.texi: Renamed from
44019         doc/glibc-functions/tolower_l.texi.
44020         * doc/posix-functions/toupper_l.texi: Renamed from
44021         doc/glibc-functions/toupper_l.texi.
44022         * doc/posix-functions/towctrans_l.texi: Renamed from
44023         doc/glibc-functions/towctrans_l.texi.
44024         * doc/posix-functions/towlower_l.texi: Renamed from
44025         doc/glibc-functions/towlower_l.texi.
44026         * doc/posix-functions/towupper_l.texi: Renamed from
44027         doc/glibc-functions/towupper_l.texi.
44028         * doc/posix-functions/uselocale.texi: Renamed from
44029         doc/glibc-functions/uselocale.texi.
44030         * doc/posix-functions/vdprintf.texi: Renamed from
44031         doc/glibc-functions/vdprintf.texi.
44032         * doc/posix-functions/wcpcpy.texi:
44033         Renamed from doc/glibc-functions/wcpcpy.texi.
44034         * doc/posix-functions/wcpncpy.texi: Renamed from
44035         doc/glibc-functions/wcpncpy.texi.
44036         * doc/posix-functions/wcscasecmp.texi: Renamed from
44037         doc/glibc-functions/wcscasecmp.texi.
44038         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44039         doc/glibc-functions/wcscasecmp_l.texi.
44040         * doc/posix-functions/wcscoll_l.texi: Renamed from
44041         doc/glibc-functions/wcscoll_l.texi.
44042         * doc/posix-functions/wcsdup.texi: Renamed from
44043         doc/glibc-functions/wcsdup.texi.
44044         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44045         doc/glibc-functions/wcsncasecmp.texi.
44046         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44047         doc/glibc-functions/wcsncasecmp_l.texi.
44048         * doc/posix-functions/wcsnlen.texi: Renamed from
44049         doc/glibc-functions/wcsnlen.texi.
44050         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44051         doc/glibc-functions/wcsnrtombs.texi.
44052         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44053         doc/glibc-functions/wcsxfrm_l.texi.
44054         * doc/posix-functions/wctrans_l.texi: Renamed from
44055         doc/glibc-functions/wctrans_l.texi.
44056         * doc/posix-functions/wctype_l.texi: Renamed from
44057         doc/glibc-functions/wctype_l.texi.
44058         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44059         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44060         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44061         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44062         these subsections.
44063         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44064         Remove sections.
44065
44066 2008-12-14  Bruno Haible  <bruno@clisp.org>
44067
44068         Update doc for POSIX:2008.
44069         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44070
44071 2008-12-14  Bruno Haible  <bruno@clisp.org>
44072
44073         Update doc for POSIX:2008.
44074         * doc/pastposix-functions/bcmp.texi: Renamed from
44075         doc/posix-functions/bcmp.texi.
44076         * doc/pastposix-functions/bcopy.texi: Renamed from
44077         doc/posix-functions/bcopy.texi.
44078         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44079         doc/posix-functions/bsd_signal.texi.
44080         * doc/pastposix-functions/bzero.texi: Renamed from
44081         doc/posix-functions/bzero.texi.
44082         * doc/pastposix-functions/ecvt.texi: Renamed from
44083         doc/posix-functions/ecvt.texi.
44084         * doc/pastposix-functions/fcvt.texi: Renamed from
44085         doc/posix-functions/fcvt.texi.
44086         * doc/pastposix-functions/ftime.texi: Renamed from
44087         doc/posix-functions/ftime.texi.
44088         * doc/pastposix-functions/gcvt.texi: Renamed from
44089         doc/posix-functions/gcvt.texi.
44090         * doc/pastposix-functions/getcontext.texi: Renamed from
44091         doc/posix-functions/getcontext.texi.
44092         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44093         doc/posix-functions/gethostbyaddr.texi.
44094         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44095         doc/posix-functions/gethostbyname.texi.
44096         * doc/pastposix-functions/getwd.texi: Renamed from
44097         doc/posix-functions/getwd.texi.
44098         * doc/pastposix-functions/h_errno.texi: Renamed from
44099         doc/posix-functions/h_errno.texi.
44100         * doc/pastposix-functions/index.texi: Renamed from
44101         doc/posix-functions/index.texi.
44102         * doc/pastposix-functions/makecontext.texi: Renamed from
44103         doc/posix-functions/makecontext.texi.
44104         * doc/pastposix-functions/mktemp.texi: Renamed from
44105         doc/posix-functions/mktemp.texi.
44106         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44107         doc/posix-functions/pthread_attr_getstackaddr.texi.
44108         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44109         doc/posix-functions/pthread_attr_setstackaddr.texi.
44110         * doc/pastposix-functions/rindex.texi: Renamed from
44111         doc/posix-functions/rindex.texi.
44112         * doc/pastposix-functions/scalb.texi: Renamed from
44113         doc/posix-functions/scalb.texi.
44114         * doc/pastposix-functions/setcontext.texi: Renamed from
44115         doc/posix-functions/setcontext.texi.
44116         * doc/pastposix-functions/swapcontext.texi: Renamed from
44117         doc/posix-functions/swapcontext.texi.
44118         * doc/pastposix-functions/ualarm.texi: Renamed from
44119         doc/posix-functions/ualarm.texi.
44120         * doc/pastposix-functions/usleep.texi: Renamed from
44121         doc/posix-functions/usleep.texi.
44122         * doc/pastposix-functions/vfork.texi: Renamed from
44123         doc/posix-functions/vfork.texi.
44124         * doc/pastposix-functions/wcswcs.texi: Renamed from
44125         doc/posix-functions/wcswcs.texi.
44126         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44127         (Function Substitutes): Update.
44128
44129 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44130
44131         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44132         m4/strerror.m4.
44133
44134 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44135             Bruno Haible  <bruno@clisp.org>
44136
44137         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44138
44139 2008-12-13  Bruno Haible  <bruno@clisp.org>
44140
44141         * modules/strtoull (Depends-on): Remove unistd.
44142
44143 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44144
44145         * modules/strtoull (Depends-on): Add stdlib.
44146
44147 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44148
44149         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44150
44151 2008-12-10  Jim Meyering  <meyering@redhat.com>
44152
44153         gl_ASSERT: don't say assertions are disabled when they're not
44154         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44155         "checking whether to enable assertions... no", when they are in
44156         fact enabled.  This is solely a bug in the output of configure.
44157         In spite of saying "no", NDEBUG was not defined in that case.
44158         Also, as noted by Eric Blake, leave assertions enabled upon
44159         --enable-assert=INVALID.
44160
44161 2008-12-10  Bruno Haible  <bruno@clisp.org>
44162
44163         Change MODULES.html to refer to POSIX:2008 where possible.
44164         * MODULES.html.sh (POSIX2008_URL): New variable.
44165         (posix_headers): Remove sys/timeb, ucontext.
44166         (posix2001_headers): New variable.
44167         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44168         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44169         index, makecontext, mktemp, pthread_attr_getstackaddr,
44170         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44171         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44172         (posix2001_functions): New variable.
44173         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44174         otherwise.
44175
44176 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44177
44178         add missing include to parse-duration.c
44179         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44180         * modules/parse-duration (Depends-on): Add xalloc.
44181
44182         fix sed script reading maint.mk
44183         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44184         (syntax-check-rules): Use it.
44185
44186 2008-12-09  Bruno Haible  <bruno@clisp.org>
44187
44188         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44189         MacOS X 10.4/PowerPC.
44190         Reported by Simon Josefsson.
44191
44192 2008-12-08  Jim Meyering  <meyering@redhat.com>
44193
44194         work around mingw's lack of some S_IF definitions
44195         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44196         Reported by Simon Josefsson.
44197
44198 2008-12-08  Bruno Haible  <bruno@clisp.org>
44199
44200         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44201         applied to variables. Needed on MacOS X 10.4/PowerPC.
44202         Reported by Simon Josefsson.
44203
44204 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44205         and Eric Blake  <ebb9@byu.net>
44206
44207         assert: honor --enable-assert
44208         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44209         order to honor --enable-assert, rather than treating it as a
44210         synonym for --disable-assert.
44211
44212 2008-12-08  Jim Meyering  <meyering@redhat.com>
44213
44214         * lib/posixtm.c: Remove now-useless declaration of mktime.
44215
44216         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44217
44218 2008-12-07  Bruno Haible  <bruno@clisp.org>
44219
44220         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44221         test_once): Mark functions as static.
44222         * tests/test-tls.c (test_tls): Likewise.
44223
44224 2008-12-07  Bruno Haible  <bruno@clisp.org>
44225
44226         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44227         iconv_register_autodetect.
44228
44229 2008-12-07  Jim Meyering  <meyering@redhat.com>
44230
44231         posixtm.c: avoid a warning
44232         * lib/posixtm.c (posixtime): Don't initialize tm0.
44233         It's no longer needed to placate gcc4's -Wuninitialized,
44234         and the attempt to placate would elicit a new warning.
44235
44236         unicodeio.c: mark unused parameters
44237         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44238         (fallback_failure_callback): Likewise.
44239
44240 2008-12-07  Bruno Haible  <bruno@clisp.org>
44241
44242         * gnulib-tool (func_create_testdir): When building the tests
44243         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44244         Reported by Simon Josefsson.
44245
44246 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44247
44248         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44249
44250 2008-12-06  Bruno Haible  <bruno@clisp.org>
44251
44252         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44253         Suggested by Eric Blake.
44254
44255 2008-12-06  Bruno Haible  <bruno@clisp.org>
44256
44257         Fix a c-stack test failure on MacOS X.
44258         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44259         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44260         handler for SIGBUS as well.
44261         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44262         install a signal handler for SIGBUS as well.
44263         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44264
44265 2008-12-06  Bruno Haible  <bruno@clisp.org>
44266
44267         Advocacy documentation.
44268         * doc/gnulib-intro.texi (Benefits): New section.
44269         * doc/gnulib.texi: Update.
44270
44271 2008-12-06  Bruno Haible  <bruno@clisp.org>
44272
44273         Document the 'manywarnings' module.
44274         * doc/manywarnings.texi: New file.
44275         * doc/gnulib.texi: Include it.
44276
44277 2008-12-05  Eric Blake  <ebb9@byu.net>
44278
44279         tests: silence some gcc warnings
44280         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44281         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44282         type mismatches.
44283
44284 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44285             Bruno Haible  <bruno@clisp.org>
44286
44287         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44288
44289 2008-11-29  Jim Meyering  <meyering@redhat.com>
44290
44291         unicodeio.c: mark unused parameters
44292         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44293         (fallback_failure_callback): Likewise.
44294
44295         fts: fix a thinko
44296         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44297         (set_stat_type): Return S_IF*-valued "type" directly.
44298         Prompted by James Youngman's spotting a related bug.
44299         Confirmed by further testing through find.
44300
44301         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44302         * lib/fts.c (D_TYPE): Define.
44303         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44304         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44305         (s_ifmt_shift_bits): New function.
44306         (set_stat_type): New function.
44307         (fts_build): When not calling fts_stat, call set_stat_type
44308         to propagate dirent.d_type info to fts_read caller.
44309         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44310         fts_statp->st_mode type information may be valid.
44311
44312 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44313
44314         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44315         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44316         <sds@gnu.org>.
44317
44318 2008-11-20  Bruno Haible  <bruno@clisp.org>
44319
44320         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44321         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44322         INCLUDE_NEXT.
44323         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44324         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44325         * modules/math (Makefile.am): Substitute
44326         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44327         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44328
44329 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44330             Bruno Haible  <bruno@clisp.org>
44331
44332         * lib/stdint.in.h: Define all type macros so that their expansion is
44333         a single typedef'ed token. Fixes a compilation failure in Boost which
44334         does "using ::int8_t;".
44335
44336 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44337
44338         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44339         gl_MANYWARN_ALL_GCC.
44340         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44341         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44342         * modules/manywarnings: New file.
44343         * MODULES.html.sh: Mention manywarnings module.
44344
44345 2008-11-18  Bruno Haible  <bruno@clisp.org>
44346
44347         * doc/gnulib-tool.texi (Unit tests): New section.
44348
44349 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44350
44351         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44352         paths like 'lib/po/foo.po'.
44353
44354 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44355
44356         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44357         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44358
44359 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44360
44361         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44362         parameter works.
44363
44364 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44365
44366         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44367
44368 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44369
44370         * modules/parse-duration-tests: New file.
44371         * tests/test-parse-duration.sh: New file.
44372         * tests/test-parse-duration.c: New file.
44373
44374         New module 'parse-duration'.
44375         * lib/parse-duration.h: New file.
44376         * lib/parse-duration.c: New file.
44377         * modules/parse-duration: New file.
44378
44379 2008-11-17  Bruno Haible  <bruno@clisp.org>
44380
44381         * tests/test-select-out.sh: Comment out the first pipe test.
44382         Reported by Simon Josefsson.
44383
44384 2008-11-17  Bruno Haible  <bruno@clisp.org>
44385
44386         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44387         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44388         gl_HOSTENT.
44389
44390 2008-11-17  Bruno Haible  <bruno@clisp.org>
44391
44392         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44393         -lnetwork and -lnet. Needed for Haiku and BeOS.
44394
44395 2008-11-16  Bruno Haible  <bruno@clisp.org>
44396
44397         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44398
44399 2008-11-16  Bruno Haible  <bruno@clisp.org>
44400
44401         Avoid test failure on Haiku.
44402         * tests/test-fsync.c: Include <errno.h>.
44403         (main): Don't require that fsync (0) fails.
44404
44405 2008-11-15  Bruno Haible  <bruno@clisp.org>
44406
44407         New module 'hostent'.
44408         * modules/hostent: New file.
44409         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44410
44411 2008-11-15  Bruno Haible  <bruno@clisp.org>
44412
44413         New module 'servent'.
44414         * modules/servent: New file.
44415         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44416
44417 2008-11-15  Bruno Haible  <bruno@clisp.org>
44418
44419         Avoid generating same test program with two different rules.
44420         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44421         test-frexp to test-frexp-nolibm.
44422         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44423         test-frexpl to test-frexpl-nolibm.
44424
44425 2008-11-15  Bruno Haible  <bruno@clisp.org>
44426
44427         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44428         $(FREXPL_LIBM).
44429
44430 2008-11-15  Bruno Haible  <bruno@clisp.org>
44431
44432         * lib/netdb.in.h: Activate the definitions also when the system's
44433         <netdb.h> has 'struct addrinfo'.
44434         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44435         EAI_OVERFLOW or AI_NUMERICSERV.
44436         * doc/posix-headers/netdb.texi: Document the problem.
44437
44438 2008-11-15  Bruno Haible  <bruno@clisp.org>
44439
44440         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44441
44442         Make the 'sched' module work on platforms where <sched.h> exists but
44443         is incomplete (such as Haiku).
44444         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44445         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44446         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44447         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44448         HAVE_STRUCT_SCHED_PARAM.
44449         * modules/sched (Depends-on): Add include_next.
44450         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44451         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44452         * doc/posix-headers/sched.texi: Document the issue.
44453
44454 2008-11-13  Jim Meyering  <meyering@redhat.com>
44455
44456         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44457         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44458         test would fail due to the difference in the Report bugs to ...
44459         line.  The expected address is empty, "<>", while the actual
44460         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44461
44462 2008-11-12  Bruno Haible  <bruno@clisp.org>
44463
44464         lstat: don't compile lstat.c on systems lacking lstat
44465         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44466         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44467         Reported by Daniel P. Berrange via Jim Meyering.
44468
44469 2008-11-12  Jim Meyering  <meyering@redhat.com>
44470
44471         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44472
44473 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44474
44475         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44476         instead.
44477
44478 2008-11-12  Bruno Haible  <bruno@clisp.org>
44479
44480         * lib/unicodeio.c: Include unistr.h.
44481         (utf8_wctomb): Remove function.
44482         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44483
44484 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44485
44486         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44487         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44488         <bruno@clisp.org>.
44489         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44490
44491 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44492
44493         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44494         * doc/gnulib.texi: Add section for warnings.
44495
44496 2008-11-11  Bruno Haible  <bruno@clisp.org>
44497
44498         * lib/sockets.h: Add a comment.
44499
44500 2008-11-11  Karl Berry  <karl@gnu.org>
44501
44502         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44503
44504 2008-11-11  Eric Blake  <ebb9@byu.net>
44505
44506         fdl.texi: avoid git symlinks
44507         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44508
44509 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44510
44511         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44512
44513 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44514
44515         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44516         (gl_WARN_ADD): Substitute $2 if literal.
44517
44518 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44519
44520         * m4/warning.m4: Remove.
44521
44522 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44523
44524         * m4/warnings.m4: Almost complete rewrite. :-)
44525
44526 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44527
44528         * modules/warnings: New module.
44529         * m4/warnings.m4: New file.
44530         * MODULES.html.sh: Mention warnings module.
44531         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44532         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44533
44534 2008-11-10  Eric Blake  <ebb9@byu.net>
44535
44536         fdl.texi: make a symlink to the latest version
44537         * doc/standards.texi: Revert today's earlier change.
44538         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44539         * doc/fdl.texi: ...and replace this with a symlink to the newer
44540         fdl-1.3.texi.
44541
44542 2008-11-10  Bruno Haible  <bruno@clisp.org>
44543
44544         * tests/test-select-fd.c (main): Accept the result file name as fourth
44545         argument.
44546         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44547         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44548
44549 2008-11-10  Bruno Haible  <bruno@clisp.org>
44550
44551         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44552         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44553         as autoconf-substituted macros.
44554         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44555         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44556         gl_NETDB_H_DEFAULTS. Set these variables.
44557         * modules/netdb (Makefile.am): Substitute these variables.
44558
44559 2008-11-10  Eric Blake  <ebb9@byu.net>
44560
44561         standards.texi: include correct file for FDL 1.3
44562         * doc/standards.texi (GNU Free Documentation License): Change
44563         include file to pull in FDL 1.3, not 1.2.
44564
44565         fdl.texi: revert accidental change to license
44566         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44567
44568 2008-11-10  Bruno Haible  <bruno@clisp.org>
44569
44570         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44571         cross-compiling guesses also when the native compile gives no result.
44572
44573 2008-11-10  Bruno Haible  <bruno@clisp.org>
44574
44575         * lib/spawni.c (__spawni): Force variable into the stack.
44576
44577 2008-11-10  Bruno Haible  <bruno@clisp.org>
44578
44579         Add support for Haiku.
44580         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44581         glibc and BeOS, but also on Haiku.
44582         * lib/fpurge.c (fpurge): Likewise.
44583         * lib/freadable.c (freadable): Likewise.
44584         * lib/freadahead.c (freadahead): Likewise.
44585         * lib/freading.c (freading): Likewise.
44586         * lib/freadptr.c (freadptr): Likewise.
44587         * lib/freadseek.c (freadptrinc): Likewise.
44588         * lib/fseeko.c (rpl_fseeko): Likewise.
44589         * lib/fseterr.c (fseterr): Likewise.
44590         * lib/fwritable.c (fwritable): Likewise.
44591         * lib/fwriting.c (fwriting): Likewise.
44592         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44593
44594 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44595
44596         * lib/config.charset: Treat Haiku like BeOS.
44597
44598 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44599
44600         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44601         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44602
44603 2008-11-08  Bruno Haible  <bruno@clisp.org>
44604
44605         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44606         AC_CACHE_CHECK.
44607
44608 2008-11-08  Bruno Haible  <bruno@clisp.org>
44609
44610         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44611
44612 2008-11-08  Bruno Haible  <bruno@clisp.org>
44613
44614         * tests/test-select-fd.c: New file.
44615         * tests/test-select-in.sh: New file.
44616         * tests/test-select-out.sh: New file.
44617         * tests/test-select-stdin.c: New file.
44618         * modules/select-tests (Files): Add the new files.
44619         (Depends-on): Add gettimeofday.
44620         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44621         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44622         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44623
44624 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44625             Bruno Haible  <bruno@clisp.org>
44626
44627         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44628
44629 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44630
44631         * build-aux/pmccabe2html: Added support for C++ source files.
44632
44633 2008-11-05  Ben Pfaff  <blp@gnu.org>
44634
44635         Fix lib/close.c build on Windows.
44636         * modules/close (Files): Add lib/w32sock.h.
44637
44638 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44639
44640         Accept Bison's NEWS format.
44641         * build-aux/announce-gen (print_news_deltas): Tweak
44642         $re_prefix.
44643
44644 2008-11-04  Bruno Haible  <bruno@clisp.org>
44645
44646         * modules/random_r (Maintainer): Add glibc.
44647
44648 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44649
44650         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44651         by karl@freefriends.org (Karl Berry).
44652         * doc/alloca.texi: Likewise.
44653         * doc/c-ctype.texi: Likewise.
44654         * doc/c-strcase.texi: Likewise.
44655         * doc/c-strcaseeq.texi: Likewise.
44656         * doc/c-strcasestr.texi: Likewise.
44657         * doc/c-strstr.texi: Likewise.
44658         * doc/c-strtod.texi: Likewise.
44659         * doc/c-strtold.texi: Likewise.
44660         * doc/ctime.texi: Likewise.
44661         * doc/error.texi: Likewise.
44662         * doc/fdl.texi: Likewise.
44663         * doc/gcd.texi: Likewise.
44664         * doc/getdate.texi: Likewise.
44665         * doc/gnulib-intro.texi: Likewise.
44666         * doc/gnulib-tool.texi: Likewise.
44667         * doc/gnulib.texi: Likewise.
44668         * doc/inet_ntoa.texi: Likewise.
44669         * doc/maintain.texi: Likewise.
44670         * doc/make-stds.texi: Likewise.
44671         * doc/quote.texi: Likewise.
44672         * doc/regexprops-generic.texi: Likewise.
44673         * doc/standards.texi: Likewise.
44674         * doc/verify.texi: Likewise.
44675         * doc/visibility.texi: Likewise.
44676         * doc/gnulib.texi (GNU Free Documentation License): Include
44677         fdl-1.3.texi instead of fdl.texi.
44678
44679 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44680
44681         * doc/fdl-1.3.texi: New file, from
44682         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44683         * modules/fdl-1.3: Add.
44684         * MODULES.html.sh: Add fdl-1.3.
44685
44686 2008-11-03  Bruno Haible  <bruno@clisp.org>
44687
44688         Make determination of absolute name of header file work with AIX xlc.
44689         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44690         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44691         preprocessing.
44692         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44693         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44694
44695 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44696
44697         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44698         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44699         <ludo@gnu.org>.
44700
44701 2008-11-02  Bruno Haible  <bruno@clisp.org>
44702
44703         Mark 'strpbrk' obsolete.
44704         * modules/strpbrk (Status, Notice): New sections.
44705         * modules/strtok_r (Depends-on): Add strpbrk.
44706
44707 2008-11-02  Bruno Haible  <bruno@clisp.org>
44708
44709         Mark 'strdup' obsolete.
44710         * modules/strdup (Status, Notice): New sections.
44711         * modules/findprog (Depends-on): Add strdup.
44712         * modules/getaddrinfo (Depends-on): Likewise.
44713         * modules/localename (Depends-on): Likewise.
44714         * modules/relocatable-lib (Depends-on): Likewise.
44715         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44716         * modules/relocatable-prog (Depends-on): Likewise.
44717         * modules/trim (Depends-on): Likewise.
44718         * modules/unictype/gen-ctype (Depends-on): Likewise.
44719         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44720
44721 2008-11-02  Bruno Haible  <bruno@clisp.org>
44722
44723         Mark 'strcspn' obsolete.
44724         * modules/strcspn (Status, Notice): New sections.
44725
44726 2008-11-02  Bruno Haible  <bruno@clisp.org>
44727
44728         Mark 'rmdir' obsolete.
44729         * modules/rmdir (Status, Notice): New sections.
44730         * modules/clean-temp (Depends-on): Add rmdir.
44731         * modules/openat (Depends-on): Likewise.
44732
44733 2008-11-02  Bruno Haible  <bruno@clisp.org>
44734
44735         Mark 'raise' obsolete.
44736         * modules/raise (Status, Notice): New sections.
44737         (Include): Specify <signal.h>.
44738         * modules/stdio (Depends-on): Add raise.
44739         * modules/write (Depends-on): Likewise.
44740
44741 2008-11-02  Bruno Haible  <bruno@clisp.org>
44742
44743         Mark 'memset' obsolete.
44744         * modules/memset (Status, Notice): New sections.
44745
44746 2008-11-02  Bruno Haible  <bruno@clisp.org>
44747
44748         Mark 'memmove' obsolete.
44749         * modules/memmove (Status, Notice): New sections.
44750         * modules/argp (Depends-on): Add memmove.
44751         * modules/argz (Depends-on): Likewise.
44752         * modules/canonicalize (Depends-on): Likewise.
44753         * modules/canonicalize-lgpl (Depends-on): Likewise.
44754         * modules/fts (Depends-on): Likewise.
44755         * modules/getcwd (Depends-on): Likewise.
44756         * modules/human (Depends-on): Likewise.
44757         * modules/regex (Depends-on): Likewise.
44758         * modules/striconveh (Depends-on): Likewise.
44759         * modules/trim (Depends-on): Likewise.
44760         * modules/unistr/u8-move (Depends-on): Likewise.
44761         * modules/unistr/u16-move (Depends-on): Likewise.
44762         * modules/unistr/u32-move (Depends-on): Likewise.
44763
44764 2008-11-02  Bruno Haible  <bruno@clisp.org>
44765
44766         Mark 'memcpy' obsolete.
44767         * modules/memcpy (Status, Notice): New sections.
44768
44769 2008-11-02  Bruno Haible  <bruno@clisp.org>
44770
44771         Mark 'memcmp' obsolete.
44772         * modules/memcmp (Status, Notice): New sections.
44773         * modules/argmatch (Depends-on): Add memchr.
44774         * modules/backupfile (Depends-on): Likewise.
44775         * modules/c-strcasestr (Depends-on): Likewise.
44776         * modules/crypto/des (Depends-on): Likewise.
44777         * modules/csharpcomp (Depends-on): Likewise.
44778         * modules/fnmatch (Depends-on): Likewise.
44779         * modules/git-merge-changelog (Depends-on): Likewise.
44780         * modules/isnand (Depends-on): Likewise.
44781         * modules/isnand-nolibm (Depends-on): Likewise.
44782         * modules/isnanf (Depends-on): Likewise.
44783         * modules/isnanf-nolibm (Depends-on): Likewise.
44784         * modules/isnanl (Depends-on): Likewise.
44785         * modules/isnanl-nolibm (Depends-on): Likewise.
44786         * modules/mbchar (Depends-on): Likewise.
44787         * modules/memcoll (Depends-on): Likewise.
44788         * modules/quotearg (Depends-on): Likewise.
44789         * modules/regex (Depends-on): Likewise.
44790         * modules/relocatable-prog (Depends-on): Likewise.
44791         * modules/same (Depends-on): Likewise.
44792         * modules/signbit (Depends-on): Likewise.
44793         * modules/strcasestr-simple (Depends-on): Likewise.
44794         * modules/unictype/gen-ctype (Depends-on): Likewise.
44795         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44796         * modules/uniname/uniname (Depends-on): Likewise.
44797         * modules/unistr/u8-cmp (Depends-on): Likewise.
44798
44799 2008-11-02  Bruno Haible  <bruno@clisp.org>
44800
44801         Mark 'memchr' obsolete.
44802         * modules/memchr (Status, Notice): New sections.
44803         * modules/argp (Depends-on): Add memchr.
44804         * modules/base64 (Depends-on): Likewise.
44805         * modules/c-strcasestr (Depends-on): Likewise.
44806         * modules/chdir-long (Depends-on): Likewise.
44807         * modules/fnmatch (Depends-on): Likewise.
44808         * modules/getsubopt (Depends-on): Likewise.
44809         * modules/git-merge-changelog (Depends-on): Likewise.
44810         * modules/glob (Depends-on): Likewise.
44811         * modules/strcasestr-simple (Depends-on): Likewise.
44812         * modules/strnlen (Depends-on): Likewise.
44813
44814 2008-11-02  Bruno Haible  <bruno@clisp.org>
44815
44816         Mark 'atexit' obsolete.
44817         * modules/atexit (Status, Notice): New sections.
44818         * modules/chdir-long (Depends-on): Add atexit.
44819         * modules/wait-process (Depends-on): Likewise.
44820
44821 2008-11-02  Bruno Haible  <bruno@clisp.org>
44822
44823         * gnulib-tool: New option --with-obsolete.
44824         (func_usage): Document it.
44825         (func_modules_transitive_closure): Drop obsolete dependencies if
44826         incobsolete is not true.
44827         (func_import): Read and save the incobsolete variable to the cache.
44828
44829 2008-11-02  Bruno Haible  <bruno@clisp.org>
44830
44831         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44832         * gnulib-tool: New option --extract-status.
44833         (func_usage): Document it.
44834         (sed_extract_prog): Recognize it.
44835         (func_get_status): New function.
44836
44837 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44838
44839         * modules/sockets (License): Change from LGPL to LGPLv2+.
44840
44841 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44842
44843         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44844
44845 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44846
44847         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44848         Mention times and sys_times.
44849         * modules/sys_times, modules/sys_times-tests: New modules.
44850         * modules/times, modules/times-tests: Likewise
44851         * m4/sys_times_h.m4: New file.
44852         * lib/sys_times.in.h: Likewise
44853         * lib/times.c: Likewise.
44854         * tests/test-sys_times.c: Likewise.
44855         * tests/test-times.c: Likewise.
44856         * doc/posix-headers/sys_times.texi: Update.
44857         * doc/posix-functions/times.texi: Update.
44858
44859 2008-10-28  Jim Meyering  <meyering@redhat.com>
44860
44861         * modules/tempname (Depends-on): Add lstat.
44862
44863         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44864
44865 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44866
44867         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44868         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44869         using idiom used elsewhere in gnulib.
44870
44871 2008-10-27  Jim Meyering  <meyering@redhat.com>
44872
44873         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44874
44875 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44876
44877         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44878         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44879         programs.
44880         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44881
44882 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44883
44884         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44885
44886 2008-10-27  Bruno Haible  <bruno@clisp.org>
44887
44888         * tests/test-lstat.c: Include <stdio.h>.
44889
44890 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44891
44892         * modules/lstat-tests: New module.
44893         * tests/test-lstat.c: New file.
44894
44895 2008-10-26  Jim Meyering  <meyering@redhat.com>
44896
44897         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44898
44899 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44900             Bruno Haible  <bruno@clisp.org>
44901
44902         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44903         * modules/configmake (Include): Add a note that the include must come
44904         after all system headers.
44905         * lib/javaversion.c: Include configmake.h after all other includes.
44906
44907 2008-10-26  Bruno Haible  <bruno@clisp.org>
44908
44909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44910         HAVE_STRUCT_RANDOM_DATA to 1.
44911         (gl_STDLIB_H): Simplify.
44912
44913 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44914
44915         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44916         substitute HAVE_STRUCT_RANDOM_DATA.
44917         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44918         random_data.
44919         * modules/stdlib (Makefile.am): Substitute
44920         HAVE_STRUCT_RANDOM_DATA.
44921
44922 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44923
44924         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44925         * doc/gnulib-intro.texi (Copyright): Likewise.
44926
44927 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44928
44929         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44930         findings.
44931
44932 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44933             Bruno Haible  <bruno@clisp.org>
44934
44935         * lib/unistd.in.h: Include <winsock2.h>.
44936         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44937         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44938         Provide dummy declarations.
44939         (gethostname): Override.
44940         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44941         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44942         gl_PREREQ_SYS_H_WINSOCK2.
44943         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44944         * doc/posix-functions/gethostname.texi: More details.
44945
44946 2008-10-25  Bruno Haible  <bruno@clisp.org>
44947
44948         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44949         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44950         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44951
44952         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44953         here ...
44954         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44955         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44956         gl_UNISTD_H_DEFAULTS.
44957
44958 2008-10-25  Eric Blake  <ebb9@byu.net>
44959
44960         signbit: avoid spurious compiler failure
44961         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44962         declarations inside function.
44963
44964 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44965             Bruno Haible  <bruno@clisp.org>
44966
44967         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44968         * modules/random_r (Depends-on): Add stdint.
44969
44970 2008-10-24  Bruno Haible  <bruno@clisp.org>
44971
44972         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44973         Eggert.
44974         * modules/strerror (License): Likewise.
44975
44976 2008-10-24  Jim Meyering  <meyering@redhat.com>
44977
44978         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44979         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44980
44981 2008-10-24  Eric Blake  <ebb9@byu.net>
44982
44983         getgroups: fix compilation when getgroups is available
44984         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44985         but with <config.h> override of getgroups disabled.
44986
44987 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44988
44989         * doc/gnulib.texi (Header files): Add note about C++ problems.
44990         Explained by Bruno Haible <bruno@clisp.org>.
44991
44992 2008-10-23  Bruno Haible  <bruno@clisp.org>
44993
44994         Define a dummy SA_NODEFER macro on Interix.
44995         * lib/signal.in.h (SA_NODEFER): Define fallback.
44996         Reported by Aleksey Cheusov <cheusov@tut.by> via
44997         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44998
44999 2008-10-23  Bruno Haible  <bruno@clisp.org>
45000
45001         * modules/freadahead (License): Change to LGPLv2+.
45002         Suggested by Simon Josefsson.
45003
45004 2008-10-23  Jim Meyering  <meyering@redhat.com>
45005
45006         random_r: new module
45007         * modules/random_r: New file.
45008         * m4/random_r.m4: New file.
45009         * lib/random_r.c: New file, from glibc.
45010         * modules/random_r-tests: New file.
45011         * tests/test-random_r.c: New file.
45012         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45013          Declare.
45014         (RAND_MAX): Define.
45015         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45016         * modules/stdlib: Substitute them, too.
45017         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45018         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45019         * doc/glibc-functions/random_r.texi: Likewise.
45020         * doc/glibc-functions/setstate_r.texi: Likewise.
45021         * doc/glibc-functions/srandom_r.texi: Likewise.
45022         * config/srclist.txt: Mention it.
45023
45024 2008-10-23  David Lutterkort  <lutter@redhat.com>
45025
45026         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45027         link requirement
45028
45029 2008-10-23  Jim Meyering  <meyering@redhat.com>
45030
45031         selinux-h: mark parameters of stub functions as intentionally unused
45032         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45033         * lib/se-context.in.h: Likewise.
45034
45035 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45036
45037         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45038
45039 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45040
45041         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45042
45043 2008-10-22  Eric Blake  <ebb9@byu.net>
45044
45045         glthread/thread: avoid compiler warning
45046         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45047         Add unreachable abort to silence compiler.
45048
45049 2008-10-22  Eric Blake  <ebb9@byu.net>
45050
45051         netdb: also supply struct addrinfo for cygwin 1.5.x
45052         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45053         older cygwin.
45054         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45055         cygwin.
45056         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45057
45058 2008-10-22  Bruno Haible  <bruno@clisp.org>
45059
45060         * users.txt: Update entry about pspp.
45061
45062 2008-10-21  Bruno Haible  <bruno@clisp.org>
45063
45064         Simplification.
45065         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45066         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45067
45068         Simplification.
45069         * lib/ioctl.c (ioctl): Don't undefine.
45070         * lib/socket.c (socket): Don't undefine.
45071
45072         Remove unused module indicator macros.
45073         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45074         GNULIB_$1 as a C macro.
45075
45076         * doc/posix-functions/close.texi: Undo last change.
45077         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45078         Windows platforms.
45079
45080 2008-10-21  Bruno Haible  <bruno@clisp.org>
45081
45082         Add gethostname() declaration to <unistd.h>.
45083         * lib/unistd.in.h (gethostname): New declaration.
45084         * lib/gethostname.c: Include <unistd.h>.
45085         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45086         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45088         and HAVE_GETHOSTNAME.
45089         * modules/gethostname (Depends-on): Add unistd.
45090         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45091         (Include): Specify <unistd.h>.
45092         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45093         HAVE_GETHOSTNAME.
45094         * tests/test-gethostname.c: Include <unistd.h> first.
45095
45096 2008-10-21  Bruno Haible  <bruno@clisp.org>
45097
45098         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45099         * modules/select-tests (Depends-on): Likewise.
45100         Reported by Simon Josefsson.
45101
45102 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45103
45104         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45105         * lib/accept.c: New file, based on winsock.c.
45106         * lib/bind.c: New file, based on winsock.c.
45107         * lib/connect.c: New file, based on winsock.c.
45108         * lib/getpeername.c: New file, based on winsock.c.
45109         * lib/getsockname.c: New file, based on winsock.c.
45110         * lib/getsockopt.c: New file, based on winsock.c.
45111         * lib/ioctl.c: New file, based on winsock.c.
45112         * lib/listen.c: New file, based on winsock.c.
45113         * lib/recv.c: New file, based on winsock.c.
45114         * lib/recvfrom.c: New file, based on winsock.c.
45115         * lib/send.c: New file, based on winsock.c.
45116         * lib/sendto.c: New file, based on winsock.c.
45117         * lib/setsockopt.c: New file, based on winsock.c.
45118         * lib/shutdown.c: New file, based on winsock.c.
45119         * lib/socket.c: New file, based on winsock.c.
45120         * lib/w32sock.h: New file, based on winsock.c.
45121         * lib/winsock.c: Remove file.
45122         * modules/accept: Likewise.
45123         * modules/bind: Likewise.
45124         * modules/connect: Likewise.
45125         * modules/getpeername: Likewise.
45126         * modules/getsockname: Likewise.
45127         * modules/getsockopt: Likewise.
45128         * modules/ioctl: Likewise.
45129         * modules/listen: Likewise.
45130         * modules/recv: Likewise.
45131         * modules/recvfrom: Likewise.
45132         * modules/send: Likewise.
45133         * modules/sendto: Likewise.
45134         * modules/setsockopt: Likewise.
45135         * modules/shutdown: Likewise.
45136         * modules/socket: Use socket.c instead of winsock.c.
45137         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45138         * doc/posix-functions/accept.texi: Doc fix.
45139         * doc/posix-functions/bind.texi: Doc fix.
45140         * doc/posix-functions/close.texi: Doc fix.
45141         * doc/posix-functions/connect.texi: Doc fix.
45142         * doc/posix-functions/getpeername.texi: Doc fix.
45143         * doc/posix-functions/getsockname.texi: Doc fix.
45144         * doc/posix-functions/getsockopt.texi: Doc fix.
45145         * doc/posix-functions/ioctl.texi: Doc fix.
45146         * doc/posix-functions/listen.texi: Doc fix.
45147         * doc/posix-functions/recv.texi: Doc fix.
45148         * doc/posix-functions/recvfrom.texi: Doc fix.
45149         * doc/posix-functions/send.texi: Doc fix.
45150         * doc/posix-functions/sendto.texi: Doc fix.
45151         * doc/posix-functions/setsockopt.texi: Doc fix.
45152         * doc/posix-functions/shutdown.texi: Doc fix.
45153         * doc/posix-functions/socket.texi: Doc fix.
45154
45155 2008-10-20  Bruno Haible  <bruno@clisp.org>
45156
45157         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45158         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45159         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45160         as an alias for SIGABRT.
45161         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45162         (sigaction): Map it to SIGABRT.
45163         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45164
45165 2008-10-20  Bruno Haible  <bruno@clisp.org>
45166
45167         * lib/fts.c: Don't include lstat.h.
45168         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45169
45170         Move the lstat() declaration to <sys/stat.h>.
45171         * lib/lstat.h: Remove file.
45172         * lib/sys_stat.in.h: Add special invocation convention.
45173         (lstat): New declaration.
45174         * lib/lstat.c (orig_lstat): New function.
45175         (rpl_lstat): Use orig_lstat instead of lstat.
45176         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45177         AC_C_INLINE. Set REPLACE_LSTAT.
45178         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45179         and REPLACE_LSTAT.
45180         * modules/lstat (Files): Remove lib/lstat.h.
45181         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45182         (Include): Specify <sys/stat.h> instead of lstat.h.
45183         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45184         REPLACE_LSTAT.
45185         * NEWS: Mention the change.
45186
45187 2008-10-20  Bruno Haible  <bruno@clisp.org>
45188
45189         * modules/posix_spawn-tests: New file.
45190         * tests/test-posix_spawn3.c: New file.
45191
45192 2008-10-20  Bruno Haible  <bruno@clisp.org>
45193
45194         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45195         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45196         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45197         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45198         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45199
45200 2008-10-20  Bruno Haible  <bruno@clisp.org>
45201
45202         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45203         of posix_spawn on AIX 5.3.
45204
45205 2008-10-20  Bruno Haible  <bruno@clisp.org>
45206
45207         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45208
45209 2008-10-20  Bruno Haible  <bruno@clisp.org>
45210
45211         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45212         of AC_LANG_PROGRAM.
45213
45214 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45215
45216         * lib/netdb.in.h: Don't define GNU specific constants until they
45217         are supported or needed.  Reported by Bruno Haible
45218         <bruno@clisp.org>.
45219
45220 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45221
45222         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45223
45224 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45225
45226         * lib/getaddrinfo.h: Remove file.
45227         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45228         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45229         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45230         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45231         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45232         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45233         * tests/test-getaddrinfo.c: Likewise.
45234         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45235         * NEWS: Mention change.
45236
45237 2008-10-19  Bruno Haible  <bruno@clisp.org>
45238
45239         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45240
45241 2008-10-19  Bruno Haible  <bruno@clisp.org>
45242
45243         * lib/wait-process.c: Include simply <sys/wait.h>.
45244         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45245         WIFSTOPPED): Remove fallback definitions.
45246         * modules/wait-process (Depends-on): Add sys_wait.
45247
45248         New module 'sys_wait'.
45249         * modules/sys_wait: New file.
45250         * lib/sys_wait.in.h: New file, partially copied from
45251         lib/wait-process.c.
45252         * m4/sys_wait_h.m4: New file.
45253         * doc/posix-headers/sys_wait.texi: Mention the new module.
45254
45255 2008-10-19  Bruno Haible  <bruno@clisp.org>
45256
45257         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45258
45259 2008-10-19  Bruno Haible  <bruno@clisp.org>
45260
45261         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45262         * lib/wait-process.c (WAIT_T): Remove type.
45263         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45264         (wait_subprocess): Update.
45265
45266 2008-10-19  Bruno Haible  <bruno@clisp.org>
45267
45268         New module 'atoll'.
45269         * modules/atoll: New file.
45270         * lib/stdlib.in.h (atoll): New declaration.
45271         * lib/atoll.c: New file, from glibc with modifications.
45272         * m4/atoll.m4: New file.
45273         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45274         HAVE_ATOLL.
45275         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45276         * doc/posix-functions/atoll.texi: Mention the new module.
45277
45278 2008-10-19  Bruno Haible  <bruno@clisp.org>
45279
45280         Add strtoull() declaration to <stdlib.h>.
45281         * lib/stdlib.in.h (strtoull): New declaration.
45282         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45283         Set HAVE_STRTOULL.
45284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45285         HAVE_STRTOULL.
45286         * modules/strtoull (Depends-on): Add stdlib.
45287         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45288         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45289         HAVE_STRTOULL.
45290
45291 2008-10-19  Bruno Haible  <bruno@clisp.org>
45292
45293         Add strtoll() declaration to <stdlib.h>.
45294         * lib/stdlib.in.h (strtoll): New declaration.
45295         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45296         Set HAVE_STRTOLL.
45297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45298         HAVE_STRTOLL.
45299         * modules/strtoll (Depends-on): Add stdlib.
45300         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45301         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45302
45303 2008-10-19  Bruno Haible  <bruno@clisp.org>
45304
45305         * modules/bcopy (Depends-on): Add strings.
45306         (Include): Specify <strings.h>.
45307
45308 2008-10-19  Bruno Haible  <bruno@clisp.org>
45309
45310         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45311
45312 2008-10-19  Bruno Haible  <bruno@clisp.org>
45313
45314         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45315         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45316         mingw.
45317
45318 2008-10-19  Bruno Haible  <bruno@clisp.org>
45319
45320         * lib/atanl.c: Don't include isnanl.h.
45321         * lib/cosl.c: Likewise.
45322         * lib/ldexpl.c: Likewise.
45323         * lib/logl.c: Likewise.
45324         * lib/sinl.c: Likewise.
45325         * lib/sqrtl.c: Likewise.
45326         * lib/tanl.c: Likewise.
45327
45328         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45329         * lib/isnanf.h: Remove file.
45330         * lib/isnand.h: Remove file.
45331         * lib/isnanl.h: Remove file.
45332         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45333         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45334         macros.
45335         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45336         HAVE_ISNANF, don't define it as a C macro.
45337         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45338         HAVE_ISNAND, don't define it as a C macro.
45339         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45340         HAVE_ISNANL, don't define it as a C macro.
45341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45342         HAVE_ISNAN[FDL].
45343         * modules/isnanf (Files): Remove lib/isnanf.h.
45344         (Depends-on): Add math.
45345         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45346         (Include): Specify <math.h> instead of isnanf.h.
45347         * modules/isnand (Files): Remove lib/isnand.h.
45348         (Depends-on): Add math.
45349         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45350         (Include): Specify <math.h> instead of isnand.h.
45351         * modules/isnanl (Files): Remove lib/isnanl.h.
45352         (Depends-on): Add math.
45353         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45354         (Include): Specify <math.h> instead of isnanl.h.
45355         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45356         HAVE_ISNAN[FDL].
45357         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45358         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45359         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45360         * NEWS: Mention the change.
45361
45362 2008-10-18  Bruno Haible  <bruno@clisp.org>
45363
45364         Add getusershell(), setusershell(), endusershell() declarations to
45365         <unistd.h>.
45366         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45367         declarations.
45368         * lib/getusershell.c: Include unistd.h.
45369         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45370         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45371         HAVE_GETUSERSHELL.
45372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45373         and HAVE_GETUSERSHELL.
45374         * modules/getusershell (Depends-on): Add unistd, extensions.
45375         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45376         (Include): Specify <unistd.h>.
45377         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45378         HAVE_GETUSERSHELL.
45379
45380 2008-10-18  Bruno Haible  <bruno@clisp.org>
45381
45382         Add a getloadavg() declaration to <stdlib.h>.
45383         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45384         getloadavg declaration.
45385         (getloadavg): New declaration.
45386         * lib/getloadavg.c: Include <stdlib.h> first.
45387         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45388         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45389         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45390         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45391         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45392         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45393         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45394         (Include): Specify <stdlib.h>.
45395         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45396         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45397
45398 2008-10-18  Bruno Haible  <bruno@clisp.org>
45399
45400         * lib/dirchownmod.c: Don't include lchmod.h.
45401
45402         Move the lchmod() declaration to <sys/stat.h>.
45403         * lib/lchmod.h: Remove file.
45404         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45405         (lchmod): New declaration, moved here from lib/lchown.h.
45406         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45407         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45408         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45409         and HAVE_LCHMOD.
45410         * modules/lchmod (Files): Remove lib/lchmod.h.
45411         (Depends-on): Add sys_stat, extensions.
45412         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45413         (Include): Specify <sys/stat.h> instead of lchmod.h.
45414         * modules/sys_stat (Depends-on): Add link-warning.
45415         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45416         definition of GL_LINK_WARNING.
45417         * NEWS: Mention the change.
45418
45419 2008-10-18  Bruno Haible  <bruno@clisp.org>
45420
45421         * lib/fchdir.c: Don't include dirfd.h.
45422         * lib/fts.c: Likewise.
45423         * lib/getcwd.c: Likewise.
45424         * lib/glob.c: Likewise.
45425
45426         Move the dirfd() declaration to <dirent.h>.
45427         * lib/dirfd.h: Remove file.
45428         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45429         (dirfd): New declaration.
45430         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45431         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45432         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45433         HAVE_DECL_DIRFD.
45434         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45435         HAVE_DECL_DIRFD.
45436         * modules/dirfd (Files): Remove lib/dirfd.h.
45437         (Depends-on): Add dirent, extensions.
45438         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45439         (Include): Specify <dirent.h> instead of dirfd.h.
45440         * modules/dirent (Depends-on): Add link-warning.
45441         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45442         definition of GL_LINK_WARNING.
45443         * NEWS: Mention the change.
45444
45445 2008-10-18  Bruno Haible  <bruno@clisp.org>
45446
45447         Move the euidaccess() declaration to <unistd.h>.
45448         * lib/euidaccess.h: Remove file.
45449         * lib/unistd.in.h (euidaccess): New declaration.
45450         * lib/euidaccess.c: Don't include euidaccess.h.
45451         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45452         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45454         and HAVE_EUIDACCESS.
45455         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45456         (Depends-on): Add unistd.
45457         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45458         (Include): Specify <unistd.h> instead of euidaccess.h.
45459         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45460         HAVE_EUIDACCESS.
45461         * NEWS: Mention the change.
45462
45463 2008-10-18  Bruno Haible  <bruno@clisp.org>
45464
45465         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45466
45467         Move the getdomainname() declaration to <unistd.h>.
45468         * lib/getdomainname.h: Remove file.
45469         * lib/unistd.in.h (getdomainname): New declaration.
45470         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45471         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45472         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45473         HAVE_GETDOMAINNAME.
45474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45475         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45476         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45477         (Depends-on): Add unistd, extensions.
45478         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45479         (Includes): Specify <unistd.h> instead of getdomainname.h.
45480         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45481         HAVE_GETDOMAINNAME.
45482         * NEWS: Mention the change.
45483
45484 2008-10-18  Bruno Haible  <bruno@clisp.org>
45485
45486         * modules/dirent: New file.
45487         * m4/dirent_h.m4: New file.
45488         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45489         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45490         * modules/fchdir (Files): Remove lib/dirent.in.h.
45491         (Depends-on): Add dirent.
45492         (Makefile.am): Move rules to modules/dirent.
45493         * doc/posix-headers/dirent.texi: Mention the new module.
45494
45495 2008-10-18  Bruno Haible  <bruno@clisp.org>
45496
45497         Avoid -Wunused-parameter warnings in public gnulib header files.
45498         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45499         macro.
45500         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45501
45502 2008-10-18  Bruno Haible  <bruno@clisp.org>
45503
45504         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45505         * doc/glibc-functions/error.texi: Mention the module 'error'.
45506         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45507         * doc/glibc-functions/getdomainname.texi: Mention the module
45508         'getdomainname'.
45509         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45510         * doc/glibc-functions/getpagesize.texi: Mention the module
45511         'getpagesize'.
45512         * doc/glibc-functions/getusershell.texi: Mention the module
45513         'getusershell'.
45514         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45515         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45516         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45517         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45518         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45519         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45520         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45521         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45522         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45523         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45524         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45525         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45526         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45527         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45528
45529 2008-10-17  Bruno Haible  <bruno@clisp.org>
45530
45531         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45532         HP-UX and IRIX, use -0.0L.
45533         * tests/test-ceill.c (minus_zero): Likewise.
45534         * tests/test-floorl.c (minus_zero): Likewise.
45535         * tests/test-frexpl.c (minus_zero): Likewise.
45536         * tests/test-isnan.c (minus_zerol): Likewise.
45537         * tests/test-isnanl.h (minus_zero): Likewise.
45538         * tests/test-ldexpl.c (minus_zero): Likewise.
45539         * tests/test-roundl.c (minus_zero): Likewise.
45540         * tests/test-signbit.c (minus_zerol): Likewise.
45541         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45542         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45543         * tests/test-truncl.c (minus_zero): Likewise.
45544         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45545         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45546         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45547         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45548
45549 2008-10-17  Bruno Haible  <bruno@clisp.org>
45550
45551         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45552         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45553         that it gets activated only for gcc >= 3.0.
45554         * lib/dirent.in.h: Likewise.
45555         * lib/errno.in.h: Likewise.
45556         * lib/fcntl.in.h: Likewise.
45557         * lib/float.in.h: Likewise.
45558         * lib/iconv.in.h: Likewise.
45559         * lib/inttypes.in.h: Likewise.
45560         * lib/locale.in.h: Likewise.
45561         * lib/math.in.h: Likewise.
45562         * lib/netdb.in.h: Likewise.
45563         * lib/netinet_in.in.h: Likewise.
45564         * lib/search.in.h: Likewise.
45565         * lib/signal.in.h: Likewise.
45566         * lib/spawn.in.h: Likewise.
45567         * lib/stdarg.in.h: Likewise.
45568         * lib/stdint.in.h: Likewise.
45569         * lib/stdio.in.h: Likewise.
45570         * lib/stdlib.in.h: Likewise.
45571         * lib/string.in.h: Likewise.
45572         * lib/strings.in.h: Likewise.
45573         * lib/sys_file.in.h: Likewise.
45574         * lib/sys_ioctl.in.h: Likewise.
45575         * lib/sys_select.in.h: Likewise.
45576         * lib/sys_socket.in.h: Likewise.
45577         * lib/sys_stat.in.h: Likewise.
45578         * lib/sys_time.in.h: Likewise.
45579         * lib/sysexits.in.h: Likewise.
45580         * lib/time.in.h: Likewise.
45581         * lib/unistd.in.h: Likewise.
45582         * lib/wchar.in.h: Likewise.
45583         * lib/wctype.in.h: Likewise.
45584         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45585
45586 2008-10-17  Jim Meyering  <meyering@redhat.com>
45587
45588         ignore-value: don't depend on inline module
45589         * modules/ignore-value (Depends-on): Remove 'inline'.
45590         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45591         Suggestion from Bruno Haible.
45592
45593 2008-10-17  Bruno Haible  <bruno@clisp.org>
45594
45595         New implementation of condition variables for Win32.
45596         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45597         (gl_linked_waitqueue_t): New type.
45598         (gl_cond_t): Use it.
45599         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45600         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45601         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45602         (glthread_cond_init_func, glthread_cond_wait_func,
45603         glthread_cond_timedwait_func, glthread_cond_signal_func,
45604         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45605         Reimplemented on the basis of gl_linked_waitqueue_t.
45606         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45607         gl_waitqueue_t.
45608         (gl_rwlock_t): Update.
45609         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45610
45611 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45612
45613         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45614         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45615
45616 2008-10-17  Jim Meyering  <meyering@redhat.com>
45617
45618         ignore-value: new module
45619         * modules/ignore-value: New file.
45620         * lib/ignore-value.h: New file.
45621         * MODULES.html.sh (Compiler warning management): New section,
45622         just for this module.  More to come.
45623
45624 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45625
45626         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45627         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45628         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45629
45630 2008-10-16  Jim Meyering  <meyering@redhat.com>
45631
45632         openat-die.c: avoid 'no previous prototype' warning
45633         * lib/openat-die.c: Include "openat.h".
45634         Reported by Reuben Thomas <rrt@sc3d.org>.
45635
45636 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45637
45638         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45639         * lib/netdb.in.h: Fix typo.
45640         Reported by Bruno Haible  <bruno@clisp.org>
45641
45642         * lib/netdb.in.h: Include sys/socket.h for platforms without
45643         netdb.h, to get structures like hostent on MinGW.
45644         * modules/netdb (Depends-on): Add sys_socket.
45645
45646 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45647
45648         * modules/netdb, modules/netdb-tests: New file.
45649         * m4/netdb_h.m4: New file.
45650         * lib/netdb.in.h: Add, currently just an empty file pending
45651         definitions.
45652         * tests/test-netdb.c: New file.
45653         * doc/posix-headers/netdb.texi: Mention that we replace it if
45654         needed.
45655         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45656         netdb.
45657
45658 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45659
45660         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45661         with code.
45662
45663 2008-10-13  Bruno Haible  <bruno@clisp.org>
45664
45665         * lib/glthread/cond.c (glthread_cond_wait_func,
45666         glthread_cond_timedwait_func): Add a comment.
45667
45668 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45669
45670         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45671         * tests/test-select.c: Likewise,
45672
45673 2008-10-13  Bruno Haible  <bruno@clisp.org>
45674
45675         * lib/glthread/cond.c (glthread_cond_wait_func,
45676         glthread_cond_timedwait_func): Fix variable name.
45677         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45678
45679 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45680
45681         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45682         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45683         struct sockaddr.sa_len.
45684         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45685
45686 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45687
45688         * build-aux/pmccabe2html: Add css and css_url parameters.
45689
45690 2008-10-12  Bruno Haible  <bruno@clisp.org>
45691
45692         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45693         calling aclx_get.
45694         Reported by Rainer Tammer <tammer@tammer.net>.
45695
45696 2008-10-12  Bruno Haible  <bruno@clisp.org>
45697
45698         Use msvcrt aware primitives for creation/termination of Win32 threads.
45699         * lib/glthread/thread.c: Include <process.h>.
45700         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45701         (wrapper_func): Update signature.
45702         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45703
45704 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45705             Bruno Haible  <bruno@clisp.org>
45706
45707         Provide a Win32 implementation of the 'cond' module.
45708         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45709         * lib/glthread/cond.c (glthread_cond_init_func,
45710         glthread_cond_wait_func, glthread_cond_timedwait_func,
45711         glthread_cond_signal_func, glthread_cond_broadcast_func,
45712         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45713         * modules/cond (Dependencies): Add gettimeofday.
45714
45715 2008-10-11  Bruno Haible  <bruno@clisp.org>
45716
45717         Make sleep work on older versions of mingw.
45718         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45719         only whether it exists.
45720         * doc/posix-functions/sleep.texi: Mention the problem with older
45721         versions of mingw.
45722
45723 2008-10-11  Bruno Haible  <bruno@clisp.org>
45724
45725         New module 'shutdown'.
45726         * modules/shutdown: New file.
45727         * lib/sys_socket.in.h (shutdown): New declaration.
45728         * lib/winsock.c (shutdown): New function.
45729         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45730         GNULIB_SHUTDOWN.
45731         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45732         * doc/posix-functions/shutdown.texi: Document the new module.
45733
45734 2008-10-11  Jim Meyering  <meyering@redhat.com>
45735
45736         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45737
45738 2008-10-11  Bruno Haible  <bruno@clisp.org>
45739
45740         New module 'fclose'.
45741         * modules/fclose: New file.
45742         * lib/stdio.in.h (fclose): New declaration.
45743         * lib/fclose.c: New file.
45744         * m4/fclose.m4: New file.
45745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45746         REPLACE_FCLOSE.
45747         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45748         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45749         REPLACE_FCLOSE.
45750         * modules/close (Depends-on): fclose.
45751         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45752
45753 2008-10-11  Bruno Haible  <bruno@clisp.org>
45754
45755         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45756         set errno and don't call _close.
45757
45758 2008-10-10  Bruno Haible  <bruno@clisp.org>
45759
45760         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45761         ACL, not afterwards. Fixes test failure on Cygwin.
45762
45763 2008-10-09  Ben Pfaff  <blp@gnu.org>
45764
45765         * build-aux/announce-gen: Fix gnulib version related part of usage
45766         message.  Die with a useful error message if no tarballs are
45767         found.
45768
45769 2008-10-10  Jim Meyering  <meyering@redhat.com>
45770
45771         bootstrap: use git's --depth=N option only if it's supported
45772         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45773         recognize the --depth option.  Reported by Pádraig Brady.
45774
45775 2008-10-09  Bruno Haible  <bruno@clisp.org>
45776
45777         New module 'ioctl'.
45778         * modules/ioctl: New file.
45779         * lib/sys_socket.in.h (ioctl): Remove declaration.
45780         * lib/winsock.c: Include <sys/ioctl.h>.
45781         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45782         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45783         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45784         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45785         * doc/posix-functions/ioctl.texi: Mention the new module.
45786
45787 2008-10-09  Bruno Haible  <bruno@clisp.org>
45788
45789         New module 'sys_ioctl'.
45790         * lib/sys_ioctl.in.h: New file.
45791         * m4/sys_ioctl_h.m4: New file.
45792         * modules/sys_ioctl: New file.
45793         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45794
45795 2008-10-09  Bruno Haible  <bruno@clisp.org>
45796
45797         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45798         * lib/winsock.c: Include <stdarg.h>.
45799         (rpl_ioctl): Change to second argument 'int' and then varargs.
45800
45801 2008-10-09  Bruno Haible  <bruno@clisp.org>
45802
45803         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45804         when the sys_socket module is present and the system has <winsock2.h>.
45805
45806 2008-10-09  Bruno Haible  <bruno@clisp.org>
45807
45808         * doc/posix-functions/close.texi: Mention module 'close' instead of
45809         module 'sys_socket'.
45810
45811 2008-10-09  Bruno Haible  <bruno@clisp.org>
45812
45813         * doc/glibc-headers/sys_ioctl.texi: New file.
45814         * doc/gnulib.texi: Include it.
45815
45816 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45817             Bruno Haible  <bruno@clisp.org>
45818
45819         Combine the two replacements of 'close'.
45820         * lib/sys_socket.in.h (close): Define to a reminder to include
45821         <unistd.h>.
45822         (_gl_close_fd_maybe_socket): New declaration.
45823         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45824         * lib/winsock.c (close): Remove undefinition.
45825         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45826         needed for the gnulib module 'close'.
45827         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45828         define to an error symbol or to a warning, if suitable.
45829         * lib/close.c: Include <sys/socket.h>.
45830         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45831         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45832         UNISTD_H_HAVE_WINSOCK2_H.
45833         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45835         UNISTD_H_HAVE_WINSOCK2_H.
45836         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45837         (configure.ac): Set a module indicator.
45838         (Makefile.am): Substitute GNULIB_CLOSE.
45839         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45840         * modules/poll-tests (Depends-on): Add close.
45841         * modules/select-tests (Depends-on): Likewise.
45842
45843 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45844             Bruno Haible  <bruno@clisp.org>
45845
45846         New module 'close'.
45847         * modules/close: New file.
45848         * lib/unistd.in.h (close): Move declaration out of the
45849         FCHDIR_REPLACEMENT scope.
45850         (_gl_unregister_fd): New declaration.
45851         * lib/close.c: New file.
45852         * lib/fchdir.c (rpl_close): Remove function.
45853         * m4/close.m4: New file.
45854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45855         close.
45856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45857         REPLACE_CLOSE.
45858         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45859         REPLACE_CLOSE.
45860         * modules/fchdir (Depends-on): Add close.
45861
45862 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45863             Bruno Haible  <bruno@clisp.org>
45864
45865         * lib/fcntl.in.h (open): Simplify conditionals.
45866         (_gl_register_fd): New declaration.
45867         * lib/fchdir.c (rpl_open): Remove function.
45868         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45869         also.
45870         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45871         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45872         open.
45873
45874 2008-10-09  Jim Meyering  <meyering@redhat.com>
45875
45876         GNUmakefile: use the more name-space-friendly "_version"
45877         * top/GNUmakefile (_dummy): Update.
45878         (_version): Rename from "version".
45879
45880 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45881             Bruno Haible  <bruno@clisp.org>
45882
45883         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45884         rpl_close.
45885         (_gl_register_fd): New function, extracted from rpl_open.
45886         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45887         (rpl_open, rpl_opendir): Use _gl_register_fd.
45888
45889 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45890
45891         Fix organization of 'open' replacement.
45892         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45893         (gl_FUNC_OPEN): Use it.
45894         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45895
45896 2008-10-08  Bruno Haible  <bruno@clisp.org>
45897
45898         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45899
45900 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45901
45902         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45903         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45904         listen).
45905
45906 2008-10-08  Eric Blake  <ebb9@byu.net>
45907
45908         GNUmakefile: add 'make version' target
45909         * top/GNUmakefile (_curr-ver): Split version update rules...
45910         (version): ...into a target.
45911
45912 2008-10-07  Bruno Haible  <bruno@clisp.org>
45913
45914         Use a more portable replacement expression for -0.0L.
45915         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45916         instead of -0.0L. Fix m4 quotation.
45917
45918         * tests/test-signbit.c: Include <float.h>.
45919         (minus_zero): New variable.
45920         (test_signbitl): Use minus_zero instead of -zero.
45921         * modules/signbit-tests (Depends-on): Add float.
45922
45923         * tests/test-ceill.c: Include <float.h>.
45924         (zero): Remove variable.
45925         (minus_zero): New variable.
45926         (main): Use minus_zero instead of -zero.
45927         * modules/ceill-tests (Depends-on): Add float.
45928
45929         * tests/test-floorl.c: Include <float.h>.
45930         (zero): Remove variable.
45931         (minus_zero): New variable.
45932         (main): Use minus_zero instead of -zero.
45933         * modules/floorl-tests (Depends-on): Add float.
45934
45935         * tests/test-roundl.c: Include <float.h>.
45936         (zero): Remove variable.
45937         (minus_zero): New variable.
45938         (main): Use minus_zero instead of -zero.
45939         * modules/roundl-tests (Depends-on): Add float.
45940
45941         * tests/test-truncl.c: Include <float.h>.
45942         (zero): Remove variable.
45943         (minus_zero): New variable.
45944         (main): Use minus_zero instead of -zero.
45945         * modules/truncl-tests (Depends-on): Add float.
45946
45947         * tests/test-frexpl.c (zero): Remove variable.
45948         (minus_zero): New variable.
45949         (main): Use minus_zero instead of -zero.
45950         * modules/frexpl-tests (Depends-on): Add float.
45951
45952         * tests/test-isnan.c (zerol): Remove variable.
45953         (minus_zerol): New variable.
45954         (test_long_double): Use minus_zerol instead of -zerol.
45955         * modules/isnan-tests (Depends-on): Add float.
45956
45957         * tests/test-isnanl.h (zero): Remove variable.
45958         (minus_zero): New variable.
45959         (main): Use minus_zero instead of -zero.
45960         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45961         * modules/isnanl-tests (Depends-on): Add float.
45962
45963         * tests/test-ldexpl.c (zero): Remove variable.
45964         (minus_zero): New variable.
45965         (main): Use minus_zero instead of -zero.
45966         * modules/ldexpl-tests (Depends-on): Add float.
45967
45968         * tests/test-snprintf-posix.h (zerol): Remove variable.
45969         (minus_zerol): New variable.
45970         (test_function): Use minus_zerol instead of -zerol.
45971         * modules/snprintf-posix-tests (Depends-on): Add float.
45972         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45973
45974         * tests/test-sprintf-posix.h (zerol): Remove variable.
45975         (minus_zerol): New variable.
45976         (test_function): Use minus_zerol instead of -zerol.
45977         * modules/sprintf-posix-tests (Depends-on): Add float.
45978         * modules/vsprintf-posix-tests (Depends-on): Add float.
45979
45980         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45981         (minus_zerol): New variable.
45982         (test_function): Use minus_zerol instead of -zerol.
45983         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45984
45985         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45986         (minus_zerol): New variable.
45987         (test_function): Use minus_zerol instead of -zerol.
45988         * modules/vasprintf-posix-tests (Depends-on): Add float.
45989
45990 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45991
45992         * MODULES.html.sh (Support for building documentation): Mention
45993         pmccabe2html.  Sort entries.
45994
45995         Add pmccabe2html module, from gnupdf.
45996         * build-aux/pmccabe.css: New file.
45997         * build-aux/pmccabe2html: New file.
45998         * m4/pmccabe2html.m4: New file.
45999         * modules/pmccabe2html: New file.
46000
46001 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46002
46003         flock: new module
46004         * MODULES.html.sh: Add to list of modules.
46005         * lib/flock.c: flock implementation for Windows and Unix systems
46006         which have fcntl.
46007         * doc/glibc-functions/flock.texi: Update documentation.
46008         * lib/sys_file.in.h: <sys/file.h> header file.
46009         * m4/flock.m4: M4 macros.
46010         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46011         * modules/flock: flock module.
46012         * modules/flock-tests: flock tests module.
46013         * modules/sys_file: sys/file.h module.
46014         * tests/test-flock.c: test suite for flock.
46015
46016 2008-10-06  Jim Meyering  <meyering@redhat.com>
46017
46018         bootstrap: check for LT_INIT more portably still ;-)
46019         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46020         Spotted by Bruno Haible.
46021
46022 2008-10-06  Eric Blake  <ebb9@byu.net>
46023
46024         test-signbit: avoid tripping Irix cc bug on -0.0L
46025         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46026         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46027         entire testsuite consistent and avoids an Irix 6.2 bug.
46028
46029 2008-10-05  Bruno Haible  <bruno@clisp.org>
46030             Jim Meyering  <jim@meyering.net>
46031
46032         Add an option for ignoring EPIPE during close_stdout.
46033         * lib/closeout.h: Include <stdbool.h>.
46034         (close_stdout_set_ignore_EPIPE): New declaration.
46035         * lib/closeout.c: Include <stdbool.h>.
46036         (ignore_EPIPE): New variable.
46037         (close_stdout_set_ignore_EPIPE): New function.
46038         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46039         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46040         failure.
46041         * modules/closeout (Depends-on): Add stdbool.
46042
46043 2008-10-05  Bruno Haible  <bruno@clisp.org>
46044
46045         * modules/accept: New file.
46046         * modules/bind: New file.
46047         * modules/connect: New file.
46048         * modules/getpeername: New file.
46049         * modules/getsockname: New file.
46050         * modules/getsockopt: New file.
46051         * modules/listen: New file.
46052         * modules/recv: New file.
46053         * modules/recvfrom: New file.
46054         * modules/send: New file.
46055         * modules/sendto: New file.
46056         * modules/setsockopt: New file.
46057         * modules/socket: New file.
46058         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46059         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46060         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46061         the particular module is requested. Add a link warning when the
46062         particular module is not requested.
46063         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46064         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46065         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46066         the particular module is requested.
46067         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46068         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46069         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46070         * modules/sys_socket (Depends-on): Add link-warning.
46071         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46072         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46073         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46074         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46075         GL_LINK_WARNING.
46076         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46077         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46078         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46079         * doc/posix-functions/getpeername.texi: Mention the new module
46080         'getpeername'.
46081         * doc/posix-functions/getsockname.texi: Mention the new module
46082         'getsockname'.
46083         * doc/posix-functions/getsockopt.texi: Mention the new module
46084         'getsockopt'.
46085         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46086         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46087         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46088         * doc/posix-functions/send.texi: Mention the new module 'send'.
46089         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46090         * doc/posix-functions/setsockopt.texi: Mention the new module
46091         'setsockopt'.
46092         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46093         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46094         listen, connect, accept.
46095         * modules/select-tests (Depends-on): Likewise.
46096
46097 2008-10-05  Bruno Haible  <bruno@clisp.org>
46098
46099         * lib/winsock.c (strerror): Remove unused #undef.
46100         (rpl_close): Remove unused local variable.
46101
46102         * modules/sys_socket (Depends-on); Add errno.
46103
46104 2008-10-05  Bruno Haible  <bruno@clisp.org>
46105
46106         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46107         (select): Add a link warning when the 'select' module is not used.
46108         * modules/sys_select (Depends-on): Add link-warning.
46109         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46110         Suggested by Paolo Bonzini.
46111
46112 2008-10-05  Jim Meyering  <meyering@redhat.com>
46113
46114         bootstrap: check for LT_INIT more portably
46115         * build-aux/bootstrap: Avoid using grep -E, since it's not
46116         portable enough.  Suggestion from Bruno Haible.
46117
46118 2008-10-05  Bruno Haible  <bruno@clisp.org>
46119
46120         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46121         as being fixed by gnulib.
46122
46123 2008-10-05  Bruno Haible  <bruno@clisp.org>
46124
46125         * modules/select-tests: New file, mostly copied from
46126         modules/sys_select-tests.
46127         * tests/test-select.c: New file, mostly copied from
46128         tests/test-sys_select.c.
46129         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46130         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46131         (Makefile.am): Remove test_sys_select_LDADD.
46132
46133         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46134         to an undefined symbol, for an error message.
46135         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46136         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46137         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46138         winsock-select.c here.
46139         * modules/sys_select (Files): Remove lib/winsock-select.c.
46140         (Depends-on): Remove alloca.
46141         (Makefile.am): Substitute GNULIB_SELECT.
46142         * modules/select: New file.
46143         * doc/posix-functions/select.texi: Update.
46144
46145 2008-10-05  Bruno Haible  <bruno@clisp.org>
46146
46147         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46148         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46149         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46150         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46151         getdtablesize.
46152         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46153         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46154
46155 2008-10-05  Bruno Haible  <bruno@clisp.org>
46156
46157         * modules/getdtablesize-tests: New file.
46158         * tests/test-getdtablesize.c: New file.
46159
46160         New module 'getdtablesize'.
46161         * lib/unistd.in.h (getdtablesize): New declaration.
46162         * lib/getdtablesize.c: New file.
46163         * m4/getdtablesize.m4: New file.
46164         * modules/getdtablesize: New file.
46165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46166         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46167         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46168         HAVE_GETDTABLESIZE.
46169         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46170
46171 2008-10-05  Bruno Haible  <bruno@clisp.org>
46172
46173         * modules/sched (Makefile.am): Fix typo.
46174         Reported by Simon Josefsson.
46175
46176 2008-10-05  Jim Meyering  <meyering@redhat.com>
46177
46178         bootstrap: check for LT_INIT, too
46179         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46180         are deprecated.  Suggestion from Ralf Wildenhues.
46181
46182 2008-10-05  Bruno Haible  <bruno@clisp.org>
46183
46184         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46185         overriding them by ours.
46186         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46187
46188 2008-10-05  Jim Meyering  <meyering@redhat.com>
46189
46190         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46191         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46192         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46193
46194 2008-10-04  Bruno Haible  <bruno@clisp.org>
46195
46196         * modules/dup2 (License): Change to LGPLv2+.
46197         * modules/sleep (License): Likewise.
46198         * modules/perror (License): Likewise.
46199         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46200         Blake.
46201         * modules/signal (License): Likewise.
46202         * modules/sigprocmask (License): Likewise.
46203         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46204         Meyering.
46205
46206 2008-10-04  Bruno Haible  <bruno@clisp.org>
46207
46208         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46209         Reported by Rainer Tammer <tammer@tammer.net>.
46210
46211 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46212             Bruno Haible  <bruno@clisp.org>
46213
46214         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46215         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46216         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46217
46218 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46219
46220         filevercmp: new module
46221         * lib/filevercmp.h: New function filevercmp comparing version strings.
46222         * lib/filevercmp.c: Implementation of filevercmp function.
46223         * modules/filevercmp: Module metadata.
46224         * tests/test-filevercmp.c: Unit test for new module.
46225         * modules/filevercmp-tests: Unit test metadata.
46226         * MODULES.html.sh: Add filevercmp module.
46227
46228 2008-10-03  Bruno Haible  <bruno@clisp.org>
46229
46230         * lib/c-ctype.h: Add comment.
46231         Reported by Jim Meyering.
46232
46233 2008-10-02  Bruno Haible  <bruno@clisp.org>
46234
46235         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46236
46237 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46238
46239         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46240         name of bootstrap.conf accordingly.
46241
46242 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46243
46244         * build-aux/bootstrap: Install git-merge-changelog configuration
46245         items into .gitconfig if needed.
46246
46247 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46248
46249         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46250         git repository, and initialize/update it accordingly.
46251
46252 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46253
46254         * modules/fsync-tests: New file.
46255         * tests/test-fsync.c: New file.
46256
46257         New module 'fsync'.
46258         * lib/fsync.c: New file.
46259         * m4/fsync.m4: New file.
46260         * modules/fsync: New file.
46261         * lib/unistd.in.h (fsync): New declaration.
46262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46263         GNULIB_FSYNC and HAVE_FSYNC.
46264         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46265         * MODULES.html.sh (posix_functions): Add fsync.
46266         * doc/posix-functions/fsync.texi: Mention the new module.
46267
46268 2008-10-02  Jim Meyering  <meyering@redhat.com>
46269
46270         fts.c: sync with similar code from coreutils' remove.c
46271         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46272         Guard also with "#if defined __linux__", since for now at least,
46273         this code is Linux-kernel-specific.
46274
46275 2008-10-02  Jim Meyering  <meyering@redhat.com>
46276
46277         fts: bug fixes
46278         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46279         Include <sys/vfs.h>, not <sys/statfs.h>.
46280
46281         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46282         Include <sys/vfs.h>, not <sys/statfs.h>.
46283
46284 2008-10-01  Bruno Haible  <bruno@clisp.org>
46285
46286         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46287         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46288         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46289         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46290         * doc/posix-functions/posix_spawnp.texi: Likewise.
46291         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46292         whether posix_spawn actually works.
46293         * m4/pipe.m4 (gl_PIPE): Likewise.
46294         * modules/execute (Files): Add m4/posix_spawn.m4.
46295         * modules/pipe (Files): Add m4/posix_spawn.m4.
46296         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46297
46298 2008-10-01  Jim Meyering  <meyering@redhat.com>
46299
46300         remove trailing spaces
46301         * NEWS: Likewise.
46302         * lib/poll.c (poll): Likewise.
46303         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46304         * lib/winsock.c (rpl_close): Likewise.
46305         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46306         * modules/yield: Likewise.
46307         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46308         * tests/test-sys_select.c (connect_to_socket): Likewise.
46309
46310         fts.c: adjust a new interface to be more generally useful
46311         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46312         (fts_build): Adjust caller.
46313
46314 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46315
46316         * modules/cond-tests: New file.
46317         * tests/test-cond.c: New file.
46318
46319 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46320             Bruno Haible  <bruno@clisp.org>
46321
46322         * modules/cond (Dependencies): Add errno, time.
46323         * lib/glthread/cond.h: Include <time.h>.
46324         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46325         across platforms.
46326
46327 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46328             Bruno Haible  <bruno@clisp.org>
46329
46330         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46331
46332 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46333             Bruno Haible  <bruno@clisp.org>
46334
46335         * modules/tls-tests (Depends-on): Add thread, yield.
46336         (configure.ac): Remove all checks.
46337         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46338         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46339         gl_thread_self): Remove definitions. Include glthread/thread.h and
46340         glthread/yield.h instead.
46341         (test_tls): Pass an additional NULL argument to gl_thread_join.
46342
46343 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46344             Bruno Haible  <bruno@clisp.org>
46345
46346         * modules/lock-tests (Depends-on): Add thread, yield.
46347         (configure.ac): Remove all checks.
46348         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46349         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46350         gl_thread_self): Remove definitions. Include glthread/thread.h and
46351         glthread/yield.h instead.
46352         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46353         additional NULL argument to gl_thread_join.
46354
46355 2008-09-30  Bruno Haible  <bruno@clisp.org>
46356
46357         Fix the Win32 implementation of the 'thread' module.
46358         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46359         pointer type.
46360         (gl_thread_self): Invoke gl_thread_self_func.
46361         (gl_thread_self_func): New declaration.
46362         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46363         (do_init_self_key, init_self_key): New functions.
46364         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46365         Remove some fields.
46366         (running_threads, running_lock): Remove variables.
46367         (get_current_thread_handle): New function.
46368         (gl_thread_self_func, wrapper_func, glthread_create_func,
46369         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46370         simplified.
46371
46372 2008-09-30  Bruno Haible  <bruno@clisp.org>
46373
46374         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46375         files.
46376
46377 2008-09-30  Jim Meyering  <meyering@redhat.com>
46378
46379         fts.m4: correct the test for statfs.f_type
46380         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46381         when checking for statfs.f_type.
46382
46383 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46384
46385         tests: avoid some compiler warnings
46386         * tests/test-memchr.c (main): Pass NULL indirectly.
46387         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46388
46389 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46390
46391         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46392         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46393         exactly specified dayshifts.
46394         (dayshift): New rule.
46395         (rel): Add dayshift.
46396         (relative_time_table) [tomorrow, yesterday, today, now]:
46397         Use tDAY_SHIFT in place of tDAY_UNIT.
46398         * tests/test-getdate.c: Add tests for now-disallowed countable
46399         dayshifts, e.g., "4 yesterday ago".
46400
46401 2008-09-29  Bruno Haible  <bruno@clisp.org>
46402
46403         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46404         * tests/test-posix_spawn1.in.sh: Renamed from
46405         tests/test-posix_spawn.in.sh.
46406         * tests/test-posix_spawn2.c: New file.
46407         * tests/test-posix_spawn2.in.sh: New file.
46408         * modules/posix_spawnp-tests (Files): Update.
46409         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46410
46411 2008-09-29  Bruno Haible  <bruno@clisp.org>
46412
46413         Propagate effects of putenv/setenv/unsetenv to child processes.
46414         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46415         * lib/pipe.c (create_pipe): Likewise.
46416
46417 2008-09-29  Bruno Haible  <bruno@clisp.org>
46418
46419         Enable use of shell scripts as executables in mingw.
46420         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46421         run the program as a shell script.
46422         * lib/pipe.c (create_pipe): Likewise.
46423         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46424         resulting array.
46425
46426 2008-09-29  Eric Blake  <ebb9@byu.net>
46427
46428         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46429
46430 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46431
46432         * doc/posix-functions/accept.texi: Update mingw problems.
46433         * doc/posix-functions/bind.texi: Update mingw problems.
46434         * doc/posix-functions/close.texi: Update mingw problems.
46435         * doc/posix-functions/connect.texi: Update mingw problems.
46436         * doc/posix-functions/getpeername.texi: Update mingw problems.
46437         * doc/posix-functions/getsockname.texi: Update mingw problems.
46438         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46439         * doc/posix-functions/ioctl.texi: Update mingw problems.
46440         * doc/posix-functions/listen.texi: Update mingw problems.
46441         * doc/posix-functions/recv.texi: Update mingw problems.
46442         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46443         * doc/posix-functions/select.texi: Update mingw problems.
46444         * doc/posix-functions/send.texi: Update mingw problems.
46445         * doc/posix-functions/sendto.texi: Update mingw problems.
46446         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46447         * doc/posix-functions/socket.texi: Update mingw problems.
46448
46449 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46450             Bruno Haible  <bruno@clisp.org>
46451
46452         * lib/sys_select.in.h: Include sys/time.h.
46453         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46454         * modules/sys_select: Depend on sys_time.
46455         * tests/test-sys_select.c: Test that sys/select.h defines struct
46456         timeval fully.
46457
46458 2008-09-29  Bruno Haible  <bruno@clisp.org>
46459
46460         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46461         * lib/sys_select.in.h: Likewise.
46462
46463 2008-09-29  Bruno Haible  <bruno@clisp.org>
46464
46465         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46466
46467 2008-09-29  Bruno Haible  <bruno@clisp.org>
46468
46469         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46470         Set LIBSOCKET instead of augmenting LIBS.
46471         * modules/sockets (Link): New section.
46472         * modules/sockets-tests (test_sockets_LDADD): New variable.
46473         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46474         * modules/poll-tests (test_poll_LDADD): New variable.
46475         * NEWS: Document the change.
46476
46477 2008-09-29  Bruno Haible  <bruno@clisp.org>
46478
46479         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46480         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46481         ARPA_INET_H directly.
46482         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46483
46484 2008-09-28  Bruno Haible  <bruno@clisp.org>
46485
46486         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46487         from gl_HEADER_SYS_SOCKET.
46488         (gl_HEADER_SYS_SOCKET): Invoke it.
46489         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46490
46491 2008-09-28  Bruno Haible  <bruno@clisp.org>
46492
46493         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46494         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46495         Needed on OSF/1 4.0.
46496
46497 2008-09-28  Bruno Haible  <bruno@clisp.org>
46498
46499         Override open more carefully.
46500         * lib/open.c (orig_open): New function.
46501         (rpl_open): Use orig_open instead of open.
46502         * lib/fcntl.in.h: Add special invocation convention.
46503         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46504         (gl_FUNC_OPEN): Invoke it.
46505
46506         Override freopen more carefully.
46507         * lib/freopen.c (orig_freopen): New function.
46508         (rpl_freopen): Use orig_freopen instead of freopen.
46509         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46510         (gl_FUNC_FREOPEN): Invoke it.
46511
46512         Override fopen more carefully.
46513         * lib/fopen.c (orig_fopen): New function.
46514         (rpl_fopen): Use orig_fopen instead of fopen.
46515         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46516         (gl_FUNC_FOPEN): Invoke it.
46517         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46518
46519 2008-09-28  Bruno Haible  <bruno@clisp.org>
46520
46521         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46522         SIGPIPE.
46523
46524 2008-09-28  Bruno Haible  <bruno@clisp.org>
46525
46526         * tests/test-sigaction.c (handler, main): Disable the check whether
46527         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46528         glibc systems with LinuxThreads.
46529
46530 2008-09-28  Bruno Haible  <bruno@clisp.org>
46531
46532         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46533
46534         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46535         with AIX xlc.
46536         * lib/fcntl.in.h (open): Likewise.
46537         Reported by Rainer Tammer <tammer@tammer.net>.
46538
46539 2008-09-28  Bruno Haible  <bruno@clisp.org>
46540
46541         * modules/posix_spawnp-tests: New file.
46542         * tests/test-posix_spawn.c: New file.
46543         * tests/test-posix_spawn.in.sh: New file.
46544
46545         New module 'posix_spawnp'.
46546         * modules/posix_spawnp: New file.
46547         * lib/spawnp.c: New file, from GNU libc with modifications.
46548         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46549
46550         New module 'posix_spawn'.
46551         * modules/posix_spawn: New file.
46552         * lib/spawn.c: New file, from GNU libc with modifications.
46553         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46554
46555         New module 'posix_spawnattr_destroy'.
46556         * modules/posix_spawnattr_destroy: New file.
46557         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46558         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46559         module.
46560
46561         New module 'posix_spawnattr_setsigmask'.
46562         * modules/posix_spawnattr_setsigmask: New file.
46563         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46564         modifications.
46565         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46566         new module.
46567
46568         New module 'posix_spawnattr_getsigmask'.
46569         * modules/posix_spawnattr_getsigmask: New file.
46570         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46571         modifications.
46572         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46573         new module.
46574
46575         New module 'posix_spawnattr_setsigdefault'.
46576         * modules/posix_spawnattr_setsigdefault: New file.
46577         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46578         modifications.
46579         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46580         new module.
46581
46582         New module 'posix_spawnattr_getsigdefault'.
46583         * modules/posix_spawnattr_getsigdefault: New file.
46584         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46585         modifications.
46586         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46587         new module.
46588
46589         New module 'posix_spawnattr_setschedpolicy'.
46590         * modules/posix_spawnattr_setschedpolicy: New file.
46591         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46592         modifications.
46593         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46594         new module.
46595
46596         New module 'posix_spawnattr_getschedpolicy'.
46597         * modules/posix_spawnattr_getschedpolicy: New file.
46598         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46599         modifications.
46600         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46601         new module.
46602
46603         New module 'posix_spawnattr_setschedparam'.
46604         * modules/posix_spawnattr_setschedparam: New file.
46605         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46606         modifications.
46607         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46608         new module.
46609
46610         New module 'posix_spawnattr_getschedparam'.
46611         * modules/posix_spawnattr_getschedparam: New file.
46612         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46613         modifications.
46614         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46615         new module.
46616
46617         New module 'posix_spawnattr_setpgroup'.
46618         * modules/posix_spawnattr_setpgroup: New file.
46619         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46620         modifications.
46621         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46622         module.
46623
46624         New module 'posix_spawnattr_getpgroup'.
46625         * modules/posix_spawnattr_getpgroup: New file.
46626         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46627         modifications.
46628         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46629         module.
46630
46631         New module 'posix_spawnattr_setflags'.
46632         * modules/posix_spawnattr_setflags: New file.
46633         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46634         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46635         module.
46636
46637         New module 'posix_spawnattr_getflags'.
46638         * modules/posix_spawnattr_getflags: New file.
46639         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46640         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46641         module.
46642
46643         New module 'posix_spawnattr_init'.
46644         * modules/posix_spawnattr_init: New file.
46645         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46646         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46647         module.
46648
46649         New module 'posix_spawn_file_actions_destroy'.
46650         * modules/posix_spawn_file_actions_destroy: New file.
46651         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46652         modifications.
46653         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46654         the new module.
46655
46656         New module 'posix_spawn_file_actions_addopen'.
46657         * modules/posix_spawn_file_actions_addopen: New file.
46658         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46659         modifications.
46660         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46661         the new module.
46662
46663         New module 'posix_spawn_file_actions_adddup2'.
46664         * modules/posix_spawn_file_actions_adddup2: New file.
46665         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46666         modifications.
46667         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46668         the new module.
46669
46670         New module 'posix_spawn_file_actions_addclose'.
46671         * modules/posix_spawn_file_actions_addclose: New file.
46672         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46673         modifications.
46674         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46675         the new module.
46676
46677         New module 'posix_spawn_file_actions_init'.
46678         * modules/posix_spawn_file_actions_init: New file.
46679         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46680         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46681         new module.
46682
46683         New module 'posix_spawn-internal'.
46684         * modules/posix_spawn-internal: New file.
46685         * lib/spawn_int.h: New file, from GNU libc with modifications.
46686         * lib/spawni.c: New file, from GNU libc with modifications.
46687         * m4/posix_spawn.m4: New file.
46688
46689         New module 'spawn'.
46690         * modules/spawn: New file.
46691         * lib/spawn.in.h: New file, from GNU libc with modifications.
46692         * m4/spawn_h.m4: New file.
46693         * doc/posix-headers/spawn.texi: Mention the new module.
46694
46695 2008-09-28  Bruno Haible  <bruno@clisp.org>
46696
46697         * modules/sched-tests: New file.
46698         * tests/test-sched.c: New file.
46699
46700         New module 'sched'.
46701         * modules/sched: New file.
46702         * lib/sched.in.h: New file.
46703         * m4/sched_h.m4: New file.
46704         * doc/posix-headers/sched.texi: Mention the new module.
46705
46706 2008-09-27  Eric Blake  <ebb9@byu.net>
46707
46708         Fix previous patch, and tweak references to $0.
46709         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46710         (func_version, func_gnulib_dir): Don't call this program
46711         gnulib-tool.
46712         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46713         with using $0 in function.
46714         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46715         (func_fatal_error): Reuse the name the user invoked us with.
46716
46717 2008-09-27  Bruno Haible  <bruno@clisp.org>
46718
46719         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46720         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46721         (gl_ICONV_H): Not here.
46722         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46723         instead of assigning ICONV_H directly.
46724
46725         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46726         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46727         WCHAR_H directly.
46728
46729 2008-09-27  Bruno Haible  <bruno@clisp.org>
46730
46731         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46732         * modules/arpa_inet (Depends-on): Add link-warning.
46733         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46734         * modules/unistd (Makefile.am): Likewise.
46735
46736 2008-09-26  Bruno Haible  <bruno@clisp.org>
46737
46738         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46739         variables.
46740         (func_version): Essentially copied from gnulib-tool.
46741         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46742         func_readlink): Copied from gnulib-tool.
46743
46744 2008-09-26  Bruno Haible  <bruno@clisp.org>
46745
46746         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46747         invoking git-version-gen.
46748
46749 2008-09-26  Bruno Haible  <bruno@clisp.org>
46750
46751         * posix-modules: Update to directory names changed on 2008-01-19.
46752         Remove commas in output before splitting into words. No more need to
46753         avoid 'ftruncate' since 2007-02-19.
46754
46755 2008-09-26  Bruno Haible  <bruno@clisp.org>
46756
46757         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46758
46759 2008-09-26  Bruno Haible  <bruno@clisp.org>
46760
46761         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46762         * modules/fwriteerror (Depends-on): Add errno.
46763
46764 2008-09-26  Bruno Haible  <bruno@clisp.org>
46765
46766         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46767         * tests/test-vc-list-files-cvs.sh: Likewise.
46768
46769 2008-09-26  Bruno Haible  <bruno@clisp.org>
46770
46771         * doc/posix-headers/sys_resource.texi: Reorder items.
46772
46773 2008-09-26  Jim Meyering  <meyering@redhat.com>
46774
46775         fts: tweak inode comparison function
46776         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46777         inode numbers, as documented.
46778
46779         fts: sort dirent entries on inode number before traversing
46780         This avoids a quadratic, seek-related performance penalty when
46781         operating on a directory containing many entries (measurable at 10k;
46782         3.5 hours at 2 million entries with a cold cache) on certain types
46783         of file systems, including ext3 and ext4, but not tmpfs.
46784         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46785         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46786         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46787         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46788         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46789         (fts_build): Set the stat.st_ino member from D_INO.
46790         If it is likely to be useful, sort dirent entries on inode number.
46791
46792         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46793         and the struct statfs.f_type member.
46794         * modules/fts (Depends-on): Add d-ino.
46795
46796 2008-09-26  Bruno Haible  <bruno@clisp.org>
46797
46798         * modules/sigpipe-die (Depends-on): Add sigpipe.
46799
46800         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46801         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46802         and GNULIB_STDIO_H_SIGPIPE are set.
46803         * lib/stdio-write.c: New file.
46804         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46805         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46806         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46807         REPLACE_STDIO_WRITE_FUNCS.
46808         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46809         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46810         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46811         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46812         * modules/stdio (Files): Add lib/stdio-write.c.
46813         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46814         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46815         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46816         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46817         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46818         REPLACE_FPRINTF_POSIX.
46819         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46820         REPLACE_PRINTF_POSIX.
46821         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46822         REPLACE_VFPRINTF_POSIX.
46823         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46824         REPLACE_VPRINTF_POSIX.
46825         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46826         SIGPIPE issue.
46827         * doc/posix-functions/fputc.texi: Likewise.
46828         * doc/posix-functions/fputs.texi: Likewise.
46829         * doc/posix-functions/fwrite.texi: Likewise.
46830         * doc/posix-functions/printf.texi: Likewise.
46831         * doc/posix-functions/putc.texi: Likewise.
46832         * doc/posix-functions/putchar.texi: Likewise.
46833         * doc/posix-functions/puts.texi: Likewise.
46834         * doc/posix-functions/vfprintf.texi: Likewise.
46835         * doc/posix-functions/vprintf.texi: Likewise.
46836
46837         * modules/safe-write (Depends-on): Add write.
46838
46839         * modules/sigpipe-tests: New file.
46840         * tests/test-sigpipe.c: New file.
46841         * tests/test-sigpipe.sh: New file.
46842
46843         * modules/write: New file.
46844         * lib/unistd.in.h: Include <sys/types.h>.
46845         (write): New declaration.
46846         * lib/write.c: New file.
46847         * m4/write.m4: New file.
46848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46849         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46850         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46851         GNULIB_WRITE, REPLACE_WRITE.
46852         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46853         and the SIGPIPE issue.
46854
46855         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46856         (raise): New declaration.
46857         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46858         (ext_signal): New function.
46859         (rpl_raise): New function.
46860         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46861         GNULIB_SIGNAL_H_SIGPIPE.
46862         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46863         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46864
46865         * modules/sigpipe: New file.
46866         * m4/sigpipe.m4: New file.
46867
46868 2008-09-25  Derek Price  <derek@ximbiot.com>
46869             Bruno Haible  <bruno@clisp.org>
46870
46871         * gnulib-tool (func_import): Report all license incompatibilities, not
46872         just the first one.
46873
46874 2008-09-25  Bruno Haible  <bruno@clisp.org>
46875
46876         * gnulib-tool (func_import): When computing the edits, consider not
46877         only the Makefile.ams that exist but also those that will be generated.
46878
46879 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46880
46881         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46882         fixes gnulib-tool --test warning about duplicate dependency.
46883
46884 2008-09-25  Bruno Haible  <bruno@clisp.org>
46885
46886         * gnulib-tool: Don't ask the user to perform edits in the generated
46887         Makefile.ams.
46888         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46889         apply to the Makefile.am being generated.
46890         (func_emit_tests_Makefile_am): Execute edits that apply to the
46891         Makefile.am being generated.
46892         (func_import): Setup list of Makefile.am edits before emitting the
46893         Makefile.ams, not at the end.
46894         (func_create_testdir): Update.
46895         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46896
46897 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46898
46899         * gnulib-tool (func_import): Store the --tests-base option in the
46900         comment in gnulib-cache.m4.
46901
46902 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46903
46904         * NEWS: Document increased portability that sys_select now provides.
46905
46906         * lib/sys_select.in.h: Install select wrapper.
46907         * lib/sys_socket.in.h: Use more descriptive name when there is no
46908         select wrapper.
46909         * lib/winsock-select.c: New.
46910         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46911         Require gl_HEADER_SYS_SOCKET.
46912         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46913         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46914         * tests/test-sys_select.c: Add functional tests.
46915
46916 2008-09-24  Eric Blake  <ebb9@byu.net>
46917
46918         open, fopen: close fd leak in last patch
46919         * lib/open.c (rpl_open): Close fd before returning error.
46920         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46921         * doc/posix-functions/open.texi (open): Document that Irix also
46922         has the bug.
46923         * doc/posix-functions/fopen.texi (fopen): Likewise.
46924         Reported by Paolo Bonzini.
46925
46926 2008-09-24  Bruno Haible  <bruno@clisp.org>
46927
46928         Ensure that a filename ending in a slash cannot be used to access a
46929         non-directory.
46930         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46931         to check whether it's really a directory.
46932         * lib/fopen.c: Include fcntl.h, unistd.h.
46933         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46934         and fdopen().
46935         * modules/fopen (Depends-on): Add unistd.
46936         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46937         * tests/test-fopen.c (main): Likewise.
46938         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46939         * doc/posix-functions/fopen.texi: Likewise.
46940         Reported by Eric Blake.
46941
46942 2008-09-23  Eric Blake  <ebb9@byu.net>
46943
46944         c-stack: avoid compiler optimizations when provoking overflow
46945         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46946         recursion harder to optimize, to ensure a stack overflow occurs.
46947         * tests/test-c-stack.c (recurse): Likewise.
46948         Borrowed from libsigsegv.
46949
46950         c-stack: work around Irix sigaltstack bug
46951         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46952         whether sigaltstack uses wrong end of stack_t (copied in part from
46953         libsigsegv).
46954         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46955         Irix bug, without requiring an over-allocation.
46956         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46957         bug.
46958
46959         fopen: document mingw bug on directories
46960         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46961         not allowing a stream visiting a directory, even though reading
46962         from such a stream is not portable.
46963
46964 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46965
46966         * lib/poll.c: Rewrite.
46967         * modules/poll: Depend on alloca.
46968
46969 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46970
46971         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46972         instead define prototypes for a full set of wrappers.  Ensure
46973         that Cygwin does not use the compatibility code, which is only
46974         for MinGW.
46975         * lib/winsock.c: New.
46976         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46977         * modules/sys_socket: Add lib/winsock.c.
46978
46979         * modules/poll-tests: Add errno and perror.
46980         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46981
46982 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46983
46984         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46985
46986 2008-09-23  Bruno Haible  <bruno@clisp.org>
46987
46988         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46989         * doc/glibc-functions/*: Likewise.
46990
46991 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46992
46993         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46994         success.
46995
46996 2008-09-22  Eric Blake  <ebb9@byu.net>
46997             Bruno Haible  <bruno@clisp.org>
46998
46999         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47000         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47001         supply %A but mishandle pseudo-NaN.
47002         Reported by Simon Josefsson.
47003
47004 2008-09-21  Bruno Haible  <bruno@clisp.org>
47005
47006         * tests/test-lock.c (main): Tweak skip message.
47007         * tests/test-tls.c (main): Likewise.
47008
47009 2008-09-21  Bruno Haible  <bruno@clisp.org>
47010
47011         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47012         whether 'struct sigaction' has sa_sigaction here...
47013         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47014         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47015
47016 2008-09-21  Bruno Haible  <bruno@clisp.org>
47017
47018         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47019         section.
47020         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47021         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47022         the new section.
47023         (Support for obsolete systems lacking POSIX:2001): New section.
47024         (String handling <string.h>): Move strdup to the new section.
47025         Suggested by Simon Josefsson and Paolo Bonzini.
47026
47027 2008-09-21  Bruno Haible  <bruno@clisp.org>
47028
47029         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47030         exponents in %e and %g results on 'long double'. Needed for mingw's
47031         improved *printf functions.
47032         * tests/test-vasprintf-posix.c (test_function): Likewise.
47033         * tests/test-snprintf-posix.h (test_function): Likewise.
47034         * tests/test-sprintf-posix.h (test_function): Likewise.
47035         Reported by Eric Blake.
47036
47037 2008-09-21  Bruno Haible  <bruno@clisp.org>
47038
47039         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47040         * tests/test-sprintf-posix.h (test_function): Likewise.
47041
47042 2008-09-21  Bruno Haible  <bruno@clisp.org>
47043
47044         * modules/getpass (Depends-on): Add strdup-posix.
47045
47046         New module 'strdup-posix'.
47047         * modules/strdup-posix: New file.
47048         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47049         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47050         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47051         REPLACE_STRDUP.
47052         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47053         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47054         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47055         strdup-posix.
47056
47057         * modules/strdup (Depends-on): Remove malloc-posix.
47058
47059 2008-09-20  Bruno Haible  <bruno@clisp.org>
47060
47061         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47062         Wildenhues.
47063
47064 2008-09-20  Bruno Haible  <bruno@clisp.org>
47065
47066         Ensure that wint_t gets defined on IRIX 5.3.
47067         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47068         * lib/wctype.in.h (wint_t): Likewise.
47069         (__wctype_wint_t): Remove type.
47070         (isw*): Use wint_t instead of __wctype_wint_t.
47071         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47072         * modules/wchar (Files): Add m4/wint_t.m4.
47073         (Makefile.am): Substitute HAVE_WINT_T.
47074         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47075         * tests/test-wctype.c: Check that wint_t is defined.
47076         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47077         * doc/posix-headers/wctype.texi: Likewise.
47078         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47079
47080 2008-09-18  Bruno Haible  <bruno@clisp.org>
47081
47082         * gnulib-tool (func_exit): Update comment.
47083
47084 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47085
47086         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47087         assumes strdup exists and does not depend on strdup to return
47088         ENOMEM on out of memory conditions.
47089
47090 2008-09-18  Bruno Haible  <bruno@clisp.org>
47091
47092         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
47093         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47094         digits for the exponent.
47095
47096 2008-09-18  Jim Meyering  <meyering@redhat.com>
47097             Bruno Haible  <bruno@clisp.org>
47098
47099         * lib/vasnprintf.c (decimal_point_char): Define also if
47100         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47101
47102 2008-09-16  Bruno Haible  <bruno@clisp.org>
47103         and Eric Blake  <ebb9@byu.net>
47104
47105         vasnprintf: support Irix 5.3
47106         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47107         that mishandle long double infinity.
47108         Reported by Tom G. Christensen.
47109
47110 2008-09-16  Bruno Haible  <bruno@clisp.org>
47111
47112         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47113         Solaris 9.
47114         * doc/glibc-functions/alphasort.texi: Likewise.
47115         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47116
47117 2008-09-16  Jim Meyering  <meyering@redhat.com>
47118
47119         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47120         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47121         a umask modification leak out of a subshell.  Otherwise, the
47122         opensolaris /bin/sh would be accepted and thus cause unwarranted
47123         failures in the coreutils test suite.
47124
47125 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47126
47127         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47128         to succeed.
47129
47130 2008-09-16  Jim Meyering  <meyering@redhat.com>
47131
47132         avoid spurious test failure when library is built without ACL support
47133         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47134         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47135         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47136         * tests/test-copy-acl.sh: Likewise.
47137
47138 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47139
47140         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47141         based on character occurrence counts.
47142
47143 2008-09-15  Eric Blake  <ebb9@byu.net>
47144
47145         tests: avoid some compiler warnings
47146         * tests/test-memchr.c (main): Pass NULL indirectly.
47147         * tests/test-closein.c (main): Avoid unused variable.
47148
47149 2008-09-15  Bruno Haible  <bruno@clisp.org>
47150
47151         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47152         are missing on OpenBSD 4.0 individually.
47153         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47154
47155 2008-09-15  Bruno Haible  <bruno@clisp.org>
47156
47157         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47158         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47159         * doc/posix-functions/perror.texi: Likewise.
47160         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47161         is missing.
47162         Reported by Eric Blake.
47163
47164         * lib/errno.in.h: Use replacement values >= 2000.
47165         Reported by Eric Blake.
47166
47167 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47168
47169         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47170         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47171         limit.
47172         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47173         compareseq was aborted.
47174
47175 2008-09-14  Bruno Haible  <bruno@clisp.org>
47176
47177         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47178         yvec_edit_count.
47179         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47180         (fstrcmp_bounded): Simplify result computation accordingly.
47181
47182 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47183
47184         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47185         (fstrcmp): Define in terms of fstrcmp_bounded.
47186         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47187         lower_bound argument.
47188         Return quickly if the result is certainly < lower_bound.
47189         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47190
47191 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47192
47193         * lib/diffseq.h (EARLY_ABORT): New macro.
47194         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47195         evaluates to true.
47196
47197 2008-09-14  Bruno Haible  <bruno@clisp.org>
47198
47199         * modules/perror-tests: New file.
47200         * tests/test-perror.sh: New file.
47201         * tests/test-perror.c: New file.
47202
47203         New module 'perror'.
47204         * lib/stdio.in.h (perror): New declaration.
47205         * lib/perror.c: New file.
47206         * m4/perror.m4: New file.
47207         * modules/perror: New file.
47208         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47209         * doc/posix-functions/perror.texi: Mention the perror module.
47210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47211         REPLACE_PERROR.
47212         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47213         REPLACE_PERROR.
47214
47215 2008-09-14  Bruno Haible  <bruno@clisp.org>
47216
47217         * modules/stdio (Makefile.am): Reorder to match the order in
47218         lib/stdio.in.h.
47219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47220
47221 2008-09-13  Bruno Haible  <bruno@clisp.org>
47222
47223         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47224
47225 2008-09-13  Bruno Haible  <bruno@clisp.org>
47226
47227         Extend strerror to cover the added errno values.
47228         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47229         (rpl_strerror): Provide error messages for the added errno values and
47230         for the WSA* values.
47231         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47232         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47233         strerror.
47234         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47235         * modules/strerror (Depends-on): Add errno.
47236         * doc/posix-functions/strerror.texi: Document the change.
47237         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47238         and EOVERFLOW.
47239
47240 2008-09-13  Bruno Haible  <bruno@clisp.org>
47241
47242         * modules/EOVERFLOW: Remove file.
47243         * m4/eoverflow.m4: Remove file.
47244         * modules/EOVERFLOW-tests: Remove file.
47245         * tests/test-EOVERFLOW.c: Remove file.
47246         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47247         * modules/ftell (Depends-on): Likewise.
47248         * modules/getdelim (Depends-on): Likewise.
47249         * modules/getugroups (Depends-on): Likewise.
47250         * modules/poll (Depends-on): Likewise.
47251         * modules/snprintf (Depends-on): Likewise.
47252         * modules/sprintf-posix (Depends-on): Likewise.
47253         * modules/vasnprintf (Depends-on): Likewise.
47254         * modules/vasprintf (Depends-on): Likewise.
47255         * modules/vfprintf-posix (Depends-on): Likewise.
47256         * modules/vsnprintf (Depends-on): Likewise.
47257         * modules/vsprintf-posix (Depends-on): Likewise.
47258         * modules/xvasprintf (Depends-on): Likewise.
47259         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47260         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47261         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47262         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47263         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47264         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47265         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47266         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47267         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47268         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47269         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47270         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47271         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47272         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47273         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47274         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47275         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47276         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47277         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47278         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47279         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47280         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47281         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47282         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47283         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47284         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47285         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47286         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47287         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47288         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47289         * MODULES.html.sh: Remove EOVERFLOW.
47290         * NEWS: Mention the change.
47291
47292 2008-09-13  Bruno Haible  <bruno@clisp.org>
47293
47294         * modules/errno-tests: New file.
47295         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47296
47297         * lib/errno.in.h: New file.
47298         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47299         * modules/errno: New file.
47300         * doc/posix-headers/errno.texi: Update documentation.
47301         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47302
47303 2008-09-13  Bruno Haible  <bruno@clisp.org>
47304
47305         * tests/test-poll.c: Use #if for native Windows, rather than testing
47306         __MSVCRT__.
47307
47308 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47309             Bruno Haible  <bruno@clisp.org>
47310
47311         * lib/glob.c: Don't include <pwd.h> on native Windows.
47312         (WINDOWS32): New macro.
47313         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47314
47315 2008-09-13  Bruno Haible  <bruno@clisp.org>
47316
47317         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47318         (ETIMEDOUT): Remove macro.
47319         (glthread_cond_timedwait_multithreaded): New declaration.
47320         (glthread_cond_timedwait): Use it.
47321         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47322         (glthread_cond_timedwait_multithreaded): New function.
47323
47324 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47325
47326         * modules/poll-tests: Do not check for io.h.
47327         * tests/test-poll.c: Check for __MSVCRT__ instead.
47328
47329 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47330
47331         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47332         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47333         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47334
47335 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47336
47337         * modules/poll-tests: New.
47338         * tests/test-poll.c: New.
47339
47340 2008-09-12  Eric Blake  <ebb9@byu.net>
47341
47342         frexp: test for NetBSD failure on -0.0
47343         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47344         not all, bugs from NetBSD 3.0 have been fixed.
47345         * doc/posix-functions/frexp.texi (frexp): Document bug.
47346         Reported by Thomas Klausner.
47347
47348         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47349         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47350         literal -0.0.
47351         Reported by Jonathan C. Patschke <jp@centtech.com>.
47352
47353 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47354
47355         * lib/glthread/cond.h: Use dummy implementation also if
47356         USE_WIN32_THREADS.
47357
47358 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47359
47360         * modules/fnmatch-posix (License): Change to LGPLv2+.
47361         * modules/fnmatch-gnu (License): Likewise.
47362
47363 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47364
47365         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47366
47367 2008-09-11  Jim Meyering  <meyering@redhat.com>
47368
47369         * users.txt: Add gtk-vnc.
47370
47371 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47372
47373         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47374         rotate amounts.
47375
47376         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47377         required for 16-bit and 8-bit rotates.
47378         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47379         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47380         UINT8_MAX instead of hard-coded constants.
47381         Suggested by Paul Eggert.
47382
47383 2008-09-07  Bruno Haible  <bruno@clisp.org>
47384
47385         * tests/test-striconveh.c (main): Check behaviour when converting from
47386         UTF-7.
47387
47388         Make striconveh work better with stateful encodings.
47389         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47390         that iconv does not increment the inptr when returning -1/EINVAL.
47391
47392 2008-09-07  Bruno Haible  <bruno@clisp.org>
47393
47394         * build-aux/config.rpath: Update according to libtool-2.2.6.
47395         * build-aux/config.libpath: Likewise.
47396
47397 2008-09-06  Bruno Haible  <bruno@clisp.org>
47398
47399         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47400         * lib/freadptr.c (freadptr): Likewise.
47401         * lib/freadseek.c (freadptrinc): Likewise.
47402         Reported by Simon Josefsson.
47403
47404 2008-09-06  Bruno Haible  <bruno@clisp.org>
47405
47406         * modules/freadptr (License): Change to LGPLv2+.
47407         * modules/freadseek (License): Likewise.
47408         Suggested by Eric Blake.
47409
47410         * modules/memchr2 (License): Change to LGPLv2+.
47411         Approved by Eric Blake.
47412
47413 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47414             Bruno Haible  <bruno@clisp.org>
47415
47416         Make gnulib-tool work with native 'sed' on AIX.
47417         * gnulib-tool (sed_noop): New variable.
47418         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47419         func_add_or_update, func_create_testdir): Use it to initialize sed
47420         script variables.
47421         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47422
47423 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47424             Bruno Haible  <bruno@clisp.org>
47425
47426         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47427         also works after #include directives.
47428
47429 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47430
47431         getdate.y: reject an out-of-range timezone value
47432         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47433         the range [-24...+24].  When specified with only one or two digits,
47434         * tests/test-getdate.c: Tests for the fix.
47435         * doc/getdate.texi: Document this change.
47436
47437 2008-09-03  Bruno Haible  <bruno@clisp.org>
47438
47439         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47440
47441 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47442
47443         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47444         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47445         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47446         Blake <ebb9@byu.net>.
47447
47448         * tests/test-bitrotate.c: Add more test vectors.
47449
47450 2008-09-02  Eric Blake  <ebb9@byu.net>
47451
47452         vasnprintf-posix: handle large precision via %.*d
47453         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47454         when handling it ourselves.
47455         * tests/test-vasnprintf-posix.c (test_function): Add test.
47456         * tests/test-snprintf-posix.h (test_function): Likewise.
47457         * tests/test-sprintf-posix.h (test_function): Likewise.
47458         * tests/test-vasprintf-posix.c (test_function): Likewise.
47459         Reported by Alain Guibert.
47460
47461 2008-09-01  Eric Blake  <ebb9@byu.net>
47462
47463         c-stack: make configure-time check more robust
47464         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47465         successful sigaction call.
47466         Reported by Tom G. Christensen.
47467
47468 2008-09-01  Bruno Haible  <bruno@clisp.org>
47469
47470         New module 'findprog-lgpl'.
47471         * modules/findprog-lgpl: New file.
47472         * lib/findprog-lgpl.c: New file.
47473         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47474         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47475         to decide whether to use strdup or xstrdup, concatenated_filename or
47476         xconcatenated_filename.
47477
47478 2008-09-01  Bruno Haible  <bruno@clisp.org>
47479
47480         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47481         'xconcat-filename' (GPL).
47482         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47483         (License): Change to LGPLv2+.
47484         * modules/xconcat-filename: New file.
47485         * lib/concat-filename.h (concatenated_filename): Change specification.
47486         (xconcatenated_filename): New declaration.
47487         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47488         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47489         memory situations.
47490         * lib/xconcat-filename.c: New file.
47491         * NEWS: Mention the change.
47492         * lib/findprog.c: Include concat-filename.h, not filename.h.
47493         (find_in_path): Use xconcatenated_filename instead of
47494         concatenated_filename.
47495         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47496         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47497         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47498         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47499         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47500         instead of concatenated_filename.
47501         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47502         (execute_java_class): Use xconcatenated_filename instead of
47503         concatenated_filename.
47504         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47505         * modules/javacomp (Depends-on): Likewise.
47506         * modules/javaexec (Depends-on): Likewise.
47507
47508 2008-09-01  Bruno Haible  <bruno@clisp.org>
47509
47510         Split module 'filename' into 'filename' and 'concat-filename'.
47511         * modules/filename: Keep only lib/filename.h.
47512         (License): Change to LGPLv2+.
47513         * modules/concat-filename: New file, extracted from modules/filename.
47514         * lib/filename.h (concatenated_filename): Remove declaration.
47515         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47516         * lib/concat-filename.c: Include concat-filename.h.
47517         * NEWS: Mention the change.
47518
47519 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47520
47521         * lib/bitrotate.h (rotl8, rotr8): Add.
47522
47523         * modules/bitrotate (configure.ac): Need
47524         AC_REQUIRE([AC_C_INLINE]).
47525         (Description): Mention stdint.h.  Reported by Bruno Haible
47526         <bruno@clisp.org>.
47527
47528         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47529         Paolo Bonzini <bonzini@gnu.org>.
47530
47531 2008-08-31  Bruno Haible  <bruno@clisp.org>
47532
47533         Assume Solaris specific bi-arch conventions on Solaris systems.
47534         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47535         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47536         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47537         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47538         like acl_libdirstem.
47539         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47540         acl_libdirstem.
47541         * NEWS: Mention the change.
47542         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47543
47544 2008-08-31  Jim Meyering  <meyering@redhat.com>
47545
47546         * lib/strftime.h: Add comments describing the two added arguments.
47547
47548         remove duplicate #include directives
47549         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47550         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47551
47552 2008-08-31  Bruno Haible  <bruno@clisp.org>
47553
47554         New module 'sigpipe-die'.
47555         * modules/sigpipe-die: New file.
47556         * lib/sigpipe-die.h: New file.
47557         * lib/sigpipe-die.c: New file.
47558         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47559
47560 2008-08-31  Bruno Haible  <bruno@clisp.org>
47561
47562         Don't override previously installed signal handlers.
47563         * lib/fatal-signal.c (saved_sigactions): New variable.
47564         (uninstall_handlers): Reset the signal to the saved handler, not
47565         to SIG_DFL (except when ignored).
47566         (install_handlers): Save the previous handlers.
47567
47568 2008-08-30  Bruno Haible  <bruno@clisp.org>
47569
47570         * gnulib-tool (func_reset_sigpipe): New function.
47571         (func_get_automake_snippet, func_modules_transitive_closure,
47572         func_import): Invoke it before a join command that reads from stdin,
47573         to avoid "echo: write error: Broken pipe" error messages on stderr.
47574         Reported by Sam Steingold <sds@gnu.org>.
47575
47576 2008-08-30  Bruno Haible  <bruno@clisp.org>
47577
47578         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47579         Code copied from m4/open.m4.
47580         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47581         access and the filename ends in a slash. Code copied from lib/open.c.
47582         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47583         * tests/test-fopen.c (main): Check against bug with trailing slash.
47584
47585 2008-08-29  Bruno Haible  <bruno@clisp.org>
47586
47587         Avoid some "gcc -pedantic" warnings.
47588         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47589         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47590         * lib/dirent.in.h: Likewise.
47591         * lib/fcntl.in.h: Likewise.
47592         * lib/float.in.h: Likewise.
47593         * lib/iconv.in.h: Likewise.
47594         * lib/inttypes.in.h: Likewise.
47595         * lib/locale.in.h: Likewise.
47596         * lib/math.in.h: Likewise.
47597         * lib/netinet_in.in.h: Likewise.
47598         * lib/search.in.h: Likewise.
47599         * lib/signal.in.h: Likewise.
47600         * lib/stdarg.in.h: Likewise.
47601         * lib/stdint.in.h: Likewise.
47602         * lib/stdio.in.h: Likewise.
47603         * lib/stdlib.in.h: Likewise.
47604         * lib/string.in.h: Likewise.
47605         * lib/strings.in.h: Likewise.
47606         * lib/sys_select.in.h: Likewise.
47607         * lib/sys_socket.in.h: Likewise.
47608         * lib/sys_stat.in.h: Likewise.
47609         * lib/sys_time.in.h: Likewise.
47610         * lib/sysexits.in.h: Likewise.
47611         * lib/time.in.h: Likewise.
47612         * lib/unistd.in.h: Likewise.
47613         * lib/wchar.in.h: Likewise.
47614         * lib/wctype.in.h: Likewise.
47615         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47616         * modules/fchdir (Makefile.am): Likewise.
47617         * modules/fcntl (Makefile.am): Likewise.
47618         * modules/float (Makefile.am): Likewise.
47619         * modules/iconv_open (Makefile.am): Likewise.
47620         * modules/inttypes (Makefile.am): Likewise.
47621         * modules/locale (Makefile.am): Likewise.
47622         * modules/math (Makefile.am): Likewise.
47623         * modules/netinet_in (Makefile.am): Likewise.
47624         * modules/search (Makefile.am): Likewise.
47625         * modules/signal (Makefile.am): Likewise.
47626         * modules/stdarg (Makefile.am): Likewise.
47627         * modules/stdint (Makefile.am): Likewise.
47628         * modules/stdio (Makefile.am): Likewise.
47629         * modules/stdlib (Makefile.am): Likewise.
47630         * modules/string (Makefile.am): Likewise.
47631         * modules/strings (Makefile.am): Likewise.
47632         * modules/sys_select (Makefile.am): Likewise.
47633         * modules/sys_socket (Makefile.am): Likewise.
47634         * modules/sys_stat (Makefile.am): Likewise.
47635         * modules/sys_time (Makefile.am): Likewise.
47636         * modules/sysexits (Makefile.am): Likewise.
47637         * modules/time (Makefile.am): Likewise.
47638         * modules/unistd (Makefile.am): Likewise.
47639         * modules/wchar (Makefile.am): Likewise.
47640         * modules/wctype (Makefile.am): Likewise.
47641         Reported by Reuben Thomas <rrt@sc3d.org>.
47642
47643 2008-08-29  Bruno Haible  <bruno@clisp.org>
47644
47645         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47646         any more.
47647
47648 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47649
47650         * MODULES.html.sh (Misc): Add bitrotate.
47651
47652         * modules/bitrotate: New file.
47653
47654         * lib/bitrotate.h: New file.
47655
47656         * modules/bitrotate-tests: New file.
47657
47658         * tests/test-bitrotate.c: New file.
47659
47660         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47661         on the bitrotate module.
47662
47663         * lib/arctwo.c: Use new bitrotate module.
47664
47665 2008-08-29  Jim Meyering  <meyering@redhat.com>
47666
47667         bootstrap: merge changes from coreutils
47668         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47669         of copied files.  Remove a kludge, now that this is fixed.
47670         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47671         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47672         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47673
47674 2008-08-29  Bruno Haible  <bruno@clisp.org>
47675
47676         * MODULES.html.sh: Remove --cvs-urls option.
47677
47678 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47679
47680         maint.mk: adjust to file name change
47681         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47682
47683 2008-08-28  Jim Meyering  <meyering@redhat.com>
47684
47685         * modules/getndelim2 (License): Relicense to LGPLv2+.
47686         Approved by Richard Stallman for the version of 1995, and by
47687         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47688
47689 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47690
47691         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47692         dummy if one is not available.  Do not touch them if
47693         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47694         (getc_maybe_unlocked): New.
47695         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47696
47697 2008-08-26  Eric Blake  <ebb9@byu.net>
47698
47699         doc/INSTALL: resync from autoconf
47700         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47701         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47702         moving...
47703         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47704         * INSTALL: Regenerate.
47705         * INSTALL.ISO: New file.
47706         * INSTALL.UTF-8: Likewise.
47707
47708 2008-08-26  Jim Meyering  <meyering@redhat.com>
47709
47710         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47711         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47712         these definitions conditional, so that they may be overridden, too.
47713
47714 2008-08-26  Bruno Haible  <bruno@clisp.org>
47715
47716         Generate INSTALL file variants with prettier quotes.
47717         * doc/Makefile (INSTALL_PRELUDE): New macro.
47718         (INSTALL): Use it.
47719         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47720
47721 2008-08-26  Bruno Haible  <bruno@clisp.org>
47722
47723         Run makeinfo in an English locale.
47724         * doc/Makefile (MAKEINFO): New variable.
47725
47726 2008-08-26  Bruno Haible  <bruno@clisp.org>
47727
47728         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47729         Suggested by Eric Blake.
47730
47731 2008-08-25  Bruno Haible  <bruno@clisp.org>
47732
47733         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47734
47735 2008-08-25  Eric Blake  <ebb9@byu.net>
47736
47737         c-stack: test that stack overflow can be caught
47738         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47739         that platform allows handling stack overflow; at least OS/2 EMX
47740         has sigaltstack, but crashes before transferring control to
47741         handler on stack overflow.
47742         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47743         check for HAVE_STACK_OVERFLOW_HANDLING.
47744         Reported by Elbert Pol.
47745
47746 2008-08-25  Bruno Haible  <bruno@clisp.org>
47747
47748         * doc/posix-functions/strftime.texi: Fix description of strftime
47749         module.
47750
47751 2008-08-24  Bruno Haible  <bruno@clisp.org>
47752
47753         * tests/uniwidth/test-uc_width2.c: New file.
47754         * tests/uniwidth/test-uc_width2.sh: New file.
47755         * modules/uniwidth/width-tests (Files): Add the new files.
47756         (TESTS): Add uniwidth/test-uc_width2.sh.
47757         (TESTS_ENVIRONMENT): New variable.
47758         (check_PROGRAMS): Add test-uc_width2.
47759         (test_uc_width2_SOURCES): New variable.
47760
47761         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47762         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47763         not 0x00AB.
47764         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47765
47766 2008-08-22  Eric Blake  <ebb9@byu.net>
47767
47768         test-lock, test-tls: mention why a test is skipped
47769         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47770         skipped.
47771         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47772
47773         count-one-bits: relax license
47774         * modules/count-one-bits (License): Relicense to LGPLv2+.
47775         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47776
47777 2008-08-22  Andreas Schwab  <schwab@suse.de>
47778
47779         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47780         Remove spurious space in assignment.
47781
47782 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47783
47784         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47785         Paul Eggert <eggert@CS.UCLA.EDU>.
47786
47787 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47788
47789         * modules/gettext: Add m4/threadlib.m4.
47790
47791 2008-08-19  Eric Blake  <ebb9@byu.net>
47792
47793         test-c-stack: fix compilation failure on FreeBSD 5.0
47794         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47795         headers before <sys/resource.h>.
47796         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47797         the bug.
47798         Reported by Nelson H. F. Beebe.
47799
47800         strverscmp: migrate from "strverscmp.h" to <string.h>
47801         * modules/string (Makefile.am): Add new hooks.
47802         * modules/strverscmp (Files): Remove strverscmp.h.
47803         (Depends-on): Add string.
47804         (configure.ac): Add indicator.
47805         (Include): Mention new header.
47806         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47807         defaults.
47808         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47809         results.
47810         * lib/strverscmp.h: Delete.
47811         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47812         * tests/test-strverscmp.c (includes): Adjust client.
47813         * lib/check-version.c (includes): Likewise.
47814         * NEWS: Document the change.
47815
47816         strverscmp: add unit test
47817         * modules/strverscmp-tests: New file.
47818         * tests/test-strverscmp.c: Likewise.
47819
47820 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47821
47822         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47823         regarding Windows crypto stuff, from Mono.
47824
47825 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47826
47827         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47828         if present, for intel RND.  Return error on failures.
47829
47830 2008-08-18  Ben Pfaff  <blp@gnu.org>
47831
47832         gitlog-to-changelog: give better diagnostic for failed pipe-open
47833         * build-aux/gitlog-to-changelog: Improve error message: suggest
47834         that the version of Git may be too old.
47835
47836 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47837
47838         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47839         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47840
47841 2008-08-18  Bruno Haible  <bruno@clisp.org>
47842
47843         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47844         pthread_in_use().
47845
47846 2008-08-18  Bruno Haible  <bruno@clisp.org>
47847
47848         * lib/glthread/threadlib.c: Include <pthread.h>.
47849
47850 2008-08-18  Bruno Haible  <bruno@clisp.org>
47851
47852         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47853         glthread_recursive_lock_* macros.
47854         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47855         Fix syntax error.
47856
47857 2008-08-18  Bruno Haible  <bruno@clisp.org>
47858
47859         * lib/glthread/thread.c: Avoid forcing a context switch right after
47860         thread creation.
47861
47862 2008-08-17  Bruno Haible  <bruno@clisp.org>
47863
47864         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47865         * lib/glthread/thread.h: Provide Win32 specific implementation.
47866         * modules/thread (Files): Add lib/glthread/thread.c.
47867         (Depends-on): Add lock.
47868         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47869
47870 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47871
47872         New module 'yield'.
47873         * modules/yield: New file.
47874         * lib/glthread/yield.h: New file.
47875         * m4/yield.m4: New file.
47876         * MODULES.html.sh (Multithreading): Add yield.
47877
47878 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47879
47880         New module 'thread'.
47881         * modules/thread: New file.
47882         * lib/glthread/thread.h: New file.
47883         * m4/thread.m4: New file.
47884         * MODULES.html.sh (Multithreading): Add thread.
47885
47886 2008-08-17  Bruno Haible  <bruno@clisp.org>
47887
47888         * lib/glthread/lock.h: Include <stdlib.h> always.
47889         * lib/glthread/tls.h: Likewise.
47890         * lib/glthread/cond.h: Likewise.
47891
47892 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47893
47894         New module 'cond'.
47895         * modules/cond: New file.
47896         * lib/glthread/cond.h: New file.
47897         * lib/glthread/cond.c: New file.
47898         * m4/cond.m4: New file.
47899         * MODULES.html.sh (Multithreading): Add cond.
47900
47901 2008-08-16  Eric Blake  <ebb9@byu.net>
47902
47903         c-stack: fix regression on Irix 5.3 from 2008-06-21
47904         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47905         sa_sigaction...
47906         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47907         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47908         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47909         * modules/signal (Makefile.am): Use the value.
47910         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47911         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47912         * doc/posix-headers/signal.texi (signal.h): Document this
47913         portability issue.
47914         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47915         Reported by Tom G. Christensen.
47916
47917 2008-08-17  Bruno Haible  <bruno@clisp.org>
47918
47919         New module 'threadlib'.
47920         * modules/threadlib: New file.
47921         * lib/glthread/threadlib.c: New file, extracted from
47922         lib/glthread/lock.c.
47923         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47924         functions.
47925         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47926         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47927         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47928         macros.
47929         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47930         (gl_DISABLE_THREADS): Remove macro.
47931         * modules/lock (Files): Remove build-aux/config.rpath.
47932         (Depends-on): Remove havelib. Add threadlib.
47933         (configure.ac-early): Remove section.
47934         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47935         * modules/tls (Depends-on): Remove lock. Add threadlib.
47936         (Link): New section, copied from threadlib.
47937         * MODULES.html.sh (Multithreading): Add threadlib.
47938
47939 2008-08-14  Bruno Haible  <bruno@clisp.org>
47940
47941         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47942         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47943         glthread_rwlock_unlock, glthread_rwlock_destroy,
47944         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47945         glthread_recursive_lock_destroy): Define as macros always.
47946         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47947         glthread_lock_lock.
47948         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47949         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47950         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47951         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47952         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47953         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47954         (glthread_recursive_lock_lock_func): Renamed from
47955         glthread_recursive_lock_lock.
47956         (glthread_recursive_lock_unlock_func): Renamed from
47957         glthread_recursive_lock_unlock.
47958         (glthread_recursive_lock_destroy_func): Renamed from
47959         glthread_recursive_lock_destroy.
47960
47961 2008-08-14  Bruno Haible  <bruno@clisp.org>
47962
47963         * lib/glthread/lock.h: Renamed from lib/lock.h.
47964         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47965         * lib/glthread/tls.h: Renamed from lib/tls.h.
47966         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47967         * lib/fstrcmp.c: Update includes.
47968         * lib/strsignal.c: Update includes.
47969         * modules/lock (Files, Makefile.am): Update.
47970         (Include): Change to "glthread/lock.h".
47971         * modules/tls (Files, Makefile.am): Update.
47972         (Include): Change to "glthread/tls.h".
47973         * tests/test-lock.c: Update includes.
47974         * tests/test-tls.c: Update includes.
47975         * NEWS: Mention the renamed header files.
47976
47977 2008-08-11  Jim Meyering  <meyering@redhat.com>
47978
47979         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47980
47981 2008-08-11  Eric Blake  <ebb9@byu.net>
47982
47983         test-c-stack: avoid C99-ism
47984         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47985         before statement.
47986         Reported by Alain Guibert.
47987
47988 2008-08-10  Jim Meyering  <meyering@redhat.com>
47989
47990         ensure that return value of uinttostr et al are not ignored
47991         * lib/inttostr.h (__GNUC_PREREQ): Define.
47992         (__attribute_warn_unused_result__): Define.
47993         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47994
47995 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47996
47997         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47998         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47999
48000 2008-08-07  Jim Meyering  <meyering@redhat.com>
48001
48002         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48003
48004         * modules/mkstemp (License): Relicense under LGPLv2+.
48005         * modules/tempname (License): Likewise.
48006
48007 2008-08-06  Bruno Haible  <bruno@clisp.org>
48008
48009         * lib/poll.c (poll): Further micro-optimization.
48010
48011 2008-08-06  Jim Meyering  <meyering@redhat.com>
48012
48013         inet_pton.c: use locale-independent tolower
48014         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48015         (inet_pton6): Use c_tolower rather than tolower.
48016         * modules/inet_pton (Depends-on): Add c-ctype.
48017
48018 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48019
48020         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48021         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48022
48023 2008-08-06  Jim Meyering  <meyering@redhat.com>
48024
48025         * modules/inet_pton (License): Relicense under LGPLv2+.
48026
48027 2008-08-03  Bruno Haible  <bruno@clisp.org>
48028
48029         Additional non-aborting API for lock and tls.
48030         * lib/lock.h: Include <errno.h>.
48031         (glthread_lock_init): New macro/function.
48032         (gl_lock_init): Define as wrapper around glthread_lock_init.
48033         (glthread_lock_lock): New macro/function.
48034         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48035         (glthread_lock_unlock): New macro/function.
48036         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48037         (glthread_lock_destroy): New macro/function.
48038         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48039         (glthread_rwlock_init): New macro/function.
48040         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48041         (glthread_rwlock_rdlock): New macro/function.
48042         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48043         (glthread_rwlock_wrlock): New macro/function.
48044         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48045         (glthread_rwlock_unlock): New macro/function.
48046         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48047         (glthread_rwlock_destroy): New macro/function.
48048         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48049         (glthread_recursive_lock_init): New macro/function.
48050         (gl_recursive_lock_init): Define as wrapper around
48051         glthread_recursive_lock_init.
48052         (glthread_recursive_lock_lock): New macro/function.
48053         (gl_recursive_lock_lock): Define as wrapper around
48054         glthread_recursive_lock_lock.
48055         (glthread_recursive_lock_unlock): New macro/function.
48056         (gl_recursive_lock_unlock): Define as wrapper around
48057         glthread_recursive_lock_unlock.
48058         (glthread_recursive_lock_destroy): New macro/function.
48059         (gl_recursive_lock_destroy): Define as wrapper around
48060         glthread_recursive_lock_destroy.
48061         (glthread_once): New macro/function.
48062         (gl_once): Define as wrapper around glthread_once.
48063         Update function declarations.
48064         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48065         glthread_rwlock_init. Return error code.
48066         (glthread_rwlock_rdlock_multithreaded): Renamed from
48067         glthread_rwlock_rdlock. Return error code.
48068         (glthread_rwlock_wrlock_multithreaded): Renamed from
48069         glthread_rwlock_wrlock. Return error code.
48070         (glthread_rwlock_unlock_multithreaded): Renamed from
48071         glthread_rwlock_unlock. Return error code.
48072         (glthread_rwlock_destroy_multithreaded): Renamed from
48073         glthread_rwlock_destroy. Return error code.
48074         (glthread_recursive_lock_init_multithreaded): Renamed from
48075         glthread_recursive_lock_init. Return error code.
48076         (glthread_recursive_lock_lock_multithreaded): Renamed from
48077         glthread_recursive_lock_lock. Return error code.
48078         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48079         glthread_recursive_lock_unlock. Return error code.
48080         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48081         glthread_recursive_lock_destroy. Return error code.
48082         (glthread_once_call): Make static.
48083         (glthread_once_multithreaded): Renamed from glthread_once.
48084         * lib/tls.h: Include <errno.h>.
48085         (glthread_tls_key_init): New macro/function.
48086         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48087         (glthread_tls_set): New macro/function.
48088         (gl_tls_set): Define as wrapper around glthread_tls_set.
48089         (glthread_tls_key_destroy): New macro/function.
48090         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48091         Update function declarations.
48092         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48093         glthread_tls_get.
48094         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48095
48096 2008-08-04  Eric Blake  <ebb9@byu.net>
48097
48098         gnumakefile: use space, not TAB, outside of targets
48099         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48100
48101 2008-08-02  Jim Meyering  <meyering@redhat.com>
48102
48103         getdate.y: avoid locale-dependent date parsing failure
48104         In Turkish locales, getdate would fail to recognize keywords
48105         containing a lowercase "i".  The solution is not to rely on
48106         locale-sensitive case-conversion.
48107         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48108         (lookup_word): Use c_toupper in place of toupper.
48109         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48110         Reported by Vefa Bicakci <bicave@superonline.com> in
48111         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48112         * modules/getdate (Depends-on): Add c-ctype.
48113
48114 2008-08-02  Bruno Haible  <bruno@clisp.org>
48115
48116         * gnulib-tool (func_import): When updating or creating a .gitignore
48117         file, prepend each added line with a slash, and ignore leading slashes
48118         from the existing lines.
48119         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48120
48121 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48122
48123         Portability fix for GNU make 3.79.1.
48124         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48125         versions do not understand.
48126
48127 2008-08-01  Bruno Haible  <bruno@clisp.org>
48128
48129         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48130         * tests/test-isnanf.h (zero): New variable.
48131         (main): Avoid literal -0.0f.
48132         * tests/test-isnand.h (zero): New variable.
48133         (main): Avoid literal -0.0.
48134         * tests/test-isnanl.h (zero): New variable.
48135         (main): Avoid literal -0.0L.
48136         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48137         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48138         -0.0, -0.0L.
48139         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48140         (test_signbitd): Avoid literal -0.0.
48141         (test_signbitl): Avoid literal -0.0L.
48142         * tests/test-ceilf1.c (zero): New variable.
48143         (main): Avoid literal -0.0f.
48144         * tests/test-ceill.c (zero): New variable.
48145         (main): Avoid literal -0.0L.
48146         * tests/test-floorf1.c (zero): New variable.
48147         (main): Avoid literal -0.0f.
48148         * tests/test-floorl.c (zero): New variable.
48149         (main): Avoid literal -0.0L.
48150         * tests/test-roundf1.c (zero): New variable.
48151         (main): Avoid literal -0.0f.
48152         * tests/test-round1.c (zero): New variable.
48153         (main): Avoid literal -0.0.
48154         * tests/test-roundl.c (zero): New variable.
48155         (main): Avoid literal -0.0L.
48156         * tests/test-truncf1.c (zero): New variable.
48157         (main): Avoid literal -0.0f.
48158         * tests/test-trunc1.c (zero): New variable.
48159         (main): Avoid literal -0.0.
48160         * tests/test-truncl.c (zero): New variable.
48161         (main): Avoid literal -0.0L.
48162         * tests/test-frexp.c (zero): New variable.
48163         (main): Avoid literal -0.0.
48164         * tests/test-frexpl.c (zero): New variable.
48165         (main): Avoid literal -0.0L.
48166         * tests/test-ldexpl.c (zero): New variable.
48167         (main): Avoid literal -0.0L.
48168         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48169         (zerod, zerol): New variables.
48170         (test_function): Avoid literals -0.0, -0.0L.
48171         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48172         (zerod, zerol): New variables.
48173         (test_function): Avoid literals -0.0, -0.0L.
48174         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48175         (zerod, zerol): New variables.
48176         (test_function): Avoid literals -0.0, -0.0L.
48177         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48178         (zerod, zerol): New variables.
48179         (test_function): Avoid literals -0.0, -0.0L.
48180         * tests/test-strtod.c (zero): New variable.
48181         (main): Avoid literal -0.0.
48182         Reported by Jonathan C. Patschke <jp@centtech.com>.
48183
48184 2008-07-31  Jim Meyering  <meyering@redhat.com>
48185
48186         sha256.h: correct definition of SHA224_DIGEST_SIZE
48187         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48188         Reported by Paulie Pena IV <paulie4@gmail.com>.
48189         Define as 224 / 8, rather than as a literal.
48190         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48191         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48192         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48193
48194 2008-07-31  Bruno Haible  <bruno@clisp.org>
48195
48196         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48197         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48198         Reported by Jonathan Patschke <jp@centtech.com>.
48199
48200 2008-07-31  Bruno Haible  <bruno@clisp.org>
48201
48202         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48203         Reported by Paolo Bonzini <bonzini@gnu.org>.
48204
48205 2008-07-30  Eric Blake  <ebb9@byu.net>
48206
48207         test-strtod: allow compilation without -lm
48208         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48209         Reported by Dennis Clarke <blastwave@gmail.com>.
48210
48211 2008-07-28  Jim Meyering  <meyering@redhat.com>
48212
48213         bootstrap: work also when there are no .po files in po/
48214         * build-aux/bootstrap (update_po_files): Complete the change
48215         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48216
48217 2008-07-27  Jim Meyering  <meyering@redhat.com>
48218
48219         * users.txt: Add zile.
48220
48221 2008-07-26  Ben Pfaff  <blp@gnu.org>
48222
48223         Add missing dependencies on new m4/exponent[fdl].m4 files.
48224         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48225         * modules/isnand-nolibm: Add m4/exponentd.m4.
48226         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48227         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48228         m4/isnan[fdl].m4, because the macros actually used moved.
48229         Reported by Jim Meyering.
48230
48231 2008-07-14  Ben Pfaff  <blp@gnu.org>
48232
48233         Add isinf module.
48234         * lib/isinf.c: New file.
48235         * lib/math.in.h: Define isinf macro if we have decided to replace
48236         it.
48237         * m4/isinf.m4: New file.
48238         * m4/math_h.m4: Initialize and substitute variables for isinf
48239         module.
48240         * modules/isinf: New file.
48241         * modules/isinf-tests: New file.
48242         * modules/math: Add substitutions for new module.
48243         * tests/test-isinf.c: New file.
48244         * doc/posix-functions/isinf.texi: Mention new module.
48245         * MODULES.html.sh: Mention new module.
48246
48247 2008-07-14  Ben Pfaff  <blp@gnu.org>
48248
48249         Factor out some macros for use by additional modules.
48250         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48251         exponentf.m4.
48252         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48253         exponentd.m4.
48254         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48255         file exponentl.m4.
48256         * m4/exponentf.m4: New file.
48257         * m4/exponentd.m4: New file.
48258         * m4/exponentl.m4: New file.
48259         * modules/isnanf: Use new file m4/exponentf.m4.
48260         * modules/isnand: Use new file m4/exponentd.m4.
48261         * modules/isnanl: Use new file m4/exponentl.m4.
48262
48263 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48264
48265         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48266         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48267         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48268         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48269
48270         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48271         readlink on platforms without PATH_MAX.
48272
48273 2008-07-21  Eric Blake  <ebb9@byu.net>
48274
48275         Warn, not fail, on stale version.
48276         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48277
48278         Don't allow installation with stale devel version number.
48279         * top/GNUmakefile (_is-install-target): New macro.
48280         (_curr-ver): Forbid installation with stale version number.
48281
48282 2008-07-20  Bruno Haible  <bruno@clisp.org>
48283
48284         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48285         TESTS_ENVIRONMENT.
48286         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48287
48288 2008-07-20  Bruno Haible  <bruno@clisp.org>
48289
48290         * lib/c-stack.h (c_stack_action): Add documentation.
48291         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48292
48293 2008-07-20  Bruno Haible  <bruno@clisp.org>
48294
48295         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48296         * modules/readlink (License): Likewise.
48297
48298 2008-07-17  Eric Blake  <ebb9@byu.net>
48299
48300         * modules/c-stack (Link): Fix typo.
48301
48302         Make c-stack use libsigsegv, when available.
48303         * modules/c-stack (Depends-on): Add libsigsegv.
48304         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48305         needed.
48306         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48307         (segv_handler, overflow_handler, c_stack_action)
48308         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48309         implementation when libsigsegv is available, but only when using
48310         the library is necessary.
48311         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48312         comment, explaining why XSI check fails on Linux.
48313         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48314         * tests/test-c-stack2.sh: Tweak skip message.
48315         * NEWS: Document new link-time requirements.
48316
48317 2008-07-16  Eric Blake  <ebb9@byu.net>
48318
48319         c-stack: Expose false positives when not using libsigsegv.
48320         * modules/c-stack-tests (Files): Expand test.
48321         * tests/test-c-stack.c (main): Add means to conditionally trigger
48322         non-overflow SIGSEGV.
48323         * tests/test-c-stack2.sh: New file.
48324
48325 2008-07-14  Bruno Haible  <bruno@clisp.org>
48326
48327         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48328         Reported by Eric Blake.
48329
48330 2008-07-14  Sam Steingold  <sds@gnu.org>
48331             Bruno Haible  <bruno@clisp.org>
48332
48333         New module libsigsegv.
48334         * modules/libsigsegv: New file.
48335         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48336         modifications.
48337         * MODULES.html.sh (Signal handling): New section.
48338
48339 2008-07-14  Bruno Haible  <bruno@clisp.org>
48340
48341         * modules/unictype/ctype-* (Description): Add the word "function".
48342         Improves the resulting doc in MODULES.html.
48343
48344 2008-07-12  Ben Pfaff  <blp@gnu.org>
48345
48346         Add longlong module.
48347         * modules/longlong: New file.
48348
48349 2008-07-12  Bruno Haible  <bruno@clisp.org>
48350
48351         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48352         to empty.
48353
48354 2008-07-10  Ben Pfaff  <blp@gnu.org>
48355
48356         Add isnan module.
48357         * doc/posix-functions/isnan.texi: Mention new module.
48358         * lib/math.in.h: Define isnan macro if we have decided to replace
48359         it.
48360         * m4/isnan.m4: New file.
48361         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48362         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48363         also.
48364         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48365         redundancy.
48366         * m4/math_h.m4: Initialize and substitute variables for isnan
48367         module.
48368         * modules/isnan: New file.
48369         * modules/isnan-tests: New file.
48370         * modules/math: Add substitutions for new module.
48371         * tests/test-isnan.c: New file.
48372         * MODULES.html.sh: Mention new module.
48373
48374 2008-07-10  Ben Pfaff  <blp@gnu.org>
48375
48376         Add isnanf module.
48377         * lib/isnanf.m4: New file.
48378         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48379         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48380         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48381         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48382         * modules/isnanf: New file.
48383         * modules/isnanf-tests: New file.
48384         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48385         files.
48386         * tests/test-isnanf-nolibm.c: factored most of its contents into
48387         new file tests/test-isnanf.h.
48388         * tests/test-isnanf.h: New file.
48389         * tests/test-isnanf.c: New file.
48390         * MODULES.html.sh: Mention new module.
48391         * doc/glibc-functions/isnanf.texi: Mention new module.
48392
48393 2008-07-10  Ben Pfaff  <blp@gnu.org>
48394
48395         Add isnand module.
48396         * lib/isnand.h: New file.
48397         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48398         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48399         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48400         functionality also.
48401         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48402         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48403         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48404         * modules/isnand: New file.
48405         * modules/isnand-tests: New file.
48406         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48407         files.
48408         * tests/test-isnand-nolibm.c: factored most of its contents into
48409         new file tests/test-isnand.h.
48410         * tests/test-isnand.h: New file.
48411         * tests/test-isnand.c: New file.
48412         * MODULES.html.sh: Mention new module.
48413
48414 2008-07-10  Ben Pfaff  <blp@gnu.org>
48415
48416         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48417         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48418         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48419         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48420         * modules/isnanf-nolibm: Update references to renamed files.
48421         * modules/isnand-nolibm: Likewise.
48422         * modules/isnanf-nolibm-tests: Likewise.
48423         * modules/isnand-nolibm-tests: Likewise.
48424         * lib/frexp.c: Likewise.
48425         * lib/isfinite.c: Likewise.
48426         * lib/signbitd.c: Likewise.
48427         * lib/signbitf.c: Likewise.
48428         * lib/vasnprintf.c: Likewise.
48429         * tests/test-ceilf1.c: Likewise.
48430         * tests/test-ceilf2.c: Likewise.
48431         * tests/test-floorf1.c: Likewise.
48432         * tests/test-floorf2.c: Likewise.
48433         * tests/test-frexp.c: Likewise.
48434         * tests/test-round1.c: Likewise.
48435         * tests/test-round2.c: Likewise.
48436         * tests/test-roundf1.c: Likewise.
48437         * tests/test-strtod.c: Likewise.
48438         * tests/test-trunc1.c: Likewise.
48439         * tests/test-trunc2.c: Likewise.
48440         * tests/test-truncf1.c: Likewise.
48441         * tests/test-truncf2.c: Likewise.
48442         * NEWS: Mention the renamed header files.
48443
48444 2008-07-11  Jim Meyering  <meyering@redhat.com>
48445
48446         vc-list-files: make the last-resort awk code more portable
48447         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48448         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48449         does not support it.
48450
48451 2008-07-10  Eric Blake  <ebb9@byu.net>
48452
48453         Work with tar's bootstrap.
48454         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48455         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48456         an m4 comment.
48457
48458 2008-07-09  Jim Meyering  <meyering@redhat.com>
48459
48460         posix-shell.m4: fix typo that made this test malfunction
48461         * m4/posix-shell.m4: Remove capitalization in variable name.
48462
48463 2008-07-08  Bruno Haible  <bruno@clisp.org>
48464
48465         * m4/onceonly.m4: Update comments.
48466         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48467
48468 2008-07-04  Jim Meyering  <meyering@redhat.com>
48469
48470         * users.txt: Add vc-dwim.
48471         (bison, coreutils): Use the gitweb URL.
48472
48473 2008-07-03  Jim Meyering  <meyering@redhat.com>
48474
48475         * users.txt: Add libffcall.  From Sam Steingold.
48476
48477 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48478
48479         getdate.y: do not ignore TZ with relative day, month or year offset
48480         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48481         relative-date-handling, since otherwise, the latter would clobber the
48482         sole output (an updated Start value) of the tz-handling block.
48483         * tests/test-getdate.c: Tests for the fix
48484
48485 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48486
48487         Recognize 'foo_LIBRARIES += libgnu.a'.
48488         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48489         makefile snippet has already specified an installation location,
48490         also using '+='.
48491
48492 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48493
48494         getdate.y: factor out common actions
48495         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48496         Use them in place of open-coded actions.
48497
48498 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48499
48500         Add self-test for getdate module.
48501         * modules/getdate-tests: New file.
48502         * tests/test-getdate.c: New file.
48503
48504 2008-06-29  Bruno Haible  <bruno@clisp.org>
48505
48506         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48507         .gitignore.
48508         Reported by Sylvain Beucler <beuc@beuc.net>.
48509
48510 2008-06-29  Bruno Haible  <bruno@clisp.org>
48511
48512         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48513         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48514
48515 2008-06-29  Bruno Haible  <bruno@clisp.org>
48516
48517         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48518         EXTRA_DIST.
48519         Reported by Sylvain Beucler <beuc@beuc.net>.
48520
48521 2008-06-26  Jim Meyering  <meyering@redhat.com>
48522
48523         make several modules depend on the "open" module
48524         This provides slightly increased consistency when opening-for-write
48525         the name of a non-directory spelled with a trailing slash.
48526         * modules/chdir-safer: Likewise.
48527         * modules/chown: Likewise.
48528         * modules/clean-temp: Likewise.
48529         * modules/copy-file: Likewise.
48530         * modules/fchdir: Likewise.
48531         * modules/fcntl-safer: Likewise.
48532         * modules/pipe: Likewise.
48533         * modules/utime: Likewise.
48534         Prompted by Eric Blake and Bruno Haible.
48535
48536 2008-06-24  Andreas Schwab  <schwab@suse.de>
48537
48538         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48539         literals can be used as initializers for global variables.
48540
48541 2008-06-23  Eric Blake  <ebb9@byu.net>
48542
48543         Make gnulib-cache.m4 easier to diff.
48544         * gnulib-tool (func_import): Allow newlines when reading cached
48545         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48546
48547 2008-06-23  Bruno Haible  <bruno@clisp.org>
48548
48549         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48550         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48551         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48552         m4/signalblocking.m4.
48553         (gl_PREREQ_SIGACTION): Don't invoke it.
48554         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48555         gl_PREREQ_SIG_HANDLER_H.
48556         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48557         Don't check for sigaction here.
48558
48559 2008-06-23  Bruno Haible  <bruno@clisp.org>
48560
48561         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48562         (install_handlers): Don't set the SA_RESETHAND flag.
48563
48564 2008-06-23  Bruno Haible  <bruno@clisp.org>
48565
48566         * m4/sigaction.m4: Comment fixes.
48567         * lib/signal.in.h: Likewise.
48568
48569 2008-06-23  Eric Blake  <ebb9@byu.net>
48570
48571         Fix typo.
48572         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48573
48574         Avoid SA_ namespace.
48575         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48576         Reported by Ralf Wildenhues.
48577
48578         Avoid test failure due to SA_RESTORER.
48579         * tests/test-sigaction.c (SA_MASK): New macro.
48580         (main): Avoid failing due to extension flags being set.
48581         Reported by Jim Meyering.
48582
48583         Revert use of sig-handler.h in sigprocmask.c.
48584         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48585         it requires the existence of struct sigaction.
48586         * lib/sigprocmask.c (handler_t): Restore typedef.
48587         (rpl_signal, old_handlers): Use local type.
48588
48589 2008-06-22  Bruno Haible  <bruno@clisp.org>
48590
48591         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48592         conditionally.
48593         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48594
48595 2008-06-22  Bruno Haible  <bruno@clisp.org>
48596
48597         * doc/posix-functions/siginterrupt.texi: Move note.
48598
48599         * lib/signal.in.h (SA_RESTART): New macro.
48600         * lib/sigaction.c: Update comment.
48601
48602         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48603
48604         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48605         (gl_PREREQ_SIGPROCMASK): Invoke it.
48606         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48607
48608         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48609
48610         * lib/sigprocmask.c: Update a comment.
48611
48612 2008-06-21  Eric Blake  <ebb9@byu.net>
48613
48614         Use sigaction module rather than signal().
48615         * modules/c-stack (Depends-on): Add sigaction.
48616         * modules/fatal-signal (Depends-on): Likewise.
48617         * modules/nanosleep (Depends-on): Likewise.
48618         * modules/sigprocmask (Files): Add sig-handler.h.
48619         * modules/sigaction (Files): Likewise.
48620         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48621         Eggert.
48622         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48623         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48624         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48625         (init_fatal_signals): Likewise.
48626         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48627         (siginterrupt): Delete fallback.
48628         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48629         instead.
48630         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48631         siginterrupt.
48632
48633         New module sigaction, for mingw.
48634         * modules/sigaction: New module...
48635         * modules/sigaction-tests: ...and its test.
48636         * m4/sigaction.m4: New file.
48637         * lib/sigaction.c: Likewise.
48638         * tests/test-sigaction.c: Likewise.
48639         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48640         * modules/signal (Makefile.am): Likewise.
48641         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48642         needed.
48643         * doc/posix-headers/signal.texi (signal.h): Mention provided
48644         types.
48645         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48646         that sigaction is preferable.
48647         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48648         module.
48649         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48650         sigaction.
48651
48652         Improve robustness of sigprocmask by overriding signal.
48653         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48654         is in use.
48655         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48656         (SIGKILL, SIGSTOP): Provide fallbacks.
48657         (rpl_signal): Implement.
48658         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48659         signal can be called inside handlers.
48660
48661         Fix nanosleep module on mingw.
48662         * modules/nanosleep (Depends-on): Add sys_select.
48663         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48664
48665         Fix licensing of sigprocmask.
48666         * modules/raise (License): Relicense as LGPL.
48667
48668 2008-06-21  Bruno Haible  <bruno@clisp.org>
48669
48670         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48671         result if it contains question marks.
48672         Reported by Michael Geng <linux@michaelgeng.de>.
48673
48674 2008-06-19  Bruno Haible  <bruno@clisp.org>
48675
48676         Fix CVS-ism.
48677         * doc/gnulib.texi: Include updated-stamp.texi.
48678         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48679         (updated-stamp.texi): New rule.
48680         (gnulib.info): Depend on it.
48681         * doc/.gitignore: Add updated-stamp.texi.
48682         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48683
48684 2008-06-19  Bruno Haible  <bruno@clisp.org>
48685
48686         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48687         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48688
48689 2008-06-19  Eric Blake  <ebb9@byu.net>
48690
48691         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48692         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48693         Reported by Stepan Kasal.
48694
48695 2008-06-18  Bruno Haible  <bruno@clisp.org>
48696
48697         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48698         Reported by Eric Blake.
48699
48700 2008-06-18  Eric Blake  <ebb9@byu.net>
48701
48702         Work around cygwin 1.5.25 strsignal bug.
48703         * tests/test-strsignal.c: Allow for const char *.
48704         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48705
48706 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48707
48708         * users.txt: Update URL to article and add author/date
48709         information.
48710
48711 2008-06-17  Bruno Haible  <bruno@clisp.org>
48712
48713         New macro gl_DISABLE_THREADS.
48714         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48715         if the user did not pass --enable-threads or --disable-threads option.
48716         (gl_DISABLE_THREADS): New macro.
48717         Reported by Eric Blake <ebb9@byu.net>.
48718
48719 2008-06-17  Bruno Haible  <bruno@clisp.org>
48720
48721         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48722         when the macro ignores it.
48723         Based on a patch by Eric Blake <ebb9@byu.net>.
48724
48725 2008-06-17  Bruno Haible  <bruno@clisp.org>
48726
48727         * modules/tls (License): Change to LGPLv2+.
48728         Reported by Eric Blake.
48729
48730 2008-06-17  Eric Blake  <ebb9@byu.net>
48731
48732         Simplify c-stack prerequisites.
48733         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48734         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48735         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48736         check.
48737         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48738         <sys/resource.h>.
48739
48740         Move c-stack test into testsuite.
48741         * modules/c-stack-tests: New file.
48742         * lib/c-stack.c [DEBUG]: Move test program...
48743         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48744         fail test if sigaltstack is lacking.
48745         * tests/test-c-stack.sh: New driver file.
48746
48747 2008-06-16  Eric Blake  <ebb9@byu.net>
48748
48749         Use raise module consistently.
48750         * modules/fatal-signal (Depends-on): Add raise.
48751         * modules/sigprocmask (Depends-on): Likewise.
48752         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48753         * lib/sigprocmask.c (sigprocmask): Likewise.
48754         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48755         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48756
48757         Fix compliance bug in sigpending.
48758         * lib/sigprocmask.c (sigpending): Return pending array via
48759         parameter, not return value.
48760
48761 2008-06-14  Eric Blake  <ebb9@byu.net>
48762
48763         Improve obstack-printf test code.
48764         * tests/test-obstack-printf.c (test_function): Fix comment, and
48765         simplify usage of obstack_* in macros.  Add a test for coverage.
48766         Reported by Bruno Haible.
48767
48768 2008-06-14  Bruno Haible  <bruno@clisp.org>
48769
48770         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48771         array size as a constant, not as a const variable.
48772         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48773         AC_USE_SYSTEM_EXTENSIONS.
48774         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48775         Test whether the obstack_printf function actually exists.
48776         * modules/obstack-printf (Depends-on): Add extensions.
48777         (Include): Remove obstack.h.
48778         * modules/obstack-printf-posix (Depends-on): Add extensions.
48779         (Include): Remove obstack.h.
48780
48781 2008-06-13  Eric Blake  <ebb9@byu.net>
48782
48783         Add obstack-printf and obstack-printf-posix modules.
48784         * modules/obstack-printf: New file.
48785         * modules/obstack-printf-posix: Likewise.
48786         * MODULES.html.sh (Misc): Mention them.
48787         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48788         Likewise.
48789         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48790         Likewise.
48791         * modules/stdio (Makefile.am): Accomodate new modules.
48792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48793         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48794         Declare.
48795         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48796         functions.
48797         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48798         (gl_REPLACE_OBSTACK_PRINTF): New macros
48799         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48800         * tests/test-obstack-printf.c: New file.
48801         * modules/obstack-printf-tests: Likewise.
48802         * modules/obstack-printf-posix-tests: Likewise.
48803
48804 2008-06-11  Bruno Haible  <bruno@clisp.org>
48805
48806         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48807         * lib/open.c: Include errno.h.
48808         (open): Fail when attempting to write to a file that has a trailing
48809         slash.
48810         * tests/test-open.c (main): Test against trailing slash bug.
48811         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48812
48813 2008-06-10  Bruno Haible  <bruno@clisp.org>
48814
48815         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48816         for $? to work inside the trap command, with various /bin/sh-s.
48817         * tests/test-vc-list-files-cvs.sh: Likewise.
48818
48819 2008-06-10  Bruno Haible  <bruno@clisp.org>
48820
48821         * lib/acl-internal.h: Don't include gettext.h here.
48822         * lib/set-mode-acl.c: Include gettext.h here.
48823         * lib/copy-acl.c: Likewise.
48824
48825 2008-06-10  Bruno Haible  <bruno@clisp.org>
48826
48827         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48828         * lib/wait-process.c (wait_subprocess): Likewise.
48829         * lib/execute.h (execute): Add termsigp argument.
48830         * lib/execute.c (execute): Likewise.
48831         * lib/csharpcomp.c (compile_csharp_using_pnet,
48832         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48833         * lib/csharpexec.c (execute_csharp_using_pnet,
48834         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48835         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48836         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48837         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48838         is_jikes_present): Update.
48839         * lib/javaexec.c (execute_java_class): Update.
48840         * lib/javaversion.c (execute_and_read_line): Update.
48841         * NEWS: Document the changes.
48842         Reported by Eric Blake.
48843
48844 2008-06-10  Eric Blake  <ebb9@byu.net>
48845
48846         Add missing include.
48847         * tests/test-strstr.c (includes): Add <signal.h>.
48848         * tests/test-strcasestr.c (includes): Likewise.
48849         * tests/test-memmem.c (includes): Likewise.
48850
48851 2008-06-10  Bruno Haible  <bruno@clisp.org>
48852
48853         * lib/wait-process.c (wait_subprocess): Add an assertion.
48854
48855 2008-06-10  Bruno Haible  <bruno@clisp.org>
48856
48857         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48858
48859 2008-06-10  Bruno Haible  <bruno@clisp.org>
48860
48861         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48862         using alarm().
48863         * tests/test-strcasestr.c (main): Likewise.
48864         * tests/test-strstr.c (main): Likewise.
48865
48866 2008-06-09  Bruno Haible  <bruno@clisp.org>
48867
48868         Work around the Solaris 10 ACE ACLs ABI change.
48869         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48870         declare if ACL_NO_TRIVIAL is present.
48871         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48872         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48873         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48874         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48875         define if ACL_NO_TRIVIAL is present.
48876         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48877         and use the current ABI.
48878         (file_has_acl): Use same #if condition as elsewhere.
48879         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48880         in use, and use the current ABI.
48881         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48882         Reported by Jim Meyering.
48883
48884 2008-06-09  Eric Blake  <ebb9@byu.net>
48885
48886         Work around environments that (stupidly) ignore SIGALRM.
48887         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48888         before using alarm().
48889         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48890         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48891         Reported by Ian Beckwith <ianb@erislabs.net>.
48892
48893         Produce autobuild blurb earlier in log.
48894         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48895
48896 2008-06-09  Jim Meyering  <meyering@redhat.com>
48897         and OndÅ™ej Vašík  <ovasik@redhat.com>
48898
48899         utimens.c: correct kernel bug work-around
48900         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48901         failure, not success, and the kernel bug we're trying to work
48902         around affects not just the utimensat call, but also the fallback
48903         futimens call.
48904         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48905         not success.
48906         [HAVE_FUTIMENS]: Use the same work-around, here.
48907
48908 2008-06-09  Jim Meyering  <meyering@redhat.com>
48909
48910         add more guards around definition of ACE_-related code
48911         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48912         ALLOW and ACE_OWNER are also defined.
48913
48914 2008-06-08  Bruno Haible  <bruno@clisp.org>
48915
48916         * lib/acl-internal.h: Add me as co-author.
48917         * lib/file-has-acl.c: Likewise.
48918         * lib/set-mode-acl.c: Likewise.
48919         * lib/copy-acl.c: Likewise.
48920
48921 2008-06-08  Bruno Haible  <bruno@clisp.org>
48922
48923         Add support for AIX ACLs.
48924         * lib/acl-internal.h (acl_nontrivial): New declaration.
48925         * lib/file-has-acl.c (acl_nontrivial): New function.
48926         (file_has_acl): Add implementation using AIX 4 ACL API.
48927         * lib/set-mode-acl.c (qset_acl): Likewise.
48928         * lib/copy-acl.c (qcopy_acl): Likewise.
48929
48930 2008-06-08  Bruno Haible  <bruno@clisp.org>
48931
48932         Add support for HP-UX ACLs.
48933         * lib/acl-internal.h (acl_nontrivial): New declaration.
48934         * lib/file-has-acl.c (acl_nontrivial): New function.
48935         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48936         * lib/set-mode-acl.c (qset_acl): Likewise.
48937         * lib/copy-acl.c (qcopy_acl): Likewise.
48938
48939 2008-06-08  Bruno Haible  <bruno@clisp.org>
48940
48941         Add support for Cygwin ACLs.
48942         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48943         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48944         the chmod_or_fchmod call.
48945         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48946
48947 2008-06-08  Bruno Haible  <bruno@clisp.org>
48948
48949         Fix bug with setuid modes in Solaris 10+ code.
48950         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48951         succeeded, when the mode contains some special bits.
48952
48953 2008-06-08  Bruno Haible  <bruno@clisp.org>
48954
48955         Add support for Solaris 7..10 ACLs.
48956         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48957         declarations.
48958         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48959         functions.
48960         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48961         * lib/set-mode-acl.c (qset_acl): Likewise.
48962         * lib/copy-acl.c (qcopy_acl): Likewise.
48963
48964 2008-06-08  Bruno Haible  <bruno@clisp.org>
48965
48966         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48967         declaration.
48968         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48969         (acl_access_nontrivial): Remove MacOS X case.
48970         (file_has_acl): Use acl_extended_nontrivial.
48971         * lib/copy-acl.c (qcopy_acl): Likewise.
48972
48973 2008-06-08  Bruno Haible  <bruno@clisp.org>
48974
48975         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48976
48977 2008-06-08  Jim Meyering  <meyering@redhat.com>
48978
48979         * modules/acl (Maintainer): Add Bruno Haible.
48980
48981 2008-06-07  Bruno Haible  <bruno@clisp.org>
48982
48983         Improve support for Tru64 ACLs.
48984         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48985         ACL on OSF/1.
48986
48987 2008-06-07  Bruno Haible  <bruno@clisp.org>
48988
48989         Add support for MacOS X ACLs.
48990         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48991         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48992         * lib/set-mode-acl.c (qset_acl): Likewise.
48993         * lib/copy-acl.c (qcopy_acl): Likewise.
48994
48995 2008-06-07  Bruno Haible  <bruno@clisp.org>
48996
48997         Fix memory leak introduced on 2008-05-22.
48998         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48999         use.
49000
49001 2008-06-07  Bruno Haible  <bruno@clisp.org>
49002
49003         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49004         to construct an empty ACL.
49005
49006 2008-06-07  Bruno Haible  <bruno@clisp.org>
49007
49008         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49009         precisely.
49010         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49011
49012 2008-06-07  Bruno Haible  <bruno@clisp.org>
49013
49014         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49015         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49016
49017 2008-06-07  Bruno Haible  <bruno@clisp.org>
49018
49019         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49020         regardless of POSIX.
49021         * doc/posix-functions/_longjmp.texi: Likewise.
49022         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49023         SystemV platform in this case.
49024
49025 2008-06-06  Eric Blake  <ebb9@byu.net>
49026
49027         Document abort() bugs.
49028         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49029
49030         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49031         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49032         sigsetjmp.
49033         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49034         siglongjmp, but only as a macro.
49035         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49036         is obsolete.
49037         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49038
49039         Tweak documentation to cover cygwin argz bugs.
49040         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49041         argz bug fix; no code change needed since no cygwin releases
49042         occurred between the last fix and the bug being tested.
49043         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49044         module and recently fixed cygwin bugs.
49045         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49046         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49047         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49048         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49049         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49050         Likewise.
49051         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49052         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49053         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49054         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49055         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49056         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49057         Likewise.
49058
49059         Avoid gcc warning on cygwin.
49060         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49061         !ACL_NO_TRIVIAL]: Avoid unused variable.
49062
49063 2008-06-05  Eric Blake  <ebb9@byu.net>
49064
49065         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49066         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49067         git-version-gen fails to come up with a version.
49068         Reported by Simon Josefsson.
49069
49070 2008-06-05  Jim Meyering  <meyering@redhat.com>
49071             Paul Eggert  <eggert@cs.ucla.edu>
49072
49073         utimens.c: work around a probable Linux kernel bug
49074         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49075         appears to be a kernel bug that causes utimensat to return 280
49076         instead of 0, indicating success.
49077
49078 2008-06-04  Bruno Haible  <bruno@clisp.org>
49079
49080         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49081         2008-06-01 commit.
49082
49083 2008-06-04  Bruno Haible  <bruno@clisp.org>
49084
49085         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49086         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49087         (file_has_acl): Use it. Save errno afterwards.
49088         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49089
49090 2008-06-03  Bruno Haible  <bruno@clisp.org>
49091
49092         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49093         draft code. Simplify #ifs.
49094         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49095         Put Solaris code after POSIX-draft code. Fix comments regarding
49096         Solaris 10, HP-UX. Mention Cygwin.
49097         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49098
49099 2008-06-03  Eric Blake  <ebb9@byu.net>
49100
49101         Provide fallback for older kernels.
49102         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49103         Provide runtime fallback if kernel lacks support.
49104         Reported by Mike Frysinger.
49105
49106 2008-06-02  Bruno Haible  <bruno@clisp.org>
49107
49108         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49109         it exists.
49110
49111 2008-06-02  Bruno Haible  <bruno@clisp.org>
49112
49113         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49114         * lib/copy-acl.c (qcopy_acl): Update comment.
49115
49116 2008-06-02  Bruno Haible  <bruno@clisp.org>
49117
49118         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49119         like ACL APIs.
49120
49121 2008-06-02  Bruno Haible  <bruno@clisp.org>
49122
49123         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49124         * tests/test-set-mode-acl.sh: Likewise.
49125         * tests/test-copy-acl.sh: Likewise.
49126         * tests/test-copy-file.sh: Likewise.
49127
49128 2008-06-02  Bruno Haible  <bruno@clisp.org>
49129
49130         * tests/test-file-has-acl.sh: Remove unused code.
49131
49132 2008-06-01  Bruno Haible  <bruno@clisp.org>
49133
49134         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49135         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49136         messages.
49137         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49138
49139 2008-06-01  Bruno Haible  <bruno@clisp.org>
49140
49141         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49142         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49143         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49144         APIs.
49145         * modules/acl-tests (configure.ac): Remove tests now contained in
49146         m4/acl.m4.
49147
49148 2008-06-02  Jim Meyering  <meyering@redhat.com>
49149
49150         announce-gen: use a better key-server host name
49151         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49152         it may be more consistently reliable.  Suggested by Werner Koch
49153         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49154
49155 2008-06-01  Bruno Haible  <bruno@clisp.org>
49156
49157         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49158         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49159
49160 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49161
49162         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49163
49164 2008-06-01  Bruno Haible  <bruno@clisp.org>
49165
49166         New ACL tests.
49167         * tests/test-file-has-acl.sh: New file.
49168         * tests/test-file-has-acl.c: New file.
49169         * tests/test-set-mode-acl.sh: New file.
49170         * tests/test-set-mode-acl.c: New file.
49171         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49172         * tests/test-copy-acl.c: New file.
49173         * modules/acl-tests: New file, based on modules/copy-file-tests.
49174         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49175         (Depends-on): Add acl-tests.
49176         (configure.ac): Remove checks.
49177         (Makefile.am): Don't create test-sameacls program here any more.
49178
49179 2008-06-01  Bruno Haible  <bruno@clisp.org>
49180
49181         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49182         * tests/test-sameacls.c: Include progname.h.
49183         (main): Invoke set_program_name. Portability fixes for MacOS X,
49184         Solaris, HP-UX.
49185
49186 2008-06-01  Bruno Haible  <bruno@clisp.org>
49187
49188         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49189         function.
49190         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49191
49192 2008-06-01  Bruno Haible  <bruno@clisp.org>
49193
49194         * modules/rpmatch (Depends-on): Add strdup.
49195
49196 2008-06-01  Bruno Haible  <bruno@clisp.org>
49197
49198         * lib/pipe.c: Include unistd-safer.h.
49199         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49200         * modules/pipe (Depends-on): Add unistd-safer.
49201
49202 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49203
49204         * modules/autobuild (configure.ac): Call AB_INIT.
49205
49206 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49207
49208         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49209         Suggested by Bruno Haible <bruno@clisp.org>.
49210
49211 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49212
49213         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49214         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49215         <bruno@clisp.org>.
49216
49217 2008-05-29  Eric Blake  <ebb9@byu.net>
49218
49219         Prefer new POSIX 200x interfaces over futimesat.
49220         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49221         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49222         when available.
49223         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49224
49225 2008-05-28  Bruno Haible  <bruno@clisp.org>
49226
49227         * modules/stpcpy (License): Change to LGPLv2+.
49228         Requested by David Lutterkort <dlutter@redhat.com>.
49229
49230 2008-05-27  Bruno Haible  <bruno@clisp.org>
49231
49232         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49233         current mingw.
49234         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49235
49236 2008-05-27  Bruno Haible  <bruno@clisp.org>
49237
49238         * modules/iconv_open (Link): New section, from module 'iconv'.
49239         * modules/striconv (Link): Likewise.
49240         * modules/striconveh (Link): Likewise.
49241         * modules/xstriconv (Link): Likewise.
49242         * modules/unicodeio (Link): Likewise.
49243         * modules/propername (Link): Likewise.
49244         Reported by Jim Meyering.
49245
49246 2008-05-26  Jim Meyering  <meyering@redhat.com>
49247
49248         sha256: do not artificially restrict buffer length to be < 2^32
49249         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49250         uint32_t to size_t.
49251         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49252         to match.
49253
49254         avoid unaligned access errors, e.g., on sparc
49255         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49256         direct access through a possibly-unaligned uint64* pointer.
49257         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49258         direct access through a possibly-unaligned uint32* pointer.
49259         Prompted by this patch from Tom "spot" Callaway:
49260         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49261
49262         sha512.c: fix typo in comment
49263         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49264
49265 2008-05-25  Bruno Haible  <bruno@clisp.org>
49266
49267         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49268         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49269         (Makefile.am): Update lib_SOURCES.
49270
49271 2008-05-25  Bruno Haible  <bruno@clisp.org>
49272
49273         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49274
49275 2008-05-25  Jim Meyering  <meyering@redhat.com>
49276
49277         useless-if-before-free: freed expr may have white-space differences
49278         * build-aux/useless-if-before-free: Recognize cases in which the
49279         freed expression differs from the tested one in embedded white
49280         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49281         $1 was used, so we can't make any regexp shy.  Improved tests now
49282         detect this.
49283
49284         useless-if-before-free: accept white space in the expression.
49285         * build-aux/useless-if-before-free: For now, any white space
49286         in the expression must be identical in the free argument.
49287
49288         useless-if-before-free: efficiency tweak
49289         * build-aux/useless-if-before-free: Make the expression-matching
49290         regexp "shy".
49291         Make the *outer* regexp shy, not the expr-matching one.
49292
49293         update code-in-comment to accept cast of free arg
49294         * build-aux/useless-if-before-free: Update regexp.
49295
49296 2008-05-25  Bruno Haible  <bruno@clisp.org>
49297
49298         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49299         * modules/copy-file-tests (Files, Makefile.am): Update.
49300         * tests/test-copy-file.c (func_test_copy): Update.
49301
49302 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49303
49304         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49305
49306 2008-05-23  Bruno Haible  <bruno@clisp.org>
49307
49308         Improve support for ACLs on OSF/1.
49309         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49310         Remove fallback for unknown flavors of ACLs.
49311
49312 2008-05-22  Bruno Haible  <bruno@clisp.org>
49313
49314         Add support for ACLs on OSF/1.
49315         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49316         replacements.
49317         (acl_free_text): New macro fallback.
49318         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49319         acl_free.
49320         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49321         acl_free_text function. Require AC_C_INLINE.
49322
49323 2008-05-22  Bruno Haible  <bruno@clisp.org>
49324
49325         Make copy_acl work on MacOS X 10.5.
49326         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49327         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49328         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49329         If MODE_INSIDE_ACL, don't assume that every system has the same text
49330         representation for ACLs as FreeBSD.
49331         * lib/copy-acl.c (copy_acl): Add support for platforms with
49332         !MODE_INSIDE_ACL.
49333         * lib/file-has-acl.c (file_has_acl): Likewise.
49334         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49335         FreeBSD, MacOS X, or IRIX, respectively.
49336
49337 2008-05-22  Bruno Haible  <bruno@clisp.org>
49338
49339         * lib/acl.h: Don't include <sys/acl.h>.
49340         (GETACLCNT): Move fallback to lib/acl-internal.h.
49341         * lib/acl-internal.h: Include <sys/acl.h> here.
49342         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49343
49344 2008-05-22  Bruno Haible  <bruno@clisp.org>
49345
49346         Split off copy_acl function to separate file.
49347         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49348         * lib/acl.c (copy_acl): Moved function to separate file.
49349         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49350         * modules/acl (Files): Add lib/copy-acl.c.
49351         (Makefiles.am): Augment lib_SOURCES.
49352
49353 2008-05-22  Bruno Haible  <bruno@clisp.org>
49354
49355         * modules/copy-file-tests: New file.
49356         * tests/test-copy-file.sh: New file.
49357         * tests/test-copy-file.c: New file.
49358         * tests/test-copy-file-sameacls.c: New file.
49359
49360 2008-05-22  Eric Blake  <ebb9@byu.net>
49361
49362         Avoid gcc warning.
49363         * tests/test-memcmp.c (main): Pass NULL indirectly.
49364
49365 2008-05-21  Bruno Haible  <bruno@clisp.org>
49366
49367         Add reference doc about ACLs.
49368         * doc/acl-resources.txt: New file.
49369         * doc/acl-cygwin.txt: New file.
49370
49371 2008-05-21  Bruno Haible  <bruno@clisp.org>
49372
49373         Avoid one more warning from gcc.
49374         * lib/vasnprintf.c (IF_LINT): Update comments.
49375         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49376
49377 2008-05-21  Jim Meyering  <meyering@redhat.com>
49378
49379         avoid a warning from gcc
49380         * lib/vasnprintf.c (IF_LINT): Define.
49381         (scale10_round_decimal_long_double):
49382         Use it to avoid a "may be used uninitialized" warning.
49383         (scale10_round_decimal_double): Likewise.
49384
49385 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49386
49387         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49388         declared.
49389
49390 2008-05-20  Bruno Haible  <bruno@clisp.org>
49391
49392         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49393         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49394
49395 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49396
49397         * modules/memcmp-tests: New file.
49398         * tests/test-memcmp.c: New file.
49399
49400 2008-05-19  Bruno Haible  <bruno@clisp.org>
49401
49402         * modules/propername (Notice, configure.ac): Put quoted "..." into
49403         --keyword option.
49404         * lib/propername.h: Update comments accordingly.
49405         Reported by Eric Blake.
49406
49407 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49408
49409         * modules/getpass-gnu (Depends-on): Add fseeko.
49410
49411 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49412
49413         * modules/base64-tests: New file.
49414
49415 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49416
49417         * lib/base64.c (base64_decode_ctx): If a decode context structure
49418         was passed in use it to ignore newlines.  If a context structure
49419         was _not_ passed in, continue to treat newlines as garbage (this
49420         is the historical behavior).  Formerly base64_decode.
49421         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49422         takes a decode context structure.
49423         * lib/base64.h (base64_decode): Macro for four-argument calls.
49424         (base64_decode_alloc): Likewise.
49425         * lib/base64.c (base64_decode_ctx): If a decode context structure
49426         was passed in use it to ignore newlines.  If a context structure
49427         was _not_ passed in, continue to treat newlines as garbage (this
49428         is the historical behavior).  Formerly base64_decode.
49429         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49430         takes a decode context structure.
49431         * lib/base64.h (base64_decode): Macro for four-argument calls.
49432         (base64_decode_alloc): Likewise.
49433
49434 2008-05-19  Jim Meyering  <meyering@redhat.com>
49435
49436         avoid a warning from gcc
49437         * lib/trim.c (IF_LINT): Define.
49438         (trim2): Use it to avoid a "may be used uninitialized" warning.
49439
49440         Fix doc typo.
49441         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49442
49443 2008-05-19  Bruno Haible  <bruno@clisp.org>
49444
49445         * doc/glibc-functions/getpass.texi: Document limits of other
49446         implementations.
49447
49448 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49449             Bruno Haible <bruno@clisp.org>
49450
49451         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49452
49453 2008-05-18  Bruno Haible  <bruno@clisp.org>
49454
49455         * modules/propername: New file, from GNU gettext.
49456         * lib/propername.h: New file, from GNU gettext.
49457         * lib/propername.c: New file, from GNU gettext.
49458         * MODULES.html.sh (Internationalization functions): Add propername.
49459
49460 2008-05-16  Jim Meyering  <meyering@redhat.com>
49461             Bruno Haible  <bruno@clisp.org>
49462
49463         Avoid some warnings from "gcc -Wshadow".
49464         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49465
49466 2008-05-15  Eric Blake  <ebb9@byu.net>
49467
49468         Extend previous patch to cygwin 1.7.0.
49469         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49470         fast implementation in cygwin >= 1.7.0.
49471         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49472         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49473
49474 2008-05-15  Bruno Haible  <bruno@clisp.org>
49475
49476         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49477         implementation in glibc >= 2.9.
49478         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49479         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49480
49481 2008-05-15  Bruno Haible  <bruno@clisp.org>
49482
49483         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49484         (Unicode string functions): Add unilbrk/*.
49485         Reported by Karl Berry.
49486
49487 2008-05-15  Eric Blake  <ebb9@byu.net>
49488
49489         Fix violation of <stdbool.h> replacement in regex.
49490         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49491         * lib/regexec.c (re_search_internal): Likewise.
49492         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49493
49494 2008-05-15  Jim Meyering  <meyering@redhat.com>
49495
49496         avoid distracting test output when git or cvs is not found
49497         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49498         * tests/test-vc-list-files-git.sh: Likewise.
49499
49500 2008-05-15  Eric Blake  <ebb9@byu.net>
49501
49502         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49503         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49504         glibc version.
49505         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49506         * doc/posix-functions/strstr.texi (strstr): Likewise.
49507         * lib/str-two-way.h (MAX): Sychronize with glibc.
49508
49509 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49510
49511         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49512         opr.ctx_type.
49513         (calc_first): Initialize constraint field.
49514         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49515         Fix grammar.
49516         (duplicate_node): Merge constraint field for all node types.
49517         (calc_eclosure_iter): Look at constraint field for all node types.
49518         * lib/regex_internal.c (create_cd_newstate): Don't look at
49519         opr.ctx_type.
49520
49521 2008-05-14  Bruno Haible  <bruno@clisp.org>
49522
49523         Help GCC to do better code generation.
49524         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49525         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49526         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49527         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49528         Declare with attribute 'malloc' if supported.
49529
49530 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49531
49532         use "echo STR|wc -c" rather than unportable "expr length STR"
49533         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49534         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49535
49536 2008-05-14  Jim Meyering  <meyering@redhat.com>
49537
49538         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49539         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49540         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49541         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49542         via Collin Lasse.
49543
49544 2008-05-14  Eric Blake  <ebb9@byu.net>
49545
49546         Avoid quadratic growth in gl_LIBSOURCES.
49547         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49548         Suggested by Bruno Haible.
49549
49550         Test xmemdup0.
49551         * modules/xmemdup0-tests: New file.
49552         * tests/test-xmemdup0.c: Likewise.
49553
49554 2008-05-13  Eric Blake  <ebb9@byu.net>
49555
49556         Split xmemdup0 into its own module.
49557         * modules/xmemdup0: New file.
49558         * lib/xmemdup0.h: Likewise.
49559         * lib/xmemdup0.c: Likewise.
49560         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49561         * lib/xalloc.h (xmemdup0): Remove.
49562         * lib/xmalloc.c (xmemdup0): Likewise.
49563
49564 2008-05-13  Eric Blake  <ebb9@byu.net>
49565             Bruno Haible  <bruno@clisp.org>
49566
49567         Reduce number of forks required during autoconf.
49568         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49569         and gl_LIBSOURCES_DIR.
49570         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49571         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49572         m4_syscmd per file.
49573         <m4_foreach_w>: Move...
49574         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49575
49576 2008-05-13  Eric Blake  <ebb9@byu.net>
49577
49578         * gnulib-tool: Fix various comment typos.
49579
49580 2008-05-12  Bruno Haible  <bruno@clisp.org>
49581
49582         Tailor the linebreaking algorithm.
49583         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49584
49585 2008-05-12  Bruno Haible  <bruno@clisp.org>
49586
49587         Update to Unicode 5.0.0.
49588         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49589         LBP_JV, LBP_JT. Redistribute values.
49590         (unilbrk_table): Change size.
49591         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49592         Unicode TR#14 rev. 22.
49593         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49594         LBP_JV, LBP_JT. Redistribute values.
49595         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49596         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49597         Update.
49598         * lib/unilbrk/lbrkprop1.h: Regenerated.
49599         * lib/unilbrk/lbrkprop2.h: Regenerated.
49600         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49601         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49602         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49603         Likewise.
49604         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49605         Likewise.
49606         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49607         result.
49608         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49609         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49610         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49611         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49612         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49613         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49614
49615 2008-05-11  Bruno Haible  <bruno@clisp.org>
49616
49617         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49618
49619 2008-05-11  Bruno Haible  <bruno@clisp.org>
49620
49621         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49622         * modules/unilbrk/gen-lbrk: New file.
49623
49624 2008-05-11  Bruno Haible  <bruno@clisp.org>
49625
49626         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49627         * m4/sha512.m4 (gl_SHA512): Likewise.
49628
49629 2008-05-11  Jim Meyering  <meyering@redhat.com>
49630
49631         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49632         * modules/crypto/sha256: New file.
49633         * modules/crypto/sha512: Likewise.
49634         * lib/sha256.c: Likewise.
49635         * lib/sha256.h: Likewise.
49636         * lib/sha512.c: Likewise.
49637         * lib/sha512.h: Likewise.
49638         * lib/u64.h: Likewise.
49639         * m4/sha256.m4: Likewise.
49640         * m4/sha512.m4: Likewise.
49641         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49642
49643 2008-05-10  Bruno Haible  <bruno@clisp.org>
49644
49645         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49646         (Input/Output <stdio.h>): Add xprintf.
49647         (Signal handling <signal.h>): Add strsignal.
49648         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49649         (Core language properties): Add func.
49650         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49651         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49652         strings.
49653         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49654         (Input/output): New section.
49655         (File system functions): Add openat-die, stat-macros.
49656         (Networking functions): Add sockets.
49657         (Unicode string functions): Add unictype/*.
49658         (Support for building libraries and executables): Add gperf.
49659         (Support for building documentation): Add agpl-3.0.
49660         (Misc): Add nocrash.
49661
49662 2008-05-10  Bruno Haible  <bruno@clisp.org>
49663
49664         * modules/unictype/gen-ctype: New file.
49665
49666 2008-05-10  Jim Meyering  <meyering@redhat.com>
49667
49668         Make chdir-safer.c more efficient on a system with no symlinks.
49669         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49670         also if ELOOP is zero.  Suggested by Bruno Haible.
49671
49672         Make chdir-safer.c slightly safer.
49673         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49674         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49675
49676         Avoid compile failure on systems without ELOOP (like mingw).
49677         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49678         Reported by Bruno Haible.
49679
49680 2008-05-10  Bruno Haible  <bruno@clisp.org>
49681
49682         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49683         (is_utf8_encoding): Use a case-insensitive comparison.
49684         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49685         streq.
49686
49687 2008-05-10  Bruno Haible  <bruno@clisp.org>
49688
49689         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49690         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49691         * lib/unilbrk/ulc-common.h (iconv_string_length,
49692         iconv_string_keeping_offsets): Remove declarations.
49693         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49694         Don't include <iconv.h>, streq.h, xsize.h.
49695         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49696         conversion.
49697         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49698         <iconv.h>, streq.h, xsize.h.
49699         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49700         conversion.
49701         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49702         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49703         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49704         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49705
49706 2008-05-10  Bruno Haible  <bruno@clisp.org>
49707
49708         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49709         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49710
49711         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49712         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49713
49714         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49715         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49716
49717         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49718         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49719
49720         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49721         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49722
49723         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49724         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49725
49726         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49727         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49728
49729         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49730         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49731
49732 2008-05-10  Bruno Haible  <bruno@clisp.org>
49733
49734         Split up 'linebreak' module.
49735         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49736         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49737         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49738         modifications.
49739         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49740         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49741         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49742         lib/linebreak.c.
49743         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49744         lib/linebreak.c.
49745         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49746         lib/linebreak.c.
49747         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49748         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49749         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49750         lib/linebreak.c.
49751         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49752         lib/linebreak.c.
49753         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49754         lib/linebreak.c.
49755         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49756         lib/linebreak.c.
49757         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49758         lib/linebreak.c.
49759         * modules/unilbrk/base: New file.
49760         * modules/unilbrk/tables: New file.
49761         * modules/unilbrk/u8-possible-linebreaks: New file.
49762         * modules/unilbrk/u16-possible-linebreaks: New file.
49763         * modules/unilbrk/u32-possible-linebreaks: New file.
49764         * modules/unilbrk/ulc-common: New file.
49765         * modules/unilbrk/ulc-possible-linebreaks: New file.
49766         * modules/unilbrk/u8-width-linebreaks: New file.
49767         * modules/unilbrk/u16-width-linebreaks: New file.
49768         * modules/unilbrk/u32-width-linebreaks: New file.
49769         * modules/unilbrk/ulc-width-linebreaks: New file.
49770         * lib/linebreak.h: Remove file.
49771         * lib/linebreak.c: Remove file.
49772         * m4/linebreak.m4: Remove file.
49773         * modules/linebreak: Remove file.
49774         * NEWS: Mention the changes.
49775
49776 2008-05-09  Eric Blake  <ebb9@byu.net>
49777
49778         Add xmemdup0.
49779         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49780         implementation.
49781         * lib/xmalloc.c (xmemdup0): New C implementation.
49782
49783 2008-05-08  Bruno Haible  <bruno@clisp.org>
49784
49785         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49786
49787 2008-05-07  Eric Blake  <ebb9@byu.net>
49788
49789         Support cross-compilation of <wctype.h>.
49790         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49791         AC_CACHE_CHECK.
49792
49793 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49794
49795         * build-aux/vc-list-files: Add support for bzr.
49796
49797 2008-05-03  Jim Meyering  <meyering@redhat.com>
49798
49799         avoid failed assertion with tight malloc
49800         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49801
49802 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49803
49804         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49805         are needed from arpa/inet.h.
49806         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49807         Reported by Bruno Haible.
49808
49809 2008-05-02  Jim Meyering  <meyering@redhat.com>
49810
49811         avoid compilation error on FreeBSD 6
49812         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49813
49814 2008-05-01  Jim Meyering  <meyering@redhat.com>
49815
49816         useless-if-before-free: correct --help's exit status description
49817         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49818         for one or more matches, etc.  Reported by Bruno Haible.
49819
49820         vc-list-files: make the stand-alone gnulib test work
49821         * modules/vc-list-files-tests (configure.ac):
49822         Define and AC_SUBST abs_aux_dir.
49823         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49824         $(abs_top_srcdir) to each script and having each of them
49825         duplicate the work of setting PATH, set PATH here, using
49826         the new variable, abs_aux_dir instead.
49827         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49828         * tests/test-vc-list-files-git.sh: Likewise.
49829         Reported by Bruno Haible.
49830
49831 2008-05-01  Bruno Haible  <bruno@clisp.org>
49832
49833         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49834         reallocation. Rename 'done' to 'found_delimiter'.
49835
49836 2008-05-01  Jim Meyering  <meyering@redhat.com>
49837
49838         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49839         * build-aux/vc-list-files: Use `...`, not $(...).
49840
49841 2008-04-30  Jim Meyering  <meyering@redhat.com>
49842
49843         add tests for vc-list-files
49844         * modules/vc-list-files-tests: New module.
49845         * tests/test-vc-list-files-cvs.sh: New file.
49846         * tests/test-vc-list-files-git.sh: New file.
49847
49848         avoid a warning from gcc
49849         * lib/getndelim2.c (IF_LINT): Define.
49850         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49851
49852         vc-list-files: work properly with build-aux/cvsu, too
49853         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49854         to all cvs-based clauses.
49855
49856         vc-list-files: work properly in the CVS+awk case, too
49857         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49858
49859         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49860         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49861         take more than one file argument, so .  Add quotes, just in case $dir
49862         ever contains a shell meta-character.  Prompted by Soren Hansen in
49863         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49864
49865 2008-04-29  Eric Blake  <ebb9@byu.net>
49866
49867         Optimize getndelim2 to use block operations when possible.
49868         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49869         freadseek, and memchr2.
49870         * lib/getndelim2.c (getndelim2): Use them for block reads.
49871
49872 2008-04-29  Bruno Haible  <bruno@clisp.org>
49873
49874         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49875         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49876         * modules/inet_ntop (Depends-on): Add extensions.
49877         * modules/inet_pton (Depends-on): Likewise.
49878         Reported by Simon Josefsson.
49879
49880 2008-04-29  Jim Meyering  <meyering@redhat.com>
49881
49882         When the is more than one match in a block, match all of them.
49883         * build-aux/useless-if-before-free: Iterate through each block
49884         until there are no more matches.
49885
49886         Fix broken useless-if-before-free script.
49887         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49888         the expression to match cast of argument to free-like function.
49889
49890 2008-04-29  Eric Blake  <ebb9@byu.net>
49891
49892         Use new header.
49893         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49894
49895 2008-04-29  Jim Meyering  <meyering@redhat.com>
49896
49897         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49898         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49899         by gnulib to exist and to declare e.g., inet_ntop.
49900         Don't include "inet_ntop.h", now removed.
49901
49902         * m4/arpa_inet_h.m4: Remove trailing blanks.
49903
49904 2008-04-29  Eric Blake  <ebb9@byu.net>
49905
49906         Silence valgrind on safe reads beyond potential array bounds.
49907         * lib/rawmemchr.valgrind: New file.
49908         * lib/strchrnul.valgrind: Likewise.
49909         * modules/rawmemchr (Files): Distribute new file.
49910         * modules/strchrnul (Files): Likewise.
49911         Suggested by Bruno Haible.
49912
49913 2008-04-29  Bruno Haible  <bruno@clisp.org>
49914
49915         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49916         (inet_ntop, inet_pton): Change portability warning's wording.
49917         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49918         Invoke gl_CHECK_NEXT_HEADERS.
49919         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49920         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49921         set ARPA_INET_H.
49922         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49923         * modules/arpa_inet (Description): No longer only for systems that
49924         lack it.
49925         (Depends-on): Add include_next.
49926         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49927         HAVE_ARPA_INET_H.
49928
49929 2008-04-29  Jim Meyering  <meyering@redhat.com>
49930
49931         * modules/mkdir (License): Re-license as LGPLv2+.
49932
49933 2008-04-29  Bruno Haible  <bruno@clisp.org>
49934
49935         * modules/rawmemchr (Maintainer): Set to Eric.
49936         * modules/strchrnul (Maintainer): Likewise.
49937
49938 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49939
49940         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49941         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49942
49943         * modules/arpa_inet (arpa/inet.h): Use them.
49944
49945 2008-04-28  Eric Blake  <ebb9@byu.net>
49946
49947         Test getndelim2.
49948         * modules/getndelim2-tests: New file.
49949         * tests/test-getndelim2.c: Likewise.
49950         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49951         stream.
49952         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49953
49954         * MODULES.html.sh: Document new module.
49955
49956 2008-04-20  Bruno Haible  <bruno@clisp.org>
49957
49958         * lib/c-stack.c (die): Use raise.
49959         * modules/c-stack (Depends-on): Add raise.
49960
49961 2008-04-28  Bruno Haible  <bruno@clisp.org>
49962
49963         Expect rpmatch to be declared.
49964         * lib/yesno.c (rpmatch): Remove declaration.
49965
49966         Declare rpmatch.
49967         * lib/stdlib.in.h (rpmatch): New declaration.
49968         * lib/rpmatch.c: Include <stdlib.h> first.
49969         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49970         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49972         HAVE_RPMATCH.
49973         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49974         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49975         (Include): Set to <stdlib.h>.
49976         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49977         HAVE_RPMATCH.
49978         * NEWS: Document the change.
49979
49980 2008-04-28  Bruno Haible  <bruno@clisp.org>
49981
49982         Change rpmatch to use nl_langinfo when appropriate.
49983         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49984         (N_): New macro.
49985         (localized_pattern): New function/macro.
49986         (try): Remove match, nomatch arguments. Copy the pattern into safe
49987         memory before caching it.
49988         (rpmatch): Use localized_pattern. Add translator comments.
49989         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49990         Suggested by Eric Blake.
49991         * modules/rpmatch (Depends-on): Add stdbool.
49992
49993 2008-04-28  Eric Blake  <ebb9@byu.net>
49994
49995         Add rawmemchr module, matching glibc.
49996         * modules/string (Makefile.am): New indicator.
49997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49998         * lib/string.in.h (rawmemchr): Declare when appropriate.
49999         * modules/rawmemchr: New file.
50000         * m4/rawmemchr.m4: Likewise.
50001         * lib/rawmemchr.c: Likewise.
50002         * modules/rawmemchr-tests: Likewise.
50003         * tests/test-rawmemchr.c: Likewise.
50004         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50005         module.
50006         * modules/strchrnul (Depends-on): Add rawmemchr.
50007         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50008
50009         Whitespace cleanup.
50010         * tests/test-strchrnul.c: Reindent.
50011         * lib/strchrnul.c: Likewise.
50012
50013         Optimize and test strchrnul.
50014         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50015         * modules/strchrnul-tests: New file.
50016         * tests/test-strchrnul.c: Likewise.
50017
50018         Remove intprops dependency.
50019         * modules/memchr (Depends-on): Remove intprops.
50020         * modules/memrchr (Depends-on): Likewise.
50021         * modules/memchr2 (Depends-on): Likewise.
50022         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50023         * lib/memrchr.c (__memrchr): Likewise.
50024         * lib/memrchr2.c (memchr2): Likewise.
50025         Reported by Simon Josefsson.
50026
50027 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50028
50029         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50030         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50031
50032 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50033
50034         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50035
50036         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50037
50038         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50039
50040         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50041         declarations.
50042         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50043
50044         * m4/inet_pton.m4: Don't check for header files.
50045
50046         * m4/inet_ntop.m4: Don't check for header files.
50047
50048 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50049
50050         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50051         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50052         trigger for cygwin).
50053         Reported by Bruno Haible  <bruno@clisp.org>.
50054
50055 2008-04-28  Bruno Haible  <bruno@clisp.org>
50056
50057         * doc/posix-functions/strdup.texi: Mention mingw problem.
50058
50059 2008-04-27  Bruno Haible  <bruno@clisp.org>
50060
50061         * modules/stat-time-tests (Depends-on): Add sleep.
50062         * tests/test-stat-time.c (force_unlink): New function.
50063         (cleanup): Use it.
50064         (test_mtime): Remove the ctime related tests.
50065         (test_ctime): New function, containing the ctime related tests.
50066         (main): Call test_ctime, except on native Windows platforms.
50067
50068 2008-04-27  Bruno Haible  <bruno@clisp.org>
50069
50070         * lib/rpmatch.c (rpmatch): Add some comments.
50071         Reported by James Youngman <jay@gnu.org>.
50072
50073 2008-04-27  Bruno Haible  <bruno@clisp.org>
50074
50075         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50076         quiet NaNs.
50077
50078 2008-04-27  Bruno Haible  <bruno@clisp.org>
50079
50080         Make test-yesno.sh work on mingw.
50081         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50082         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50083         (main): Set stdin to binary mode.
50084         * modules/yesno-tests (Depends-on): Add binary-io.
50085
50086 2008-04-27  Bruno Haible  <bruno@clisp.org>
50087
50088         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50089         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50090         argument that lie outside the IEEE 854 domain.
50091         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50092         (gl_ISFINITE): Use it.
50093         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50094
50095 2008-04-27  Bruno Haible  <bruno@clisp.org>
50096
50097         Allow local renaming in config.h.
50098         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50099
50100 2008-04-27  Bruno Haible  <bruno@clisp.org>
50101
50102         * lib/memchr.c (__memchr): Change type of 'i'.
50103         * lib/memchr2.c (memchr2): Likewise.
50104
50105 2008-04-26  Eric Blake  <ebb9@byu.net>
50106         and Bruno Haible  <bruno@clisp.org>
50107
50108         Optimize and test memrchr.
50109         * modules/memrchr (Depends-on): Add intprops.
50110         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50111         * modules/memrchr-tests: New file.
50112         * tests/test-memrchr.c: New file.
50113
50114 2008-04-26  Bruno Haible  <bruno@clisp.org>
50115
50116         Add tentative support for DragonFly BSD.
50117         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50118         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50119         fp.
50120         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50121         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50122         * lib/fpurge.c (fpurge): Likewise.
50123         * lib/freadable.c (freaadable): Likewise.
50124         * lib/freadahead.c (freadahead): Likewise.
50125         * lib/freading.c (freading): Likewise.
50126         * lib/freadptr.c (freadptr): Likewise.
50127         * lib/freadseek.c (freadptrinc): Likewise.
50128         * lib/fseeko.c (fseeko): Likewise.
50129         * lib/fseterr.c (fseterr): Likewise.
50130         * lib/fwritable.c (fwritable): Likewise.
50131         * lib/fwriting.c (fwriting): Likewise.
50132
50133 2008-04-26  Bruno Haible  <bruno@clisp.org>
50134
50135         * lib/stdio-impl.h: New file.
50136         * lib/fbufmode.c: Include stdio-impl.h.
50137         (fbufmode): Use fp_, remove redundant #defines.
50138         * lib/fflush.c: Include stdio-impl.h.
50139         (clear_ungetc_buffer): Remove redundant #defines.
50140         * lib/fpurge.c: Include stdio-impl.h.
50141         (fpurge): Remove redundant #defines.
50142         * lib/freadable.c: Include stdio-impl.h.
50143         (freadable): Remove redundant #defines.
50144         * lib/freadahead.c: Include stdio-impl.h.
50145         (freadahead): Remove redundant #defines.
50146         * lib/freading.c: Include stdio-impl.h.
50147         (freading): Remove redundant #defines.
50148         * lib/freadptr.c: Include stdio-impl.h.
50149         (freadptr): Remove redundant #defines.
50150         * lib/freadseek.c: Include stdio-impl.h.
50151         (freadptrinc): Remove redundant #defines.
50152         * lib/fseeko.c: Include stdio-impl.h.
50153         (rpl_fseeko): Remove redundant #defines.
50154         * lib/fseterr.c: Include stdio-impl.h.
50155         (fseterr): Remove redundant #defines.
50156         * lib/fwritable.c: Include stdio-impl.h.
50157         (fwritable: Remove redundant #defines.
50158         * lib/fwriting.c: Include stdio-impl.h.
50159         (fwriting): Remove redundant #defines.
50160         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50161         * modules/fflush (Files): Likewise.
50162         * modules/fpurge (Files): Likewise.
50163         * modules/freadable (Files): Likewise.
50164         * modules/freadahead (Files): Likewise.
50165         * modules/freading (Files): Likewise.
50166         * modules/freadptr (Files): Likewise.
50167         * modules/freadseek (Files): Likewise.
50168         * modules/fseeko (Files): Likewise.
50169         * modules/fseterr (Files): Likewise.
50170         * modules/fwritable (Files): Likewise.
50171         * modules/fwriting (Files): Likewise.
50172
50173 2008-04-26  Bruno Haible  <bruno@clisp.org>
50174
50175         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50176         restore_seek_optimization, update_fpos_cache): New functions, extracted
50177         from rpl_fflush.
50178         (rpl_fflush): Use them.
50179         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50180         (gl_REPLACE_FFLUSH): Use it.
50181
50182 2008-04-26  Bruno Haible  <bruno@clisp.org>
50183
50184         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50185         on Solaris.
50186         * tests/test-xstrtoimax.sh: Likewise.
50187         * tests/test-xstrtoumax.sh: Likewise.
50188         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50189
50190 2008-04-26  Bruno Haible  <bruno@clisp.org>
50191
50192         * modules/memchr-tests: New file.
50193         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50194
50195 2008-04-26  Eric Blake  <ebb9@byu.net>
50196             Bruno Haible  <bruno@clisp.org>
50197
50198         * lib/memchr.c: Include intprops.h.
50199         (__memchr): Optimize parallel detection of matching bytes. Rename local
50200         variables. Add explanatory comments.
50201
50202 2008-04-26  Bruno Haible  <bruno@clisp.org>
50203
50204         Fix module 'memchr', broken since 2000-10-28.
50205         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50206
50207 2008-04-26  Bruno Haible  <bruno@clisp.org>
50208
50209         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50210         comments.
50211
50212 2008-04-25  Eric Blake  <ebb9@byu.net>
50213
50214         Use native fstatat on cygwin 1.7.0.
50215         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50216         first.
50217
50218 2008-04-23  Eric Blake  <ebb9@byu.net>
50219
50220         Improve memchr2 performance.
50221         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50222         NUL bytes.
50223         * modules/memchr2 (Depends-on): Use intprops.h.
50224
50225 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50226
50227         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50228         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50229         <blp@cs.stanford.edu>.
50230
50231 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50232
50233         * lib/arpa_inet.in.h: New file.
50234
50235         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50236         (Makefile.am): Sed in substitute header file.
50237
50238         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50239         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50240
50241         * modules/inet_ntop (configure.ac): Use
50242         gl_ARPA_INET_MODULE_INDICATOR.
50243
50244         * modules/inet_pton (configure.ac): Use
50245         gl_ARPA_INET_MODULE_INDICATOR.
50246
50247 2008-04-22  Jim Meyering  <meyering@redhat.com>
50248
50249         * modules/verify (License): Re-license as LGPLv2+.
50250
50251 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50252
50253         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50254         parameter to void* as per POSIX standard (MinGW uses char*).
50255
50256 2008-04-21  Bruno Haible  <bruno@clisp.org>
50257
50258         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50259         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50260         Define to replacements if REPLACE_ISWCNTRL is 1.
50261         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50262         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50263         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50264         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50265         what it fixes.
50266         * doc/posix-functions/iswalpha.texi: Likewise.
50267         * doc/posix-functions/iswblank.texi: Likewise.
50268         * doc/posix-functions/iswcntrl.texi: Likewise.
50269         * doc/posix-functions/iswdigit.texi: Likewise.
50270         * doc/posix-functions/iswgraph.texi: Likewise.
50271         * doc/posix-functions/iswlower.texi: Likewise.
50272         * doc/posix-functions/iswprint.texi: Likewise.
50273         * doc/posix-functions/iswpunct.texi: Likewise.
50274         * doc/posix-functions/iswspace.texi: Likewise.
50275         * doc/posix-functions/iswupper.texi: Likewise.
50276         * doc/posix-functions/iswxdigit.texi: Likewise.
50277         Reported by Alain Guibert.
50278
50279 2008-04-21  Bruno Haible  <bruno@clisp.org>
50280
50281         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50282         Patch by Alain Guibert.
50283
50284 2008-04-21  Bruno Haible  <bruno@clisp.org>
50285
50286         Fix test failures on mingw.
50287         * tests/test-xstrtol.c (print_no_progname): New function.
50288         (main): Install it in error_print_progname hook.
50289         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50290         * tests/test-xstrtoimax.sh: Likewise.
50291         * tests/test-xstrtoumax.sh: Likewise.
50292
50293 2008-04-21  Bruno Haible  <bruno@clisp.org>
50294
50295         Fix test failure on mingw.
50296         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50297
50298 2008-04-21  Bruno Haible  <bruno@clisp.org>
50299
50300         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50301         Actually assign a value.
50302
50303 2008-04-20  Bruno Haible  <bruno@clisp.org>
50304
50305         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50306         take 2.
50307         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50308         'canonicalize-lgpl' module is also used.
50309         * lib/canonicalize-lgpl.c: Undo last change.
50310         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50311
50312 2008-04-20  Bruno Haible  <bruno@clisp.org>
50313
50314         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50315         config.h. Provide _mkdir based fallback for mingw.
50316         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50317         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50318         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50319         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50320         rather than defining mkdir in config.h.
50321         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50322         (gl_SYS_STAT_H_DEFAULTS): New macro.
50323         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50324         HAVE_IO_H any more.
50325         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50326         HAVE_DECL_MKDIR and HAVE_IO_H.
50327
50328 2008-04-20  Bruno Haible  <bruno@clisp.org>
50329
50330         * lib/isapipe.c: Port to native Windows platforms.
50331
50332 2008-04-20  Bruno Haible  <bruno@clisp.org>
50333
50334         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50335
50336 2008-04-21  Eric Blake  <ebb9@byu.net>
50337
50338         Work around preprocessors that don't handle UINTMAX_MAX.
50339         * lib/memchr2.c (memchr2): Avoid embedded #if.
50340         Reported by Alain Guibert, fix suggested by Bruno Haible.
50341
50342 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50343
50344         * doc/posix-functions/strftime.texi (strftime): Explain better
50345         Windows incompatibility.  Suggested by Micah Cowan
50346         <micah@cowan.name>.
50347
50348 2008-04-20  Bruno Haible  <bruno@clisp.org>
50349
50350         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50351         unistr/u8-mblen.
50352
50353 2008-04-20  Bruno Haible  <bruno@clisp.org>
50354
50355         Fix test failure on platforms with non-GNU iconv.
50356         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50357         (U_TO_U8): Use it, rather than u16_to_u8.
50358         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50359         units at the end of the input string.
50360         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50361
50362 2008-04-20  Bruno Haible  <bruno@clisp.org>
50363
50364         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50365         when the resulting length is 0.
50366         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50367
50368 2008-04-20  Bruno Haible  <bruno@clisp.org>
50369
50370         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50371         works.
50372         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50373
50374 2008-04-20  Bruno Haible  <bruno@clisp.org>
50375
50376         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50377         * modules/tsearch-tests (configure.ac): Test for initstate function.
50378
50379 2008-04-20  Bruno Haible  <bruno@clisp.org>
50380
50381         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50382         for nlink_t if missing.
50383         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50384
50385 2008-04-19  Bruno Haible  <bruno@clisp.org>
50386
50387         Work around snprintf bug on Linux libc5.
50388         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50389         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50390         gl_SNPRINTF_SIZE1.
50391         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50392         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50393         that test failed.
50394         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50395         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50396         * modules/snprintf (Files): Add m4/printf.m4.
50397         * modules/vsnprintf (Files): Likewise.
50398         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50399         * doc/posix-functions/vsnprintf.texi: Likewise.
50400
50401 2008-04-19  Bruno Haible  <bruno@clisp.org>
50402
50403         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50404         from 0.0058 to less than 10^-7.
50405
50406 2008-04-19  Bruno Haible  <bruno@clisp.org>
50407
50408         Fix rounding when a precision is given.
50409         * lib/vasnprintf.c (is_borderline): New function.
50410         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50411         9...9x.
50412         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50413         %e, %g.
50414         * tests/test-vasprintf-posix.c (test_function): Likewise.
50415         * tests/test-snprintf-posix.h (test_function): Likewise.
50416         * tests/test-sprintf-posix.h (test_function): Likewise.
50417         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50418         * tests/test-printf-posix.h (test_function): Likewise.
50419         * tests/test-printf-posix.output: Update.
50420         Reported by John Darrington <john@darrington.wattle.id.au> via
50421         Ben Pfaff <blp@cs.stanford.edu>.
50422
50423 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50424
50425         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50426         Suggested by Bruno Haible <bruno@clisp.org>.
50427
50428 2008-04-17  Bruno Haible  <bruno@clisp.org>
50429
50430         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50431         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50432         implementation.
50433         Patch by Bruce Merry <bmerry@gmail.com>.
50434
50435 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50436
50437         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50438         doesn't work under Windows.
50439
50440 2008-04-16  Bruno Haible  <bruno@clisp.org>
50441
50442         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50443         New macros.
50444         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50445         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50446         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50447         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50448         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50449         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50450         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50451         macros.
50452         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50453         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50454         Northern Sotho, Uighur.
50455
50456 2008-04-16  Bruno Haible  <bruno@clisp.org>
50457
50458         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50459         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50460         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50461         Reported by Daniel Bergström <daniel@octocode.com>.
50462
50463 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50464             Bruno Haible  <bruno@clisp.org>
50465
50466         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50467         function.
50468         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50469         New functions, mostly extracted from gl_locale_name_default.
50470         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50471
50472 2008-04-16  Eric Blake  <ebb9@byu.net>
50473
50474         Adjust strtod detection to catch glibc 2.7 bug.
50475         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50476         Reported by John Gatewood Ham.
50477
50478 2008-04-16  Bruno Haible  <bruno@clisp.org>
50479
50480         Add tentative support for Linux libc5.
50481         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50482         * lib/fpurge.c (fpurge): Likewise.
50483         * lib/freadable.c (freadable): Likewise.
50484         * lib/freadahead.c (freadahead): Likewise.
50485         * lib/freading.c (freading): Likewise.
50486         * lib/freadptr.c (freadptr): Likewise.
50487         * lib/freadseek.c (freadptrinc): Likewise.
50488         * lib/fseeko.c (rpl_fseeko): Likewise.
50489         * lib/fseterr.c (fseterr): Likewise.
50490         * lib/fwritable.c (fwritable): Likewise.
50491         * lib/fwriting.c (fwriting): Likewise.
50492         Reported by Alain Guibert <alguibert+bts@free.fr>.
50493
50494 2008-04-15  Bruno Haible  <bruno@clisp.org>
50495
50496         * modules/mathl (configure.ac): Define module indicator.
50497
50498 2008-04-15  Bruno Haible  <bruno@clisp.org>
50499
50500         * lib/logl.c (logl): Remove unused variables.
50501
50502 2008-04-15  Bruno Haible  <bruno@clisp.org>
50503
50504         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50505         fails.
50506
50507 2008-04-15  Bruno Haible  <bruno@clisp.org>
50508
50509         * lib/trim.c (trim2): Fix argument of isspace() macro.
50510
50511 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50512
50513         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50514         to 0.
50515         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50516
50517 2008-04-14  Bruno Haible  <bruno@clisp.org>
50518
50519         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50520         AC_LANG_PROGRAM argument.
50521         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50522         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50523         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50524         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50525         * m4/math_h.m4 (gl_MATH_H): Likewise.
50526         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50527         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50528         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50529         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50530         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50531         * m4/regex.m4 (gl_REGEX): Likewise.
50532         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50533         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50534         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50535         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50536         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50537         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50538         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50539         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50540
50541 2008-04-14  Jim Meyering  <meyering@redhat.com>
50542
50543         test-strtod: fix typos: s/abs/fabs/
50544         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50545
50546 2008-04-13  Bruno Haible  <bruno@clisp.org>
50547
50548         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50549         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50550         module is also used and while not building the reloc-wrapper.
50551
50552 2008-04-13  Bruno Haible  <bruno@clisp.org>
50553
50554         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50555
50556 2008-04-13  Bruno Haible  <bruno@clisp.org>
50557
50558         Fix AIX compilation failure introduced on 2008-04-02.
50559         * tests/test-frexp.c (exp): Undefine before redefining.
50560         * tests/test-frexpl.c (exp): Likewise.
50561
50562 2008-04-13  Bruno Haible  <bruno@clisp.org>
50563
50564         Work around a HP-UX stdio bug.
50565         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50566         * tests/test-ftello.c (main): Likewise.
50567         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50568         * doc/posix-functions/ftello.texi: Likewise.
50569
50570 2008-04-13  Bruno Haible  <bruno@clisp.org>
50571
50572         Make test-signbit pass on HP-UX/hppa.
50573         * tests/test-signbit.c (minus_zerol): New variable.
50574         (test_signbitl): Use it.
50575
50576 2008-04-13  Bruno Haible  <bruno@clisp.org>
50577
50578         Make truncl work on OSF/1 4.0.
50579         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50580         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50581         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50583         HAVE_DECL_TRUNCL.
50584         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50585         HAVE_DECL_TRUNCL.
50586         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50587
50588 2008-04-13  Bruno Haible  <bruno@clisp.org>
50589
50590         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50591
50592 2008-04-13  Bruno Haible  <bruno@clisp.org>
50593
50594         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50595         expression, so as to avoid HP-UX 11 cc compiler bug.
50596
50597 2008-04-13  Bruno Haible  <bruno@clisp.org>
50598
50599         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50600
50601 2008-04-13  Bruno Haible  <bruno@clisp.org>
50602
50603         * lib/git-merge-changelog.c: Remove empty declaration outside of
50604         functions.
50605
50606 2008-04-13  Bruno Haible  <bruno@clisp.org>
50607
50608         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50609
50610 2008-04-13  Bruno Haible  <bruno@clisp.org>
50611
50612         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50613         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50614         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50615         also if it exists but lacks definitions of the SHUT_* macros.
50616         * modules/sys_socket (Description): Update.
50617         Reported by Elbert Pol <e.pol@chello.nl>.
50618
50619 2008-04-13  Bruno Haible  <bruno@clisp.org>
50620
50621         * lib/localcharset.c (OS2): Don't redefine if already defined.
50622         Reported by Elbert Pol <e.pol@chello.nl>.
50623
50624 2008-04-13  Bruno Haible  <bruno@clisp.org>
50625
50626         * lib/binary-io.h [__EMX__]: Include <io.h>.
50627         Reported by Elbert Pol <e.pol@chello.nl>.
50628
50629 2008-04-12  Bruno Haible  <bruno@clisp.org>
50630
50631         * lib/fpucw.h: Enable the definitions also for x86_64.
50632         Needed for NetBSD/x86_64.
50633         Reported by Thomas Klausner <tk@giga.or.at>.
50634
50635 2008-04-12  Bruno Haible  <bruno@clisp.org>
50636
50637         * tests/test-strtod.c: Include isnand.h.
50638         (main): Use isnand instead of isnan.
50639         Reported by Jim Meyering.
50640
50641 2008-04-12  Bruno Haible  <bruno@clisp.org>
50642
50643         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50644         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50645
50646 2008-04-12  Jim Meyering  <meyering@redhat.com>
50647
50648         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50649
50650 2008-04-12  Bruno Haible  <bruno@clisp.org>
50651
50652         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50653         Reported by Elbert Pol <e.pol@chello.nl>.
50654
50655 2008-04-12  Eric Blake  <ebb9@byu.net>
50656
50657         Work around Solaris 10 math.h bug.
50658         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50659         (gl_MATH_H_DEFAULTS): Set up default.
50660         * modules/math (Makefile.am): Replace new indicators.
50661         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50662         * tests/test-math.c (main): Test this.
50663         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50664         * doc/posix-headers/math.texi (math.h): Mention bug.
50665         Reported by Nelson H. F. Beebe and Jim Meyering.
50666
50667 2008-04-11  Bruno Haible  <bruno@clisp.org>
50668
50669         Adapt to future versions of Apple GCC.
50670         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50671         Reported by Peter O'Gorman <peter@pogma.com>.
50672
50673 2008-04-11  Bruno Haible  <bruno@clisp.org>
50674
50675         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50676
50677 2008-04-11  Bruno Haible  <bruno@clisp.org>
50678
50679         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50680
50681         * modules/getaddrinfo-tests (Makefile.am): Define
50682         test_getaddrinfo_LDADD.
50683
50684 2008-04-11  Bruno Haible  <bruno@clisp.org>
50685
50686         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50687         (init): Fix syntax error.
50688         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50689         is declared.
50690
50691 2008-04-11  Bruno Haible  <bruno@clisp.org>
50692
50693         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50694         * modules/glob (Depends-on): Add stdbool.
50695
50696 2008-04-11  Bruno Haible  <bruno@clisp.org>
50697
50698         * lib/trim.c: Include <string.h>.
50699
50700 2008-04-11  Eric Blake  <ebb9@byu.net>
50701
50702         Avoid compile failure on OS/2.
50703         * lib/regex_internal.h (internal_function): Disable optimization
50704         on OS/2 (__EMX__), where it caused compiler error.
50705         Reported by Elbert Pol.
50706
50707 2008-04-11  Bruno Haible  <bruno@clisp.org>
50708
50709         Flush the standard error stream before aborting. Needed on mingw.
50710         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50711         * tests/test-array_list.c (ASSERT): Likewise.
50712         * tests/test-array_oset.c (ASSERT): Likewise.
50713         * tests/test-avltree_list.c (ASSERT): Likewise.
50714         * tests/test-avltree_oset.c (ASSERT): Likewise.
50715         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50716         * tests/test-binary-io.c (ASSERT): Likewise.
50717         * tests/test-byteswap.c (ASSERT): Likewise.
50718         * tests/test-c-ctype.c (ASSERT): Likewise.
50719         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50720         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50721         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50722         * tests/test-c-strstr.c (ASSERT): Likewise.
50723         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50724         * tests/test-canonicalize.c (ASSERT): Likewise.
50725         * tests/test-carray_list.c (ASSERT): Likewise.
50726         * tests/test-ceilf1.c (ASSERT): Likewise.
50727         * tests/test-ceilf2.c (ASSERT): Likewise.
50728         * tests/test-ceill.c (ASSERT): Likewise.
50729         * tests/test-count-one-bits.c (ASSERT): Likewise.
50730         * tests/test-fbufmode.c (ASSERT): Likewise.
50731         * tests/test-fflush2.c (ASSERT): Likewise.
50732         * tests/test-floorf1.c (ASSERT): Likewise.
50733         * tests/test-floorf2.c (ASSERT): Likewise.
50734         * tests/test-floorl.c (ASSERT): Likewise.
50735         * tests/test-fopen.c (ASSERT): Likewise.
50736         * tests/test-fpending.c (ASSERT): Likewise.
50737         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50738         * tests/test-fpurge.c (ASSERT): Likewise.
50739         * tests/test-freadable.c (ASSERT): Likewise.
50740         * tests/test-freadahead.c (ASSERT): Likewise.
50741         * tests/test-freading.c (ASSERT): Likewise.
50742         * tests/test-freadptr.c (ASSERT): Likewise.
50743         * tests/test-freadptr2.c (ASSERT): Likewise.
50744         * tests/test-freadseek.c (ASSERT): Likewise.
50745         * tests/test-freopen.c (ASSERT): Likewise.
50746         * tests/test-frexp.c (ASSERT): Likewise.
50747         * tests/test-frexpl.c (ASSERT): Likewise.
50748         * tests/test-fseek.c (ASSERT): Likewise.
50749         * tests/test-fseeko.c (ASSERT): Likewise.
50750         * tests/test-fstrcmp.c (ASSERT): Likewise.
50751         * tests/test-ftell.c (ASSERT): Likewise.
50752         * tests/test-ftello.c (ASSERT): Likewise.
50753         * tests/test-func.c (ASSERT): Likewise.
50754         * tests/test-fwritable.c (ASSERT): Likewise.
50755         * tests/test-fwriting.c (ASSERT): Likewise.
50756         * tests/test-getdelim.c (ASSERT): Likewise.
50757         * tests/test-getline.c (ASSERT): Likewise.
50758         * tests/test-i-ring.c (ASSERT): Likewise.
50759         * tests/test-iconv-utf.c (ASSERT): Likewise.
50760         * tests/test-iconv.c (ASSERT): Likewise.
50761         * tests/test-isfinite.c (ASSERT): Likewise.
50762         * tests/test-isnand.c (ASSERT): Likewise.
50763         * tests/test-isnanf.c (ASSERT): Likewise.
50764         * tests/test-isnanl.h (ASSERT): Likewise.
50765         * tests/test-ldexpl.c (ASSERT): Likewise.
50766         * tests/test-linked_list.c (ASSERT): Likewise.
50767         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50768         * tests/test-localename.c (ASSERT): Likewise.
50769         * tests/test-lseek.c (ASSERT): Likewise.
50770         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50771         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50772         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50773         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50774         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50775         * tests/test-mbschr.c (ASSERT): Likewise.
50776         * tests/test-mbscspn.c (ASSERT): Likewise.
50777         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50778         * tests/test-mbspbrk.c (ASSERT): Likewise.
50779         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50780         * tests/test-mbsrchr.c (ASSERT): Likewise.
50781         * tests/test-mbsspn.c (ASSERT): Likewise.
50782         * tests/test-mbsstr1.c (ASSERT): Likewise.
50783         * tests/test-mbsstr2.c (ASSERT): Likewise.
50784         * tests/test-mbsstr3.c (ASSERT): Likewise.
50785         * tests/test-memchr2.c (ASSERT): Likewise.
50786         * tests/test-memmem.c (ASSERT): Likewise.
50787         * tests/test-open.c (ASSERT): Likewise.
50788         * tests/test-printf-frexp.c (ASSERT): Likewise.
50789         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50790         * tests/test-printf-posix.c (ASSERT): Likewise.
50791         * tests/test-quotearg.c (ASSERT): Likewise.
50792         * tests/test-rbtree_list.c (ASSERT): Likewise.
50793         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50794         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50795         * tests/test-round1.c (ASSERT): Likewise.
50796         * tests/test-roundf1.c (ASSERT): Likewise.
50797         * tests/test-roundl.c (ASSERT): Likewise.
50798         * tests/test-signbit.c (ASSERT): Likewise.
50799         * tests/test-sleep.c (ASSERT): Likewise.
50800         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50801         * tests/test-snprintf.c (ASSERT): Likewise.
50802         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50803         * tests/test-stat-time.c (ASSERT): Likewise.
50804         * tests/test-strcasestr.c (ASSERT): Likewise.
50805         * tests/test-strerror.c (ASSERT): Likewise.
50806         * tests/test-striconv.c (ASSERT): Likewise.
50807         * tests/test-striconveh.c (ASSERT): Likewise.
50808         * tests/test-striconveha.c (ASSERT): Likewise.
50809         * tests/test-strsignal.c (ASSERT): Likewise.
50810         * tests/test-strstr.c (ASSERT): Likewise.
50811         * tests/test-strtod.c (ASSERT): Likewise.
50812         * tests/test-trunc1.c (ASSERT): Likewise.
50813         * tests/test-trunc2.c (ASSERT): Likewise.
50814         * tests/test-truncf1.c (ASSERT): Likewise.
50815         * tests/test-truncf2.c (ASSERT): Likewise.
50816         * tests/test-truncl.c (ASSERT): Likewise.
50817         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50818         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50819         * tests/test-vasnprintf.c (ASSERT): Likewise.
50820         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50821         * tests/test-vasprintf.c (ASSERT): Likewise.
50822         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50823         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50824         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50825         * tests/test-vsnprintf.c (ASSERT): Likewise.
50826         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50827         * tests/test-wcwidth.c (ASSERT): Likewise.
50828         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50829         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50830         * tests/test-xvasprintf.c (ASSERT): Likewise.
50831         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50832         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50833         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50834         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50835         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50836         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50837         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50838         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50839         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50840         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50841         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50842         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50843         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50844         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50845         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50846         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50847         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50848         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50849         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50850         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50851         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50852         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50853         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50854         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50855         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50856         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50857         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50858         * tests/unictype/test-combining.c (ASSERT): Likewise.
50859         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50860         * tests/unictype/test-digit.c (ASSERT): Likewise.
50861         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50862         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50863         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50864         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50865         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50866         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50867         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50868         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50869         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50870         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50871         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50872         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50873         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50874         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50875         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50876         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50877         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50878         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50879         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50880         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50881         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50882         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50883         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50884         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50885         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50886         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50887         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50888         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50889         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50890         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50891         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50892         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50893         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50894         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50895         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50896         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50897         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50898         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50899         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50900         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50901         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50902         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50903         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50904         Reported by Eric Blake.
50905
50906 2008-04-11  Bruno Haible  <bruno@clisp.org>
50907
50908         * lib/wchar.in.h: Tweak comment.
50909
50910 2008-04-11  Bruno Haible  <bruno@clisp.org>
50911
50912         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50913         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50914         gl_COMMON.
50915         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50916
50917 2008-04-11  Bruno Haible  <bruno@clisp.org>
50918
50919         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50920
50921 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50922
50923         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50924         of attempting to use non-existing /dev/*random.  Based on patch
50925         from Adam Strzelecki <ono@java.pl> in
50926         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50927
50928 2008-04-08  Bruno Haible  <bruno@clisp.org>
50929
50930         Add tentative support for emx+gcc.
50931         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50932         * lib/fpurge.c (fpurge): Likewise.
50933         * lib/freadable.c (freadable): Likewise.
50934         * lib/freadahead.c (freadahead): Likewise.
50935         * lib/freading.c (freading): Likewise.
50936         * lib/freadptr.c (freadptr): Likewise.
50937         * lib/freadseek.c (freadptrinc): Likewise.
50938         * lib/fseeko.c (rpl_fseeko): Likewise.
50939         * lib/fseterr.c (fseterr): Likewise.
50940         * lib/fwritable.c (fwritable): Likewise.
50941         * lib/fwriting.c (fwriting): Likewise.
50942         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50943
50944 2008-04-09  Eric Blake  <ebb9@byu.net>
50945
50946         Avoid some autoconf warnings.
50947         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50948         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50949         * m4/afs.m4 (gl_AFS): Likewise.
50950         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50951         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50952         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50953         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50954         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50955         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50956         (AC_CHECK_DECLS_ONCE): Likewise.
50957         Rename file...
50958         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50959         gnulib-tool requires autoconf 2.59 or better.
50960         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50961
50962 2008-04-08  Eric Blake  <ebb9@byu.net>
50963
50964         Use 'git describe --match' if present (added in git 1.5.5).
50965         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50966         if possible.
50967
50968 2008-04-08  Bruno Haible  <bruno@clisp.org>
50969
50970         Add tentative support for OpenServer.
50971         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50972         _ptr, _cnt.
50973         * lib/fpurge.c (fpurge): Likewise.
50974         * lib/freadable.c (freadable): Likewise.
50975         * lib/freadahead.c (freadahead): Likewise.
50976         * lib/freading.c (freading): Likewise.
50977         * lib/freadptr.c (freadptr): Likewise.
50978         * lib/freadseek.c (freadptrinc): Likewise.
50979         * lib/fseeko.c (rpl_fseeko): Likewise.
50980         * lib/fseterr.c (fseterr): Likewise.
50981         * lib/fwritable.c (fwritable): Likewise.
50982         * lib/fwriting.c (fwriting): Likewise.
50983         Reported by Roger Cornelius <rac@tenzing.org> and
50984         Brian K. White <brian@aljex.com>.
50985
50986 2008-04-06  Jim Meyering  <meyering@redhat.com>
50987
50988         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50989
50990 2008-04-06  Bruno Haible  <bruno@clisp.org>
50991
50992         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50993         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50994         * tests/test-printf-posix.sh: Likewise.
50995         * tests/test-vfprintf-posix.sh: Likewise.
50996         * tests/test-vprintf-posix.sh: Likewise.
50997         * tests/test-xprintf-posix.sh: Likewise.
50998
50999 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51000
51001         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51002         hide error from 'ls', needed on OS/2.
51003         Report by Elbert Pol <elbert.pol@gmail.com>.
51004
51005 2008-04-04  Eric Blake  <ebb9@byu.net>
51006
51007         Make test-fseeko.c failures meaningful.
51008         * tests/test-fseeko.c: Print line number on failure.
51009         * tests/test-fseek.c: Likewise.
51010         Reported by Nelson H. F. Beebe.
51011
51012         Improve strtod bug detection check.
51013         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51014         required for Solaris 10.
51015         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51016
51017 2008-04-04  Bruno Haible  <bruno@clisp.org>
51018
51019         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51020         by m4/setenv.m4.
51021
51022 2008-04-03  Eric Blake  <ebb9@byu.net>
51023
51024         Ensure sane .version contents.
51025         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51026         version string.
51027         * build-aux/git-version-gen: Improve documentation.
51028
51029         Make GNU make output nicer.
51030         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51031         MAKECMDGOALS to enforce message for all command line targets.  Set
51032         srcdir for use in maint.mk.
51033
51034         Another maintainer tweak.
51035         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51036         a target that regenerates version.
51037
51038 2008-04-03  Jim Meyering  <meyering@redhat.com>
51039
51040         vc-list-files: don't cause coreutils "make po-check" failure
51041         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51042
51043 2008-04-03  Eric Blake  <ebb9@byu.net>
51044
51045         Allow VPATH usage of vc-list-files.
51046         * build-aux/vc-list-files (scriptversion): Add timestamp.
51047         (options): Add --help, --version, -C.
51048         (CVS): Support installed cvsu.
51049
51050 2008-04-02  Bruno Haible  <bruno@clisp.org>
51051
51052         Avoid some "statement with no effect" warnings from gcc.
51053         * tests/test-wctype.c (main): Explicitly ignore unused values.
51054         Reported by Jim Meyering.
51055
51056 2008-04-02  Jim Meyering  <meyering@redhat.com>
51057
51058         Avoid some warnings from "gcc -Wshadow".
51059         * tests/test-frexp.c (exp): Define to a different identifier.
51060         * tests/test-frexpl.c (exp): Likewise.
51061
51062 2008-04-03  Jim Meyering  <meyering@redhat.com>
51063
51064         bootstrap: remove dangling *.[ch] symlinks from lib
51065         * build-aux/bootstrap [dangling symlink removal]: Move find's
51066         -depth option to precede all others, to avoid a warning.
51067         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51068
51069 2008-04-02  Bruno Haible  <bruno@clisp.org>
51070
51071         Avoid some warnings from "gcc -Wshadow".
51072         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51073         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51074         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51075         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51076         Reported by Jim Meyering.
51077
51078 2008-04-01  Bruno Haible  <bruno@clisp.org>
51079
51080         Fix test to work on IRIX 6.5 with cc.
51081         * tests/test-math.c (numeric_equal): New function.
51082         (main): Use it.
51083
51084 2008-04-01  Bruno Haible  <bruno@clisp.org>
51085
51086         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51087
51088 2008-04-01  Bruno Haible  <bruno@clisp.org>
51089
51090         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51091         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51092         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51093         (Depends-on): Remove math.
51094
51095         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51096         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51097         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51098         (Depends-on): Remove math.
51099
51100         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51101         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51102         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51103         (Depends-on): Remove math.
51104         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51105         (Depends-on): Remove math.
51106
51107         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51108         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51109         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51110         (Depends-on): Remove math.
51111         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51112         (Depends-on): Remove math.
51113
51114         * tests/test-round1.c: Include nan.h.
51115         (main): Use NaNd instead of NAN.
51116         * modules/round-tests (Files): Add tests/nan.h.
51117
51118         * tests/test-trunc1.c: Include nan.h.
51119         (main): Use NaNd instead of NAN.
51120         * modules/trunc-tests (Files): Add tests/nan.h.
51121
51122         * tests/test-roundf1.c: Include nan.h.
51123         (main): Use NaNf instead of NAN.
51124         * modules/roundf-tests (Files): Add tests/nan.h.
51125
51126         * tests/test-truncf1.c: Include nan.h.
51127         (main): Use NaNf instead of NAN.
51128         * modules/truncf-tests (Files): Add tests/nan.h.
51129
51130         * tests/test-ceilf1.c: Include nan.h.
51131         (main): Use NaNf instead of NAN.
51132         * modules/ceilf-tests (Files): Add tests/nan.h.
51133
51134         * tests/test-floorf1.c: Include nan.h.
51135         (main): Use NaNf instead of NAN.
51136         * modules/floorf-tests (Files): Add tests/nan.h.
51137
51138         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51139         (main): Use NaNf instead of NAN.
51140         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51141
51142         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51143         (main): Use NaNd instead of NAN.
51144         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51145
51146         * tests/test-frexp.c: Include nan.h.
51147         (main): Use NaNd instead of NAN.
51148         * modules/frexp-tests (Files): Add tests/nan.h.
51149
51150         * lib/isnan.c: Don't include <math.h>.
51151         (FUNC): Don't use NAN macro.
51152         * modules/isnand-nolibm (Depends-on): Remove math.
51153         * modules/isnanf-nolibm (Depends-on): Remove math.
51154         * modules/isnanl (Depends-on): Remove math.
51155         * modules/isnanl-nolibm (Depends-on): Remove math.
51156
51157         * tests/nan.h: New file.
51158
51159 2008-04-01  Eric Blake  <ebb9@byu.net>
51160
51161         Fix typos.
51162         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51163         values to be the right type.
51164
51165         For now, cater to gnulib strtod inaccuracies.
51166         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51167         fractional results.  While not as nice from a QoI perspective, it
51168         is a quicker patch than correctly implementing decimal to binary
51169         rounding.
51170
51171 2008-03-31  Eric Blake  <ebb9@byu.net>
51172
51173         Guarantee a definition of NAN.
51174         * lib/math.in.h (NAN): Define if missing.
51175         * tests/test-math.c (main): Test it.
51176         * doc/posix-headers/math.texi (math.h): Document this.
51177         * lib/isnan.c (rpl_isnand): Use it.
51178         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51179         * tests/test-floorf1.c (NaN): Likewise.
51180         * tests/test-frexp.c (NaN): Likewise.
51181         * tests/test-isnand.c (NaN): Likewise.
51182         * tests/test-isnanf.c (NaN): Likewise.
51183         * tests/test-round1.c (NaN): Likewise.
51184         * tests/test-roundf1.c (NaN): Likewise.
51185         * tests/test-snprintf-posix.h (NaN): Likewise.
51186         * tests/test-sprintf-posix.h (NaN): Likewise.
51187         * tests/test-trunc1.c (NaN): Likewise.
51188         * tests/test-truncf1.c (NaN): Likewise.
51189         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51190         * tests/test-vasprintf-posix.c (NaN): Likewise.
51191         * modules/isnand-nolibm (Depends-on): Add math.
51192         * modules/isnanf-nolibm (Depends-on): Likewise.
51193         * modules/isnanl (Depends-on): Likewise.
51194         * modules/isnanl-nolibm (Depends-on): Likewise.
51195         * modules/snprintf-posix-tests (Depends-on): Likewise.
51196         * modules/sprintf-posix-tests (Depends-on): Likewise.
51197         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51198         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51199         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51200         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51201
51202 2008-03-31  Bruno Haible  <bruno@clisp.org>
51203
51204         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51205         * doc/posix-functions/strtod.texi: Likewise.
51206
51207 2008-03-31  Bruno Haible  <bruno@clisp.org>
51208
51209         * tests/test-strtod.c (main): Don't use C99 syntax.
51210
51211 2008-03-31  Bruno Haible  <bruno@clisp.org>
51212
51213         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51214         Reported by Eric Blake.
51215
51216 2008-03-31  Jim Meyering  <meyering@redhat.com>
51217
51218         Don't compare actual signbit return values.
51219         * tests/test-strtod.c (main): Rather, compare only their
51220         zero/non-zero nature.
51221
51222 2008-03-31  Eric Blake  <ebb9@byu.net>
51223
51224         More strtod documentation.
51225         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51226         failures as distinct bugs.
51227
51228 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51229
51230         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51231         Problem reported by Erik Benada in
51232         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51233
51234 2008-03-30  Bruno Haible  <bruno@clisp.org>
51235
51236         * tests/test-strtod.c: Add comments about which assertion fails on which
51237         platform.
51238         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51239
51240 2008-03-30  Eric Blake  <ebb9@byu.net>
51241
51242         Test signbit behavior on zeros.
51243         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51244         (test_signbitd, test_signbitl): Likewise.
51245
51246         More strtod touchups.
51247         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51248         sign of negative underflow, for now.  Use .5, not .1.
51249         * doc/posix-functions/strtod.texi (strtod): Mention these
51250         limitations.
51251         Reported by Jim Meyering.
51252
51253 2008-03-30  Bruno Haible  <bruno@clisp.org>
51254
51255         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51256         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51257
51258 2008-03-30  Bruno Haible  <bruno@clisp.org>
51259
51260         Avoid failure when attempting to return empty iconv results on some
51261         platforms.
51262         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51263         allocation, don't report ENOMEM when the resulting string is empty.
51264
51265 2008-03-30  Bruno Haible  <bruno@clisp.org>
51266
51267         Fix buffer overrun.
51268         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51269         Don't consider the width for tmp_length. Check count against tmp_length
51270         before doing the padding. Ensure enough allocation during padding.
51271
51272 2008-03-30  Eric Blake  <ebb9@byu.net>
51273
51274         strtod touchups.
51275         * lib/strtod.c (strtod): Avoid compiler warnings.
51276         Reported by Jim Meyering.
51277
51278 2008-03-30  Bruno Haible  <bruno@clisp.org>
51279
51280         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51281         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51282         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51283         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51284         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51285         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51286         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51287         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51288
51289         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51290         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51291         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51292         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51293         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51294         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51295         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51296         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51297
51298         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51299         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51300         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51301         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51302         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51303         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51304         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51305         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51306
51307         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51308         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51309
51310         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51311         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51312
51313         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51314         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51315
51316         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51317         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51318         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51319
51320         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51321         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51322         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51323
51324         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51325         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51326         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51327
51328         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51329         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51330         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51331
51332         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51333         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51334         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51335         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51336         (Depends-on): Add EOVERFLOW.
51337         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51338         (Depends-on): Add EOVERFLOW.
51339         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51340         (Depends-on): Add EOVERFLOW.
51341         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51342         (Depends-on): Add EOVERFLOW.
51343         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51344         (Depends-on): Add EOVERFLOW.
51345         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51346         (Depends-on): Add EOVERFLOW.
51347         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51348         (Depends-on): Add EOVERFLOW.
51349         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51350         (Depends-on): Add EOVERFLOW.
51351
51352         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51353         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51354         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51355
51356         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51357         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51358         * modules/snprintf (Depends-on): Add EOVERFLOW.
51359
51360         * lib/poll.c (EOVERFLOW): Remove fallback.
51361         * modules/poll (Depends-on): Add EOVERFLOW.
51362
51363         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51364         * modules/getugroups (Depends-on): Add EOVERFLOW.
51365
51366         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51367         * modules/getdelim (Depends-on): Add EOVERFLOW.
51368
51369         * lib/ftell.c (EOVERFLOW): Remove fallback.
51370         * modules/ftell (Depends-on): Add EOVERFLOW.
51371
51372         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51373         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51374         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51375
51376         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51377
51378         * modules/EOVERFLOW-tests: New file.
51379         * tests/test-EOVERFLOW.c: New file.
51380
51381         * modules/EOVERFLOW: New file.
51382         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51383
51384 2008-03-30  Bruno Haible  <bruno@clisp.org>
51385
51386         Fix bug introduced on 2007-06-10.
51387         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51388         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51389
51390 2008-03-30  Bruno Haible  <bruno@clisp.org>
51391
51392         Improve freadseek's efficiency after ungetc.
51393         * lib/freadseek.c: Include freadahead.h.
51394         (freadptrinc): New function, extracted from freadseek.
51395         (freadseek): Use it in a loop. Use freadahead to determine the number
51396         of loop iterations.
51397         * modules/freadseek (Depends-on): Add freadahead.
51398         (configure.ac): Require AC_C_INLINE.
51399
51400 2008-03-30  Bruno Haible  <bruno@clisp.org>
51401
51402         * lib/freadseek.c (freadseek): Don't ignore the return value of
51403         freadptr.
51404
51405 2008-03-29  Eric Blake  <ebb9@byu.net>
51406
51407         Add hex float support.
51408         * modules/strtod (Depends-on): Add c-ctype.
51409         (Link): Mention POW_LIB.
51410         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51411         whitespace between 'e' and exponent.
51412         * tests/test-strtod.c (main): Enable hex float tests.
51413         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51414         now provides.
51415
51416         Document various strtod bugs, with some fixes.
51417         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51418         "-0x", "inf", "nan", and hex constants.
51419         * doc/posix-functions/atof.texi (atof): Likewise.
51420         * modules/stdlib (Makefile.am): Support strtod.
51421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51422         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51423         detect additional strtod bugs.
51424         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51425         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51426         bool where appropriate.  Parse 'inf' and 'nan'.
51427         * tests/test-strtod.c: New file.
51428         * modules/strtod (Depends-on): Add stdbool, stdlib.
51429         (configure.ac): Turn on module indicator.
51430         * modules/strtod-tests: New module.
51431
51432 2008-03-29  Eric Blake  <ebb9@byu.net>
51433
51434         Fix ftell on mingw.
51435         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51436         * modules/ftell-tests (Depends-on): Add binary-io.
51437         * modules/ftello-tests (Depends-on): Likewise.
51438         * tests/test-ftell.c (main): Enhance test to cover behavior after
51439         ungetc.  Enforce binary mode.
51440         * tests/test-ftello.c (main): Likewise.
51441
51442         Pass test-freadseek on cygwin.
51443         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51444         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51445         ungetc buffer.
51446
51447         * tests/test-fflush2.c (main): Fix typo.
51448
51449 2008-03-29  Bruno Haible  <bruno@clisp.org>
51450
51451         * tests/test-fflush2.c (main): Temporarily disable the contents of
51452         this test.
51453         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51454         Reported by Eric Blake.
51455
51456 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51457
51458         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51459         (GC_SHA224_DIGEST_SIZE): Add.
51460
51461         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51462         (gc_hash_digest_length): Likewise.
51463         (gc_hash_buffer): Likewise.
51464
51465 2008-03-25  Bruno Haible  <bruno@clisp.org>
51466
51467         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51468         detail which gettext release to use.
51469         Reported by Simon Josefsson.
51470
51471 2008-03-26  Jim Meyering  <meyering@redhat.com>
51472
51473         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51474         * modules/gnumakefile (clean-GNUmakefile): Also, use
51475         test ... && ... || : syntax rather than if-then ... fi.
51476
51477         gnumakefile: Don't double-quote-expand $(VPATH) value.
51478         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51479
51480 2008-03-24  Eric Blake  <ebb9@byu.net>
51481
51482         Alter GNUmakefile to install into top directory.
51483         * modules/maintainer-makefile: Split, and add dependency...
51484         * modules/gnumakefile: to this new module.
51485         * build-aux/GNUmakefile: Move...
51486         * top/GNUmakefile: ...here.
51487         * build-aux/maint.mk: Move...
51488         * top/maint.mk: ...here.
51489         * MODULES.html.sh (Support for maintaining...): Document new
51490         module.
51491
51492 2008-03-23  Bruno Haible  <bruno@clisp.org>
51493
51494         * gnulib-tool: New options --vc-files, --no-vc-files.
51495         (func_usage): Document them.
51496         (vc_files): New variable.
51497         (func_import): Consider vc_files.
51498         (func_create_testdir): Set vc_files to empty.
51499         Suggested by Jim Meyering and Karl Berry.
51500
51501 2008-03-23  Bruno Haible  <bruno@clisp.org>
51502
51503         Fix regex compilation error on HP-UX 11.
51504         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51505         * modules/regex (Files): Add m4/mbstate_t.m4.
51506         Reported by Ton Voon <ton.voon@altinity.com>.
51507
51508 2008-03-23  Bruno Haible  <bruno@clisp.org>
51509
51510         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51511
51512 2008-03-23  Eric Blake  <ebb9@byu.net>
51513             Bruno Haible  <bruno@clisp.org>
51514
51515         Install files from top/ in the destination directory.
51516         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51517         augmentation also for the files from top/.
51518         (func_import, func_create_testdir): Rewrite file names:
51519         top/filename -> filename.
51520
51521 2008-03-23  Bruno Haible  <bruno@clisp.org>
51522
51523         Tweak "gnulib --version" output.
51524         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51525
51526 2008-03-23  Bruno Haible  <bruno@clisp.org>
51527
51528         Tweak "gnulib --version" output.
51529         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51530         rather than contents of ChangeLog, when possible.
51531
51532 2008-03-21  Eric Blake  <ebb9@byu.net>
51533
51534         More --version tweaks.
51535         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51536         date of last ChangeLog entry.
51537
51538 2008-03-21  Jim Meyering  <meyering@redhat.com>
51539
51540         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51541
51542 2008-03-20  Eric Blake  <ebb9@byu.net>
51543
51544         VPATH fix.
51545         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51546
51547 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51548
51549         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51550         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51551
51552 2008-03-20  Eric Blake  <ebb9@byu.net>
51553
51554         Sync GNUmakefile with coreutils.
51555         * build-aux/GNUmakefile (have-Makefile): Rename...
51556         (_have-Makefile): ...to this, for namespace consideration.
51557         (GNUmakefile.cfg): Include, if present.
51558         (_autoreconf): Define a default.
51559         (_is-dist-target): New rule for rebuilds to pick up intra-release
51560         version.
51561         (maint-cfg.mk): Rename...
51562         (cfg.mk): ...to this.
51563
51564 2008-03-18  Jim Meyering  <meyering@redhat.com>
51565
51566         New script and module: mktempd
51567         * MODULES.html.sh (maint+release support): Add mktempd.
51568         * build-aux/mktempd: New file.
51569         * modules/mktempd: New file.
51570
51571 2008-03-15  Jim Meyering  <meyering@redhat.com>
51572
51573         Undo last change.
51574         * lib/sha1.c, lib/md5.c: 63 != ~63.
51575         Reported by Andreas Schwab.
51576
51577         sha1.c, md5.c: Hoist a redundant expression.
51578         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51579         "ctx->buflen" only once, before calling *_process_block.
51580         * lib/md5.c (md5_process_bytes): Likewise.
51581
51582 2008-03-14  Eric Blake  <ebb9@byu.net>
51583
51584         Bump copyright year in files generated by gnulib-tool.
51585         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51586         gnulib-tool, rather than hard-coding it.
51587
51588         Fix 'gnulib-tool --version' output to work with git.
51589         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51590         (startup): ...here.
51591         (func_version): Use it to invoke git-version-gen, rather than
51592         relying on CVS keyword expansion.  Modernize wording.
51593         (cvsdatestamp, last_checkin_date, version): Kill unused
51594         variables.
51595
51596 2008-03-12  Jim Meyering  <meyering@redhat.com>
51597
51598         Recognize optional cast of the argument to free.
51599         * build-aux/useless-if-before-free: Update regexps.
51600
51601         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51602
51603 2008-03-11  Bruno Haible  <bruno@clisp.org>
51604
51605         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51606         by a single package.
51607         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51608         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51609         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51610         Reported by Sam Steingold <sds@gnu.org>.
51611
51612 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51613
51614         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51615         repositories.
51616
51617 2008-03-11  Bruno Haible  <bruno@clisp.org>
51618
51619         Avoid conflicts between local macro definitions.
51620         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51621         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51622
51623 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51624             Bruno Haible  <bruno@clisp.org>
51625
51626         Make va_copy work with some version of xlc on AIX 5.1.
51627         * lib/stdarg.in.h: New file.
51628         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51629         On AIX, use a <stdarg.h> file substitute.
51630         * modules/stdarg (Files): Add lib/stdarg.in.h.
51631         (Depends-on): Add include_next.
51632         (Makefile.am): Build a stdarg.h substitute if requested.
51633         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51634
51635 2008-03-10  Bruno Haible  <bruno@clisp.org>
51636
51637         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51638         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51639         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51640
51641 2008-03-10  Bruno Haible  <bruno@clisp.org>
51642
51643         * modules/stdlib (Depends-on): Add include_next, remove
51644         absolute-header.
51645
51646 2008-03-09  Bruno Haible  <bruno@clisp.org>
51647
51648         * lib/freadahead.h (freadahead): Document more precisely.
51649         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51650         the sum of both buffer sizes.
51651         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51652         * NEWS: Document the change.
51653
51654 2008-03-09  Bruno Haible  <bruno@clisp.org>
51655
51656         Extend freadptr to return also the buffer size.
51657         * lib/freadptr.h (freadptr): Add sizep argument.
51658         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51659         (freadptr): Add sizep argument. Determine buffer size like freadahead
51660         does.
51661         * tests/test-freadptr.c: Don't include freadahead.h.
51662         (main): Adapt for new calling convention of freadptr.
51663         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51664         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51665         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51666         tests/test-freadptr2.sh.
51667         (Depends): Remove freadahead.
51668         (TESTS): Add test-freadptr2.sh.
51669         (check_PROGRAMS): Add test-freadptr2.
51670
51671 2008-03-09  Bruno Haible  <bruno@clisp.org>
51672
51673         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51674         Report and solution by Simon Josefsson.
51675
51676 2008-03-06  Bruno Haible  <bruno@clisp.org>
51677
51678         Make fflush after ungetc work on BSD platforms.
51679         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51680         * tests/test-fflush2.c: New file.
51681         * tests/test-fflush2.sh: New file.
51682         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51683         tests/test-fflush2.c.
51684         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51685         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51686
51687 2008-03-06  Eric Blake  <ebb9@byu.net>
51688
51689         Likewise for ftello.
51690         * modules/ftello (Dependencies): Add extensions.
51691         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51692
51693 2008-03-06  Bruno Haible  <bruno@clisp.org>
51694
51695         * modules/fseeko (Dependencies): Add extensions.
51696         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51697         Needed on glibc systems.
51698
51699 2008-03-06  Bruno Haible  <bruno@clisp.org>
51700
51701         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51702         email address.
51703         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51704
51705 2008-03-06  Bruno Haible  <bruno@clisp.org>
51706
51707         * users.txt: Add libgnupdf.
51708
51709 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51710
51711         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51712         (Header File Substitutes, Function Substitutes,
51713         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51714         (Build robot for gnulib): Fix typo.
51715
51716 2008-03-06  Bruno Haible  <bruno@clisp.org>
51717
51718         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51719         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51720
51721 2008-03-06  Bruno Haible  <bruno@clisp.org>
51722
51723         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51724         * doc/gnulib.texi: Include it.
51725
51726 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51727
51728         * modules/func (License): Change license to unlimited; there was
51729         no LGPL parts in the module anyway.
51730
51731 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51732
51733         * modules/__func__: Renamed to modules/func.
51734         * modules/__func__-tests: Renamed to modules/func-tests.
51735         * tests/test-__func__.c: Renamed to tests/test-func.c.
51736         * m4/__func__.m4: Renamed to m4/func.m4.
51737         * doc/gnulib.texi (__func__): Section renamed to func.
51738         Suggested by Eric Blake <ebb9@byu.net>.
51739
51740 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51741
51742         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51743         about __func__.  Make example self-contained.  Suggested by Eric
51744         Blake <ebb9@byu.net>.
51745
51746         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51747         Suggested by Eric Blake <ebb9@byu.net>.
51748
51749 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51750
51751         * modules/__func__: New file.
51752         * modules/__func__-tests: New file.
51753         * tests/test-__func__.c: New file.
51754         * m4/__func__.m4: New file.
51755         * doc/gnulib.texi (__func__): Document __func__ module.
51756
51757 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51758
51759         * modules/byteswap (License): Re-license as LGPLv2+.
51760
51761 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51762
51763         * doc/Makefile: Add pdf target.
51764
51765 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51766
51767         * modules/inline (License): Use 'unlimited', since there are only
51768         *.m4 files in this module.
51769
51770 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51771             Bruno Haible  <bruno@clisp.org>
51772
51773         Add support for HP C 7.1 on OpenVMS 8.3.
51774         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51775
51776 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51777
51778         Update VMS specifics.
51779         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51780
51781 2008-03-02  Jim Meyering  <meyering@redhat.com>
51782
51783         Remove the last dependency on the "free" module.
51784         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51785         Reported by Bob Proulx.
51786
51787         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51788
51789         Remove useless "if" tests before free.  Deprecate "free" module.
51790         * doc/posix-functions/free.texi: Mention that this
51791         module is no longer useful.
51792         * modules/free (Notice): Say this module is obsolete.
51793         * modules/readutmp (Depends-on): Remove free.
51794         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51795         * lib/putenv.c (putenv): Likewise.
51796         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51797         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51798         * tests/test-c-strcasestr.c (main): Likewise.
51799         * tests/test-c-strstr.c (main): Likewise.
51800         * tests/test-mbscasestr1.c (main): Likewise.
51801         * tests/test-mbscasestr2.c (main): Likewise.
51802         * tests/test-mbsstr1.c (main): Likewise.
51803         * tests/test-mbsstr2.c (main): Likewise.
51804         * tests/test-memmem.c (main): Likewise.
51805         * tests/test-strcasestr.c (main): Likewise.
51806         * tests/test-striconv.c (main): Likewise.
51807         * tests/test-striconveh.c (main): Likewise.
51808         * tests/test-striconveha.c (main): Likewise.
51809         * tests/test-strstr.c (main): Likewise.
51810
51811         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51812
51813         bootstrap: sync from coreutils again
51814         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51815
51816 2008-03-01  Jim Meyering  <meyering@redhat.com>
51817
51818         bootstrap: sync from coreutils
51819         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51820         also when the target doesn't exist.
51821
51822 2008-03-01  Eric Blake  <ebb9@byu.net>
51823
51824         Fix bugs in last patch.
51825         * lib/memchr2.c (memchr2): Fix typo.
51826         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51827         extension.
51828         Reported by Bruce Korb.
51829
51830         New module 'memchr2'.
51831         * modules/memchr2: New file.
51832         * modules/memchr2-tests: Likewise.
51833         * lib/memchr2.h: Likewise.
51834         * lib/memchr2.c: Likewise, based on memchr.c.
51835         * tests/test-memchr2.c: New test.
51836         * MODULES.html.sh (String handling): Add memchr2.
51837
51838 2008-02-29  Bruno Haible  <bruno@clisp.org>
51839
51840         * modules/freadseek-tests: New file.
51841         * tests/test-freadseek.sh: New file.
51842         * tests/test-freadseek.c: New file.
51843
51844         New module 'freadseek'.
51845         * modules/freadseek: New file.
51846         * lib/freadseek.h: New file.
51847         * lib/freadseek.c: New file.
51848         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51849
51850 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51851
51852         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51853         wydawca.
51854
51855         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51856         program_invocation_name and program_invocation_short_name are
51857         present.
51858
51859 2008-02-28  Bruno Haible  <bruno@clisp.org>
51860
51861         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51862         * tests/test-freadptr.sh: Also test non-seekable stdin.
51863
51864 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51865
51866         * build-aux/bootstrap (source_base, m4_base)
51867         (doc_base, tests_base): New variables.
51868         (gnulib_tool_options): Do not hardcode base directories, use
51869         the above variables instead.
51870
51871 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51872
51873         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51874
51875 2008-02-28  Bruno Haible  <bruno@clisp.org>
51876
51877         * modules/freadptr-tests: New file.
51878         * tests/test-freadptr.sh: New file.
51879         * tests/test-freadptr.c: New file.
51880
51881         New module 'freadptr'.
51882         * modules/freadptr: New file.
51883         * lib/freadptr.h: New file.
51884         * lib/freadptr.c: New file.
51885         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51886
51887 2008-02-26  Karl Berry  <karl@freefriends.org>
51888
51889         Sync from Libtool:
51890         * libltdl/argz.c (argz_add, argz_count): New functions.
51891         * libltdl/argz.in.h: Declare them.
51892         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51893
51894 2008-02-22  Bruno Haible  <bruno@clisp.org>
51895
51896         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51897         is a pointer type.  Needed for HP-UX 10.
51898         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51899         * doc/posix-functions/gmtime_r.texi: Likewise.
51900         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51901
51902 2008-02-24  Bruno Haible  <bruno@clisp.org>
51903
51904         * modules/environ-tests: New file.
51905         * tests/test-environ.c: New file.
51906
51907         New module 'environ'.
51908         * modules/environ: New file.
51909         * lib/unistd.in.h (environ): New declaration.
51910         * m4/environ.m4: New file.
51911         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51912         after use.
51913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51914         HAVE_DECL_ENVIRON.
51915         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51916         HAVE_DECL_ENVIRON.
51917         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51918         wrong claim that 'environ' is missing on some systems.
51919         * modules/execute (Depends-on): Add environ.
51920         * lib/execute.c (environ): Remove fallback declaration.
51921         * modules/pipe (Depends-on): Add environ.
51922         * lib/pipe.c (environ): Remove fallback declaration.
51923         * modules/setenv (Depends-on): Add environ.
51924         * lib/setenv.c (environ): Remove fallback declaration.
51925         * modules/unsetenv (Depends-on): Add environ.
51926         * lib/unsetenv.c (environ): Remove fallback declaration.
51927         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51928         m4/environ.m4.
51929         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51930         (gl_PREREQ_UNSETENV): Likewise.
51931
51932 2008-02-24  Bruno Haible  <bruno@clisp.org>
51933
51934         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51935
51936 2008-02-20  Bob Proulx  <bob@proulx.com>
51937
51938         Enable use of older two part flavor 'git describe'.
51939         * build-aux/git-version-gen: If using the older two part flavor of
51940         git version then recreate the third part now present in the
51941         newer three part flavor of git describe.
51942
51943 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51944
51945         * lib/fts.c (fts_build): Typo correction to comment.
51946
51947 2008-02-17  Bruno Haible  <bruno@clisp.org>
51948
51949         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51950         generating no-op conflicts.
51951
51952 2008-02-17  Bruno Haible  <bruno@clisp.org>
51953
51954         Speed up by 10%.
51955         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51956         result_entries, rather than an index-based loop.
51957
51958 2008-02-17  Bruno Haible  <bruno@clisp.org>
51959
51960         Speed up by 25%.
51961         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51962         'hashcode_cached'.
51963         (entry_create): New function.
51964         (entry_hashcode): Use the cached hashcode if possible.
51965         (read_changelog_file, try_split_merged_entry): Use entry_create.
51966
51967 2008-02-17  Bruno Haible  <bruno@clisp.org>
51968
51969         Speed up from O(n^2) to O(n) for long ChangeLog files.
51970         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51971         (read_changelog_file): Change implementation of entries_reversed list
51972         to rbtreehash.
51973         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51974
51975 2008-02-17  Bruno Haible  <bruno@clisp.org>
51976
51977         New option --split-merged-entry.
51978         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51979         (find_paragraph_end, try_split_merged_entry): New functions.
51980         (long_options): Add option --split-merged-entry.
51981         (usage): Document option --split-merged-entry.
51982         (main): Implement option --split-merged-entry.
51983         Reported by Eric Blake.
51984
51985 2008-02-17  Bruno Haible  <bruno@clisp.org>
51986
51987         * lib/git-merge-changelog.c: Include c-strstr.h.
51988         (main): Support the "git pull --rebase" situation.
51989         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51990         Reported by Eric Blake.
51991
51992 2008-02-16  Eric Blake  <ebb9@byu.net>
51993
51994         Avoid doubling \ in common case of "c-maybe" quoting style.
51995         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51996         eliding outer quotes.
51997         * lib/quotearg.h: Document this.
51998         * tests/test-quotearg.c (result_strings, inputs, results_g)
51999         (flag_results, locale_results): Test it by adding a new string to
52000         each test group.
52001         (compare_strings): Test new string.
52002
52003 2008-02-13  Eric Blake  <ebb9@byu.net>
52004
52005         Avoid trigraph quoting in default output.
52006         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52007         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52008         unless explicitly requested.
52009         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52010
52011 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52012
52013         Don't rely on signed integer overflowing to negative value.
52014         * lib/getugroups.c (getugroups): Include <limits.h>.
52015         Instead, compare against INT_MAX, and increment only if the test passes.
52016
52017 2008-02-13  Jim Meyering  <meyering@redhat.com>
52018         and Eric Blake  <ebb9@byu.net>
52019
52020         Avoid shadowing warning and compile errors on Linux.
52021         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52022         forwarding macros on Linux.
52023         (dcgettext): Define a stub, for Linux.
52024         (results_g, main): Avoid warnings.
52025
52026 2008-02-12  Eric Blake  <ebb9@byu.net>
52027
52028         Silence warning in last patch.
52029         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52030
52031         Quotearg part 4: add tests, fix c-maybe colon quoting.
52032         * lib/quotearg.h: Improve documentation.
52033         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52034         escapes when adding outer quotes.  When quoting trigraphs, use
52035         valid C notation.  When quoting NUL, omit extra characters if next
52036         character is not digit.  Alter prototype.
52037         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52038         callers.
52039         * modules/quotearg-tests: New module.
52040         * tests/test-quotearg.c: New test.
52041
52042 2008-02-07  Eric Blake  <ebb9@byu.net>
52043
52044         Quotearg part 3: add flag to control outer quote elision.
52045         * lib/quotearg.h (c_maybe_quoting_style): New style.
52046         (enum quoting_flags): Better documentation of flags.
52047         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52048         c-maybe style.
52049         (quotearg_buffer_restyled): Handle new flag to elide outer
52050         quotes.
52051
52052         Quotearg part 2: add flag that can control NUL elision.
52053         * lib/quotearg.h (set_quoting_flags): New prototype.
52054         * lib/quotearg.c (struct quoting_options): Add flag field.
52055         (set_quoting_flags): New function.
52056         (quotearg_buffer_restyled): Add flags parameter.
52057         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52058         (quotearg_n_options): Set the flag, since length cannot be
52059         returned.
52060         (quoting_options_from_style): Default flags correctly.
52061
52062         Quotearg part 1: more wrappers, restore quotearg_char state.
52063         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52064         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52065         (quotearg_colon_mem): New wrappers.
52066         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52067         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52068         functions.
52069         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52070         (quotearg_colon_mem): New functions.
52071
52072 2008-02-11  Bruno Haible  <bruno@clisp.org>
52073
52074         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52075         library in the current directory: it does not work with parallel make.
52076         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52077
52078 2008-02-11  Bruno Haible  <bruno@clisp.org>
52079
52080         * .gitattributes: New file.
52081
52082 2008-02-11  Jim Meyering  <meyering@redhat.com>
52083
52084         useless-if-before-free: Fix reversed exit values.
52085         * build-aux/useless-if-before-free: Use correct values
52086         for EXIT_MATCH and EXIT_NO_MATCH.
52087
52088         * build-aux/useless-if-before-free: Close stdout carefully.
52089
52090 2008-02-10  Bruno Haible  <bruno@clisp.org>
52091
52092         New module 'git-merge-changelog'.
52093         * modules/git-merge-changelog: New file.
52094         * lib/git-merge-changelog.c: New file.
52095
52096 2008-02-10  Jim Meyering  <meyering@redhat.com>
52097
52098         useless-if-before-free: New option: --list (-l).
52099
52100         useless-if-before-free: Don't exit immediately upon open failure.
52101         * build-aux/useless-if-before-free: Exit 2 for errors.
52102         Upon failure to open a file, don't exit immediately.
52103         Rather, just warn and continue with any remaining files.
52104
52105 2008-02-10  Bruno Haible  <bruno@clisp.org>
52106
52107         New abstract list operation 'node_set_value'.
52108         * lib/gl_list.h (gl_list_node_set_value): New function.
52109         (struct gl_list_implementation): New field node_set_value.
52110         * lib/gl_list.c (gl_list_node_set_value): New function.
52111         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52112         (gl_array_list_implementation): Update.
52113         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52114         (gl_carray_list_implementation): Update.
52115         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52116         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52117         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52118         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52119         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52120         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52121         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52122         Update.
52123         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52124         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52125         (gl_sublist_list_implementation): Update.
52126
52127 2008-02-10  Bruno Haible  <bruno@clisp.org>
52128
52129         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52130         Needed when ELEMENT is #defined to 'some_type *'.
52131
52132 2008-02-10  Jim Meyering  <meyering@redhat.com>
52133
52134         New script and module: useless-if-before-free
52135         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52136         * build-aux/useless-if-before-free: New file.
52137         * modules/useless-if-before-free: New file.
52138
52139         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52140
52141         xstrtol_error: Fix typo.
52142         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52143         s/exit_failure/exit_status/.
52144
52145 2008-02-09  Jim Meyering  <meyering@redhat.com>
52146
52147         New script and module: gitlog-to-changelog
52148         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52149         * modules/gitlog-to-changelog: New file.
52150         * build-aux/gitlog-to-changelog: New file.
52151
52152 2008-02-08  Jim Meyering  <meyering@redhat.com>
52153
52154         Avoid two "parameter unused" warnings.
52155         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52156         Mark "st" as used.
52157
52158         Use "git COMMAND", not "git-COMMAND".
52159         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52160         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52161         * build-aux/git-version-gen: Use "git status", not "git-status".
52162
52163 2008-02-07  Bruno Haible  <bruno@clisp.org>
52164
52165         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52166         Avoids a crash on Windows Vista.
52167         Reported by Adam Strzelecki <ono@java.pl> via
52168         Simon Josefsson <simon@josefsson.org>.
52169
52170 2008-02-06  Bruno Haible  <bruno@clisp.org>
52171
52172         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52173         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52174         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52176         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52177         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52178         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52179         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52180         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52181         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52182         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52183         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52184         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52185         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52186         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52187         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52188         left-adjust flag.
52189         * tests/test-snprintf-posix.h (test_function): Likewise.
52190         * tests/test-sprintf-posix.h (test_function): Likewise.
52191         * tests/test-vasprintf-posix.c (test_function): Likewise.
52192         * doc/posix-functions/fprintf.texi: Update.
52193         * doc/posix-functions/printf.texi: Update.
52194         * doc/posix-functions/snprintf.texi: Update.
52195         * doc/posix-functions/sprintf.texi: Update.
52196         * doc/posix-functions/vfprintf.texi: Update.
52197         * doc/posix-functions/vprintf.texi: Update.
52198         * doc/posix-functions/vsnprintf.texi: Update.
52199         * doc/posix-functions/vsprintf.texi: Update.
52200         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52201
52202 2008-02-06  Bruno Haible  <bruno@clisp.org>
52203
52204         Fix bug introduced on 2008-01-26.
52205         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52206
52207 2008-02-06  Bruno Haible  <bruno@clisp.org>
52208
52209         Fix bug introduced on 2007-06-10.
52210         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52211         !NEED_PRINTF_FLAG_ZERO.
52212
52213 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52214
52215         getloadavg: use libperfstat on AIX5
52216         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52217
52218 2008-02-03  Bruno Haible  <bruno@clisp.org>
52219
52220         * lib/diffseq.h: Add comments about required #includes.
52221         Reported by Michael Biggs <gnulib@doubleplum.net>.
52222
52223 2008-02-01  Bruno Haible  <bruno@clisp.org>
52224
52225         * users.txt: Add gnuit.
52226
52227 2008-01-31  Bruno Haible  <bruno@clisp.org>
52228
52229         * lib/md4.c (set_uint32): Mark as inline.
52230         * lib/md5.c (set_uint32): Likewise.
52231         * lib/sha1.c (set_uint32): Likewise.
52232         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52233         * m4/md5.m4 (gl_MD5): Likewise.
52234         * m4/sha1.m4 (gl_SHA1): Likewise.
52235
52236 2008-01-31  Jim Meyering  <meyering@redhat.com>
52237
52238         Use "sizeof VAR", rather than a literal "4".
52239         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52240         * lib/md4.c (md4_read_ctx): Likewise.
52241         * lib/sha1.c (sha1_read_ctx): Likewise.
52242
52243 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52244
52245         * tests/test-sha1.c: New file, based on test-md5.c.
52246
52247         * modules/crypto/sha1-tests: New file.
52248
52249 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52250
52251         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52252
52253 2008-01-31  Jim Meyering  <meyering@redhat.com>
52254
52255         Prefer "sizeof v" over the equivalent "4".
52256         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52257         * lib/md5.c (set_uint32): Likewise.
52258         * lib/sha1.c (set_uint32): Likewise.
52259
52260 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52261
52262         * lib/sha1.c (set_uint32): Mark function as static.
52263
52264 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52265
52266         md2: clarify comments to say that alignment is not required.
52267         * lib/md2.h: Remove warning about alignment in comment.
52268         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52269         never been required.
52270
52271 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52272
52273         md4: adapt alignment constraint fix from sha1.
52274         * lib/md4.c (set_uint32): New function, from sha1.c
52275         (md4_read_ctx): Use it.
52276         (md4_finish_ctx): Doc fix.
52277         * lib/md4.h: Doc fix.
52278
52279 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52280
52281         md5: adapt alignment constraint fix from sha1.
52282         * lib/md5.c (set_uint32): New function, from sha1.c
52283         (md5_read_ctx): Use it.
52284         (md5_finish_ctx): Doc fix.
52285         * lib/md5.h: Doc fix.
52286
52287 2008-01-30  Peter Palfrader  <weasel@debian.org>
52288
52289         sha1: remove the result buffer alignment constraint
52290         * lib/sha1.c (set_uint32): New function.
52291         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52292         constraint.
52293         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52294         * lib/sha1.h: Likewise.
52295
52296 2008-01-30  Andreas Schwab  <schwab@suse.de>
52297             Bruno Haible  <bruno@clisp.org>
52298
52299         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52300         correct definition of LDBL_MIN_EXP.
52301
52302 2008-01-30  Karl Berry  <karl@gnu.org>
52303
52304         * config/srclist-update: try to preserve x bit on updates.
52305         * config/srclistvars.sh: update for karl.
52306
52307 2008-01-29  Jim Meyering  <meyering@redhat.com>
52308
52309         vasnprintf.c: Avoid warning about unused label
52310         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52311         "overflow" label definition and associated code with the
52312         same cpp condition that guards the sole use of that label.
52313
52314 2008-01-26  Bruno Haible  <bruno@clisp.org>
52315
52316         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52317         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52318         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52319         * lib/isnanl-nolibm.h (isnanl): Likewise.
52320         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52321
52322 2008-01-26  Bruno Haible  <bruno@clisp.org>
52323
52324         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52325         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52326
52327 2008-01-26  Bruno Haible  <bruno@clisp.org>
52328
52329         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52330         GCC >= 4.0 built-in.
52331         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52332
52333 2008-01-26  Bruno Haible  <bruno@clisp.org>
52334
52335         Rename isnan, applicable to 'double' only, to isnand.
52336         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52337         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52338         (configure.ac): Update.
52339         (Include): Replace "isnan.h" with "isnand.h".
52340         * m4/isnand.m4: Renamed from m4/isnan.m4.
52341         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52342         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52343         instead of isnan.c.
52344         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52345         instead of HAVE_ISNAN_IN_LIBC.
52346         (isnand): Renamed from isnan.
52347         * lib/isnand.c: New file.
52348         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52349         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52350         (Makefile.am): Update.
52351         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52352         Include isnand.h instead of isnan.h.
52353         (main): Test isnand instead of isnan.
52354         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52355         isnan-nolibm.
52356         * modules/frexp (Depends-on): Likewise.
52357         * modules/frexp-tests (Depends-on): Likewise.
52358         * modules/frexp-nolibm (Depends-on): Likewise.
52359         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52360         * modules/isfinite (Depends-on): Likewise.
52361         * modules/round-tests (Depends-on): Likewise.
52362         * modules/signbit (Depends-on): Likewise.
52363         * modules/signbit-tests (Depends-on): Likewise.
52364         * modules/snprintf-posix (Depends-on): Likewise.
52365         * modules/sprintf-posix (Depends-on): Likewise.
52366         * modules/trunc-tests (Depends-on): Likewise.
52367         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52368         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52369         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52370         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52371         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52372         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52373         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52374         * modules/vasnprintf-posix (Depends-on): Likewise.
52375         * modules/vasprintf-posix (Depends-on): Likewise.
52376         * modules/vfprintf-posix (Depends-on): Likewise.
52377         * modules/vsnprintf-posix (Depends-on): Likewise.
52378         * modules/vsprintf-posix (Depends-on): Likewise.
52379         * lib/frexp.c: Include isnand.h instead of isnan.h.
52380         (ISNAN): Set to isnand instead of isnan.
52381         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52382         (gl_isfinited): Use isnand instead of isnan.
52383         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52384         (gl_signbitd): Use isnand instead of isnan.
52385         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52386         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52387         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52388         (main): Use isnand instead of isnan.
52389         * tests/test-round1.c: Include isnand.h.
52390         (main): Use isnand instead of isnan.
52391         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52392         (ISNAN): Set to isnand instead of isnan.
52393         * tests/test-trunc1.c: Include isnand.h.
52394         (main): Use isnand instead of isnan.
52395         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52396         (equal): Use isnand instead of isnan.
52397         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52398         isnand-nolibm.
52399         * NEWS: Mention the change.
52400
52401 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52402             Bruno Haible  <bruno@clisp.org>
52403
52404         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52405         the GCC builtins for signbits are present and set
52406         REPLACE_SIGNBIT_USING_GCC if so.
52407         * lib/math.in.h (signbit): Define using GCC builtins if
52408         REPLACE_SIGNBIT_USING_GCC is set.
52409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52410         REPLACE_SIGNBIT_USING_GCC.
52411         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52412
52413 2008-01-25  Jim Meyering  <meyering@redhat.com>
52414
52415         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52416         * lib/poll.c: Include <config.h>, not "config.h".
52417         * tests/test-getaddrinfo.c: Likewise.
52418
52419 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52420
52421         * modules/sockets-tests: New file.
52422
52423 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52424
52425         * modules/sockets: New module, can be used to call WSA_Startup and
52426         WSA_Cleanup when needed.
52427
52428         * lib/sockets.h, lib/sockets.c: New files.
52429
52430         * m4/sockets.m4: New file.
52431
52432         * tests/test-sockets.c: New file.
52433
52434 2008-01-19  Bruno Haible  <bruno@clisp.org>
52435
52436         * doc/posix-headers: Renamed from doc/headers.
52437         * doc/posix-functions: Renamed from doc/functions.
52438         * doc/gnulib.texi: Update.
52439
52440 2008-01-19  Bruno Haible  <bruno@clisp.org>
52441
52442         * doc/glibc-functions/strcasestr.texi: Include contents of
52443         doc/functions/strcasestr.texi, fixing the list of platforms.
52444         * doc/functions/strcasestr.texi: Remove file.
52445
52446 2008-01-19  Bruno Haible  <bruno@clisp.org>
52447
52448         * doc/glibc-functions/memmem.texi: Include contents of
52449         doc/functions/memmem.texi.
52450         * doc/functions/memmem.texi: Remove file.
52451
52452 2008-01-18  Bruno Haible  <bruno@clisp.org>
52453
52454         * doc/glibc-functions/*.texi: New files.
52455         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52456         to use the new files.
52457
52458 2008-01-17  Bruno Haible  <bruno@clisp.org>
52459
52460         * tests/test-gethostname.c (main): Fix printf statement.
52461
52462 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52463
52464         * modules/gethostname-tests: New file.
52465
52466         * tests/test-gethostname.c: New file.
52467
52468 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52469
52470         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52471         used by the UNAME case.  Reported by Bruno Haible
52472         <bruno@clisp.org>.
52473
52474 2008-01-17  Eric Blake  <ebb9@byu.net>
52475
52476         Convert c-strcasestr to be more efficient.
52477         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52478         (Depends-on): Add c-strcase, remove malloca, strnlen.
52479         * tests/test-c-strcasestr.c (main): Enhance test.
52480         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52481
52482 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52483
52484         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52485         Use it in creating po/Makevars.
52486
52487 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52488
52489         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52490         Applications that requires it should initialize libgcrypt
52491         manually.
52492
52493 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52494
52495         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52496
52497 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52498
52499         Fix problem with getdate on mingw32 reported by Simon Josefsson
52500         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52501         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52502         tzname", when deciding whether to declare tzname.
52503         * lib/strftime.c (tzname): Likewise.
52504
52505 2008-01-15  Bruno Haible  <bruno@clisp.org>
52506
52507         Work around a MacOS X 10.5 bug in frexpl().
52508         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52509         * doc/functions/frexpl.texi: Document the bug.
52510         Reported by Elias Pipping <pipping@gentoo.org>.
52511
52512 2008-01-14  Eric Blake  <ebb9@byu.net>
52513
52514         Touch up previous patch.
52515         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52516         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52517
52518         Convert strcasestr module to use Two-Way algorithm.
52519         * modules/strcasestr-simple: New module, based on the old
52520         strcasestr, but with Two-Way rather than KMP.
52521         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52522         * lib/string.in.h (rpl_strcasestr): Declare.
52523         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52524         performance.
52525         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52526         * modules/string (Makefile.am): Support strcasestr.
52527         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52528         * modules/strcasestr-tests (Depends-on): Check for alarm.
52529         * tests/test-strcasestr.c: Augment test.
52530         * lib/str-two-way.h: Clean up stray macro.
52531         * NEWS: Document new module.
52532         * MODULES.html.sh (string handling): Likewise.
52533         * doc/functions/strcasestr.texi: New file.
52534         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52535         here, since it is not a POSIX function.
52536
52537 2008-01-14  Colin Watson  <cjwatson@debian.org>
52538             Bruno Haible  <bruno@clisp.org>
52539
52540         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52541         works fine; if not, set REPLACE_STRSIGNAL.
52542         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52543         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52544         REPLACE_STRSIGNAL.
52545         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52546         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52547         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52548
52549 2008-01-14  Bruno Haible  <bruno@clisp.org>
52550
52551         * modules/strsignal (Include): Change to <string.h>.
52552
52553 2008-01-14  Colin Watson  <cjwatson@debian.org>
52554
52555         * modules/argp (Notice): Add a notice recommending to change
52556         XGETTEXT_OPTIONS.
52557         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52558
52559 2008-01-13  Colin Watson  <cjwatson@debian.org>
52560
52561         * modules/strsignal-tests: New file.
52562         * tests/test-strsignal.c: New file.
52563
52564         * lib/strsignal.c: New file, from glibc with modifications.
52565         * lib/siglist.h: New file, from glibc with modifications.
52566         * lib/string.in.h (strsignal): New declaration.
52567         * m4/strsignal.m4: New file.
52568         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52569         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52570         * modules/strsignal: New file.
52571         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52572         HAVE_DECL_STRSIGNAL.
52573
52574 2008-01-13  Bruno Haible  <bruno@clisp.org>
52575
52576         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52577         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52578         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52579         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52580
52581 2008-01-13  Bruno Haible  <bruno@clisp.org>
52582
52583         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52584         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52585         * lib/argp.h (__attribute__): Likewise.
52586         * lib/c-stack.c (__attribute__): Likewise.
52587         * lib/error.h (__attribute__): Likewise.
52588         * lib/fts.c (__attribute__): Likewise.
52589         * lib/openat.h (__attribute__): Likewise.
52590         * lib/stdio.in.h (__attribute__): Likewise.
52591         * lib/string.in.h (__attribute__): Likewise.
52592         * lib/utimens.c (__attribute__): Likewise.
52593         * lib/vasnprintf.h (__attribute__): Likewise.
52594         * lib/xalloc.h (__attribute__): Likewise.
52595         * lib/xprintf.h (__attribute__): Likewise.
52596         * lib/xstrtol.h (__attribute__): Likewise.
52597         * lib/xvasprintf.h (__attribute__): Likewise.
52598
52599 2008-01-12  Bruno Haible  <bruno@clisp.org>
52600
52601         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52602         * doc/glibc-headers/a.out.texi: New file.
52603         * doc/glibc-headers/aliases.texi: New file.
52604         * doc/glibc-headers/alloca.texi: New file.
52605         * doc/glibc-headers/ar.texi: New file.
52606         * doc/glibc-headers/argp.texi: New file.
52607         * doc/glibc-headers/argz.texi: New file.
52608         * doc/glibc-headers/byteswap.texi: New file.
52609         * doc/glibc-headers/crypt.texi: New file.
52610         * doc/glibc-headers/endian.texi: New file.
52611         * doc/glibc-headers/envz.texi: New file.
52612         * doc/glibc-headers/err.texi: New file.
52613         * doc/glibc-headers/error.texi: New file.
52614         * doc/glibc-headers/execinfo.texi: New file.
52615         * doc/glibc-headers/fpu_control.texi: New file.
52616         * doc/glibc-headers/fstab.texi: New file.
52617         * doc/glibc-headers/fts.texi: New file.
52618         * doc/glibc-headers/getopt.texi: New file.
52619         * doc/glibc-headers/ieee754.texi: New file.
52620         * doc/glibc-headers/ifaddrs.texi: New file.
52621         * doc/glibc-headers/libintl.texi: New file.
52622         * doc/glibc-headers/mcheck.texi: New file.
52623         * doc/glibc-headers/mntent.texi: New file.
52624         * doc/glibc-headers/obstack.texi: New file.
52625         * doc/glibc-headers/paths.texi: New file.
52626         * doc/glibc-headers/printf.texi: New file.
52627         * doc/glibc-headers/pty.texi: New file.
52628         * doc/glibc-headers/resolv.texi: New file.
52629         * doc/glibc-headers/shadow.texi: New file.
52630         * doc/glibc-headers/sysexits.texi: New file.
52631         * doc/glibc-headers/ttyent.texi: New file.
52632
52633 2008-01-12  Jim Meyering  <meyering@redhat.com>
52634
52635         announce-gen: emit Gnulib's git-based version string.
52636         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52637         New option --gnulib-version=V, where V is expected to be
52638         the output of running git describe in the gnulib directory.
52639         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52640         not useful, and plan to stop publishing an xdelta file with each
52641         coreutils release.
52642
52643         * build-aux/announce-gen: Also check for lzma-compressed files.
52644
52645 2008-01-11  Bruno Haible  <bruno@clisp.org>
52646
52647         * tests/test-memmem.c (main): Increase maximum allowed time.
52648         * tests/test-strstr.c (main): Likewise.
52649
52650 2008-01-11  Bruno Haible  <bruno@clisp.org>
52651
52652         * doc/functions/memmem.texi: Add more precisions about platforms.
52653         * doc/functions/strstr.texi: Likewise.
52654
52655 2008-01-10  Eric Blake  <ebb9@byu.net>
52656
52657         * m4/strstr.m4: Delete cruft from copy-n-paste.
52658         Reported by Bruno Haible.
52659
52660 2008-01-10  Bruno Haible  <bruno@clisp.org>
52661
52662         Make c-strstr rely on strstr.
52663         * lib/c-strstr.c: Don't include str-kmp.h.
52664         (c_strstr): Define in terms of strstr.
52665         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52666         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52667
52668 2008-01-10  Bruno Haible  <bruno@clisp.org>
52669
52670         * doc/gnulib.texi (String Functions in C Locale): New section.
52671         * doc/c-ctype.texi: New file.
52672         * doc/c-strcase.texi: New file.
52673         * doc/c-strcaseeq.texi: New file.
52674         * doc/c-strcasestr.texi: New file.
52675         * doc/c-strstr.texi: New file.
52676         * doc/c-strtod.texi: New file.
52677         * doc/c-strtold.texi: New file.
52678
52679 2008-01-10  Eric Blake  <ebb9@byu.net>
52680
52681         * lib/relocatable.h: Fix a comment.
52682
52683 2008-01-10  Eric Blake  <ebb9@byu.net>
52684
52685         Share two-way algorithm.
52686         * lib/str-two-way.h: New file, merged from...
52687         * lib/memmem.c: ...here...
52688         * lib/strstr.c: ...and here.
52689         * modules/memmem (Files): Use it.
52690         * modules/strstr (Files): Likewise.
52691
52692         Avoid quadratic strstr implementations.
52693         * lib/strstr.c: New file.
52694         * m4/strstr.m4: Likewise.
52695         * modules/strstr: Likewise.
52696         * modules/strstr-tests: Likewise.
52697         * tests/test-strstr.c: Likewise.
52698         * lib/string.in.h (rpl_strstr): Declare.
52699         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52700         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52701         * modules/string (Makefile.am): Likewise.
52702         * MODULES.html.sh (string handling): Mention new module.
52703         * doc/functions/strstr.texi (strstr): Document the bug.
52704
52705 2008-01-10  Bruno Haible  <bruno@clisp.org>
52706
52707         * lib/relocatable.h (relocate): State whether result is freshly
52708         allocated or not.
52709         * lib/relocatable.c (relocate): Return a freshly allocated string
52710         instead of a pointer to a privately held string.
52711         Reported by Sylvain Beucler <beuc@gnu.org>.
52712
52713 2008-01-10  Colin Watson  <cjwatson@debian.org>
52714
52715         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52716         s/S_ISNLK/S_ISLNK/.
52717
52718 2008-01-09  Bruno Haible  <bruno@clisp.org>
52719
52720         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52721         and other files.
52722         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52723         if it's only a guess.
52724         * modules/memmem: Simplify by depending on memmem-simple.
52725
52726 2008-01-09  Bruno Haible  <bruno@clisp.org>
52727
52728         Work around OpenBSD 4.0 tdelete() bug.
52729         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52730         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52731         macros and don't redefine the enum values.
52732         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52733         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52734         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52735
52736 2008-01-09  Bruno Haible  <bruno@clisp.org>
52737
52738         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52739         (main): Don't perform the tests if setlocale did not install a UTF-8
52740         locale. Needed on OpenBSD 4.0.
52741         * modules/wcwidth-tests (Depends-on): Add localcharset.
52742
52743 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52744
52745         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52746         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52747         * NEWS: announce this.
52748         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52749
52750 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52751         and Eric Blake  <ebb9@byu.net>
52752
52753         Add memmem-simple module.
52754         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52755         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52756         * modules/memmem-simple: New file.
52757         * modules/memmem (Description): Tweak.
52758         * MODULES.html.sh (string handling): Mention new module.
52759         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52760         addressed by memmem-simple.
52761         * NEWS: Document the difference.
52762
52763 2008-01-09  Eric Blake  <ebb9@byu.net>
52764
52765         Give gcc some memmem optimization hints.
52766         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52767         (strcasestr): Declare as pure.
52768         * modules/memmem (Maintainer): Claim my implementation.
52769
52770 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52771
52772         Support AIX 6.1 and higher.
52773         * build-aux/config.libpath: Likewise.
52774         * build-aux/config.rpath: Likewise.
52775
52776 2008-01-08  Jim Meyering  <meyering@redhat.com>
52777             Bruno Haible  <bruno@clisp.org>
52778
52779         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52780         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52781         Reported by Peter Fales in
52782         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52783
52784 2008-01-08  Bruno Haible  <bruno@clisp.org>
52785
52786         * modules/unictype/category-of (Depends-on): Add
52787         unictype/category-none.
52788         * modules/unictype/category-and-tests (Depends-on): Add
52789         unictype/category-{L,N,Lu,Nd}.
52790         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52791         * modules/unictype/category-or-tests (Depends-on): Add
52792         unictype/category-{L,N}.
52793         * modules/unictype/category-name-tests (Depends-on): Add
52794         unictype/category-{Z,Nl}.
52795         Reported by Simon Josefsson.
52796
52797 2008-01-08  Bruno Haible  <bruno@clisp.org>
52798
52799         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52800         convention better.
52801         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52802         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52803         Reported by Peter Miller <millerp@canb.auug.org.au>.
52804
52805 2008-01-08  Eric Blake  <ebb9@byu.net>
52806
52807         Rewrite memmem to guarantee linear complexity without malloc.
52808         * lib/memmem.c (memmem): Use Two-Way rather than
52809         Knuth-Morris-Pratt, to allow O(1) space usage.
52810         (critical_factorization, two_way_short_needle)
52811         (two_way_long_needle): New functions.
52812         (knuth_morris_pratt): Delete.
52813         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52814         Add stdint.
52815         * tests/test-memmem.c (main): Add tests for periodic needle and
52816         sublinear performance.
52817         * doc/functions/memmem.texi (memmem): Document other deficiencies
52818         in cygwin and older glibc.
52819
52820 2008-01-08  Bruno Haible  <bruno@clisp.org>
52821
52822         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52823         augmentation.
52824
52825 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52826
52827         Add a configure time option: --disable-acl.
52828         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52829         AC_ARG_ENABLE(acl).
52830
52831 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52832
52833         * tests/test-localename.c: Don't include obsolete "setenv.h".
52834
52835         * modules/localename-tests (Depends-on): Need unsetenv.
52836
52837 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52838
52839         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52840
52841 2008-01-06  Colin Watson  <cjwatson@debian.org>
52842
52843         * users.txt: Add man-db.
52844
52845 2008-01-07  Bruno Haible  <bruno@clisp.org>
52846
52847         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52848         previous section name.
52849
52850 2008-01-07  Bruno Haible  <bruno@clisp.org>
52851
52852         * lib/progname.c (set_program_name): Don't strip off a leading
52853         "lt-" prefix outside a .libs directory.
52854         Suggested by Paul Eggert.
52855
52856 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52857             Bruno Haible  <bruno@clisp.org>
52858
52859         Improve memory cleanup in 'relocatable' module.
52860         * lib/relocatable.h (compute_curr_prefix): Change return type to
52861         'char *'.
52862         * lib/relocatable.c (compute_curr_prefix): Change return type to
52863         'char *'. Free curr_installdir after use.
52864         (relocate): Free curr_prefix_better after use.
52865         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52866
52867 2008-01-01  Bruno Haible  <bruno@clisp.org>
52868
52869         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52870         failure on older glibc systems.
52871         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52872
52873 2008-01-05  Eric Blake  <ebb9@byu.net>
52874
52875         Avoid quadratic system memmem.
52876         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52877         Reported by Ralf Wildenhues.
52878
52879         Fix memmem test for mingw.
52880         * modules/memmem-tests (configure.ac): Check for alarm.
52881         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52882         it.
52883         * doc/functions/memmem.texi: New file.
52884         * doc/gnulib.texi (Function Substitutes): Add memmem.
52885         Reported by Bruno Haible.
52886
52887 2008-01-04  Bruno Haible  <bruno@clisp.org>
52888
52889         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52890         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52891         gl_HEADER_STRING_H_DEFAULTS.
52892
52893 2008-01-04  Eric Blake  <ebb9@byu.net>
52894
52895         Shorten duration of memmem test.
52896         * tests/test-memmem.c (main): Use alarm to declare failure if test
52897         is taking too long.
52898         Reported by Ralf Wildenhues.
52899
52900 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52901
52902         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52903         string, needed by strerror.
52904
52905 2008-01-03  Colin Watson  <cjwatson@debian.org>
52906             Bruno Haible  <bruno@clisp.org>
52907
52908         * doc/gnulib-tool.texi (Localization): New section.
52909
52910 2008-01-02  Bruno Haible  <bruno@clisp.org>
52911
52912         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52913         variables to 'unsigned char *' type.
52914         Reported by Paul Eggert.
52915
52916 2008-01-02  Jim Meyering  <jim@meyering.net>
52917
52918         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52919
52920 2007-12-31  Jim Meyering  <jim@meyering.net>
52921
52922         Avoid use of private FTS type name.
52923         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52924
52925 2007-12-30  Karl Berry  <karl@gnu.org>
52926
52927         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52928         work around defect in Texinfo and/or the standalone Info browser.
52929
52930 2007-12-30  Bruno Haible  <bruno@clisp.org>
52931
52932         Unify 5 copies of the KMP code.
52933         * lib/str-kmp.h: New file.
52934         * lib/c-strcasestr.c: Include str-kmp.h.
52935         (knuth_morris_pratt): Remove function.
52936         (c_strcasestr): Update.
52937         * lib/c-strstr.c: Include str-kmp.h.
52938         (knuth_morris_pratt): Remove function.
52939         (c_strcasestr): Update.
52940         * lib/mbscasestr.c: Include str-kmp.h.
52941         (knuth_morris_pratt_unibyte): Remove function.
52942         * lib/mbsstr.c: Include str-kmp.h.
52943         (knuth_morris_pratt_unibyte): Remove function.
52944         * lib/strcasestr.c: Include str-kmp.h.
52945         (knuth_morris_pratt): Remove function.
52946         (strcasestr): Update.
52947         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52948         * modules/c-strstr (Files): Likewise.
52949         * modules/mbscasestr (Files): Likewise.
52950         * modules/mbsstr (Files): Likewise.
52951         * modules/strcasestr (Files): Likewise.
52952         Suggested by Paul Eggert.
52953
52954 2007-12-30  Bruno Haible  <bruno@clisp.org>
52955
52956         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52957         defined.
52958
52959 2007-12-30  Bruno Haible  <bruno@clisp.org>
52960
52961         * lib/xmalloca.h: Include xalloc.h.
52962         (xnmalloca): New macro.
52963
52964 2007-12-30  Bruno Haible  <bruno@clisp.org>
52965
52966         * lib/malloca.h (nmalloca): New macro.
52967         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52968         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52969         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52970         knuth_morris_pratt_multibyte): Likewise.
52971         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52972         knuth_morris_pratt_multibyte): Likewise.
52973         * lib/memmem.c (knuth_morris_pratt): Likewise.
52974         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52975
52976 2007-12-25  Bruno Haible  <bruno@clisp.org>
52977
52978         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52979         * lib/glob.c: Don't include openat.h.
52980         (link_exists2_p): Add back the code that deals with the
52981         !GLOB_ALTDIRFUNC case.
52982         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52983         let it do the filename concatenation.
52984         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52985         * modules/glob (Depends-on): Remove openat.
52986
52987 2007-12-31  Bruno Haible  <bruno@clisp.org>
52988
52989         * modules/dirfd (License): Change to LGPLv2+.
52990         Approved by Jim Meyering.
52991
52992 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52993
52994         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52995         when multiplying M by sizeof (size_t).
52996
52997 2007-12-10  Martin Lambers  <marlam@marlam.de>
52998
52999         Override getpagesize on mingw.
53000         * lib/getpagesize.c: New file.
53001         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53002         * modules/getpagesize (Files): Add lib/getpagesize.c.
53003         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53005         REPLACE_GETPAGESIZE.
53006         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53007
53008 2007-12-25  Bruno Haible  <bruno@clisp.org>
53009
53010         * modules/localcharset (Notice): New field.
53011         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53012         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53013
53014 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53015             Bruno Haible  <bruno@clisp.org>
53016
53017         Avoid using the syntax symbol() in formatted documentation.
53018         * MODULES.html.sh (func_module): When replacing symbol() with a
53019         hyperlink, remove the parentheses. Show an error if some remain.
53020         Recognize and render the '...' syntax.
53021         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53022         Rework. Add paragraph about GCC's inlining.
53023         * doc/alloca.texi: Likewise.
53024         * doc/error.texi: Remove parentheses from symbol reference.
53025         * doc/gnulib-intro.texi: Likewise.
53026         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53027         * modules/fnmatch (Description): Reword to say "the ... function".
53028         * modules/full-read (Description): Likewise.
53029         * modules/full-write (Description): Likewise.
53030         * modules/safe-read (Description): Likewise.
53031         * modules/safe-write (Description): Likewise.
53032         * modules/strchrnul (Description): Likewise.
53033         * modules/trim (Description): Likewise.
53034         * modules/error (Description): Remove parentheses from symbol
53035         references.
53036         * modules/verror (Description): Likewise.
53037         Reported by Karl Berry.
53038
53039 2007-12-25  Bruno Haible  <bruno@clisp.org>
53040
53041         Fixup after 2007-10-16 commit.
53042         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53043
53044 2007-12-24  Bruno Haible  <bruno@clisp.org>
53045
53046         Make --enable-relocatable work with DESTDIR.
53047         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53048         to compute installdir from destprog.
53049         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53050         also set the RELOC_DESTDIR variable.
53051         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53052
53053 2007-12-24  Bruno Haible  <bruno@clisp.org>
53054
53055         Fix link error due to xalloc_die().
53056         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53057         of xreadlink.
53058         * lib/relocwrapper.c: Update comments.
53059         * build-aux/install-reloc: Remove xreadlink.c from file list.
53060         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53061         xreadlink.c.
53062         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53063
53064 2007-12-24  Bruno Haible  <bruno@clisp.org>
53065
53066         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53067         * lib/setenv.h: Remove file.
53068         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53069         lib/setenv.h.
53070         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53071         (Depends-on): Add stdlib.
53072         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53073         gl_FUNC_UNSETENV.
53074         (Include): Replace setenv.h with <stdlib.h>.
53075         * modules/unsetenv: New file.
53076         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53077         * lib/unsetenv.c: Include <stdlib.h> first.
53078         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53079         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53080         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53081         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53082         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53083         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53085         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53086         * doc/functions/unsetenv.texi: Update.
53087         * modules/xsetenv (Depends-on): Add unsetenv.
53088         * modules/getdate (Depends-on): Likewise.
53089         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53090         * lib/xsetenv.c: Don't include setenv.h.
53091         * lib/getdate.y: Likewise.
53092         * lib/relocwrapper.c: Likewise.
53093         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53094         (Depends-on): Add stdlib.
53095         * NEWS: Mention the changes.
53096         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53097
53098 2007-12-23  Bruno Haible  <bruno@clisp.org>
53099
53100         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53101         indentation.
53102
53103 2007-12-23  Bruno Haible  <bruno@clisp.org>
53104
53105         * lib/c-strcasestr.c: Add more comments.
53106         * lib/c-strstr.c: Likewise.
53107         * lib/mbscasestr.c: Likewise.
53108         * lib/mbsstr.c: Likewise.
53109         * lib/strcasestr.c: Likewise.
53110         * lib/memmem.c: Likewise.
53111
53112 2007-12-23  Bruno Haible  <bruno@clisp.org>
53113
53114         * tests/test-memmem.c: Include <string.h> first.
53115
53116 2007-12-22  Bruno Haible  <bruno@clisp.org>
53117
53118         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53119         the contents of $testsbase.
53120         Reported by Ralf Wildenhues.
53121
53122 2007-12-22  Bruno Haible  <bruno@clisp.org>
53123
53124         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53125         two variables local_ldadd_before, local_ldadd_last.
53126
53127 2007-12-20  Eric Blake  <ebb9@byu.net>
53128
53129         Work around circular library issue when cross-compiling.
53130         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53131         that progname.o does not need to pull in rpl_memcmp.
53132
53133 2007-12-19  Eric Blake  <ebb9@byu.net>
53134
53135         Fix memmem to avoid O(n^2) worst-case complexity.
53136         * lib/memmem.c (knuth_morris_pratt): New function.
53137         (memmem): Use it if first few naive iterations fail.
53138         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53139         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53140         * modules/memchr (License): Likewise.
53141         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53142         malloca.
53143         * tests/test-memmem.c: Rewrite, borrowing ideas from
53144         test-mbsstr1.c; the old version wouldn't even compile!
53145         * modules/memmem-tests: New file.
53146         * lib/string.in.h (rpl_memmem): Add declaration.
53147         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53148         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53149         REPLACE_MEMMEM.
53150
53151 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53152
53153         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53154         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53155         before any system include files, and undef after them all.  This
53156         should fix a problem on VMS reported by John E. Malmberg in
53157         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53158
53159 2007-12-17  Eric Blake  <ebb9@byu.net>
53160
53161         Revert addition of verify, for BSD/OS.
53162         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53163         can't handle large files, for the sake of obsolete platforms.
53164         * modules/fseeko (Depends-on): Remove verify.
53165         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53166         * doc/functions/ftello.texi (ftello): Likewise.
53167         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53168         Reported by Larry Jones.
53169
53170 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53171
53172         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53173         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53174
53175 2007-12-17  Jim Meyering  <meyering@redhat.com>
53176
53177         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53178         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53179         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53180         * modules/getcwd (Depends-on): Add openat.
53181         Reported by Petr Salinger.
53182
53183 2007-12-17  Bruno Haible  <bruno@clisp.org>
53184
53185         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53186         avoid a segmentation fault of the configure test on x86_64 systems.
53187
53188 2007-12-15  Jim Meyering  <meyering@redhat.com>
53189
53190         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53191
53192 2007-12-13  Eric Blake  <ebb9@byu.net>
53193
53194         Another fseek test.
53195         * tests/test-fseek.c (main): Also test ungetc handling.
53196         * tests/test-fseeko.c (main): Likewise.
53197         * modules/fseeko (Depends-on): Add verify.
53198         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53199         large.
53200         Reported by Larry Jones.
53201
53202         Fix fseeko on mingw.
53203         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53204         seek.
53205
53206         Beef up fseek tests.
53207         * tests/test-fseek.c (main): Also test eof handling.
53208         * tests/test-fseeko.c (main): Likewise.
53209         Reported by Larry Jones.
53210
53211 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53212
53213         Fix fseeko on BSD-based platforms.
53214         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53215         successful seek.
53216
53217 2007-12-12  Eric Blake  <ebb9@byu.net>
53218
53219         Allow circular dependency of separate libtests.a
53220         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53221         when use_libtests.
53222
53223 2007-12-11  Eric Blake  <ebb9@byu.net>
53224
53225         Fix bug with -0.0L in previous patch.
53226         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53227         * tests/test-isnan.c (main): Also test on zeroes.
53228         * tests/test-isnanf.c (main): Likewise.
53229         * tests/test-isnanl.h (main): Likewise.
53230
53231         Detect pseudo-denormals on x86 even when cross-compiling.
53232         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53233         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53234         invalid bit patterns that happen to satisfy ==.
53235
53236         Avoid link failures with separate libtests.a.
53237         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53238         last, to satisfy circular dependencies.
53239
53240 2007-12-11  Eric Blake  <ebb9@byu.net>
53241         and Bruno Haible  <bruno@clisp.org>
53242
53243         Fix OpenBSD 4.0 <float.h> handling of long double.
53244         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53245         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53246         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53247
53248 2007-12-11  Jim Meyering  <meyering@redhat.com>
53249
53250         * users.txt: Add libvirt.
53251
53252         Support versions of autoconf prior to 2.59c.
53253         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53254         if it is not already defined.
53255
53256 2007-12-09  Bruno Haible  <bruno@clisp.org>
53257
53258         Let 'gnulib-tool --import' collect sources needed for the tests in
53259         tests/ rather than in lib/.
53260         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53261         argument. If true, add rules to generate libtests.a, and put libtests.a
53262         into $(LDADD). Consider source files in subdirectories and set
53263         uses_subdirs.
53264         (func_emit_initmacro_start, func_emit_initmacro_end,
53265         func_emit_initmacro_done): Pass all arguments explicitly.
53266         (func_import): Determine two module lists main_modules,
53267         testsrelated_modules. Determine use_libtests. Determine two variables
53268         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53269         instead of just sed_transform_lib_file. Determine two variables
53270         main_files and testsrelated_files. Compute 'files' as the union of
53271         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53272         func_add_or_update. In the generated gnulib-comp.m4, collect the
53273         object files for tests/ in different variables than those for lib/.
53274         Substitute LIBTESTS_LIBDEPS.
53275         (func_create_testdir): Combine the uses_subdirs results from
53276         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53277
53278 2007-12-09  Bruno Haible  <bruno@clisp.org>
53279
53280         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53281         the build-aux directory.
53282
53283 2007-12-09  Bruno Haible  <bruno@clisp.org>
53284
53285         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53286         introduced on 2006-09-09.
53287
53288 2007-12-07  Jim Meyering  <meyering@redhat.com>
53289
53290         Let these macros work also with autoconf-2.59.
53291         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53292         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53293         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53294
53295 2007-12-06  Jim Meyering  <meyering@redhat.com>
53296
53297         Avoid a configure-time syntax error in gl_FUNC_ACL.
53298         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53299         function in each branch, before testing the cache variable.
53300
53301 2007-12-04  Eric Blake  <ebb9@byu.net>
53302
53303         Make scripts executable.
53304         * build-aux/config.guess: Add execute permissions.
53305         * build-aux/config.sub: Likewise.
53306         * build-aux/gendocs.sh: Likewise.
53307
53308         Fix frexp on mingw.
53309         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53310         cross-compiling.
53311         * doc/functions/frexp.texi (frexp): Document the bug.
53312
53313         Make cygwin fseeko check more reliable.
53314         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53315         version numbers, rather than unrelated feature check.
53316         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53317         * doc/functions/ftello.texi (ftello): Likewise.
53318         Reported by Bruno Haible.
53319
53320         * m4/strerror.m4: Bump version number.
53321
53322 2007-12-03  Bruno Haible  <bruno@clisp.org>
53323
53324         * doc/functions/mprotect.texi: Mention the mingw problem.
53325
53326 2007-12-03  Eric Blake  <ebb9@byu.net>
53327
53328         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53329         REPLACE_STRERROR is initialized before this macro.
53330
53331 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53332
53333         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53334         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53335         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53336         put -lsec in even for programs other than 'ls'.  This fixes a problem
53337         for gettext reported by Bruno Haible in
53338         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53339         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53340         Add support for Solaris 10.  This isn't efficient, but should get the
53341         job done for now.
53342
53343 2007-12-03  James Youngman  <jay@gnu.org>
53344
53345         * doc/regexprops-generic.texi: change "an close-group" to "a
53346         close-group" and "illegal" to "not allowed".
53347
53348 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53349
53350         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53351         pr_byname.h. Needed for the rare case when the maintainer has done
53352         "make maintainer-clean" in the source directory and then attempts a
53353         build outside the source directory.
53354         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53355         scripts_byname.h.
53356
53357 2007-12-02  Martin Lambers <marlam@marlam.de>
53358             Bruno Haible  <bruno@clisp.org>
53359
53360         * lib/getpagesize.h: Remove file.
53361         * lib/unistd.in.h: Include declaration of getpagesize here.
53362         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53363         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53364         HAVE_SYS_PARAM_H.
53365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53366         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53367         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53368         (Depends-on): Add unistd.
53369         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53370         (Include): Use <unistd.h> instead of getpagesize.h.
53371         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53372         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53373         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53374         gl_GETPAGESIZE invocation, already handled by module dependency.
53375         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53376
53377 2007-12-02  Bruno Haible  <bruno@clisp.org>
53378
53379         * modules/strings-tests: New file.
53380         * tests/test-strings.c: New file.
53381
53382         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53383         * lib/strings.in.h: New file.
53384         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53385         * m4/strings_h.m4: New file.
53386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53387         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53388         * modules/strings: New file.
53389         * modules/string (Makefile.am): Update.
53390         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53391         Reported by Karl Berry.
53392
53393 2007-12-01  Eric Blake  <ebb9@byu.net>
53394
53395         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53396         accomodate fix in cygwin 1.5.25.
53397
53398 2007-12-01  Jim Meyering  <meyering@redhat.com>
53399
53400         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53401         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53402         that would inhibit utf8-optimization of a regexp containing line-
53403         or buffer-anchors, e.g., `^', `$'.
53404
53405 2007-11-30  Bruno Haible  <bruno@clisp.org>
53406
53407         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53408         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53409         glthread_recursive_lock_init.
53410         * lib/lock.c (glthread_recursive_lock_init)
53411         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53412         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53413
53414 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53415
53416         New function qset_acl, like set_acl but with syscall semantics.
53417         * lib/acl.h (qset_acl): New decl.
53418         * lib/acl.c (qset_acl): New function.
53419         (set_acl): Use new function.  Use more-consistent diagnostics.
53420
53421 2007-11-28  Jim Meyering  <meyering@redhat.com>
53422
53423         * modules/physmem (License): Change from GPL to LGPLv2+.
53424
53425 2007-11-26  Bruno Haible  <bruno@clisp.org>
53426
53427         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53428         'long double' type has excess precision.
53429         Reported by Jim Meyering in
53430         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53431
53432 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53433
53434         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53435         Sync from <http://gnu.org/licenses>.
53436         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53437         with license text from same location.
53438         * doc/maintain.texi, doc/standards.texi:  Sync from
53439         <http://savannah.gnu.org/projects/gnustandards>.
53440
53441 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53442         and Jim Meyering  <meyering@redhat.com>
53443
53444         Adjust getdate' grammar to accept a slightly more regular language.
53445         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53446         Before, the former was rejected.
53447         * lib/getdate.y (digits_to_date_time): New function, factored
53448         out of ...
53449         (number): ...here.  Just call digits_to_date_time.
53450         (hybrid): New non-terminal to handle an <unsigned number,
53451         signed relative offset> sequence consistently.
53452
53453 2007-11-18  Jim Meyering  <meyering@redhat.com>
53454
53455         Pull my changes from coreutils:
53456         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53457         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53458         use of $gnulib_tool_option_extras, so that it's separated from the
53459         preceding argument.
53460
53461         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53462         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53463         parent destination directories before copying a file into place.
53464
53465 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53466
53467         bootstrap: work also with 4-argument variant of AC_INIT
53468         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53469
53470 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53471
53472         Port test-getaddrinfo to Solaris.
53473         Problem reported by Bruno Haible in
53474         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53475         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53476         explanation of setting 'hints'.
53477         Don't reject an implementation merely because it returns EAI_SERVICE.
53478         (EAI_SERVICE): Define to 0 if not defined.
53479
53480 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53481
53482         The license of gnu-make and posix-shell is now "GPLed build tool".
53483         * modules/gnu-make (License): Likewise.
53484         * modules/posix-shell (License): Likewise.
53485
53486         New module posix-shell, for determining a POSIX shell
53487         or perhaps something that is close enough to a POSIX shell.
53488         * m4/posix-shell.m4: New file.
53489         * modules/posix-shell: New file.
53490
53491         * MODULES.html.sh: Mention new module.
53492
53493         New module gnu-make, for determining whether we're using GNU Make.
53494         * m4/gnu-make.m4: New file.
53495         * modules/gnu-make: New file.
53496         * MODULES.html.sh: Mention new module.
53497
53498 2007-11-14  Jim Meyering  <meyering@redhat.com>
53499
53500         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53501         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53502         use this macro to create a function _definition_.
53503         Remove useless "#undef ARGMATCH_DIE".
53504
53505 2007-11-14  Bruno Haible  <bruno@clisp.org>
53506
53507         * lib/config.charset: Update for OpenBSD 4.1.
53508         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53509
53510 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53511
53512         Document 64-bit #if problems in stdint.texi.
53513         * doc/headers/stdint.texi (stdint.h): Mention problems with
53514         64-bit-#if, and how to work around them.
53515
53516         Don't insist on 'long long int' support in the preprocessor.  It
53517         breaks too many things.  For example, PRIdMAX still uses a 'long
53518         long int' format with the latest Sun compiler, even though
53519         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53520         preprocessor problem.  This causes the latest coreutils to dump
53521         core on Solaris 10 sparc with the Sun C compiler.
53522         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53523         the troublesome expressions at configure-time, not at #if-time.
53524         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53525         preprocessor.
53526         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53527         compile-time C checks, done at 'configure'-time.
53528         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53529         * modules/inttypes (Makefile): Substitute the new symbols that
53530         gl_INTTYPES_H now generates.
53531         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53532
53533 2007-11-12  Bruno Haible  <bruno@clisp.org>
53534
53535         Tests for Unicode character classification functions.
53536
53537         * modules/unictype/bidicategory-byname-tests: New file.
53538         * modules/unictype/bidicategory-name-tests: New file.
53539         * modules/unictype/bidicategory-of-tests: New file.
53540         * modules/unictype/bidicategory-test-tests: New file.
53541         * modules/unictype/block-list-tests: New file.
53542         * modules/unictype/block-of-tests: New file.
53543         * modules/unictype/block-test-tests: New file.
53544         * modules/unictype/category-C-tests: New file.
53545         * modules/unictype/category-Cc-tests: New file.
53546         * modules/unictype/category-Cf-tests: New file.
53547         * modules/unictype/category-Cn-tests: New file.
53548         * modules/unictype/category-Co-tests: New file.
53549         * modules/unictype/category-Cs-tests: New file.
53550         * modules/unictype/category-L-tests: New file.
53551         * modules/unictype/category-Ll-tests: New file.
53552         * modules/unictype/category-Lm-tests: New file.
53553         * modules/unictype/category-Lo-tests: New file.
53554         * modules/unictype/category-Lt-tests: New file.
53555         * modules/unictype/category-Lu-tests: New file.
53556         * modules/unictype/category-M-tests: New file.
53557         * modules/unictype/category-Mc-tests: New file.
53558         * modules/unictype/category-Me-tests: New file.
53559         * modules/unictype/category-Mn-tests: New file.
53560         * modules/unictype/category-N-tests: New file.
53561         * modules/unictype/category-Nd-tests: New file.
53562         * modules/unictype/category-Nl-tests: New file.
53563         * modules/unictype/category-No-tests: New file.
53564         * modules/unictype/category-P-tests: New file.
53565         * modules/unictype/category-Pc-tests: New file.
53566         * modules/unictype/category-Pd-tests: New file.
53567         * modules/unictype/category-Pe-tests: New file.
53568         * modules/unictype/category-Pf-tests: New file.
53569         * modules/unictype/category-Pi-tests: New file.
53570         * modules/unictype/category-Po-tests: New file.
53571         * modules/unictype/category-Ps-tests: New file.
53572         * modules/unictype/category-S-tests: New file.
53573         * modules/unictype/category-Sc-tests: New file.
53574         * modules/unictype/category-Sk-tests: New file.
53575         * modules/unictype/category-Sm-tests: New file.
53576         * modules/unictype/category-So-tests: New file.
53577         * modules/unictype/category-Z-tests: New file.
53578         * modules/unictype/category-Zl-tests: New file.
53579         * modules/unictype/category-Zp-tests: New file.
53580         * modules/unictype/category-Zs-tests: New file.
53581         * modules/unictype/category-and-not-tests: New file.
53582         * modules/unictype/category-and-tests: New file.
53583         * modules/unictype/category-byname-tests: New file.
53584         * modules/unictype/category-name-tests: New file.
53585         * modules/unictype/category-none-tests: New file.
53586         * modules/unictype/category-of-tests: New file.
53587         * modules/unictype/category-or-tests: New file.
53588         * modules/unictype/category-test-withtable-tests: New file.
53589         * modules/unictype/combining-class-tests: New file.
53590         * modules/unictype/ctype-alnum-tests: New file.
53591         * modules/unictype/ctype-alpha-tests: New file.
53592         * modules/unictype/ctype-blank-tests: New file.
53593         * modules/unictype/ctype-cntrl-tests: New file.
53594         * modules/unictype/ctype-digit-tests: New file.
53595         * modules/unictype/ctype-graph-tests: New file.
53596         * modules/unictype/ctype-lower-tests: New file.
53597         * modules/unictype/ctype-print-tests: New file.
53598         * modules/unictype/ctype-punct-tests: New file.
53599         * modules/unictype/ctype-space-tests: New file.
53600         * modules/unictype/ctype-upper-tests: New file.
53601         * modules/unictype/ctype-xdigit-tests: New file.
53602         * modules/unictype/decimal-digit-tests: New file.
53603         * modules/unictype/digit-tests: New file.
53604         * modules/unictype/mirror-tests: New file.
53605         * modules/unictype/numeric-tests: New file.
53606         * modules/unictype/property-alphabetic-tests: New file.
53607         * modules/unictype/property-ascii-hex-digit-tests: New file.
53608         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53609         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53610         * modules/unictype/property-bidi-block-separator-tests: New file.
53611         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53612         * modules/unictype/property-bidi-common-separator-tests: New file.
53613         * modules/unictype/property-bidi-control-tests: New file.
53614         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53615         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53616         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53617         * modules/unictype/property-bidi-european-digit-tests: New file.
53618         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53619         * modules/unictype/property-bidi-left-to-right-tests: New file.
53620         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53621         * modules/unictype/property-bidi-other-neutral-tests: New file.
53622         * modules/unictype/property-bidi-pdf-tests: New file.
53623         * modules/unictype/property-bidi-segment-separator-tests: New file.
53624         * modules/unictype/property-bidi-whitespace-tests: New file.
53625         * modules/unictype/property-byname-tests: New file.
53626         * modules/unictype/property-combining-tests: New file.
53627         * modules/unictype/property-composite-tests: New file.
53628         * modules/unictype/property-currency-symbol-tests: New file.
53629         * modules/unictype/property-dash-tests: New file.
53630         * modules/unictype/property-decimal-digit-tests: New file.
53631         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53632         * modules/unictype/property-deprecated-tests: New file.
53633         * modules/unictype/property-diacritic-tests: New file.
53634         * modules/unictype/property-extender-tests: New file.
53635         * modules/unictype/property-format-control-tests: New file.
53636         * modules/unictype/property-grapheme-base-tests: New file.
53637         * modules/unictype/property-grapheme-extend-tests: New file.
53638         * modules/unictype/property-grapheme-link-tests: New file.
53639         * modules/unictype/property-hex-digit-tests: New file.
53640         * modules/unictype/property-hyphen-tests: New file.
53641         * modules/unictype/property-id-continue-tests: New file.
53642         * modules/unictype/property-id-start-tests: New file.
53643         * modules/unictype/property-ideographic-tests: New file.
53644         * modules/unictype/property-ids-binary-operator-tests: New file.
53645         * modules/unictype/property-ids-trinary-operator-tests: New file.
53646         * modules/unictype/property-ignorable-control-tests: New file.
53647         * modules/unictype/property-iso-control-tests: New file.
53648         * modules/unictype/property-join-control-tests: New file.
53649         * modules/unictype/property-left-of-pair-tests: New file.
53650         * modules/unictype/property-line-separator-tests: New file.
53651         * modules/unictype/property-logical-order-exception-tests: New file.
53652         * modules/unictype/property-lowercase-tests: New file.
53653         * modules/unictype/property-math-tests: New file.
53654         * modules/unictype/property-non-break-tests: New file.
53655         * modules/unictype/property-not-a-character-tests: New file.
53656         * modules/unictype/property-numeric-tests: New file.
53657         * modules/unictype/property-other-alphabetic-tests: New file.
53658         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53659         * modules/unictype/property-other-grapheme-extend-tests: New file.
53660         * modules/unictype/property-other-id-continue-tests: New file.
53661         * modules/unictype/property-other-id-start-tests: New file.
53662         * modules/unictype/property-other-lowercase-tests: New file.
53663         * modules/unictype/property-other-math-tests: New file.
53664         * modules/unictype/property-other-uppercase-tests: New file.
53665         * modules/unictype/property-paired-punctuation-tests: New file.
53666         * modules/unictype/property-paragraph-separator-tests: New file.
53667         * modules/unictype/property-pattern-syntax-tests: New file.
53668         * modules/unictype/property-pattern-white-space-tests: New file.
53669         * modules/unictype/property-private-use-tests: New file.
53670         * modules/unictype/property-punctuation-tests: New file.
53671         * modules/unictype/property-quotation-mark-tests: New file.
53672         * modules/unictype/property-radical-tests: New file.
53673         * modules/unictype/property-sentence-terminal-tests: New file.
53674         * modules/unictype/property-soft-dotted-tests: New file.
53675         * modules/unictype/property-space-tests: New file.
53676         * modules/unictype/property-terminal-punctuation-tests: New file.
53677         * modules/unictype/property-test-tests: New file.
53678         * modules/unictype/property-titlecase-tests: New file.
53679         * modules/unictype/property-unassigned-code-value-tests: New file.
53680         * modules/unictype/property-unified-ideograph-tests: New file.
53681         * modules/unictype/property-uppercase-tests: New file.
53682         * modules/unictype/property-variation-selector-tests: New file.
53683         * modules/unictype/property-white-space-tests: New file.
53684         * modules/unictype/property-xid-continue-tests: New file.
53685         * modules/unictype/property-xid-start-tests: New file.
53686         * modules/unictype/property-zero-width-tests: New file.
53687         * modules/unictype/scripts-tests: New file.
53688         * modules/unictype/syntax-c-ident-tests: New file.
53689         * modules/unictype/syntax-c-whitespace-tests: New file.
53690         * modules/unictype/syntax-java-ident-tests: New file.
53691         * modules/unictype/syntax-java-whitespace-tests: New file.
53692         * tests/unictype/test-bidi_byname.c: New file.
53693         * tests/unictype/test-bidi_name.c: New file.
53694         * tests/unictype/test-bidi_of.c: New file.
53695         * tests/unictype/test-bidi_test.c: New file.
53696         * tests/unictype/test-block_list.c: New file.
53697         * tests/unictype/test-block_of.c: New file.
53698         * tests/unictype/test-block_test.c: New file.
53699         * tests/unictype/test-categ_and.c: New file.
53700         * tests/unictype/test-categ_and_not.c: New file.
53701         * tests/unictype/test-categ_byname.c: New file.
53702         * tests/unictype/test-categ_name.c: New file.
53703         * tests/unictype/test-categ_none.c: New file.
53704         * tests/unictype/test-categ_of.c: New file.
53705         * tests/unictype/test-categ_or.c: New file.
53706         * tests/unictype/test-categ_test_withtable.c: New file.
53707         * tests/unictype/test-combining.c: New file.
53708         * tests/unictype/test-decdigit.c: New file.
53709         * tests/unictype/test-digit.c: New file.
53710         * tests/unictype/test-mirror.c: New file.
53711         * tests/unictype/test-numeric.c: New file.
53712         * tests/unictype/test-pr_byname.c: New file.
53713         * tests/unictype/test-pr_test.c: New file.
53714         * tests/unictype/test-predicate-part1.h: New file.
53715         * tests/unictype/test-predicate-part2.h: New file.
53716         * tests/unictype/test-scripts.c: New file.
53717         * tests/unictype/test-sy_c_ident.c: New file.
53718         * tests/unictype/test-sy_java_ident.c: New file.
53719
53720         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53721         for Unicode 5.0.0.
53722         * tests/unictype/test-categ_Cc.c: Likewise.
53723         * tests/unictype/test-categ_Cf.c: Likewise.
53724         * tests/unictype/test-categ_Cn.c: Likewise.
53725         * tests/unictype/test-categ_Co.c: Likewise.
53726         * tests/unictype/test-categ_Cs.c: Likewise.
53727         * tests/unictype/test-categ_L.c: Likewise.
53728         * tests/unictype/test-categ_Ll.c: Likewise.
53729         * tests/unictype/test-categ_Lm.c: Likewise.
53730         * tests/unictype/test-categ_Lo.c: Likewise.
53731         * tests/unictype/test-categ_Lt.c: Likewise.
53732         * tests/unictype/test-categ_Lu.c: Likewise.
53733         * tests/unictype/test-categ_M.c: Likewise.
53734         * tests/unictype/test-categ_Mc.c: Likewise.
53735         * tests/unictype/test-categ_Me.c: Likewise.
53736         * tests/unictype/test-categ_Mn.c: Likewise.
53737         * tests/unictype/test-categ_N.c: Likewise.
53738         * tests/unictype/test-categ_Nd.c: Likewise.
53739         * tests/unictype/test-categ_Nl.c: Likewise.
53740         * tests/unictype/test-categ_No.c: Likewise.
53741         * tests/unictype/test-categ_P.c: Likewise.
53742         * tests/unictype/test-categ_Pc.c: Likewise.
53743         * tests/unictype/test-categ_Pd.c: Likewise.
53744         * tests/unictype/test-categ_Pe.c: Likewise.
53745         * tests/unictype/test-categ_Pf.c: Likewise.
53746         * tests/unictype/test-categ_Pi.c: Likewise.
53747         * tests/unictype/test-categ_Po.c: Likewise.
53748         * tests/unictype/test-categ_Ps.c: Likewise.
53749         * tests/unictype/test-categ_S.c: Likewise.
53750         * tests/unictype/test-categ_Sc.c: Likewise.
53751         * tests/unictype/test-categ_Sk.c: Likewise.
53752         * tests/unictype/test-categ_Sm.c: Likewise.
53753         * tests/unictype/test-categ_So.c: Likewise.
53754         * tests/unictype/test-categ_Z.c: Likewise.
53755         * tests/unictype/test-categ_Zl.c: Likewise.
53756         * tests/unictype/test-categ_Zp.c: Likewise.
53757         * tests/unictype/test-categ_Zs.c: Likewise.
53758         * tests/unictype/test-ctype_alnum.c: Likewise.
53759         * tests/unictype/test-ctype_alpha.c: Likewise.
53760         * tests/unictype/test-ctype_blank.c: Likewise.
53761         * tests/unictype/test-ctype_cntrl.c: Likewise.
53762         * tests/unictype/test-ctype_digit.c: Likewise.
53763         * tests/unictype/test-ctype_graph.c: Likewise.
53764         * tests/unictype/test-ctype_lower.c: Likewise.
53765         * tests/unictype/test-ctype_print.c: Likewise.
53766         * tests/unictype/test-ctype_punct.c: Likewise.
53767         * tests/unictype/test-ctype_space.c: Likewise.
53768         * tests/unictype/test-ctype_upper.c: Likewise.
53769         * tests/unictype/test-ctype_xdigit.c: Likewise.
53770         * tests/unictype/test-decdigit.h: Likewise.
53771         * tests/unictype/test-digit.h: Likewise.
53772         * tests/unictype/test-numeric.h: Likewise.
53773         * tests/unictype/test-pr_alphabetic.c: Likewise.
53774         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53775         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53776         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53777         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53778         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53779         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53780         * tests/unictype/test-pr_bidi_control.c: Likewise.
53781         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53782         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53783         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53784         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53785         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53786         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53787         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53788         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53789         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53790         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53791         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53792         * tests/unictype/test-pr_combining.c: Likewise.
53793         * tests/unictype/test-pr_composite.c: Likewise.
53794         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53795         * tests/unictype/test-pr_dash.c: Likewise.
53796         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53797         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53798         * tests/unictype/test-pr_deprecated.c: Likewise.
53799         * tests/unictype/test-pr_diacritic.c: Likewise.
53800         * tests/unictype/test-pr_extender.c: Likewise.
53801         * tests/unictype/test-pr_format_control.c: Likewise.
53802         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53803         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53804         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53805         * tests/unictype/test-pr_hex_digit.c: Likewise.
53806         * tests/unictype/test-pr_hyphen.c: Likewise.
53807         * tests/unictype/test-pr_id_continue.c: Likewise.
53808         * tests/unictype/test-pr_id_start.c: Likewise.
53809         * tests/unictype/test-pr_ideographic.c: Likewise.
53810         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53811         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53812         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53813         * tests/unictype/test-pr_iso_control.c: Likewise.
53814         * tests/unictype/test-pr_join_control.c: Likewise.
53815         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53816         * tests/unictype/test-pr_line_separator.c: Likewise.
53817         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53818         * tests/unictype/test-pr_lowercase.c: Likewise.
53819         * tests/unictype/test-pr_math.c: Likewise.
53820         * tests/unictype/test-pr_non_break.c: Likewise.
53821         * tests/unictype/test-pr_not_a_character.c: Likewise.
53822         * tests/unictype/test-pr_numeric.c: Likewise.
53823         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53824         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53825         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53826         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53827         * tests/unictype/test-pr_other_id_start.c: Likewise.
53828         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53829         * tests/unictype/test-pr_other_math.c: Likewise.
53830         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53831         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53832         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53833         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53834         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53835         * tests/unictype/test-pr_private_use.c: Likewise.
53836         * tests/unictype/test-pr_punctuation.c: Likewise.
53837         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53838         * tests/unictype/test-pr_radical.c: Likewise.
53839         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53840         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53841         * tests/unictype/test-pr_space.c: Likewise.
53842         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53843         * tests/unictype/test-pr_titlecase.c: Likewise.
53844         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53845         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53846         * tests/unictype/test-pr_uppercase.c: Likewise.
53847         * tests/unictype/test-pr_variation_selector.c: Likewise.
53848         * tests/unictype/test-pr_white_space.c: Likewise.
53849         * tests/unictype/test-pr_xid_continue.c: Likewise.
53850         * tests/unictype/test-pr_xid_start.c: Likewise.
53851         * tests/unictype/test-pr_zero_width.c: Likewise.
53852         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53853         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53854
53855 2007-11-12  Bruno Haible  <bruno@clisp.org>
53856
53857         Unicode character classification functions.
53858         * lib/unictype.h: New file.
53859         * modules/unictype/base: New file.
53860         * modules/unictype/category-L: New file.
53861         * modules/unictype/category-Lu: New file.
53862         * modules/unictype/category-Ll: New file.
53863         * modules/unictype/category-Lt: New file.
53864         * modules/unictype/category-Lm: New file.
53865         * modules/unictype/category-Lo: New file.
53866         * modules/unictype/category-M: New file.
53867         * modules/unictype/category-Mn: New file.
53868         * modules/unictype/category-Mc: New file.
53869         * modules/unictype/category-Me: New file.
53870         * modules/unictype/category-N: New file.
53871         * modules/unictype/category-Nd: New file.
53872         * modules/unictype/category-Nl: New file.
53873         * modules/unictype/category-No: New file.
53874         * modules/unictype/category-P: New file.
53875         * modules/unictype/category-Pc: New file.
53876         * modules/unictype/category-Pd: New file.
53877         * modules/unictype/category-Ps: New file.
53878         * modules/unictype/category-Pe: New file.
53879         * modules/unictype/category-Pi: New file.
53880         * modules/unictype/category-Pf: New file.
53881         * modules/unictype/category-Po: New file.
53882         * modules/unictype/category-S: New file.
53883         * modules/unictype/category-Sm: New file.
53884         * modules/unictype/category-Sc: New file.
53885         * modules/unictype/category-Sk: New file.
53886         * modules/unictype/category-So: New file.
53887         * modules/unictype/category-Z: New file.
53888         * modules/unictype/category-Zs: New file.
53889         * modules/unictype/category-Zl: New file.
53890         * modules/unictype/category-Zp: New file.
53891         * modules/unictype/category-C: New file.
53892         * modules/unictype/category-Cc: New file.
53893         * modules/unictype/category-Cf: New file.
53894         * modules/unictype/category-Cs: New file.
53895         * modules/unictype/category-Co: New file.
53896         * modules/unictype/category-Cn: New file.
53897         * modules/unictype/category-or: New file.
53898         * modules/unictype/category-of: New file.
53899         * modules/unictype/category-test: New file.
53900         * modules/unictype/category-test-withtable: New file.
53901         * modules/unictype/category-byname: New file.
53902         * modules/unictype/category-none: New file.
53903         * modules/unictype/category-and: New file.
53904         * modules/unictype/category-and-not: New file.
53905         * modules/unictype/category-name: New file.
53906         * modules/unictype/combining-class: New file.
53907         * modules/unictype/category-all: New file.
53908         * modules/unictype/bidicategory-all: New file.
53909         * modules/unictype/bidicategory-byname: New file.
53910         * modules/unictype/bidicategory-name: New file.
53911         * modules/unictype/bidicategory-of: New file.
53912         * modules/unictype/bidicategory-test: New file.
53913         * modules/unictype/decimal-digit: New file.
53914         * modules/unictype/digit: New file.
53915         * modules/unictype/numeric: New file.
53916         * modules/unictype/mirror: New file.
53917         * modules/unictype/property-white-space: New file.
53918         * modules/unictype/property-alphabetic: New file.
53919         * modules/unictype/property-other-alphabetic: New file.
53920         * modules/unictype/property-not-a-character: New file.
53921         * modules/unictype/property-default-ignorable-code-point: New file.
53922         * modules/unictype/property-other-default-ignorable-code-point: New
53923         file.
53924         * modules/unictype/property-deprecated: New file.
53925         * modules/unictype/property-logical-order-exception: New file.
53926         * modules/unictype/property-variation-selector: New file.
53927         * modules/unictype/property-private-use: New file.
53928         * modules/unictype/property-unassigned-code-value: New file.
53929         * modules/unictype/property-uppercase: New file.
53930         * modules/unictype/property-other-uppercase: New file.
53931         * modules/unictype/property-lowercase: New file.
53932         * modules/unictype/property-other-lowercase: New file.
53933         * modules/unictype/property-titlecase: New file.
53934         * modules/unictype/property-soft-dotted: New file.
53935         * modules/unictype/property-id-start: New file.
53936         * modules/unictype/property-other-id-start: New file.
53937         * modules/unictype/property-id-continue: New file.
53938         * modules/unictype/property-other-id-continue: New file.
53939         * modules/unictype/property-xid-start: New file.
53940         * modules/unictype/property-xid-continue: New file.
53941         * modules/unictype/property-pattern-white-space: New file.
53942         * modules/unictype/property-pattern-syntax: New file.
53943         * modules/unictype/property-join-control: New file.
53944         * modules/unictype/property-grapheme-base: New file.
53945         * modules/unictype/property-grapheme-extend: New file.
53946         * modules/unictype/property-other-grapheme-extend: New file.
53947         * modules/unictype/property-grapheme-link: New file.
53948         * modules/unictype/property-bidi-control: New file.
53949         * modules/unictype/property-bidi-left-to-right: New file.
53950         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53951         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53952         * modules/unictype/property-bidi-european-digit: New file.
53953         * modules/unictype/property-bidi-eur-num-separator: New file.
53954         * modules/unictype/property-bidi-eur-num-terminator: New file.
53955         * modules/unictype/property-bidi-arabic-digit: New file.
53956         * modules/unictype/property-bidi-common-separator: New file.
53957         * modules/unictype/property-bidi-block-separator: New file.
53958         * modules/unictype/property-bidi-segment-separator: New file.
53959         * modules/unictype/property-bidi-whitespace: New file.
53960         * modules/unictype/property-bidi-non-spacing-mark: New file.
53961         * modules/unictype/property-bidi-boundary-neutral: New file.
53962         * modules/unictype/property-bidi-pdf: New file.
53963         * modules/unictype/property-bidi-embedding-or-override: New file.
53964         * modules/unictype/property-bidi-other-neutral: New file.
53965         * modules/unictype/property-hex-digit: New file.
53966         * modules/unictype/property-ascii-hex-digit: New file.
53967         * modules/unictype/property-ideographic: New file.
53968         * modules/unictype/property-unified-ideograph: New file.
53969         * modules/unictype/property-radical: New file.
53970         * modules/unictype/property-ids-binary-operator: New file.
53971         * modules/unictype/property-ids-trinary-operator: New file.
53972         * modules/unictype/property-zero-width: New file.
53973         * modules/unictype/property-space: New file.
53974         * modules/unictype/property-non-break: New file.
53975         * modules/unictype/property-iso-control: New file.
53976         * modules/unictype/property-format-control: New file.
53977         * modules/unictype/property-dash: New file.
53978         * modules/unictype/property-hyphen: New file.
53979         * modules/unictype/property-punctuation: New file.
53980         * modules/unictype/property-line-separator: New file.
53981         * modules/unictype/property-paragraph-separator: New file.
53982         * modules/unictype/property-quotation-mark: New file.
53983         * modules/unictype/property-sentence-terminal: New file.
53984         * modules/unictype/property-terminal-punctuation: New file.
53985         * modules/unictype/property-currency-symbol: New file.
53986         * modules/unictype/property-math: New file.
53987         * modules/unictype/property-other-math: New file.
53988         * modules/unictype/property-paired-punctuation: New file.
53989         * modules/unictype/property-left-of-pair: New file.
53990         * modules/unictype/property-combining: New file.
53991         * modules/unictype/property-composite: New file.
53992         * modules/unictype/property-decimal-digit: New file.
53993         * modules/unictype/property-numeric: New file.
53994         * modules/unictype/property-diacritic: New file.
53995         * modules/unictype/property-extender: New file.
53996         * modules/unictype/property-ignorable-control: New file.
53997         * modules/unictype/property-test: New file.
53998         * modules/unictype/property-byname: New file.
53999         * modules/unictype/property-all: New file.
54000         * modules/unictype/scripts: New file.
54001         * modules/unictype/scripts-all: New file.
54002         * modules/unictype/block-of: New file.
54003         * modules/unictype/block-test: New file.
54004         * modules/unictype/block-list: New file.
54005         * modules/unictype/block-all: New file.
54006         * modules/unictype/syntax-c-whitespace: New file.
54007         * modules/unictype/syntax-java-whitespace: New file.
54008         * modules/unictype/syntax-c-ident: New file.
54009         * modules/unictype/syntax-java-ident: New file.
54010         * modules/unictype/ctype-alnum: New file.
54011         * modules/unictype/ctype-alpha: New file.
54012         * modules/unictype/ctype-cntrl: New file.
54013         * modules/unictype/ctype-digit: New file.
54014         * modules/unictype/ctype-graph: New file.
54015         * modules/unictype/ctype-lower: New file.
54016         * modules/unictype/ctype-print: New file.
54017         * modules/unictype/ctype-punct: New file.
54018         * modules/unictype/ctype-space: New file.
54019         * modules/unictype/ctype-upper: New file.
54020         * modules/unictype/ctype-xdigit: New file.
54021         * modules/unictype/ctype-blank: New file.
54022         * lib/unictype/bidi_byname.c: New file.
54023         * lib/unictype/bidi_name.c: New file.
54024         * lib/unictype/bidi_of.c: New file.
54025         * lib/unictype/bidi_test.c: New file.
54026         * lib/unictype/bitmap.h: New file.
54027         * lib/unictype/block_test.c: New file.
54028         * lib/unictype/blocks.c: New file.
54029         * lib/unictype/categ_C.c: New file.
54030         * lib/unictype/categ_Cc.c: New file.
54031         * lib/unictype/categ_Cf.c: New file.
54032         * lib/unictype/categ_Cn.c: New file.
54033         * lib/unictype/categ_Co.c: New file.
54034         * lib/unictype/categ_Cs.c: New file.
54035         * lib/unictype/categ_L.c: New file.
54036         * lib/unictype/categ_Ll.c: New file.
54037         * lib/unictype/categ_Lm.c: New file.
54038         * lib/unictype/categ_Lo.c: New file.
54039         * lib/unictype/categ_Lt.c: New file.
54040         * lib/unictype/categ_Lu.c: New file.
54041         * lib/unictype/categ_M.c: New file.
54042         * lib/unictype/categ_Mc.c: New file.
54043         * lib/unictype/categ_Me.c: New file.
54044         * lib/unictype/categ_Mn.c: New file.
54045         * lib/unictype/categ_N.c: New file.
54046         * lib/unictype/categ_Nd.c: New file.
54047         * lib/unictype/categ_Nl.c: New file.
54048         * lib/unictype/categ_No.c: New file.
54049         * lib/unictype/categ_P.c: New file.
54050         * lib/unictype/categ_Pc.c: New file.
54051         * lib/unictype/categ_Pd.c: New file.
54052         * lib/unictype/categ_Pe.c: New file.
54053         * lib/unictype/categ_Pf.c: New file.
54054         * lib/unictype/categ_Pi.c: New file.
54055         * lib/unictype/categ_Po.c: New file.
54056         * lib/unictype/categ_Ps.c: New file.
54057         * lib/unictype/categ_S.c: New file.
54058         * lib/unictype/categ_Sc.c: New file.
54059         * lib/unictype/categ_Sk.c: New file.
54060         * lib/unictype/categ_Sm.c: New file.
54061         * lib/unictype/categ_So.c: New file.
54062         * lib/unictype/categ_Z.c: New file.
54063         * lib/unictype/categ_Zl.c: New file.
54064         * lib/unictype/categ_Zp.c: New file.
54065         * lib/unictype/categ_Zs.c: New file.
54066         * lib/unictype/categ_and.c: New file.
54067         * lib/unictype/categ_and_not.c: New file.
54068         * lib/unictype/categ_byname.c: New file.
54069         * lib/unictype/categ_name.c: New file.
54070         * lib/unictype/categ_none.c: New file.
54071         * lib/unictype/categ_of.c: New file.
54072         * lib/unictype/categ_or.c: New file.
54073         * lib/unictype/categ_test.c: New file.
54074         * lib/unictype/combining.c: New file.
54075         * lib/unictype/ctype_alnum.c: New file.
54076         * lib/unictype/ctype_alpha.c: New file.
54077         * lib/unictype/ctype_blank.c: New file.
54078         * lib/unictype/ctype_cntrl.c: New file.
54079         * lib/unictype/ctype_digit.c: New file.
54080         * lib/unictype/ctype_graph.c: New file.
54081         * lib/unictype/ctype_lower.c: New file.
54082         * lib/unictype/ctype_print.c: New file.
54083         * lib/unictype/ctype_punct.c: New file.
54084         * lib/unictype/ctype_space.c: New file.
54085         * lib/unictype/ctype_upper.c: New file.
54086         * lib/unictype/ctype_xdigit.c: New file.
54087         * lib/unictype/decdigit.c: New file.
54088         * lib/unictype/digit.c: New file.
54089         * lib/unictype/identsyntaxmap.h: New file.
54090         * lib/unictype/mirror.c: New file.
54091         * lib/unictype/numeric.c: New file.
54092         * lib/unictype/pr_alphabetic.c: New file.
54093         * lib/unictype/pr_ascii_hex_digit.c: New file.
54094         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54095         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54096         * lib/unictype/pr_bidi_block_separator.c: New file.
54097         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54098         * lib/unictype/pr_bidi_common_separator.c: New file.
54099         * lib/unictype/pr_bidi_control.c: New file.
54100         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54101         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54102         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54103         * lib/unictype/pr_bidi_european_digit.c: New file.
54104         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54105         * lib/unictype/pr_bidi_left_to_right.c: New file.
54106         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54107         * lib/unictype/pr_bidi_other_neutral.c: New file.
54108         * lib/unictype/pr_bidi_pdf.c: New file.
54109         * lib/unictype/pr_bidi_segment_separator.c: New file.
54110         * lib/unictype/pr_bidi_whitespace.c: New file.
54111         * lib/unictype/pr_byname.c: New file.
54112         * lib/unictype/pr_byname.gperf: New file.
54113         * lib/unictype/pr_combining.c: New file.
54114         * lib/unictype/pr_composite.c: New file.
54115         * lib/unictype/pr_currency_symbol.c: New file.
54116         * lib/unictype/pr_dash.c: New file.
54117         * lib/unictype/pr_decimal_digit.c: New file.
54118         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54119         * lib/unictype/pr_deprecated.c: New file.
54120         * lib/unictype/pr_diacritic.c: New file.
54121         * lib/unictype/pr_extender.c: New file.
54122         * lib/unictype/pr_format_control.c: New file.
54123         * lib/unictype/pr_grapheme_base.c: New file.
54124         * lib/unictype/pr_grapheme_extend.c: New file.
54125         * lib/unictype/pr_grapheme_link.c: New file.
54126         * lib/unictype/pr_hex_digit.c: New file.
54127         * lib/unictype/pr_hyphen.c: New file.
54128         * lib/unictype/pr_id_continue.c: New file.
54129         * lib/unictype/pr_id_start.c: New file.
54130         * lib/unictype/pr_ideographic.c: New file.
54131         * lib/unictype/pr_ids_binary_operator.c: New file.
54132         * lib/unictype/pr_ids_trinary_operator.c: New file.
54133         * lib/unictype/pr_ignorable_control.c: New file.
54134         * lib/unictype/pr_iso_control.c: New file.
54135         * lib/unictype/pr_join_control.c: New file.
54136         * lib/unictype/pr_left_of_pair.c: New file.
54137         * lib/unictype/pr_line_separator.c: New file.
54138         * lib/unictype/pr_logical_order_exception.c: New file.
54139         * lib/unictype/pr_lowercase.c: New file.
54140         * lib/unictype/pr_math.c: New file.
54141         * lib/unictype/pr_non_break.c: New file.
54142         * lib/unictype/pr_not_a_character.c: New file.
54143         * lib/unictype/pr_numeric.c: New file.
54144         * lib/unictype/pr_other_alphabetic.c: New file.
54145         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54146         * lib/unictype/pr_other_grapheme_extend.c: New file.
54147         * lib/unictype/pr_other_id_continue.c: New file.
54148         * lib/unictype/pr_other_id_start.c: New file.
54149         * lib/unictype/pr_other_lowercase.c: New file.
54150         * lib/unictype/pr_other_math.c: New file.
54151         * lib/unictype/pr_other_uppercase.c: New file.
54152         * lib/unictype/pr_paired_punctuation.c: New file.
54153         * lib/unictype/pr_paragraph_separator.c: New file.
54154         * lib/unictype/pr_pattern_syntax.c: New file.
54155         * lib/unictype/pr_pattern_white_space.c: New file.
54156         * lib/unictype/pr_private_use.c: New file.
54157         * lib/unictype/pr_punctuation.c: New file.
54158         * lib/unictype/pr_quotation_mark.c: New file.
54159         * lib/unictype/pr_radical.c: New file.
54160         * lib/unictype/pr_sentence_terminal.c: New file.
54161         * lib/unictype/pr_soft_dotted.c: New file.
54162         * lib/unictype/pr_space.c: New file.
54163         * lib/unictype/pr_terminal_punctuation.c: New file.
54164         * lib/unictype/pr_test.c: New file.
54165         * lib/unictype/pr_titlecase.c: New file.
54166         * lib/unictype/pr_unassigned_code_value.c: New file.
54167         * lib/unictype/pr_unified_ideograph.c: New file.
54168         * lib/unictype/pr_uppercase.c: New file.
54169         * lib/unictype/pr_variation_selector.c: New file.
54170         * lib/unictype/pr_white_space.c: New file.
54171         * lib/unictype/pr_xid_continue.c: New file.
54172         * lib/unictype/pr_xid_start.c: New file.
54173         * lib/unictype/pr_zero_width.c: New file.
54174         * lib/unictype/scripts.c: New file.
54175         * lib/unictype/sy_c_ident.c: New file.
54176         * lib/unictype/sy_c_whitespace.c: New file.
54177         * lib/unictype/sy_java_ident.c: New file.
54178         * lib/unictype/sy_java_whitespace.c: New file.
54179
54180         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54181         Unicode 5.0.0.
54182         * lib/unictype/blocks.h: Likewise.
54183         * lib/unictype/categ_C.h: Likewise.
54184         * lib/unictype/categ_Cc.h: Likewise.
54185         * lib/unictype/categ_Cf.h: Likewise.
54186         * lib/unictype/categ_Cn.h: Likewise.
54187         * lib/unictype/categ_Co.h: Likewise.
54188         * lib/unictype/categ_Cs.h: Likewise.
54189         * lib/unictype/categ_L.h: Likewise.
54190         * lib/unictype/categ_Ll.h: Likewise.
54191         * lib/unictype/categ_Lm.h: Likewise.
54192         * lib/unictype/categ_Lo.h: Likewise.
54193         * lib/unictype/categ_Lt.h: Likewise.
54194         * lib/unictype/categ_Lu.h: Likewise.
54195         * lib/unictype/categ_M.h: Likewise.
54196         * lib/unictype/categ_Mc.h: Likewise.
54197         * lib/unictype/categ_Me.h: Likewise.
54198         * lib/unictype/categ_Mn.h: Likewise.
54199         * lib/unictype/categ_N.h: Likewise.
54200         * lib/unictype/categ_Nd.h: Likewise.
54201         * lib/unictype/categ_Nl.h: Likewise.
54202         * lib/unictype/categ_No.h: Likewise.
54203         * lib/unictype/categ_P.h: Likewise.
54204         * lib/unictype/categ_Pc.h: Likewise.
54205         * lib/unictype/categ_Pd.h: Likewise.
54206         * lib/unictype/categ_Pe.h: Likewise.
54207         * lib/unictype/categ_Pf.h: Likewise.
54208         * lib/unictype/categ_Pi.h: Likewise.
54209         * lib/unictype/categ_Po.h: Likewise.
54210         * lib/unictype/categ_Ps.h: Likewise.
54211         * lib/unictype/categ_S.h: Likewise.
54212         * lib/unictype/categ_Sc.h: Likewise.
54213         * lib/unictype/categ_Sk.h: Likewise.
54214         * lib/unictype/categ_Sm.h: Likewise.
54215         * lib/unictype/categ_So.h: Likewise.
54216         * lib/unictype/categ_Z.h: Likewise.
54217         * lib/unictype/categ_Zl.h: Likewise.
54218         * lib/unictype/categ_Zp.h: Likewise.
54219         * lib/unictype/categ_Zs.h: Likewise.
54220         * lib/unictype/categ_of.h: Likewise.
54221         * lib/unictype/combining.h: Likewise.
54222         * lib/unictype/ctype_alnum.h: Likewise.
54223         * lib/unictype/ctype_alpha.h: Likewise.
54224         * lib/unictype/ctype_blank.h: Likewise.
54225         * lib/unictype/ctype_cntrl.h: Likewise.
54226         * lib/unictype/ctype_digit.h: Likewise.
54227         * lib/unictype/ctype_graph.h: Likewise.
54228         * lib/unictype/ctype_lower.h: Likewise.
54229         * lib/unictype/ctype_print.h: Likewise.
54230         * lib/unictype/ctype_punct.h: Likewise.
54231         * lib/unictype/ctype_space.h: Likewise.
54232         * lib/unictype/ctype_upper.h: Likewise.
54233         * lib/unictype/ctype_xdigit.h: Likewise.
54234         * lib/unictype/decdigit.h: Likewise.
54235         * lib/unictype/digit.h: Likewise.
54236         * lib/unictype/mirror.h: Likewise.
54237         * lib/unictype/numeric.h: Likewise.
54238         * lib/unictype/pr_alphabetic.h: Likewise.
54239         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54240         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54241         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54242         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54243         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54244         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54245         * lib/unictype/pr_bidi_control.h: Likewise.
54246         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54247         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54248         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54249         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54250         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54251         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54252         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54253         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54254         * lib/unictype/pr_bidi_pdf.h: Likewise.
54255         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54256         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54257         * lib/unictype/pr_combining.h: Likewise.
54258         * lib/unictype/pr_composite.h: Likewise.
54259         * lib/unictype/pr_currency_symbol.h: Likewise.
54260         * lib/unictype/pr_dash.h: Likewise.
54261         * lib/unictype/pr_decimal_digit.h: Likewise.
54262         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54263         * lib/unictype/pr_deprecated.h: Likewise.
54264         * lib/unictype/pr_diacritic.h: Likewise.
54265         * lib/unictype/pr_extender.h: Likewise.
54266         * lib/unictype/pr_format_control.h: Likewise.
54267         * lib/unictype/pr_grapheme_base.h: Likewise.
54268         * lib/unictype/pr_grapheme_extend.h: Likewise.
54269         * lib/unictype/pr_grapheme_link.h: Likewise.
54270         * lib/unictype/pr_hex_digit.h: Likewise.
54271         * lib/unictype/pr_hyphen.h: Likewise.
54272         * lib/unictype/pr_id_continue.h: Likewise.
54273         * lib/unictype/pr_id_start.h: Likewise.
54274         * lib/unictype/pr_ideographic.h: Likewise.
54275         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54276         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54277         * lib/unictype/pr_ignorable_control.h: Likewise.
54278         * lib/unictype/pr_iso_control.h: Likewise.
54279         * lib/unictype/pr_join_control.h: Likewise.
54280         * lib/unictype/pr_left_of_pair.h: Likewise.
54281         * lib/unictype/pr_line_separator.h: Likewise.
54282         * lib/unictype/pr_logical_order_exception.h: Likewise.
54283         * lib/unictype/pr_lowercase.h: Likewise.
54284         * lib/unictype/pr_math.h: Likewise.
54285         * lib/unictype/pr_non_break.h: Likewise.
54286         * lib/unictype/pr_not_a_character.h: Likewise.
54287         * lib/unictype/pr_numeric.h: Likewise.
54288         * lib/unictype/pr_other_alphabetic.h: Likewise.
54289         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54290         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54291         * lib/unictype/pr_other_id_continue.h: Likewise.
54292         * lib/unictype/pr_other_id_start.h: Likewise.
54293         * lib/unictype/pr_other_lowercase.h: Likewise.
54294         * lib/unictype/pr_other_math.h: Likewise.
54295         * lib/unictype/pr_other_uppercase.h: Likewise.
54296         * lib/unictype/pr_paired_punctuation.h: Likewise.
54297         * lib/unictype/pr_paragraph_separator.h: Likewise.
54298         * lib/unictype/pr_pattern_syntax.h: Likewise.
54299         * lib/unictype/pr_pattern_white_space.h: Likewise.
54300         * lib/unictype/pr_private_use.h: Likewise.
54301         * lib/unictype/pr_punctuation.h: Likewise.
54302         * lib/unictype/pr_quotation_mark.h: Likewise.
54303         * lib/unictype/pr_radical.h: Likewise.
54304         * lib/unictype/pr_sentence_terminal.h: Likewise.
54305         * lib/unictype/pr_soft_dotted.h: Likewise.
54306         * lib/unictype/pr_space.h: Likewise.
54307         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54308         * lib/unictype/pr_titlecase.h: Likewise.
54309         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54310         * lib/unictype/pr_unified_ideograph.h: Likewise.
54311         * lib/unictype/pr_uppercase.h: Likewise.
54312         * lib/unictype/pr_variation_selector.h: Likewise.
54313         * lib/unictype/pr_white_space.h: Likewise.
54314         * lib/unictype/pr_xid_continue.h: Likewise.
54315         * lib/unictype/pr_xid_start.h: Likewise.
54316         * lib/unictype/pr_zero_width.h: Likewise.
54317         * lib/unictype/scripts.h: Likewise.
54318         * lib/unictype/scripts_byname.gperf: Likewise.
54319         * lib/unictype/sy_c_ident.h: Likewise.
54320         * lib/unictype/sy_c_whitespace.h: Likewise.
54321         * lib/unictype/sy_java_ident.h: Likewise.
54322         * lib/unictype/sy_java_whitespace.h: Likewise.
54323
54324         * lib/unictype/Makefile: New file.
54325         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54326         glibc.
54327         * lib/unictype/3level.h: New file, copied from glibc.
54328         * lib/unictype/3levelbit.h: New file.
54329
54330 2007-11-11  Bruno Haible  <bruno@clisp.org>
54331
54332         * modules/gperf: New file.
54333         * modules/iconv_open (Depends-on): Add it.
54334         (Makefile.am): Remove the GPERF definition.
54335
54336 2007-11-11  Bruno Haible  <bruno@clisp.org>
54337
54338         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54339         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54340
54341 2007-11-11  Bruno Haible  <bruno@clisp.org>
54342
54343         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54344         (usage): Remove function.
54345
54346 2007-11-11  Bruno Haible  <bruno@clisp.org>
54347
54348         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54349         gl_FUNC_CEILF_LIBS.
54350         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54351         gl_FUNC_CEIL_LIBS.
54352         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54353         gl_FUNC_CEILL_LIBS.
54354         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54355         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54356         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54357
54358 2007-11-11  Bruno Haible  <bruno@clisp.org>
54359
54360         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54361         roundf were declared but do not exist on functions.
54362         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54363         roundl were declared but do not exist on functions.
54364         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54365         HAVE_FLOORL_AND_CEILL, respectively.
54366         Needed for Sun C on Solaris 10.
54367
54368 2007-11-11  Bruno Haible  <bruno@clisp.org>
54369
54370         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54371         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54372         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54373         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54374         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54375         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54376         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54377         HAVE_DECL_ROUNDF.
54378         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54379         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54381         of HAVE_DECL_ROUND*.
54382         * modules/math (Makefile.am): Update.
54383
54384 2007-11-10  Bruno Haible  <bruno@clisp.org>
54385
54386         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54387         ptrdiff_t as m4/intl.m4.
54388
54389 2007-11-10  Jim Meyering  <meyering@redhat.com>
54390
54391         Avoid link failure for the argmatch test.
54392         * tests/test-argmatch.c (usage): Define function to avoid a link
54393         failure: argmatch_die requires a usage function.
54394
54395 2007-11-09  Bruno Haible  <bruno@clisp.org>
54396
54397         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54398         * doc/functions/vsnprintf.texi: Likewise.
54399         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54400         with a size argument < 2.
54401
54402 2007-11-09  Bruno Haible  <bruno@clisp.org>
54403
54404         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54405         buffer. Fixes an inefficiency introduced on 2007-11-03.
54406
54407 2007-11-09  Bruno Haible  <bruno@clisp.org>
54408
54409         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54410         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54411
54412 2007-11-08  Jim Meyering  <meyering@redhat.com>
54413
54414         Change cache variable name prefix "jm_" to "gl_" everywhere.
54415         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54416         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54417         * m4/uptime.m4: s/gl_/jm_/
54418
54419 2007-11-07  Bruno Haible  <bruno@clisp.org>
54420
54421         Update to GNU gettext 0.17.
54422         * m4/intl.m4: Update to GNU gettext 0.17.
54423         * m4/po.m4: Likewise.
54424         * modules/gettext (Files): Remove m4/ulonglong.m4.
54425         (configure.ac): Require gettext infrastructure from version 0.17.
54426
54427 2007-11-06  Bruno Haible  <bruno@clisp.org>
54428
54429         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54430         symbolic values are not defined in a public header.
54431         * lib/freadable.c (freadable) [QNX]: Likewise.
54432         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54433         * lib/freading.c (freading) [QNX]: Likewise.
54434         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54435         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54436         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54437         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54438         Reported by Alain Magloire.
54439
54440         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54441
54442 2007-11-05  Bruno Haible  <bruno@clisp.org>
54443
54444         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54445         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54446         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54447         Reported by Eric Blake.
54448
54449 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54450             Bruno Haible  <bruno@clisp.org>
54451
54452         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54453         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54454         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54455         (malloc): Undefine also before including <stdlib.h>.
54456         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54457         Needed on OSF/1 4.0.
54458
54459 2007-11-05  Jim Meyering  <meyering@redhat.com>
54460
54461         git-version-gen: sync from coreutils.
54462         * build-aux/git-version-gen: Add comments.
54463         Change the first '-' to '.' in the snapshot version string,
54464         e.g., 6.9-377-08144 -> 6.9.377-08144
54465         Remove first parameter.
54466         Don't declare a version "-dirty" merely because a time
54467         stamp has changed.
54468
54469 2007-11-04  Bruno Haible  <bruno@clisp.org>
54470
54471         * lib/lock.h: Protect all macro definitions containing an 'if'
54472         statement through a "do { ... } while (0)".
54473         * lib/tls.h: Likewise.
54474
54475 2007-11-04  Bruno Haible  <bruno@clisp.org>
54476
54477         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54478
54479 2007-11-04  Bruno Haible  <bruno@clisp.org>
54480
54481         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54482         * modules/fprintf-posix (Depends-on): Add nocrash.
54483         * modules/snprintf-posix (Depends-on): Likewise.
54484         * modules/sprintf-posix (Depends-on): Likewise.
54485         * modules/vasnprintf-posix (Depends-on): Likewise.
54486         * modules/vasprintf-posix (Depends-on): Likewise.
54487         * modules/vfprintf-posix (Depends-on): Likewise.
54488         * modules/vsnprintf-posix (Depends-on): Likewise.
54489         * modules/vsprintf-posix (Depends-on): Likewise.
54490         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54491         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54492         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54493         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54494         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54495         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54496         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54497
54498 2007-11-04  Bruno Haible  <bruno@clisp.org>
54499
54500         * modules/nocrash: New file.
54501         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54502         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54503
54504 2007-11-04  Bruno Haible  <bruno@clisp.org>
54505
54506         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54507         precision handling.
54508         * tests/test-vasprintf-posix.c (test_function): Likewise.
54509         * tests/test-snprintf-posix.h (test_function): Likewise.
54510         * tests/test-sprintf-posix.h (test_function): Likewise.
54511
54512         Fix *printf behaviour for large precisions on mingw and BeOS.
54513         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54514         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54515         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54516         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54517         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54518         gl_PRINTF_PRECISION and test its result. Invoke
54519         gl_PREREQ_VASNPRINTF_PRECISION.
54520         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54521         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54522         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54523         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54524         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54525         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54526         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54527         * doc/functions/fprintf.texi: Update.
54528         * doc/functions/printf.texi: Update.
54529         * doc/functions/snprintf.texi: Update.
54530         * doc/functions/sprintf.texi: Update.
54531         * doc/functions/vfprintf.texi: Update.
54532         * doc/functions/vprintf.texi: Update.
54533         * doc/functions/vsnprintf.texi: Update.
54534         * doc/functions/vsprintf.texi: Update.
54535
54536 2007-11-04  Bruno Haible  <bruno@clisp.org>
54537
54538         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54539
54540 2007-11-04  Bruno Haible  <bruno@clisp.org>
54541
54542         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54543         Reported by Sylvain Beucler <beuc@gnu.org>.
54544
54545 2007-11-03  Bruno Haible  <bruno@clisp.org>
54546
54547         * tests/test-fprintf-posix2.sh: New file.
54548         * tests/test-fprintf-posix2.c: New file.
54549         * modules/fprintf-posix-tests (Files): Add them.
54550         (TESTS): Add test-fprintf-posix2.sh.
54551         (configure.ac): Check for getrlimit and setrlimit.
54552         (check_PROGRAMS): Add test-fprintf-posix2.
54553
54554         * tests/test-printf-posix2.sh: New file.
54555         * tests/test-printf-posix2.c: New file.
54556         * modules/printf-posix-tests (Files): Add them.
54557         (TESTS): Add test-printf-posix2.sh.
54558         (configure.ac): Check for getrlimit and setrlimit.
54559         (check_PROGRAMS): Add test-printf-posix2.
54560
54561         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54562         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54563         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54564         (decode_double): New function, copied from decode_long_double.
54565         (scale10_round_decimal_decoded): New function, extracted from
54566         scale10_round_decimal_long_double.
54567         (scale10_round_decimal_long_double): Use it.
54568         (scale10_round_decimal_double): New function.
54569         (floorlog10): New function.
54570         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54571         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54572         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54573         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54574         gl_PRINTF_ENOMEM and test its result. Invoke
54575         gl_PREREQ_VASNPRINTF_ENOMEM.
54576         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54577         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54578         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54579         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54580         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54581         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54582         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54583         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54584         * modules/snprintf-posix (Depends-on): Likewise.
54585         * modules/sprintf-posix (Depends-on): Likewise.
54586         * modules/vasnprintf-posix (Depends-on): Likewise.
54587         * modules/vasprintf-posix (Depends-on): Likewise.
54588         * modules/vfprintf-posix (Depends-on): Likewise.
54589         * modules/vsnprintf-posix (Depends-on): Likewise.
54590         * modules/vsprintf-posix (Depends-on): Likewise.
54591         * doc/functions/fprintf.texi: Update.
54592         * doc/functions/printf.texi: Update.
54593         * doc/functions/snprintf.texi: Update.
54594         * doc/functions/sprintf.texi: Update.
54595         * doc/functions/vfprintf.texi: Update.
54596         * doc/functions/vprintf.texi: Update.
54597         * doc/functions/vsnprintf.texi: Update.
54598         * doc/functions/vsprintf.texi: Update.
54599
54600 2007-11-03  Bruno Haible  <bruno@clisp.org>
54601
54602         * modules/frexp-nolibm-tests: New file.
54603
54604         * modules/frexp-nolibm: New file.
54605         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54606
54607 2007-11-03  Bruno Haible  <bruno@clisp.org>
54608
54609         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54610         value is C99 compliant.
54611         Needed for OSF/1 5.1.
54612
54613 2007-11-03  Bruno Haible  <bruno@clisp.org>
54614
54615         Fix out-of-memory handling of vasnprintf.
54616         * lib/printf-parse.c: Include <errno.h>.
54617         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54618         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54619         is already set.
54620
54621 2007-11-02  Eric Blake  <ebb9@byu.net>
54622
54623         Fix tests on cygwin.
54624         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54625
54626 2007-11-01  Bruno Haible  <bruno@clisp.org>
54627
54628         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54629         warning.
54630         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54631         needed for POSIX compatibility.
54632
54633 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54634
54635         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54636         for compatibility with GNU.
54637
54638 2007-11-01  Bruno Haible  <bruno@clisp.org>
54639
54640         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54641         (putenv): Renamed from rpl_putenv. Change argument type from
54642         'const char *' to 'char *'.
54643         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54644         of defining putenv in config.h, just set REPLACE_PUTENV.
54645         * modules/putenv (Depends-on): Add stdlib.
54646         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54647         (Include): Use <stdlib.h>.
54648         * lib/stdlib.in.h (putenv): New declaration.
54649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54650         REPLACE_PUTENV.
54651         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54652         REPLACE_PUTENV.
54653         Needed for MacOS X 10.5.0.
54654         Reported by Peter O'Gorman <peter@pogma.com>.
54655
54656 2007-11-01  Jim Meyering  <meyering@redhat.com>
54657
54658         Treat an empty date string exactly like "0".
54659         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54660         if the remaining date string (to be parsed) is empty, use "0".
54661         Reported by Mischa Molhoek and discussed in this thread:
54662         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54663
54664 2007-10-31  Bruno Haible  <bruno@clisp.org>
54665
54666         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54667         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54668         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54669         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54670         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54671         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54672
54673 2007-10-31  Bruno Haible  <bruno@clisp.org>
54674
54675         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54676         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54677         (AC_TYPE_LONG_LONG_INT): Use it.
54678         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54679         it as well.
54680         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54681         to m4/longlong.m4.
54682         * modules/stdint (Files): Remove m4/ulonglong.m4.
54683         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54684         m4/ulonglong.m4.
54685         * modules/strtoumax (Files): Likewise.
54686
54687 2007-10-30  Bruno Haible  <bruno@clisp.org>
54688
54689         * modules/xvasprintf-posix: New file.
54690         Suggested by Eric Blake.
54691
54692 2007-10-30  Bruno Haible  <bruno@clisp.org>
54693
54694         * modules/xprintf-posix-tests: New file.
54695         * tests/test-xprintf-posix.sh: New file.
54696         * tests/test-xprintf-posix.c: New file.
54697         * tests/test-xfprintf-posix.c: New file.
54698
54699         * modules/xprintf-posix: New file.
54700
54701 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54702
54703         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54704         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54705         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54706
54707 2007-10-29  Bruno Haible  <bruno@clisp.org>
54708
54709         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54710         contain the special marker '_cv_'.
54711         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54712         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54713         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54714         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54715         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54716         Reported by Ralf Wildenhues.
54717
54718 2007-10-29  Bruno Haible  <bruno@clisp.org>
54719
54720         * gnulib-tool (func_import): When --lgpl is not specified, set
54721         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54722         GPLv3.
54723         Reported by Simon Josefsson.
54724
54725 2007-10-28  Bruno Haible  <bruno@clisp.org>
54726
54727         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54728         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54729         HAVE_DECL_ISFINITE.
54730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54731         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54732         HAVE_DECL_ISFINITE.
54733
54734 2007-10-28  Bruno Haible  <bruno@clisp.org>
54735
54736         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54737         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54738
54739 2007-10-28  Bruno Haible  <bruno@clisp.org>
54740
54741         Fix link errors with Sun C 5.0 on Solaris 10.
54742         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54743         function is declared but not present in the compiler's libm.
54744         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54745         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54746         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54747         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54748         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54749         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54750         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54751         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54752         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54753         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54754         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54755         HAVE_DECL_FLOORL.
54756
54757 2007-10-28  Bruno Haible  <bruno@clisp.org>
54758
54759         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54760         gl_FUNC_FLOORL. Cache the result.
54761         (gl_FUNC_FLOORL): Use it.
54762         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54763         gl_FUNC_CEILL. Cache the result.
54764         (gl_FUNC_CEILL): Use it.
54765
54766         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54767         gl_FUNC_FLOOR. Cache the result.
54768         (gl_FUNC_FLOOR): Use it.
54769         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54770         gl_FUNC_CEIL. Cache the result.
54771         (gl_FUNC_CEIL): Use it.
54772
54773         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54774         gl_FUNC_FLOORF. Cache the result.
54775         (gl_FUNC_FLOORF): Use it.
54776         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54777         gl_FUNC_CEILF. Cache the result.
54778         (gl_FUNC_CEILF): Use it.
54779
54780 2007-10-28  Bruno Haible  <bruno@clisp.org>
54781
54782         * gnulib-tool: Allow specifying the LGPL version number through
54783         --lgpl=2 or --lgpl=3.
54784         (func_usage): Document --lgpl with argument.
54785         Handle --lgpl=... arguments.
54786         (func_import): Recognize also gl_LGPL calls with an argument. When
54787         --lgpl=2 is used and the module's license is just LGPL, report an
54788         error. Set sed_transform_lib_file according to the lgpl variable. In
54789         the generated files, use --lgpl or gl_LGPL invocations with argument,
54790         if necessary.
54791         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54792         an LGPv2+ license.
54793         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54794         gl_LGPL macro.
54795
54796 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54797             Bruno Haible  <bruno@clisp.org>
54798
54799         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54800         (u16_uctomb_aux): Likewise.
54801         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54802         !HAVE_INLINE.
54803         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54804
54805 2007-10-28  Bruno Haible  <bruno@clisp.org>
54806
54807         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54808         Invoke AM_GETTEXT_OPTION if it exists.
54809         * modules/vasprintf: Likewise.
54810         * modules/verror: Likewise.
54811         * modules/xprintf: Likewise.
54812         * modules/xvasprintf: Likewise.
54813
54814 2007-10-27  Ben Pfaff  <blp@gnu.org>
54815
54816         * lib/math.in.h: Define isfinite macro and prototypes for
54817         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54818         implementations.
54819         * m4/math_h.m4: New substitutions for isfinite module.
54820         * lib/isfinite.c: New file.
54821         * m4/isfinite.m4: New file.
54822         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54823         * modules/isfinite: New file.
54824         * modules/isfinite-tests: New file.
54825         * tests/tests-isfinite.c: New file.
54826         * doc/functions/isfinite.texi: Mention isfinite module.
54827         * MODULES.html.sh: Mention new module.
54828
54829 2007-10-27  Ben Pfaff  <blp@gnu.org>
54830
54831         Ralf Wildenhues reported that Tru64 4.0D declares the round
54832         functions but does not have definitions.
54833         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54834         cannot be found in any library, set the output variable to
54835         "missing" instead of "".
54836         * m4/round.m4: Also use our substitute if we cannot find round in
54837         any library, even if it is declared.
54838         * m4/roundf.m4: Likewise for roundf.
54839         * m4/roundl.m4: Likewise for roundl.
54840         * lib/math.in.h: Undefine roundf, round, roundl before defining
54841         their replacements, to allow for hypothetical systems where these
54842         may be defined as macros but not available in libraries.
54843
54844 2007-10-27  Bruno Haible  <bruno@clisp.org>
54845
54846         * doc/gnulib.texi: Invoke @firstparagraphindent.
54847         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54848         changes in gnulib.
54849         (Source changes): New section.
54850
54851 2007-10-26  Bruno Haible  <bruno@clisp.org>
54852
54853         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54854         borrowed from autoconf.
54855
54856 2007-10-26  Bruno Haible  <bruno@clisp.org>
54857
54858         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54859         strerror returned the empty string. Needed on HP-UX 11.00.
54860
54861 2007-10-24  Micah Cowan  <micah@cowan.name>
54862
54863         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54864         * build-aux/bootstrap: Remove support for now-unnecessary option,
54865         --cvs-user, and envvars CVS_USER, CVS_RSH.
54866
54867 2007-10-24  Jim Meyering  <meyering@redhat.com>
54868
54869         Avoid diagnostics from sha1sum when there is no cached checksum.
54870         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54871         if the po.s1 file hasn't been created yet.
54872
54873         * build-aux/bootstrap: Sync from coreutils:
54874         2007-10-24  Jim Meyering  <meyering@redhat.com>
54875         Get gnulib from the git repository, not from an obsolete cvs one.
54876         * build-aux/bootstrap: Suggestion from Micah Cowan.
54877         2007-10-04  Jim Meyering  <jim@meyering.net>
54878         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54879         (update_po_files): Work also when there are no .po files in po/.
54880
54881 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54882
54883         * README: Append ".git" to git and cg examples.
54884         Problem reported by Benoit Sigoure.
54885
54886 2007-10-23  Micah Cowan  <micah@cowan.name>
54887
54888         * users.txt: Add wget.
54889
54890 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54891
54892         Fix linking of some unistdio tests on FreeBSD.
54893         * modules/unistdio/u16-vsnprintf-tests
54894         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54895         * modules/unistdio/u16-vsprintf-tests
54896         (test_u16_vsnprintf1_LDADD): Likewise.
54897         * modules/unistdio/u32-vsnprintf-tests
54898         (test_u32_vsnprintf1_LDADD): Likewise.
54899         * modules/unistdio/u32-vsprintf-tests
54900         (test_u32_vsprintf1_LDADD): Likewise.
54901         * modules/unistdio/u8-vsnprintf-tests
54902         (test_u8_vsnprintf1_LDADD): Likewise.
54903         * modules/unistdio/u8-vsprintf-tests
54904         (test_u8_vsprintf1_LDADD): Likewise.
54905         * modules/unistdio/ulc-vsnprintf-tests
54906         (test_ulc_vsnprintf1_LDADD): Likewise.
54907         * modules/unistdio/ulc-vsprintf-tests
54908         (test_ulc_vsprintf1_LDADD): Likewise.
54909
54910         Fix linking of some uniconv tests on FreeBSD.
54911         * modules/uniconv/u16-conv-from-enc-tests
54912         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54913         * modules/uniconv/u16-conv-to-enc-tests
54914         (test_u16_conv_to_enc_LDADD): Likewise.
54915         * modules/uniconv/u16-strconv-from-enc-tests
54916         (test_u16_strconv_from_enc_LDADD): Likewise.
54917         * modules/uniconv/u16-strconv-to-enc-tests
54918         (test_u16_strconv_to_enc_LDADD): Likewise.
54919         * modules/uniconv/u32-conv-from-enc-tests
54920         (test_u32_conv_from_enc_LDADD): Likewise.
54921         * modules/uniconv/u32-conv-to-enc-tests
54922         (test_u32_conv_to_enc_LDADD): Likewise.
54923         * modules/uniconv/u32-strconv-from-enc-tests
54924         (test_u32_strconv_from_enc_LDADD): Likewise.
54925         * modules/uniconv/u32-strconv-to-enc-tests
54926         (test_u32_strconv_to_enc_LDADD): Likewise.
54927         * modules/uniconv/u8-conv-from-enc-tests
54928         (test_u8_conv_from_enc_LDADD): Likewise.
54929         * modules/uniconv/u8-conv-to-enc-tests
54930         (test_u8_conv_to_enc_LDADD): Likewise.
54931         * modules/uniconv/u8-strconv-from-enc-tests
54932         (test_u8_strconv_from_enc_LDADD): Likewise.
54933         * modules/uniconv/u8-strconv-to-enc-tests
54934         (test_u8_strconv_to_enc_LDADD): Likewise.
54935
54936 2007-10-22  Bruno Haible  <bruno@clisp.org>
54937
54938         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54939         size.
54940
54941 2007-10-22  Eric Blake  <ebb9@byu.net>
54942
54943         Tweak x*printf documentation.
54944         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54945         variable name and comments.
54946         Suggested by Bruno Haible.
54947
54948 2007-10-22  Bruno Haible  <bruno@clisp.org>
54949
54950         * lib/acl.c (copy_acl): Fix file name in comment.
54951
54952 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54953
54954         Fix Tru64 problem with stdbool.h.
54955         * lib/stdbool.in.h (false, true):
54956         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54957         Don't declare as an enum in this situation; it runs afoul of Tru64.
54958         Problem reported by Steven M. Schweda in
54959         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54960
54961 2007-10-22  Eric Blake  <ebb9@byu.net>
54962
54963         Also wrap vf?printf.
54964         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54965         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54966         (xvprintf, xvfprintf): New functions.
54967
54968 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54969
54970         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54971         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54972
54973         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54974         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54975
54976 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54977
54978         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54979         by Bruno Haible.
54980
54981 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54982
54983         * lib/getloadavg.c
54984         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54985         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54986
54987         * tests/test-i-ring.c: Work for C89.
54988
54989 2007-10-22  Bruno Haible  <bruno@clisp.org>
54990
54991         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54992         -1u, in preprocessor expression, so that we don't test for the bug
54993         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54994         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54995
54996 2007-10-22  Eric Blake  <ebb9@byu.net>
54997
54998         * tests/test-yesno.sh: Silence stderr during test.
54999
55000 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55001
55002         * modules/crypto/gc-camellia: New file.
55003
55004         * m4/gc-camellia.m4: New file.
55005
55006         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55007
55008         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55009
55010 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55011
55012         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55013         --help to stdout.  Reported by sms@antinode.org (Steven
55014         M. Schweda).
55015
55016 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55017
55018         * users.txt: Fix link to libksba.
55019
55020 2007-10-21  Ben Pfaff  <blp@gnu.org>
55021
55022         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55023         round.c roundf implementation that depends on floorf and ceilf to
55024         be tested unconditionally.
55025
55026 2007-10-21  Ben Pfaff  <blp@gnu.org>
55027
55028         * m4/check-libm-func.m4: Removed.
55029         * m4/check-math-lib.m4: New file.
55030         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55031         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55032         definition and lack of AC_LIBOBJ([roundf]).
55033         * m4/roundl.m4: Ditto, and similarly for roundl.
55034         * modules/round: Reference new m4 file.
55035         * modules/roundf: Ditto.
55036         * modules/roundl: Ditto.
55037         * tests/test-round2.c (main): Use ROUND instead of round.
55038         Bug report from Bruno Haible.
55039
55040 2007-10-21  Bruno Haible  <bruno@clisp.org>
55041
55042         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55043         context.
55044
55045 2007-10-21  Bruno Haible  <bruno@clisp.org>
55046
55047         * tests/test-wcwidth.c (main): Allow negative result for some control
55048         characters.
55049
55050         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55051         Needed on OSF/1 5.1.
55052
55053 2007-10-21  Bruno Haible  <bruno@clisp.org>
55054
55055         * tests/test-floorf1.c: Include isnanf.h.
55056         (main): Use isnanf() instead of isnan().
55057         * tests/test-ceilf1.c: Include isnanf.h.
55058         (main): Use isnanf() instead of isnan().
55059         * tests/test-truncf1.c: Include isnanf.h.
55060         (main): Use isnanf() instead of isnan().
55061         * tests/test-roundf1.c: Include isnanf.h.
55062         (main): Use isnanf() instead of isnan().
55063
55064 2007-10-21  Eric Blake  <ebb9@byu.net>
55065
55066         * users.txt: Update URL for m4.
55067
55068 2007-10-21  Bruno Haible  <bruno@clisp.org>
55069
55070         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55071
55072 2007-10-21  Bruno Haible  <bruno@clisp.org>
55073
55074         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55075         Git's management files if the CVS files are not present.
55076
55077 2007-10-20  Bruno Haible  <bruno@clisp.org>
55078
55079         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55080         gcc-3.4.x.
55081
55082 2007-10-20  Ben Pfaff  <blp@gnu.org>
55083
55084         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55085         implementations.
55086         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55087         * lib/round.c: New file.
55088         * lib/roundf.c: New file.
55089         * lib/roundl.c: New file.
55090         * m4/round.m4: New file.
55091         * m4/roundf.m4: New file.
55092         * m4/roundl.m4: New file.
55093         * m4/check-libm-func-m4: New file.
55094         * modules/math: Replace round, roundf, roundl related @VARS@ in
55095         math.in.h.
55096         * modules/round: New file.
55097         * modules/round-tests: New file.
55098         * modules/roundf: New file.
55099         * modules/roundf-tests: New file.
55100         * modules/roundl: New file.
55101         * modules/roundl-tests: New file.
55102         * tests/test-round1.c: New file.
55103         * tests/test-round2.c: New file.
55104         * tests/test-roundf1.c: New file.
55105         * tests/test-roundf2.c: New file.
55106         * tests/test-roundl.c: New file.
55107         * doc/functions/round.texi: Mention round module.
55108         * doc/functions/roundf.texi: Mention roundf module.
55109         * doc/functions/roundl.texi: Mention roundl module.
55110         * MODULES.html.sh: Mention new modules.
55111         Thanks to Bruno Haible for suggestions.
55112
55113 2007-10-20  Jim Meyering  <meyering@redhat.com>
55114
55115         * lib/xprintf.c: Include <config.h> unconditionally.
55116
55117         Change xprintf's license to GPL.
55118         * modules/xprintf (License): s/LGPL/GPL/, since this module
55119         depends on modules (exit and exitfail) which are GPL.
55120         Suggestion from Bruno Haible.
55121
55122         xprintf fixes.
55123         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55124         Use a clearer diagnostic.
55125         Patch from Bruno Haible.
55126
55127 2007-10-20  Bruno Haible  <bruno@clisp.org>
55128
55129         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55130         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55131         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55132
55133 2007-10-20  Bruno Haible  <bruno@clisp.org>
55134
55135         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55136         precision in the comparison result > x - 1 or similar.
55137         * tests/test-ceilf2.c (correct_result_p): Likewise.
55138         * tests/test-truncf2.c (correct_result_p): Likewise.
55139         * tests/test-trunc2.c (correct_result_p): Likewise.
55140         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55141
55142 2007-10-20  Bruno Haible  <bruno@clisp.org>
55143
55144         * modules/ceil: New file.
55145         * m4/ceil.m4: New file.
55146         * doc/functions/ceil.texi: Mention the 'ceil' module.
55147
55148 2007-10-20  Bruno Haible  <bruno@clisp.org>
55149
55150         * modules/floor: New file.
55151         * m4/floor.m4: New file.
55152         * doc/functions/floor.texi: Mention the 'floor' module.
55153
55154 2007-10-20  Bruno Haible  <bruno@clisp.org>
55155
55156         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55157         of %a.
55158         * modules/floorf-tests (Depends-on): Likewise.
55159         * modules/truncf-tests (Depends-on): Likewise.
55160         * modules/trunc-tests (Depends-on): Likewise.
55161         Reported by Ben Pfaff.
55162
55163 2007-10-19  Jim Meyering  <meyering@redhat.com>
55164
55165         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55166         Don't bother testing specific errno values.  Just test ferror.
55167
55168         New module: xprintf
55169         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55170
55171 2007-10-19  Bruno Haible  <bruno@clisp.org>
55172
55173         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55174         syntax.
55175         * modules/javaexec (Makefile.am): Likewise.
55176         * modules/relocatable-prog (Makefile.am): Likewise.
55177         Suggested by Jim Meyering.
55178
55179 2007-10-18  Bruno Haible  <bruno@clisp.org>
55180
55181         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55182         Reported by Jim Meyering.
55183
55184 2007-10-18  Eric Blake  <ebb9@byu.net>
55185
55186         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55187
55188 2007-10-18  Bruno Haible  <bruno@clisp.org>
55189
55190         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55191         the format string into writable memory. Needed in Fortify conditions.
55192
55193 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55194             Bruno Haible  <bruno@clisp.org>
55195
55196         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55197         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55198         * modules/trim (Depends-on): Add mbchar.
55199         (configure.ac): Add gl_FUNC_MBRTOWC.
55200         (Makefile.am): Augment lib_SOURCES.
55201
55202 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55203
55204         Modify glob.c to use fstatat and dirfd, to simplify it.
55205         Suggested by Eric Blake.
55206         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55207         Don't include <stdbool.h>; not used.
55208         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55209         (link_exists_p): Simplify implementation, since we can now assume
55210         dirfd and fstatat.
55211         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55212
55213 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55214
55215         * gnulib-tool (func_get_dependencies): Fix sed script to
55216         match only tests.
55217
55218 2007-10-17  Bruno Haible  <bruno@clisp.org>
55219
55220         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55221         allow locale names without encoding suffix.
55222         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55223         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55224
55225 2007-10-16  Bruno Haible  <bruno@clisp.org>
55226
55227         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55228         * lib/getgroups.c (getgroups): Likewise.
55229         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55230
55231 2007-10-16  Bruno Haible  <bruno@clisp.org>
55232
55233         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55234         * modules/malloc-posix (License): Likewise.
55235         * modules/realloc-posix (License): Likewise.
55236         * modules/calloc-posix (License): Likewise.
55237         * modules/intprops (License): Change from GPL to LGPL, with
55238         Paul Eggert's approval.
55239
55240 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55241
55242         Merge glibc changes into lib/glob.c.
55243
55244         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55245         2007-10-15 04:59:03 UTC.  Here are the changes:
55246
55247         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55248
55249         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55250
55251         * lib/glob.c: Add some branch prediction throughout.
55252
55253         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55254
55255         [BZ #5103]
55256         * lib/glob.c (glob): Recognize patterns starting \/.
55257
55258         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55259
55260         [BZ #3996]
55261         * lib/glob.c (attribute_hidden): Define if not defined.
55262         (glob): Unescape dirname, filename or username when needed and not
55263         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55264         is NULL.  Handle unescaped [ in pattern without closing ].
55265         Don't pass GLOB_CHECK down to recursive glob for directories.
55266         (__glob_pattern_type): New function.
55267         (__glob_pattern_p): Implement using __glob_pattern_type.
55268         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55269         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55270         Remove unreachable code.
55271
55272         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55273
55274         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55275         explain why there are no leaks.
55276
55277         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55278
55279         [BZ #3253]
55280         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55281         time, rather allocate increasingly bigger arrays of pointers, if
55282         possible with alloca, if too large with malloc.
55283
55284 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55285
55286         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55287         Problem reported by H.Merijn Brand in
55288         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55289         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55290         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55291
55292 2007-10-15  Bruno Haible  <bruno@clisp.org>
55293
55294         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55295         with explicit rpl_ prefix.
55296         * lib/fopen.c (fopen): Likewise.
55297         * lib/freopen.c (freopen): Likewise.
55298         * lib/iconv.c (iconv): Likewise.
55299         * lib/iconv_close.c (iconv_close): Likewise.
55300
55301 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55302
55303         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55304
55305 2007-10-15  Bruno Haible  <bruno@clisp.org>
55306
55307         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55308         <stddef.h> instead of <stdlib.h> since we only need NULL.
55309         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55310
55311 2007-10-15  Bruno Haible  <bruno@clisp.org>
55312
55313         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55314         Replace paragraph talking about LIBOBJS.
55315         Reported by Colin Watson <cjwatson@debian.org>.
55316
55317 2007-10-15  Bruno Haible  <bruno@clisp.org>
55318
55319         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55320         <stdlib.h> before using NULL.
55321
55322 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55323
55324         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55325         Reported by Albert Chin <china@thewrittenword.com>.
55326
55327 2007-10-14  Bruno Haible  <bruno@clisp.org>
55328
55329         * modules/iconv_open-utf-tests: New file.
55330         * tests/test-iconv-utf.c: New file.
55331
55332         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55333         * modules/iconv_open-utf: New file.
55334         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55335         (iconv, iconv_close): New declarations.
55336         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55337         be defined.
55338         (iconv_open): Add special handling of conversion between UTF-8 and
55339         UTF-{16,32}{BE,LE}.
55340         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55341         * lib/iconv_close.c: New file.
55342         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55343         gl_FUNC_ICONV_OPEN.
55344         (gl_FUNC_ICONV_OPEN): Use it.
55345         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55346         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55347         and REPLACE_ICONV_UTF.
55348         * modules/iconv_open (Depends-on): Add c-strcase.
55349         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55350         ICONV_CONST.
55351         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55352
55353 2007-10-13  Albert Chin  <china@thewrittenword.com>
55354             Bruno Haible  <bruno@clisp.org>
55355
55356         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55357         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55358
55359 2007-10-13  Bruno Haible  <bruno@clisp.org>
55360
55361         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55362         defined, use the ISO C99 inline semantics.
55363         * lib/argp.h (ARGP_EI): Likewise.
55364
55365 2007-10-13  Bruno Haible  <bruno@clisp.org>
55366
55367         Handle 'inline' change in gcc 4.3.0.
55368         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55369         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55370         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55371         argp_fmtstream_point): Disable 'extern' declaration if the function
55372         definition is going to be provided inline.
55373         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55374         semantics, not the ISO C99 inline semantics.
55375         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55376         'extern' declaration if the function definition is going to be provided
55377         inline.
55378         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55379         the GNU C inline semantics, not the ISO C99 inline semantics. With
55380         GCC 4.2, avoid a warning.
55381
55382 2007-10-13  Bruno Haible  <bruno@clisp.org>
55383
55384         * lib/freading.h (freading): Enable the use of __freading for
55385         glibc >= 2.7.
55386         * lib/freading.c (freading): Likewise.
55387
55388 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55389
55390         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55391         "warning: C99 inline functions are not supported; using GNU89".
55392
55393 2007-10-12  Bruno Haible  <bruno@clisp.org>
55394
55395         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55396         of 2.
55397         * tests/test-ceilf2.c: New file.
55398         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55399
55400         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55401         * modules/ceilf-tests: Update.
55402
55403 2007-10-12  Bruno Haible  <bruno@clisp.org>
55404
55405         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55406         of 2.
55407         * tests/test-floorf2.c: New file.
55408         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55409
55410         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55411         * modules/floorf-tests: Update.
55412
55413 2007-10-12  Bruno Haible  <bruno@clisp.org>
55414
55415         * tests/test-trunc2.c: New file.
55416         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55417
55418         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55419         * modules/trunc-tests: Update.
55420
55421 2007-10-12  Bruno Haible  <bruno@clisp.org>
55422
55423         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55424         of 2.
55425         * tests/test-truncf2.c: New file.
55426         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55427
55428         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55429         * modules/truncf-tests: Update.
55430
55431 2007-10-11  Eric Blake  <ebb9@byu.net>
55432
55433         Don't claim strerror is broken on Interix.
55434         * doc/functions/strerror.texi (strerror): Known broken systems are
55435         now Solaris 8, and not Interix.
55436         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55437         Interix on cross-compile.
55438         Reported by Martin Koeppe in
55439         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55440
55441 2007-10-11  Bruno Haible  <bruno@clisp.org>
55442
55443         * modules/i-ring-tests: New file.
55444         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55445         instead of assert.
55446
55447 2007-10-11  Bruno Haible  <bruno@clisp.org>
55448
55449         * modules/filenamecat-tests: New file.
55450         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55451         * lib/filenamecat.c: Remove test code.
55452
55453 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55454
55455         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55456
55457         * lib/strerror.c: Include <string.h> always, to test interface,
55458         and to remove the need for the dummy.
55459         Include intprops.h to compute width instead of doing it ourselves
55460         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55461         (strerror): Define it to return NULL if there's no system strerror.
55462         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55463         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55464         ancient pre-strerror Unix systems well any more.  Saying "unknown
55465         system error" is enough.
55466         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55467         simpler strerror.c implementation.
55468         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55469         Simplify the tests to reflect the simpler strerror implementation.
55470         * modules/strerror (Depends-on): Add intprops.
55471
55472 2007-10-09  Eric Blake  <ebb9@byu.net>
55473
55474         Silence test-fpending.
55475         * modules/fpending-tests (Files): Add wrapper script.
55476         * tests/test-fpending.sh: New file.
55477
55478 2007-10-09  Bruno Haible  <bruno@clisp.org>
55479
55480         * MODULES.html.sh (func_module): Don't create a hyperlink for
55481         function names like 'printf_frexp'.
55482         (Misc): Add crc, memxor.
55483         (Characteristics of floating types): New section.
55484         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55485         isnanf-nolibm, signbit, trunc, truncf, truncl.
55486         (Enhancements for ISO C 99 functions): New subsection Input/output.
55487         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55488         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55489         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55490         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55491         (Enhancements for POSIX:2001 functions): Add chdir-long.
55492         (File system functions): Add areadlink, chdir-safer, read-file.
55493         Remove cycle-check.
55494         (File system as inode set): New section.
55495         (Date and time): Add gethrxtime.
55496         (Multithreading): Add openmp.
55497         (Internationalization functions): Add localename.
55498         (Unicode string functions): Add unistr/u*-mbsnlen.
55499         (Support for maintaining and releasing projects): Add git-version-gen.
55500         (Lone files): Remove directories.
55501
55502 2007-10-08  Ben Pfaff  <blp@gnu.org>
55503
55504         * lib/xmalloca.h: Fix typo in comment.
55505
55506 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55507
55508         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55509         when avoiding problems with integer overflow.  Use a portable test
55510         instead.
55511
55512 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55513
55514         * modules/dummy (License): Change to LGPLv2+.
55515         * modules/float (License): Likewise
55516         * modules/realloc (License): Likewise
55517         * modules/stdlib (License): Likewise
55518
55519 2007-10-07  Bruno Haible  <bruno@clisp.org>
55520
55521         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55522         * floor.c (TWO_MANT_DIG): Likewise.
55523         * ceil.c (TWO_MANT_DIG): Likewise.
55524         Reported by Ben Pfaff.
55525
55526 2007-10-07  Bruno Haible  <bruno@clisp.org>
55527
55528         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55529         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55530         * lib/frexp.c (FUNC): Likewise.
55531         * lib/printf-frexp.h (printf_frexp): Likewise.
55532         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55533         * lib/printf-frexp.c (FUNC): Likewise.
55534         Suggested by Jim Meyering.
55535
55536 2007-10-07  Jim Meyering  <meyering@redhat.com>
55537
55538         Make xnanosleep's integer overflow test more robust.
55539         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55540         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55541
55542 2007-10-07  Bruno Haible  <bruno@clisp.org>
55543
55544         * NEWS: Mention the license change.
55545
55546         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55547         abbreviations in the modules files.
55548
55549         Change copyright notice from GPLv2+ to GPLv3+.
55550         * README: Change copyright notice.
55551         * MODULES.html.sh: Likewise.
55552         * build-aux/bootstrap.conf: Likewise.
55553         * build-aux/config.libpath: Likewise.
55554         * build-aux/csharpcomp.sh.in: Likewise.
55555         * build-aux/csharpexec.sh.in: Likewise.
55556         * build-aux/install-reloc: Likewise.
55557         * build-aux/javacomp.sh.in: Likewise.
55558         * build-aux/javaexec.sh.in: Likewise.
55559         * build-aux/ldd.sh.in: Likewise.
55560         * build-aux/reloc-ldflags: Likewise.
55561         * build-aux/relocatable.sh.in: Likewise.
55562         * build-aux/x-to-1.in: Likewise.
55563         * check-module: Likewise.
55564         * config/srclistvars.sh: Likewise.
55565         * gnulib-tool: Likewise.
55566         * lib/acl-internal.h: Likewise.
55567         * lib/acl.c: Likewise.
55568         * lib/acl.h: Likewise.
55569         * lib/acl_entries.c: Likewise.
55570         * lib/areadlink-with-size.c: Likewise.
55571         * lib/areadlink.c: Likewise.
55572         * lib/areadlink.h: Likewise.
55573         * lib/argmatch.c: Likewise.
55574         * lib/argmatch.h: Likewise.
55575         * lib/argp-ba.c: Likewise.
55576         * lib/argp-eexst.c: Likewise.
55577         * lib/argp-fmtstream.c: Likewise.
55578         * lib/argp-fmtstream.h: Likewise.
55579         * lib/argp-fs-xinl.c: Likewise.
55580         * lib/argp-help.c: Likewise.
55581         * lib/argp-namefrob.h: Likewise.
55582         * lib/argp-parse.c: Likewise.
55583         * lib/argp-pin.c: Likewise.
55584         * lib/argp-pv.c: Likewise.
55585         * lib/argp-pvh.c: Likewise.
55586         * lib/argp-xinl.c: Likewise.
55587         * lib/argp.h: Likewise.
55588         * lib/at-func.c: Likewise.
55589         * lib/atanl.c: Likewise.
55590         * lib/backupfile.c: Likewise.
55591         * lib/backupfile.h: Likewise.
55592         * lib/basename.c: Likewise.
55593         * lib/binary-io.h: Likewise.
55594         * lib/byteswap.in.h: Likewise.
55595         * lib/c-stack.c: Likewise.
55596         * lib/c-stack.h: Likewise.
55597         * lib/c-strcasestr.c: Likewise.
55598         * lib/c-strcasestr.h: Likewise.
55599         * lib/c-strstr.c: Likewise.
55600         * lib/c-strstr.h: Likewise.
55601         * lib/c-strtod.c: Likewise.
55602         * lib/calloc.c: Likewise.
55603         * lib/canon-host.c: Likewise.
55604         * lib/canon-host.h: Likewise.
55605         * lib/canonicalize-lgpl.c: Likewise.
55606         * lib/canonicalize.c: Likewise.
55607         * lib/canonicalize.h: Likewise.
55608         * lib/ceil.c: Likewise.
55609         * lib/ceilf.c: Likewise.
55610         * lib/ceill.c: Likewise.
55611         * lib/chdir-long.c: Likewise.
55612         * lib/chdir-long.h: Likewise.
55613         * lib/chdir-safer.c: Likewise.
55614         * lib/chdir-safer.h: Likewise.
55615         * lib/chown.c: Likewise.
55616         * lib/classpath.c: Likewise.
55617         * lib/classpath.h: Likewise.
55618         * lib/clean-temp.c: Likewise.
55619         * lib/clean-temp.h: Likewise.
55620         * lib/cloexec.c: Likewise.
55621         * lib/close-stream.c: Likewise.
55622         * lib/closein.c: Likewise.
55623         * lib/closein.h: Likewise.
55624         * lib/closeout.c: Likewise.
55625         * lib/closeout.h: Likewise.
55626         * lib/concat-filename.c: Likewise.
55627         * lib/copy-file.c: Likewise.
55628         * lib/copy-file.h: Likewise.
55629         * lib/count-one-bits.h: Likewise.
55630         * lib/crc.c: Likewise.
55631         * lib/crc.h: Likewise.
55632         * lib/creat-safer.c: Likewise.
55633         * lib/csharpcomp.c: Likewise.
55634         * lib/csharpcomp.h: Likewise.
55635         * lib/csharpexec.c: Likewise.
55636         * lib/csharpexec.h: Likewise.
55637         * lib/cycle-check.c: Likewise.
55638         * lib/cycle-check.h: Likewise.
55639         * lib/diacrit.c: Likewise.
55640         * lib/diacrit.h: Likewise.
55641         * lib/diffseq.h: Likewise.
55642         * lib/dirchownmod.c: Likewise.
55643         * lib/dirent.in.h: Likewise.
55644         * lib/dirfd.c: Likewise.
55645         * lib/dirfd.h: Likewise.
55646         * lib/dirname.c: Likewise.
55647         * lib/dirname.h: Likewise.
55648         * lib/dummy.c: Likewise.
55649         * lib/dup-safer.c: Likewise.
55650         * lib/dup2.c: Likewise.
55651         * lib/eealloc.h: Likewise.
55652         * lib/error.c: Likewise.
55653         * lib/error.h: Likewise.
55654         * lib/euidaccess.c: Likewise.
55655         * lib/exclude.c: Likewise.
55656         * lib/exclude.h: Likewise.
55657         * lib/execute.c: Likewise.
55658         * lib/execute.h: Likewise.
55659         * lib/exitfail.c: Likewise.
55660         * lib/exitfail.h: Likewise.
55661         * lib/expl.c: Likewise.
55662         * lib/fatal-signal.c: Likewise.
55663         * lib/fatal-signal.h: Likewise.
55664         * lib/fbufmode.c: Likewise.
55665         * lib/fbufmode.h: Likewise.
55666         * lib/fchdir.c: Likewise.
55667         * lib/fchmodat.c: Likewise.
55668         * lib/fchownat.c: Likewise.
55669         * lib/fcntl--.h: Likewise.
55670         * lib/fcntl-safer.h: Likewise.
55671         * lib/fcntl.in.h: Likewise.
55672         * lib/fd-safer.c: Likewise.
55673         * lib/fflush.c: Likewise.
55674         * lib/file-has-acl.c: Likewise.
55675         * lib/file-set.c: Likewise.
55676         * lib/file-type.c: Likewise.
55677         * lib/file-type.h: Likewise.
55678         * lib/fileblocks.c: Likewise.
55679         * lib/filemode.c: Likewise.
55680         * lib/filemode.h: Likewise.
55681         * lib/filename.h: Likewise.
55682         * lib/filenamecat.c: Likewise.
55683         * lib/filenamecat.h: Likewise.
55684         * lib/findprog.c: Likewise.
55685         * lib/findprog.h: Likewise.
55686         * lib/float.in.h: Likewise.
55687         * lib/floor.c: Likewise.
55688         * lib/floorf.c: Likewise.
55689         * lib/floorl.c: Likewise.
55690         * lib/fopen-safer.c: Likewise.
55691         * lib/fopen.c: Likewise.
55692         * lib/fpending.c: Likewise.
55693         * lib/fpending.h: Likewise.
55694         * lib/fprintf.c: Likewise.
55695         * lib/fprintftime.h: Likewise.
55696         * lib/fpucw.h: Likewise.
55697         * lib/fpurge.c: Likewise.
55698         * lib/fpurge.h: Likewise.
55699         * lib/freadable.c: Likewise.
55700         * lib/freadable.h: Likewise.
55701         * lib/freadahead.c: Likewise.
55702         * lib/freadahead.h: Likewise.
55703         * lib/freading.c: Likewise.
55704         * lib/freading.h: Likewise.
55705         * lib/free.c: Likewise.
55706         * lib/freopen.c: Likewise.
55707         * lib/frexp.c: Likewise.
55708         * lib/frexpl.c: Likewise.
55709         * lib/fseek.c: Likewise.
55710         * lib/fseterr.c: Likewise.
55711         * lib/fseterr.h: Likewise.
55712         * lib/fstatat.c: Likewise.
55713         * lib/fstrcmp.c: Likewise.
55714         * lib/fstrcmp.h: Likewise.
55715         * lib/fsusage.c: Likewise.
55716         * lib/fsusage.h: Likewise.
55717         * lib/ftell.c: Likewise.
55718         * lib/ftello.c: Likewise.
55719         * lib/fts-cycle.c: Likewise.
55720         * lib/fts.c: Likewise.
55721         * lib/fts_.h: Likewise.
55722         * lib/full-read.c: Likewise.
55723         * lib/full-read.h: Likewise.
55724         * lib/full-write.c: Likewise.
55725         * lib/full-write.h: Likewise.
55726         * lib/fwritable.c: Likewise.
55727         * lib/fwritable.h: Likewise.
55728         * lib/fwriteerror.c: Likewise.
55729         * lib/fwriteerror.h: Likewise.
55730         * lib/fwriting.c: Likewise.
55731         * lib/fwriting.h: Likewise.
55732         * lib/gcd.c: Likewise.
55733         * lib/gcd.h: Likewise.
55734         * lib/getcwd.c: Likewise.
55735         * lib/getdate.h: Likewise.
55736         * lib/getdate.y: Likewise.
55737         * lib/getdomainname.c: Likewise.
55738         * lib/getdomainname.h: Likewise.
55739         * lib/getgroups.c: Likewise.
55740         * lib/gethostname.c: Likewise.
55741         * lib/gethrxtime.c: Likewise.
55742         * lib/gethrxtime.h: Likewise.
55743         * lib/getloadavg.c: Likewise.
55744         * lib/getndelim2.c: Likewise.
55745         * lib/getndelim2.h: Likewise.
55746         * lib/getnline.c: Likewise.
55747         * lib/getnline.h: Likewise.
55748         * lib/getopt.c: Likewise.
55749         * lib/getopt.in.h: Likewise.
55750         * lib/getopt1.c: Likewise.
55751         * lib/getopt_int.h: Likewise.
55752         * lib/getpagesize.h: Likewise.
55753         * lib/getsubopt.c: Likewise.
55754         * lib/gettime.c: Likewise.
55755         * lib/getugroups.c: Likewise.
55756         * lib/getugroups.h: Likewise.
55757         * lib/getusershell.c: Likewise.
55758         * lib/gl_anyavltree_list1.h: Likewise.
55759         * lib/gl_anyavltree_list2.h: Likewise.
55760         * lib/gl_anyhash_list1.h: Likewise.
55761         * lib/gl_anyhash_list2.h: Likewise.
55762         * lib/gl_anylinked_list1.h: Likewise.
55763         * lib/gl_anylinked_list2.h: Likewise.
55764         * lib/gl_anyrbtree_list1.h: Likewise.
55765         * lib/gl_anyrbtree_list2.h: Likewise.
55766         * lib/gl_anytree_list1.h: Likewise.
55767         * lib/gl_anytree_list2.h: Likewise.
55768         * lib/gl_anytree_oset.h: Likewise.
55769         * lib/gl_anytreehash_list1.h: Likewise.
55770         * lib/gl_anytreehash_list2.h: Likewise.
55771         * lib/gl_array_list.c: Likewise.
55772         * lib/gl_array_list.h: Likewise.
55773         * lib/gl_array_oset.c: Likewise.
55774         * lib/gl_array_oset.h: Likewise.
55775         * lib/gl_avltree_list.c: Likewise.
55776         * lib/gl_avltree_list.h: Likewise.
55777         * lib/gl_avltree_oset.c: Likewise.
55778         * lib/gl_avltree_oset.h: Likewise.
55779         * lib/gl_avltreehash_list.c: Likewise.
55780         * lib/gl_avltreehash_list.h: Likewise.
55781         * lib/gl_carray_list.c: Likewise.
55782         * lib/gl_carray_list.h: Likewise.
55783         * lib/gl_linked_list.c: Likewise.
55784         * lib/gl_linked_list.h: Likewise.
55785         * lib/gl_linkedhash_list.c: Likewise.
55786         * lib/gl_linkedhash_list.h: Likewise.
55787         * lib/gl_list.c: Likewise.
55788         * lib/gl_list.h: Likewise.
55789         * lib/gl_oset.c: Likewise.
55790         * lib/gl_oset.h: Likewise.
55791         * lib/gl_rbtree_list.c: Likewise.
55792         * lib/gl_rbtree_list.h: Likewise.
55793         * lib/gl_rbtree_oset.c: Likewise.
55794         * lib/gl_rbtree_oset.h: Likewise.
55795         * lib/gl_rbtreehash_list.c: Likewise.
55796         * lib/gl_rbtreehash_list.h: Likewise.
55797         * lib/gl_sublist.c: Likewise.
55798         * lib/gl_sublist.h: Likewise.
55799         * lib/group-member.c: Likewise.
55800         * lib/group-member.h: Likewise.
55801         * lib/hard-locale.c: Likewise.
55802         * lib/hard-locale.h: Likewise.
55803         * lib/hash-pjw.c: Likewise.
55804         * lib/hash-pjw.h: Likewise.
55805         * lib/hash-triple.c: Likewise.
55806         * lib/hash.c: Likewise.
55807         * lib/hash.h: Likewise.
55808         * lib/human.c: Likewise.
55809         * lib/human.h: Likewise.
55810         * lib/i-ring.c: Likewise.
55811         * lib/i-ring.h: Likewise.
55812         * lib/idcache.c: Likewise.
55813         * lib/imaxabs.c: Likewise.
55814         * lib/imaxdiv.c: Likewise.
55815         * lib/inet_pton.c: Likewise.
55816         * lib/inet_pton.h: Likewise.
55817         * lib/intprops.h: Likewise.
55818         * lib/inttostr.c: Likewise.
55819         * lib/inttostr.h: Likewise.
55820         * lib/inttypes.in.h: Likewise.
55821         * lib/isapipe.c: Likewise.
55822         * lib/isdir.c: Likewise.
55823         * lib/isnan.c: Likewise.
55824         * lib/isnan.h: Likewise.
55825         * lib/isnanf.c: Likewise.
55826         * lib/isnanf.h: Likewise.
55827         * lib/isnanl-nolibm.h: Likewise.
55828         * lib/isnanl.c: Likewise.
55829         * lib/isnanl.h: Likewise.
55830         * lib/javacomp.c: Likewise.
55831         * lib/javacomp.h: Likewise.
55832         * lib/javaexec.c: Likewise.
55833         * lib/javaexec.h: Likewise.
55834         * lib/javaversion.c: Likewise.
55835         * lib/javaversion.h: Likewise.
55836         * lib/javaversion.java: Likewise.
55837         * lib/lbrkprop.h: Likewise.
55838         * lib/lchmod.h: Likewise.
55839         * lib/lchown.c: Likewise.
55840         * lib/ldexpl.c: Likewise.
55841         * lib/linebreak.c: Likewise.
55842         * lib/linebreak.h: Likewise.
55843         * lib/linebuffer.c: Likewise.
55844         * lib/linebuffer.h: Likewise.
55845         * lib/locale.in.h: Likewise.
55846         * lib/logl.c: Likewise.
55847         * lib/long-options.c: Likewise.
55848         * lib/long-options.h: Likewise.
55849         * lib/lstat.c: Likewise.
55850         * lib/lstat.h: Likewise.
55851         * lib/math.in.h: Likewise.
55852         * lib/mbchar.c: Likewise.
55853         * lib/mbchar.h: Likewise.
55854         * lib/mbfile.h: Likewise.
55855         * lib/mbiter.h: Likewise.
55856         * lib/mbscasecmp.c: Likewise.
55857         * lib/mbscasestr.c: Likewise.
55858         * lib/mbschr.c: Likewise.
55859         * lib/mbscspn.c: Likewise.
55860         * lib/mbslen.c: Likewise.
55861         * lib/mbsncasecmp.c: Likewise.
55862         * lib/mbsnlen.c: Likewise.
55863         * lib/mbspbrk.c: Likewise.
55864         * lib/mbspcasecmp.c: Likewise.
55865         * lib/mbsrchr.c: Likewise.
55866         * lib/mbssep.c: Likewise.
55867         * lib/mbsspn.c: Likewise.
55868         * lib/mbsstr.c: Likewise.
55869         * lib/mbstok_r.c: Likewise.
55870         * lib/mbswidth.c: Likewise.
55871         * lib/mbswidth.h: Likewise.
55872         * lib/mbuiter.h: Likewise.
55873         * lib/memcasecmp.c: Likewise.
55874         * lib/memcasecmp.h: Likewise.
55875         * lib/memchr.c: Likewise.
55876         * lib/memcmp.c: Likewise.
55877         * lib/memcoll.c: Likewise.
55878         * lib/memcoll.h: Likewise.
55879         * lib/memcpy.c: Likewise.
55880         * lib/memrchr.c: Likewise.
55881         * lib/mkancesdirs.c: Likewise.
55882         * lib/mkdir-p.c: Likewise.
55883         * lib/mkdir-p.h: Likewise.
55884         * lib/mkdir.c: Likewise.
55885         * lib/mkdirat.c: Likewise.
55886         * lib/mkdtemp.c: Likewise.
55887         * lib/mkstemp-safer.c: Likewise.
55888         * lib/mkstemp.c: Likewise.
55889         * lib/modechange.c: Likewise.
55890         * lib/modechange.h: Likewise.
55891         * lib/mountlist.c: Likewise.
55892         * lib/mountlist.h: Likewise.
55893         * lib/mpsort.c: Likewise.
55894         * lib/nanosleep.c: Likewise.
55895         * lib/obstack.c: Likewise.
55896         * lib/obstack.h: Likewise.
55897         * lib/open-safer.c: Likewise.
55898         * lib/open.c: Likewise.
55899         * lib/openat-die.c: Likewise.
55900         * lib/openat-priv.h: Likewise.
55901         * lib/openat-proc.c: Likewise.
55902         * lib/openat.c: Likewise.
55903         * lib/openat.h: Likewise.
55904         * lib/pagealign_alloc.c: Likewise.
55905         * lib/pagealign_alloc.h: Likewise.
55906         * lib/physmem.c: Likewise.
55907         * lib/physmem.h: Likewise.
55908         * lib/pipe-safer.c: Likewise.
55909         * lib/pipe.c: Likewise.
55910         * lib/pipe.h: Likewise.
55911         * lib/posixtm.c: Likewise.
55912         * lib/posixtm.h: Likewise.
55913         * lib/posixver.c: Likewise.
55914         * lib/printf-frexp.c: Likewise.
55915         * lib/printf-frexp.h: Likewise.
55916         * lib/printf-frexpl.c: Likewise.
55917         * lib/printf-frexpl.h: Likewise.
55918         * lib/printf.c: Likewise.
55919         * lib/progname.c: Likewise.
55920         * lib/progname.h: Likewise.
55921         * lib/progreloc.c: Likewise.
55922         * lib/putenv.c: Likewise.
55923         * lib/quote.c: Likewise.
55924         * lib/quote.h: Likewise.
55925         * lib/quotearg.c: Likewise.
55926         * lib/quotearg.h: Likewise.
55927         * lib/raise.c: Likewise.
55928         * lib/readline.c: Likewise.
55929         * lib/readline.h: Likewise.
55930         * lib/readlink.c: Likewise.
55931         * lib/readtokens.c: Likewise.
55932         * lib/readtokens.h: Likewise.
55933         * lib/readtokens0.c: Likewise.
55934         * lib/readtokens0.h: Likewise.
55935         * lib/readutmp.c: Likewise.
55936         * lib/readutmp.h: Likewise.
55937         * lib/realloc.c: Likewise.
55938         * lib/relocwrapper.c: Likewise.
55939         * lib/rename-dest-slash.c: Likewise.
55940         * lib/rename.c: Likewise.
55941         * lib/rmdir.c: Likewise.
55942         * lib/rpmatch.c: Likewise.
55943         * lib/safe-read.c: Likewise.
55944         * lib/safe-read.h: Likewise.
55945         * lib/safe-write.c: Likewise.
55946         * lib/safe-write.h: Likewise.
55947         * lib/same-inode.h: Likewise.
55948         * lib/same.c: Likewise.
55949         * lib/same.h: Likewise.
55950         * lib/save-cwd.c: Likewise.
55951         * lib/save-cwd.h: Likewise.
55952         * lib/savedir.c: Likewise.
55953         * lib/savedir.h: Likewise.
55954         * lib/savewd.c: Likewise.
55955         * lib/savewd.h: Likewise.
55956         * lib/search.in.h: Likewise.
55957         * lib/setenv.c: Likewise.
55958         * lib/setenv.h: Likewise.
55959         * lib/settime.c: Likewise.
55960         * lib/sh-quote.c: Likewise.
55961         * lib/sh-quote.h: Likewise.
55962         * lib/sig2str.c: Likewise.
55963         * lib/sig2str.h: Likewise.
55964         * lib/signal.in.h: Likewise.
55965         * lib/signbitd.c: Likewise.
55966         * lib/signbitf.c: Likewise.
55967         * lib/signbitl.c: Likewise.
55968         * lib/sigprocmask.c: Likewise.
55969         * lib/sincosl.c: Likewise.
55970         * lib/sleep.c: Likewise.
55971         * lib/sprintf.c: Likewise.
55972         * lib/sqrtl.c: Likewise.
55973         * lib/stat-time.h: Likewise.
55974         * lib/stdio--.h: Likewise.
55975         * lib/stdio-safer.h: Likewise.
55976         * lib/stdlib--.h: Likewise.
55977         * lib/stdlib-safer.h: Likewise.
55978         * lib/stdlib.in.h: Likewise.
55979         * lib/stpcpy.c: Likewise.
55980         * lib/stpncpy.c: Likewise.
55981         * lib/strchrnul.c: Likewise.
55982         * lib/strcspn.c: Likewise.
55983         * lib/strerror.c: Likewise.
55984         * lib/strftime.c: Likewise.
55985         * lib/strftime.h: Likewise.
55986         * lib/striconveh.c: Likewise.
55987         * lib/striconveh.h: Likewise.
55988         * lib/striconveha.c: Likewise.
55989         * lib/striconveha.h: Likewise.
55990         * lib/stripslash.c: Likewise.
55991         * lib/strnlen1.c: Likewise.
55992         * lib/strnlen1.h: Likewise.
55993         * lib/strtod.c: Likewise.
55994         * lib/strtoimax.c: Likewise.
55995         * lib/strtok_r.c: Likewise.
55996         * lib/strtol.c: Likewise.
55997         * lib/strtoll.c: Likewise.
55998         * lib/strtoul.c: Likewise.
55999         * lib/strtoull.c: Likewise.
56000         * lib/sysexits.in.h: Likewise.
56001         * lib/tempname.c: Likewise.
56002         * lib/tempname.h: Likewise.
56003         * lib/timespec.h: Likewise.
56004         * lib/tls.c: Likewise.
56005         * lib/tls.h: Likewise.
56006         * lib/tmpdir.c: Likewise.
56007         * lib/tmpdir.h: Likewise.
56008         * lib/tmpfile-safer.c: Likewise.
56009         * lib/tmpfile.c: Likewise.
56010         * lib/trigl.c: Likewise.
56011         * lib/trigl.h: Likewise.
56012         * lib/trim.c: Likewise.
56013         * lib/trim.h: Likewise.
56014         * lib/trunc.c: Likewise.
56015         * lib/truncf.c: Likewise.
56016         * lib/truncl.c: Likewise.
56017         * lib/tsearch.c: Likewise.
56018         * lib/unicodeio.c: Likewise.
56019         * lib/unicodeio.h: Likewise.
56020         * lib/unistd--.h: Likewise.
56021         * lib/unistd-safer.h: Likewise.
56022         * lib/unistdio/ulc-fprintf.c: Likewise.
56023         * lib/unistdio/ulc-vfprintf.c: Likewise.
56024         * lib/unlinkdir.c: Likewise.
56025         * lib/unlinkdir.h: Likewise.
56026         * lib/unlocked-io.h: Likewise.
56027         * lib/unsetenv.c: Likewise.
56028         * lib/userspec.c: Likewise.
56029         * lib/utime.c: Likewise.
56030         * lib/utimecmp.c: Likewise.
56031         * lib/utimecmp.h: Likewise.
56032         * lib/utimens.c: Likewise.
56033         * lib/verify.h: Likewise.
56034         * lib/verror.c: Likewise.
56035         * lib/verror.h: Likewise.
56036         * lib/version-etc-fsf.c: Likewise.
56037         * lib/version-etc.c: Likewise.
56038         * lib/version-etc.h: Likewise.
56039         * lib/vfprintf.c: Likewise.
56040         * lib/vprintf.c: Likewise.
56041         * lib/vsprintf.c: Likewise.
56042         * lib/w32spawn.h: Likewise.
56043         * lib/wait-process.c: Likewise.
56044         * lib/wait-process.h: Likewise.
56045         * lib/wcwidth.c: Likewise.
56046         * lib/write-any-file.c: Likewise.
56047         * lib/xalloc-die.c: Likewise.
56048         * lib/xalloc.h: Likewise.
56049         * lib/xasprintf.c: Likewise.
56050         * lib/xgetcwd.c: Likewise.
56051         * lib/xgetcwd.h: Likewise.
56052         * lib/xgetdomainname.c: Likewise.
56053         * lib/xgetdomainname.h: Likewise.
56054         * lib/xgethostname.c: Likewise.
56055         * lib/xmalloc.c: Likewise.
56056         * lib/xmalloca.c: Likewise.
56057         * lib/xmalloca.h: Likewise.
56058         * lib/xmemcoll.c: Likewise.
56059         * lib/xnanosleep.c: Likewise.
56060         * lib/xreadlink.c: Likewise.
56061         * lib/xreadlink.h: Likewise.
56062         * lib/xsetenv.c: Likewise.
56063         * lib/xsetenv.h: Likewise.
56064         * lib/xstriconv.c: Likewise.
56065         * lib/xstriconv.h: Likewise.
56066         * lib/xstrndup.c: Likewise.
56067         * lib/xstrndup.h: Likewise.
56068         * lib/xstrtod.c: Likewise.
56069         * lib/xstrtod.h: Likewise.
56070         * lib/xstrtol-error.c: Likewise.
56071         * lib/xstrtol.c: Likewise.
56072         * lib/xstrtol.h: Likewise.
56073         * lib/xtime.h: Likewise.
56074         * lib/xvasprintf.c: Likewise.
56075         * lib/xvasprintf.h: Likewise.
56076         * lib/yesno.c: Likewise.
56077         * lib/yesno.h: Likewise.
56078         * posix-modules: Likewise.
56079         * tests/test-alloca-opt.c: Likewise.
56080         * tests/test-arcfour.c: Likewise.
56081         * tests/test-arctwo.c: Likewise.
56082         * tests/test-argmatch.c: Likewise.
56083         * tests/test-argp-2.sh: Likewise.
56084         * tests/test-argp.c: Likewise.
56085         * tests/test-arpa_inet.c: Likewise.
56086         * tests/test-array_list.c: Likewise.
56087         * tests/test-array_oset.c: Likewise.
56088         * tests/test-atexit.c: Likewise.
56089         * tests/test-avltree_list.c: Likewise.
56090         * tests/test-avltree_oset.c: Likewise.
56091         * tests/test-avltreehash_list.c: Likewise.
56092         * tests/test-base64.c: Likewise.
56093         * tests/test-binary-io.c: Likewise.
56094         * tests/test-byteswap.c: Likewise.
56095         * tests/test-c-ctype.c: Likewise.
56096         * tests/test-c-strcasecmp.c: Likewise.
56097         * tests/test-c-strcasestr.c: Likewise.
56098         * tests/test-c-strncasecmp.c: Likewise.
56099         * tests/test-c-strstr.c: Likewise.
56100         * tests/test-canonicalize-lgpl.c: Likewise.
56101         * tests/test-canonicalize.c: Likewise.
56102         * tests/test-carray_list.c: Likewise.
56103         * tests/test-ceilf.c: Likewise.
56104         * tests/test-ceill.c: Likewise.
56105         * tests/test-count-one-bits.c: Likewise.
56106         * tests/test-crc.c: Likewise.
56107         * tests/test-dirname.c: Likewise.
56108         * tests/test-fbufmode.c: Likewise.
56109         * tests/test-fcntl.c: Likewise.
56110         * tests/test-fflush.c: Likewise.
56111         * tests/test-floorf.c: Likewise.
56112         * tests/test-floorl.c: Likewise.
56113         * tests/test-fopen.c: Likewise.
56114         * tests/test-fprintf-posix.c: Likewise.
56115         * tests/test-fprintf-posix.h: Likewise.
56116         * tests/test-fpurge.c: Likewise.
56117         * tests/test-freadable.c: Likewise.
56118         * tests/test-freadahead.c: Likewise.
56119         * tests/test-freading.c: Likewise.
56120         * tests/test-freopen.c: Likewise.
56121         * tests/test-frexp.c: Likewise.
56122         * tests/test-frexpl.c: Likewise.
56123         * tests/test-fseek.c: Likewise.
56124         * tests/test-fseeko.c: Likewise.
56125         * tests/test-fseterr.c: Likewise.
56126         * tests/test-fstrcmp.c: Likewise.
56127         * tests/test-ftell.c: Likewise.
56128         * tests/test-ftello.c: Likewise.
56129         * tests/test-fwritable.c: Likewise.
56130         * tests/test-fwriting.c: Likewise.
56131         * tests/test-getaddrinfo.c: Likewise.
56132         * tests/test-getpass.c: Likewise.
56133         * tests/test-gettimeofday.c: Likewise.
56134         * tests/test-hmac-md5.c: Likewise.
56135         * tests/test-hmac-sha1.c: Likewise.
56136         * tests/test-iconv.c: Likewise.
56137         * tests/test-iconvme.c: Likewise.
56138         * tests/test-inttypes.c: Likewise.
56139         * tests/test-isnan.c: Likewise.
56140         * tests/test-isnanf.c: Likewise.
56141         * tests/test-isnanl-nolibm.c: Likewise.
56142         * tests/test-isnanl.c: Likewise.
56143         * tests/test-isnanl.h: Likewise.
56144         * tests/test-ldexpl.c: Likewise.
56145         * tests/test-linked_list.c: Likewise.
56146         * tests/test-linkedhash_list.c: Likewise.
56147         * tests/test-locale.c: Likewise.
56148         * tests/test-localename.c: Likewise.
56149         * tests/test-lock.c: Likewise.
56150         * tests/test-lseek.c: Likewise.
56151         * tests/test-malloca.c: Likewise.
56152         * tests/test-math.c: Likewise.
56153         * tests/test-mbscasecmp.c: Likewise.
56154         * tests/test-mbscasestr1.c: Likewise.
56155         * tests/test-mbscasestr2.c: Likewise.
56156         * tests/test-mbscasestr3.c: Likewise.
56157         * tests/test-mbscasestr4.c: Likewise.
56158         * tests/test-mbschr.c: Likewise.
56159         * tests/test-mbscspn.c: Likewise.
56160         * tests/test-mbsncasecmp.c: Likewise.
56161         * tests/test-mbspbrk.c: Likewise.
56162         * tests/test-mbspcasecmp.c: Likewise.
56163         * tests/test-mbsrchr.c: Likewise.
56164         * tests/test-mbsspn.c: Likewise.
56165         * tests/test-mbsstr1.c: Likewise.
56166         * tests/test-mbsstr2.c: Likewise.
56167         * tests/test-mbsstr3.c: Likewise.
56168         * tests/test-md5.c: Likewise.
56169         * tests/test-memmem.c: Likewise.
56170         * tests/test-netinet_in.c: Likewise.
56171         * tests/test-open.c: Likewise.
56172         * tests/test-printf-frexp.c: Likewise.
56173         * tests/test-printf-frexpl.c: Likewise.
56174         * tests/test-printf-posix.c: Likewise.
56175         * tests/test-printf-posix.h: Likewise.
56176         * tests/test-rbtree_list.c: Likewise.
56177         * tests/test-rbtree_oset.c: Likewise.
56178         * tests/test-rbtreehash_list.c: Likewise.
56179         * tests/test-read-file.c: Likewise.
56180         * tests/test-rijndael.c: Likewise.
56181         * tests/test-search.c: Likewise.
56182         * tests/test-signbit.c: Likewise.
56183         * tests/test-sleep.c: Likewise.
56184         * tests/test-snprintf-posix.c: Likewise.
56185         * tests/test-snprintf-posix.h: Likewise.
56186         * tests/test-snprintf.c: Likewise.
56187         * tests/test-sprintf-posix.c: Likewise.
56188         * tests/test-sprintf-posix.h: Likewise.
56189         * tests/test-stat-time.c: Likewise.
56190         * tests/test-stdbool.c: Likewise.
56191         * tests/test-stdint.c: Likewise.
56192         * tests/test-stdio.c: Likewise.
56193         * tests/test-stdlib.c: Likewise.
56194         * tests/test-stpncpy.c: Likewise.
56195         * tests/test-strcasestr.c: Likewise.
56196         * tests/test-striconv.c: Likewise.
56197         * tests/test-striconveh.c: Likewise.
56198         * tests/test-striconveha.c: Likewise.
56199         * tests/test-string.c: Likewise.
56200         * tests/test-sys_select.c: Likewise.
56201         * tests/test-sys_socket.c: Likewise.
56202         * tests/test-sys_stat.c: Likewise.
56203         * tests/test-sys_time.c: Likewise.
56204         * tests/test-sysexits.c: Likewise.
56205         * tests/test-time.c: Likewise.
56206         * tests/test-tls.c: Likewise.
56207         * tests/test-trunc.c: Likewise.
56208         * tests/test-truncf.c: Likewise.
56209         * tests/test-truncl.c: Likewise.
56210         * tests/test-unistd.c: Likewise.
56211         * tests/test-vasnprintf-posix.c: Likewise.
56212         * tests/test-vasnprintf-posix2.c: Likewise.
56213         * tests/test-vasnprintf.c: Likewise.
56214         * tests/test-vasprintf-posix.c: Likewise.
56215         * tests/test-vasprintf.c: Likewise.
56216         * tests/test-verify.c: Likewise.
56217         * tests/test-vfprintf-posix.c: Likewise.
56218         * tests/test-vprintf-posix.c: Likewise.
56219         * tests/test-vsnprintf-posix.c: Likewise.
56220         * tests/test-vsnprintf.c: Likewise.
56221         * tests/test-vsprintf-posix.c: Likewise.
56222         * tests/test-wchar.c: Likewise.
56223         * tests/test-wctype.c: Likewise.
56224         * tests/test-wcwidth.c: Likewise.
56225         * tests/test-xstrtol.c: Likewise.
56226         * tests/test-xvasprintf.c: Likewise.
56227         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56228         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56229         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56230         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56231         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56232         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56233         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56234         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56235         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56236         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56237         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56238         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56239         * tests/uniname/test-uninames.c: Likewise.
56240         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56241         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56242         * tests/unistdio/test-u16-printf1.h: Likewise.
56243         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56244         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56245         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56246         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56247         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56248         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56249         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56250         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56251         * tests/unistdio/test-u32-printf1.h: Likewise.
56252         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56253         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56254         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56255         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56256         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56257         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56258         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56259         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56260         * tests/unistdio/test-u8-printf1.h: Likewise.
56261         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56262         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56263         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56264         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56265         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56266         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56267         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56268         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56269         * tests/unistdio/test-ulc-printf1.h: Likewise.
56270         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56271         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56272         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56273         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56274         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56275         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56276         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56277         * tests/uniwidth/test-u16-width.c: Likewise.
56278         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56279         * tests/uniwidth/test-u32-width.c: Likewise.
56280         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56281         * tests/uniwidth/test-u8-width.c: Likewise.
56282         * tests/uniwidth/test-uc_width.c: Likewise.
56283         * config/srclist-update: Likewise.
56284         (fixlicense): Update to GPLv3+.
56285
56286         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56287         * tests/test-tsearch.c: Change copyright notice.
56288
56289         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56290         * lib/c-strcaseeq.h: Change copyright notice.
56291         * lib/streq.h: Likewise.
56292         * lib/uniconv.h: Likewise.
56293         * lib/uniconv/u-conv-from-enc.h: Likewise.
56294         * lib/uniconv/u-conv-to-enc.h: Likewise.
56295         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56296         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56297         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56298         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56299         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56300         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56301         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56302         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56303         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56304         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56305         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56306         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56307         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56308         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56309         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56310         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56311         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56312         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56313         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56314         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56315         * lib/uniname.h: Likewise.
56316         * lib/uniname/uniname.c: Likewise.
56317         * lib/unistdio.h: Likewise.
56318         * lib/unistdio/u-asnprintf.h: Likewise.
56319         * lib/unistdio/u-asprintf.h: Likewise.
56320         * lib/unistdio/u-printf-args.c: Likewise.
56321         * lib/unistdio/u-printf-args.h: Likewise.
56322         * lib/unistdio/u-printf-parse.h: Likewise.
56323         * lib/unistdio/u-snprintf.h: Likewise.
56324         * lib/unistdio/u-sprintf.h: Likewise.
56325         * lib/unistdio/u-vasprintf.h: Likewise.
56326         * lib/unistdio/u-vsnprintf.h: Likewise.
56327         * lib/unistdio/u-vsprintf.h: Likewise.
56328         * lib/unistdio/u16-asnprintf.c: Likewise.
56329         * lib/unistdio/u16-asprintf.c: Likewise.
56330         * lib/unistdio/u16-printf-parse.c: Likewise.
56331         * lib/unistdio/u16-snprintf.c: Likewise.
56332         * lib/unistdio/u16-sprintf.c: Likewise.
56333         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56334         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56335         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56336         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56337         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56338         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56339         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56340         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56341         * lib/unistdio/u16-vasnprintf.c: Likewise.
56342         * lib/unistdio/u16-vasprintf.c: Likewise.
56343         * lib/unistdio/u16-vsnprintf.c: Likewise.
56344         * lib/unistdio/u16-vsprintf.c: Likewise.
56345         * lib/unistdio/u32-asnprintf.c: Likewise.
56346         * lib/unistdio/u32-asprintf.c: Likewise.
56347         * lib/unistdio/u32-printf-parse.c: Likewise.
56348         * lib/unistdio/u32-snprintf.c: Likewise.
56349         * lib/unistdio/u32-sprintf.c: Likewise.
56350         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56351         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56352         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56353         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56354         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56355         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56356         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56357         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56358         * lib/unistdio/u32-vasnprintf.c: Likewise.
56359         * lib/unistdio/u32-vasprintf.c: Likewise.
56360         * lib/unistdio/u32-vsnprintf.c: Likewise.
56361         * lib/unistdio/u32-vsprintf.c: Likewise.
56362         * lib/unistdio/u8-asnprintf.c: Likewise.
56363         * lib/unistdio/u8-asprintf.c: Likewise.
56364         * lib/unistdio/u8-printf-parse.c: Likewise.
56365         * lib/unistdio/u8-snprintf.c: Likewise.
56366         * lib/unistdio/u8-sprintf.c: Likewise.
56367         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56368         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56369         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56370         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56371         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56372         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56373         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56374         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56375         * lib/unistdio/u8-vasnprintf.c: Likewise.
56376         * lib/unistdio/u8-vasprintf.c: Likewise.
56377         * lib/unistdio/u8-vsnprintf.c: Likewise.
56378         * lib/unistdio/u8-vsprintf.c: Likewise.
56379         * lib/unistdio/ulc-asnprintf.c: Likewise.
56380         * lib/unistdio/ulc-asprintf.c: Likewise.
56381         * lib/unistdio/ulc-printf-parse.c: Likewise.
56382         * lib/unistdio/ulc-snprintf.c: Likewise.
56383         * lib/unistdio/ulc-sprintf.c: Likewise.
56384         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56385         * lib/unistdio/ulc-vasprintf.c: Likewise.
56386         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56387         * lib/unistdio/ulc-vsprintf.c: Likewise.
56388         * lib/unistr.h: Likewise.
56389         * lib/unistr/u-cpy-alloc.h: Likewise.
56390         * lib/unistr/u-cpy.h: Likewise.
56391         * lib/unistr/u-endswith.h: Likewise.
56392         * lib/unistr/u-move.h: Likewise.
56393         * lib/unistr/u-set.h: Likewise.
56394         * lib/unistr/u-startswith.h: Likewise.
56395         * lib/unistr/u-stpcpy.h: Likewise.
56396         * lib/unistr/u-stpncpy.h: Likewise.
56397         * lib/unistr/u-strcat.h: Likewise.
56398         * lib/unistr/u-strcpy.h: Likewise.
56399         * lib/unistr/u-strcspn.h: Likewise.
56400         * lib/unistr/u-strdup.h: Likewise.
56401         * lib/unistr/u-strlen.h: Likewise.
56402         * lib/unistr/u-strncat.h: Likewise.
56403         * lib/unistr/u-strncpy.h: Likewise.
56404         * lib/unistr/u-strnlen.h: Likewise.
56405         * lib/unistr/u-strpbrk.h: Likewise.
56406         * lib/unistr/u-strspn.h: Likewise.
56407         * lib/unistr/u-strstr.h: Likewise.
56408         * lib/unistr/u-strtok.h: Likewise.
56409         * lib/unistr/u16-check.c: Likewise.
56410         * lib/unistr/u16-chr.c: Likewise.
56411         * lib/unistr/u16-cmp.c: Likewise.
56412         * lib/unistr/u16-cpy-alloc.c: Likewise.
56413         * lib/unistr/u16-cpy.c: Likewise.
56414         * lib/unistr/u16-endswith.c: Likewise.
56415         * lib/unistr/u16-mblen.c: Likewise.
56416         * lib/unistr/u16-mbsnlen.c: Likewise.
56417         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56418         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56419         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56420         * lib/unistr/u16-mbtouc.c: Likewise.
56421         * lib/unistr/u16-mbtoucr.c: Likewise.
56422         * lib/unistr/u16-move.c: Likewise.
56423         * lib/unistr/u16-next.c: Likewise.
56424         * lib/unistr/u16-prev.c: Likewise.
56425         * lib/unistr/u16-set.c: Likewise.
56426         * lib/unistr/u16-startswith.c: Likewise.
56427         * lib/unistr/u16-stpcpy.c: Likewise.
56428         * lib/unistr/u16-stpncpy.c: Likewise.
56429         * lib/unistr/u16-strcat.c: Likewise.
56430         * lib/unistr/u16-strchr.c: Likewise.
56431         * lib/unistr/u16-strcmp.c: Likewise.
56432         * lib/unistr/u16-strcpy.c: Likewise.
56433         * lib/unistr/u16-strcspn.c: Likewise.
56434         * lib/unistr/u16-strdup.c: Likewise.
56435         * lib/unistr/u16-strlen.c: Likewise.
56436         * lib/unistr/u16-strmblen.c: Likewise.
56437         * lib/unistr/u16-strmbtouc.c: Likewise.
56438         * lib/unistr/u16-strncat.c: Likewise.
56439         * lib/unistr/u16-strncmp.c: Likewise.
56440         * lib/unistr/u16-strncpy.c: Likewise.
56441         * lib/unistr/u16-strnlen.c: Likewise.
56442         * lib/unistr/u16-strpbrk.c: Likewise.
56443         * lib/unistr/u16-strrchr.c: Likewise.
56444         * lib/unistr/u16-strspn.c: Likewise.
56445         * lib/unistr/u16-strstr.c: Likewise.
56446         * lib/unistr/u16-strtok.c: Likewise.
56447         * lib/unistr/u16-to-u32.c: Likewise.
56448         * lib/unistr/u16-to-u8.c: Likewise.
56449         * lib/unistr/u16-uctomb-aux.c: Likewise.
56450         * lib/unistr/u16-uctomb.c: Likewise.
56451         * lib/unistr/u32-check.c: Likewise.
56452         * lib/unistr/u32-chr.c: Likewise.
56453         * lib/unistr/u32-cmp.c: Likewise.
56454         * lib/unistr/u32-cpy-alloc.c: Likewise.
56455         * lib/unistr/u32-cpy.c: Likewise.
56456         * lib/unistr/u32-endswith.c: Likewise.
56457         * lib/unistr/u32-mblen.c: Likewise.
56458         * lib/unistr/u32-mbsnlen.c: Likewise.
56459         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56460         * lib/unistr/u32-mbtouc.c: Likewise.
56461         * lib/unistr/u32-mbtoucr.c: Likewise.
56462         * lib/unistr/u32-move.c: Likewise.
56463         * lib/unistr/u32-next.c: Likewise.
56464         * lib/unistr/u32-prev.c: Likewise.
56465         * lib/unistr/u32-set.c: Likewise.
56466         * lib/unistr/u32-startswith.c: Likewise.
56467         * lib/unistr/u32-stpcpy.c: Likewise.
56468         * lib/unistr/u32-stpncpy.c: Likewise.
56469         * lib/unistr/u32-strcat.c: Likewise.
56470         * lib/unistr/u32-strchr.c: Likewise.
56471         * lib/unistr/u32-strcmp.c: Likewise.
56472         * lib/unistr/u32-strcpy.c: Likewise.
56473         * lib/unistr/u32-strcspn.c: Likewise.
56474         * lib/unistr/u32-strdup.c: Likewise.
56475         * lib/unistr/u32-strlen.c: Likewise.
56476         * lib/unistr/u32-strmblen.c: Likewise.
56477         * lib/unistr/u32-strmbtouc.c: Likewise.
56478         * lib/unistr/u32-strncat.c: Likewise.
56479         * lib/unistr/u32-strncmp.c: Likewise.
56480         * lib/unistr/u32-strncpy.c: Likewise.
56481         * lib/unistr/u32-strnlen.c: Likewise.
56482         * lib/unistr/u32-strpbrk.c: Likewise.
56483         * lib/unistr/u32-strrchr.c: Likewise.
56484         * lib/unistr/u32-strspn.c: Likewise.
56485         * lib/unistr/u32-strstr.c: Likewise.
56486         * lib/unistr/u32-strtok.c: Likewise.
56487         * lib/unistr/u32-to-u16.c: Likewise.
56488         * lib/unistr/u32-to-u8.c: Likewise.
56489         * lib/unistr/u32-uctomb.c: Likewise.
56490         * lib/unistr/u8-check.c: Likewise.
56491         * lib/unistr/u8-chr.c: Likewise.
56492         * lib/unistr/u8-cmp.c: Likewise.
56493         * lib/unistr/u8-cpy-alloc.c: Likewise.
56494         * lib/unistr/u8-cpy.c: Likewise.
56495         * lib/unistr/u8-endswith.c: Likewise.
56496         * lib/unistr/u8-mblen.c: Likewise.
56497         * lib/unistr/u8-mbsnlen.c: Likewise.
56498         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56499         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56500         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56501         * lib/unistr/u8-mbtouc.c: Likewise.
56502         * lib/unistr/u8-mbtoucr.c: Likewise.
56503         * lib/unistr/u8-move.c: Likewise.
56504         * lib/unistr/u8-next.c: Likewise.
56505         * lib/unistr/u8-prev.c: Likewise.
56506         * lib/unistr/u8-set.c: Likewise.
56507         * lib/unistr/u8-startswith.c: Likewise.
56508         * lib/unistr/u8-stpcpy.c: Likewise.
56509         * lib/unistr/u8-stpncpy.c: Likewise.
56510         * lib/unistr/u8-strcat.c: Likewise.
56511         * lib/unistr/u8-strchr.c: Likewise.
56512         * lib/unistr/u8-strcmp.c: Likewise.
56513         * lib/unistr/u8-strcpy.c: Likewise.
56514         * lib/unistr/u8-strcspn.c: Likewise.
56515         * lib/unistr/u8-strdup.c: Likewise.
56516         * lib/unistr/u8-strlen.c: Likewise.
56517         * lib/unistr/u8-strmblen.c: Likewise.
56518         * lib/unistr/u8-strmbtouc.c: Likewise.
56519         * lib/unistr/u8-strncat.c: Likewise.
56520         * lib/unistr/u8-strncmp.c: Likewise.
56521         * lib/unistr/u8-strncpy.c: Likewise.
56522         * lib/unistr/u8-strnlen.c: Likewise.
56523         * lib/unistr/u8-strpbrk.c: Likewise.
56524         * lib/unistr/u8-strrchr.c: Likewise.
56525         * lib/unistr/u8-strspn.c: Likewise.
56526         * lib/unistr/u8-strstr.c: Likewise.
56527         * lib/unistr/u8-strtok.c: Likewise.
56528         * lib/unistr/u8-to-u16.c: Likewise.
56529         * lib/unistr/u8-to-u32.c: Likewise.
56530         * lib/unistr/u8-uctomb-aux.c: Likewise.
56531         * lib/unistr/u8-uctomb.c: Likewise.
56532         * lib/unitypes.h: Likewise.
56533         * lib/uniwidth.h: Likewise.
56534         * lib/uniwidth/cjk.h: Likewise.
56535         * lib/uniwidth/u16-strwidth.c: Likewise.
56536         * lib/uniwidth/u16-width.c: Likewise.
56537         * lib/uniwidth/u32-strwidth.c: Likewise.
56538         * lib/uniwidth/u32-width.c: Likewise.
56539         * lib/uniwidth/u8-strwidth.c: Likewise.
56540         * lib/uniwidth/u8-width.c: Likewise.
56541         * lib/uniwidth/width.c: Likewise.
56542
56543 2007-10-07  Bruno Haible  <bruno@clisp.org>
56544
56545         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56546         The file is still under LGPL (see modules/inttypes).
56547
56548 2007-10-06  Bruno Haible  <bruno@clisp.org>
56549
56550         * modules/trunc (Dependencies): Add 'extensions'.
56551         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56552         Reported by Ben Pfaff <blp@gnu.org>.
56553
56554 2007-10-06  Bruno Haible  <bruno@clisp.org>
56555
56556         * modules/freopen-tests: New file.
56557         * tests/test-freopen.c: New file.
56558
56559         * modules/fopen-tests: New file.
56560         * tests/test-fopen.c: New file.
56561
56562         * modules/fopen: New file.
56563         * lib/fopen.c: New file.
56564         * m4/fopen.m4: New file.
56565         * modules/freopen: New file.
56566         * lib/freopen.c: New file.
56567         * m4/freopen.m4: New file.
56568         * lib/stdio.in.h (fopen, freopen): New declarations.
56569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56570         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56571         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56572         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56573         * doc/functions/fopen.texi: Mention the 'fopen' module.
56574         * doc/functions/freopen.texi: Mention the 'freopen' module.
56575
56576 2007-10-06  Bruno Haible  <bruno@clisp.org>
56577
56578         * modules/open-tests: New file.
56579         * tests/test-open.c: New file.
56580
56581         * modules/open: New file.
56582         * lib/open.c: New file.
56583         * m4/open.m4: New file.
56584         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56585         lib/open.c does.
56586         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56587         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56588         macros.
56589         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56590         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56591         REPLACE_OPEN.
56592         * doc/functions/open.texi: Mention the 'open' module.
56593
56594 2007-10-04  Bruno Haible  <bruno@clisp.org>
56595
56596         * modules/ceill-tests: New file.
56597         * tests/test-ceill.c: New file.
56598
56599         * modules/ceill: New file.
56600         * lib/ceill.c: Replace entire file.
56601         * m4/ceill.m4: New file.
56602         * lib/math.in.h (ceill): Replace declaration.
56603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56604         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56605         * doc/functions/ceill.texi: Mention the 'ceill' module.
56606         * modules/mathl (Files): Remove lib/ceill.c.
56607         (Depends-on): Add ceill.
56608
56609 2007-10-04  Bruno Haible  <bruno@clisp.org>
56610
56611         * modules/ceilf-tests: New file.
56612         * tests/test-ceilf.c: New file.
56613
56614         * modules/ceilf: New file.
56615         * lib/ceil.c: New file.
56616         * lib/ceilf.c: New file.
56617         * m4/ceilf.m4: New file.
56618         * lib/math.in.h (ceilf): New declaration.
56619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56620         HAVE_DECL_CEILF.
56621         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56622         HAVE_DECL_CEILF.
56623         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56624
56625 2007-10-04  Bruno Haible  <bruno@clisp.org>
56626
56627         * modules/floorl-tests: New file.
56628         * tests/test-floorl.c: New file.
56629
56630         * modules/floorl: New file.
56631         * lib/floorl.c: Replace entire file.
56632         * m4/floorl.m4: New file.
56633         * lib/math.in.h (floorl): Replace declaration.
56634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56635         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56636         * doc/functions/floorl.texi: Mention the 'floorl' module.
56637         * modules/mathl (Files): Remove lib/floorl.c.
56638         (Depends-on): Add floorl.
56639
56640 2007-10-04  Bruno Haible  <bruno@clisp.org>
56641
56642         * modules/floorf-tests: New file.
56643         * tests/test-floorf.c: New file.
56644
56645         * modules/floorf: New file.
56646         * lib/floor.c: New file.
56647         * lib/floorf.c: New file.
56648         * m4/floorf.m4: New file.
56649         * lib/math.in.h (floorf): New declaration.
56650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56651         HAVE_DECL_FLOORF.
56652         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56653         HAVE_DECL_FLOORF.
56654         * doc/functions/floorf.texi: Mention the 'floorf' module.
56655
56656 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56657             Bruno Haible  <bruno@clisp.org>
56658
56659         Advertise for the Git server instead of the CVS server.
56660         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56661         repository instead of the CVS one.
56662         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56663         about all VCS systems generically.
56664         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56665
56666 2007-10-04  Bruno Haible  <bruno@clisp.org>
56667
56668         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56669         means.
56670         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56671
56672 2007-10-04  Bruno Haible  <bruno@clisp.org>
56673
56674         * modules/truncl-tests: New file.
56675         * tests/test-truncl.c: New file.
56676
56677         * modules/truncl: New file.
56678         * lib/truncl.c: New file.
56679         * m4/truncl.m4: New file.
56680         * lib/math.in.h (truncl): New declaration.
56681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56682         HAVE_DECL_TRUNCL.
56683         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56684         HAVE_DECL_TRUNCL.
56685         * doc/functions/truncl.texi: Mention the 'truncl' module.
56686
56687 2007-10-04  Bruno Haible  <bruno@clisp.org>
56688
56689         * modules/truncf-tests: New file.
56690         * tests/test-truncf.c: New file.
56691
56692         * modules/truncf: New file.
56693         * lib/trunc.c: Make paramerizable through USE_* macros.
56694         * lib/truncf.c: New file.
56695         * m4/truncf.m4: New file.
56696         * lib/math.in.h (truncf): New declaration.
56697         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56698         HAVE_DECL_TRUNCF.
56699         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56700         HAVE_DECL_TRUNCF.
56701         * doc/functions/truncf.texi: Mention the 'truncf' module.
56702
56703 2007-10-03  Bruno Haible  <bruno@clisp.org>
56704
56705         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56706         augmentation also for tests modules.
56707         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56708         * modules/atexit-tests (Makefile.am): Likewise.
56709         * modules/binary-io-tests (Makefile.am): Likewise.
56710         * modules/c-strcase-tests (Makefile.am): Likewise.
56711         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56712         * modules/canonicalize-tests (Makefile.am): Likewise.
56713         * modules/closein-tests (Makefile.am): Likewise.
56714         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56715         * modules/freadahead-tests (Makefile.am): Likewise.
56716         * modules/fseek-tests (Makefile.am): Likewise.
56717         * modules/fseeko-tests (Makefile.am): Likewise.
56718         * modules/ftell-tests (Makefile.am): Likewise.
56719         * modules/ftello-tests (Makefile.am): Likewise.
56720         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56721         * modules/isnanl-tests (Makefile.am): Likewise.
56722         * modules/lseek-tests (Makefile.am): Likewise.
56723         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56724         * modules/mbscasestr-tests (Makefile.am): Likewise.
56725         * modules/mbschr-tests (Makefile.am): Likewise.
56726         * modules/mbscspn-tests (Makefile.am): Likewise.
56727         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56728         * modules/mbspbrk-tests (Makefile.am): Likewise.
56729         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56730         * modules/mbsrchr-tests (Makefile.am): Likewise.
56731         * modules/mbsspn-tests (Makefile.am): Likewise.
56732         * modules/mbsstr-tests (Makefile.am): Likewise.
56733         * modules/printf-posix-tests (Makefile.am): Likewise.
56734         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56735         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56736         * modules/tsearch-tests (Makefile.am): Likewise.
56737         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56738         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56739         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56740         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56741         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56742         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56743         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56744         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56745         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56746         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56747         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56748         * modules/xstrtol-tests (Makefile.am): Likewise.
56749         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56750         * modules/yesno-tests (Makefile.am): Likewise.
56751
56752 2007-10-03  Bruno Haible  <bruno@clisp.org>
56753
56754         * modules/trunc-tests: New file.
56755         * tests/test-trunc.c: New file.
56756
56757         * modules/trunc: New file.
56758         * lib/trunc.c: New file.
56759         * m4/trunc.m4: New file.
56760         * lib/math.in.h (trunc): New declaration.
56761         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56762         HAVE_DECL_TRUNC.
56763         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56764         HAVE_DECL_TRUNC.
56765         * doc/functions/trunc.texi: Mention the 'trunc' module.
56766
56767 2007-10-03  Bruno Haible  <bruno@clisp.org>
56768
56769         * tests/test-fpending.c: New file, mostly copied
56770         from coreutils/lib/t-fpending.c.
56771         * modules/fpending-tests: New file.
56772
56773 2007-10-03  Bruno Haible  <bruno@clisp.org>
56774
56775         Port the stdio extensions to QNX (untested).
56776         * lib/fseterr.c (fseterr): Add support for QNX.
56777         * lib/fbufmode.c (fbufmode): Likewise.
56778         * lib/freadable.c (freadable): Likewise.
56779         * lib/fwritable.c (fwritable): Likewise.
56780         * lib/freading.c (freading): Likewise.
56781         * lib/fwriting.c (fwriting): Likewise.
56782         * lib/freadahead.c (freadahed): Likewise.
56783         * lib/fpurge.c (fpurge): Likewise.
56784         * lib/fseeko.c (rpl_fseeko): Likewise.
56785
56786 2007-10-03  Bruno Haible  <bruno@clisp.org>
56787             Jim Meyering  <jim@meyering.net>
56788             Eric Blake  <ebb9@byu.net>
56789
56790         * doc/relocatable.texi: Use @command instead of @program.
56791
56792 2007-10-02  Jim Meyering  <jim@meyering.net>
56793
56794         Perform one more "_.h" -> ".in.h" substitution.
56795         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56796         instead of unistd_.h here, too.
56797
56798 2007-10-01  Bruno Haible  <bruno@clisp.org>
56799
56800         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56801         Needed for the alloca-opt module.
56802
56803 2007-09-30  Bruno Haible  <bruno@clisp.org>
56804
56805         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56806         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56807         alloca_.h.
56808         * lib/argz.in.h: Renamed from lib/argz_.h.
56809         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56810         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56811         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56812         byteswap_.h.
56813         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56814         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56815         dirent_.h.
56816         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56817         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56818         fcntl_.h.
56819         * lib/float.in.h: Renamed from lib/float_.h.
56820         * modules/float (Files, Makefile.am): Use float.in.h instead of
56821         float_.h.
56822         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56823         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56824         fnmatch_.h.
56825         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56826         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56827         getopt_.h.
56828         * lib/glob.in.h: Renamed from lib/glob_.h.
56829         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56830         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56831         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56832         iconv_.h.
56833         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56834         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56835         inttypes_.h.
56836         * lib/locale.in.h: Renamed from lib/locale_.h.
56837         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56838         locale_.h.
56839         * lib/math.in.h: Renamed from lib/math_.h.
56840         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56841         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56842         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56843         of netinet_in_.h. Add dependency.
56844         * lib/poll.in.h: Renamed from lib/poll_.h.
56845         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56846         * lib/search.in.h: Renamed from lib/search_.h.
56847         * modules/search (Files, Makefile.am): Use search.in.h instead of
56848         search_.h.
56849         * lib/signal.in.h: Renamed from lib/signal_.h.
56850         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56851         _signal.h.
56852         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56853         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56854         stdbool_.h.
56855         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56856         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56857         stdint_.h.
56858         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56859         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56860         stdio_.h.
56861         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56862         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56863         stdlib_.h.
56864         * lib/string.in.h: Renamed from lib/string_.h.
56865         * modules/string (Files, Makefile.am): Use string.in.h instead of
56866         string_.h.
56867         * doc/gnulib-tool.texi (Initial import): Update.
56868         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56869         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56870         of sys_select_.h. Add dependency.
56871         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56872         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56873         of sys_socket_.h.
56874         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56875         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56876         sys_stat_.h.
56877         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56878         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56879         sys_time_.h.
56880         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56881         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56882         sysexits_.h.
56883         * lib/time.in.h: Renamed from lib/time_.h.
56884         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56885         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56886         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56887         unistd_.h.
56888         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56889         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56890         wchar_.h.
56891         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56892         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56893         wctype_.h.
56894         * build-aux/bootstrap (slurp): Update.
56895         * lib/.cppi-disable: Update.
56896
56897 2007-09-30  Bruno Haible  <bruno@clisp.org>
56898
56899         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56900         Needed on BeOS.
56901
56902 2007-09-30  Bruno Haible  <bruno@clisp.org>
56903
56904         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56905
56906 2007-09-29  Bruno Haible  <bruno@clisp.org>
56907
56908         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56909
56910 2007-09-29  Bruno Haible  <bruno@clisp.org>
56911
56912         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56913         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56914         * build-aux/install-reloc: Compile also areadlink.c.
56915         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56916
56917 2007-09-29  Bruno Haible  <bruno@clisp.org>
56918
56919         * gnulib-tool (func_emit_initmacro_done): Indentation.
56920
56921 2007-09-29  Bruno Haible  <bruno@clisp.org>
56922
56923         * README: Add CVS checkout update instructions.
56924         Info from Bob Proulx <bob@proulx.com>.
56925
56926 2007-09-28  Eric Blake  <ebb9@byu.net>
56927
56928         Provide move-if-change.
56929         * build-aux/move-if-change: New file, based on best practice
56930         rather than any canonical upstream location.
56931
56932 2007-09-28  Jim Meyering  <jim@meyering.net>
56933
56934         Fix canonicalize loop-detection corner case.
56935         Do not attempt to stat the symlink values stored via seen_triple.
56936         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56937         on linux-2.6.18, (but not 2.6.22).
56938         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56939         triple_compare.  The former compares dev,ino,filename, while the latter
56940         would actually stat dirname(filename) when dev and ino were equal.
56941         * lib/hash-triple.c: Install <string.h>.
56942         (STREQ): Define.
56943         (triple_compare_ino_str): New function.
56944         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56945
56946 2007-09-28  Eric Blake  <ebb9@byu.net>
56947
56948         Enforce that AC_REPLACE_FUNCS files exist.
56949         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56950         override check for typos.
56951
56952         Fix test-closein on Solaris 10.
56953         * tests/test-closein.c (main): Don't assume stdin can be inherited
56954         closed on all systems.
56955         * tests/test-closein.sh: Likewise.
56956         Reported by Piotr Tarnowski.
56957
56958 2007-09-28  Jim Meyering  <jim@meyering.net>
56959
56960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56961
56962 2007-09-27  Jim Meyering  <jim@meyering.net>
56963
56964         canonicalize: Avoid a false-positive cycle failure.
56965         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56966         Sort.  Remove cycle-check.
56967         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56968         not cycle-check.h.
56969         (seen_triple): New function.
56970         (canonicalize_filename_mode): Use it instead of cycle-check.
56971         * tests/test-canonicalize.c: Add a test for this bug.
56972         * tests/test-canonicalize.sh: Set up and run the test.
56973
56974         New module, file-set, from coreutils.
56975         * modules/file-set: Define it.
56976         * lib/file-set.c, lib/file-set.h: Implement.
56977
56978         New module, hash-triple, from coreutils.
56979         * modules/hash-triple: Define it.
56980         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56981
56982 2007-09-25  Eric Blake  <ebb9@byu.net>
56983
56984         Fix strerror on Interix.
56985         * lib/string_.h (strerror): Declare replacement.
56986         * doc/functions/strerror.texi (strerror): Document the Interix
56987         shortcoming.
56988         * modules/string (Makefile.am): Support new hooks.
56989         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56990         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56991         gl_FUNC_STRERROR_SEPARATE.
56992         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56993         * lib/strerror.c (rpl_strerror): Provide replacement.
56994         * modules/strerror (Depends-on): Add string.
56995         (configure.ac): Detect use of module.
56996         * tests/test-strerror.c: New file.
56997         * modules/strerror-tests: New test module.
56998         * modules/argp (Depends-on): Add strerror.
56999         * modules/error (Depends-on): Likewise.
57000         Reported by Martin Koeppe.
57001
57002 2007-09-24  Bruno Haible  <bruno@clisp.org>
57003
57004         * README: Update git instructions.
57005
57006 2007-09-24  Eric Blake  <ebb9@byu.net>
57007
57008         Revert fpending breakage from 2007-09-08.
57009         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57010         __fpending.c.
57011
57012 2007-09-24  Jim Meyering  <jim@meyering.net>
57013
57014         filenamecat.c: Add a test.
57015         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57016         showing how the function works when DIR is the empty string.
57017
57018 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57019
57020         * tests/test-canonicalize.sh: Turn on executable bit.
57021
57022 2007-09-19  Eric Blake  <ebb9@byu.net>
57023
57024         * README: Update CVS instructions.
57025
57026 2007-09-18  Bruno Haible  <bruno@clisp.org>
57027
57028         * modules/areadlink: New file.
57029         * lib/areadlink.h (areadlink): New declaration.
57030         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57031
57032 2007-09-17  Jim Meyering  <jim@meyering.net>
57033
57034         * lib/savewd.c (ESTALE) [!defined]: Define.
57035         Reported to be required on Interix by Martin Koeppe.
57036
57037 2007-09-17  Bruno Haible  <bruno@clisp.org>
57038
57039         * gnulib-tool (func_version): Use $version.
57040
57041 2007-09-16  Bruno Haible  <bruno@clisp.org>
57042
57043         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57044         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57045         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57046         Reported by Greg Schafer <gschafer@zip.com.au>.
57047
57048 2007-09-15  Bruno Haible  <bruno@clisp.org>
57049
57050         * gnulib-tool (sed): Try a little harder to make bash understand the
57051         alias.
57052         Reported by Bruce Korb <bruce.korb@gmail.com>.
57053
57054 2007-09-13  Eric Blake  <ebb9@byu.net>
57055
57056         * ChangeLog: Remove conflict markers.
57057
57058 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57059
57060         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57061         Reported by Bruno Haible <bruno@clisp.org>.
57062
57063 2007-09-12  Bruno Haible  <bruno@clisp.org>
57064
57065         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57066         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57067         is not defined.
57068
57069 2007-09-12  Eric Blake  <ebb9@byu.net>
57070
57071         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57072         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57073         Autoconf definition.
57074         * modules/euidaccess (Depends-on): Add extensions, for
57075         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57076         * modules/fnmatch (Depends-on): Likewise.
57077         * modules/getaddrinfo (Depends-on): Likewise.
57078         * modules/getdelim (Depends-on): Likewise.
57079         * modules/getline (Depends-on): Likewise.
57080         * modules/getsubopt (Depends-on): Likewise.
57081         * modules/gettext (Depends-on): Likewise.
57082         * modules/group-member (Depends-on): Likewise.
57083         * modules/mbchar (Depends-on): Likewise.
57084         * modules/memmem (Depends-on): Likewise.
57085         * modules/mempcpy (Depends-on): Likewise.
57086         * modules/memrchr (Depends-on): Likewise.
57087         * modules/pagealign_alloc (Depends-on): Likewise.
57088         * modules/readutmp (Depends-on): Likewise.
57089         * modules/stpcpy (Depends-on): Likewise.
57090         * modules/stpncpy (Depends-on): Likewise.
57091         * modules/strchrnul (Depends-on): Likewise.
57092         * modules/strndup (Depends-on): Likewise.
57093         * modules/strsep (Depends-on): Likewise.
57094         * modules/strverscmp (Depends-on): Likewise.
57095         * modules/vasprintf (Depends-on): Likewise.
57096         * modules/wcwidth (Depends-on): Likewise.
57097         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57098         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57099         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57100         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57101         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57102         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57103         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57104         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57105         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57106         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57107         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57108         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57109         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57110         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57111         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57112         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57113         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57114         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57115         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57116         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57117         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57118         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57119         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57120         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57121         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57122         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57123         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57124         so that lock.m4 can be used in gettext without extensions module.
57125
57126 2007-09-11  Bruno Haible  <bruno@clisp.org>
57127
57128         * m4/isc-posix.m4: Remove file.
57129         Suggested by Eric Blake.
57130
57131 2007-09-11  Eric Blake  <ebb9@byu.net>
57132
57133         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57134
57135 2007-09-10  Bruno Haible  <bruno@clisp.org>
57136
57137         * posix-modules: Fix typo in error message.
57138         Reported by Matt <mkraai@beckman.com>.
57139
57140 2007-09-09  Bruno Haible  <bruno@clisp.org>
57141
57142         * doc/functions/getdelim.texi: Update list of platforms lacking the
57143         function.
57144         * doc/functions/getline.texi: Likewise.
57145
57146 2007-09-09  Jim Meyering  <jim@meyering.net>
57147
57148         * lib/hash.c (hash_initialize): Detect calloc failure.
57149         Reported by Bruno Haible.
57150
57151 2007-09-09  Bruno Haible  <bruno@clisp.org>
57152
57153         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57154         malloc or realloc fails.
57155
57156 2007-09-09  Bruno Haible  <bruno@clisp.org>
57157
57158         * modules/getcwd (Depends-on): Add malloc-posix.
57159         * modules/glob (Depends-on): Likewise.
57160         * modules/putenv (Depends-on): Likewise.
57161         * modules/strdup (Depends-on): Likewise.
57162         * modules/getdelim (Depends-on): Add realloc-posix.
57163         * modules/read-file (Depends-on): Likewise.
57164
57165 2007-09-09  Bruno Haible  <bruno@clisp.org>
57166
57167         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57168         (gl_FUNC_MALLOC_POSIX): Require it.
57169         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57170         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57171         * modules/realloc (Files): Add m4/malloc.m4.
57172         * modules/calloc (Files): Likewise.
57173
57174 2007-09-09  Bruno Haible  <bruno@clisp.org>
57175
57176         * modules/malloc-posix: New file.
57177         * modules/malloc (Depends-on): Add malloc-posix.
57178         * lib/malloc.c: Include errno.h.
57179         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57180         and a POSIX-compatible malloc into a single function. Set ENOMEM
57181         when returning NULL.
57182         * m4/malloc.m4: New file.
57183         * doc/functions/malloc.texi: Mention the malloc-posix module.
57184         * lib/stdlib_.h (malloc): New declaration.
57185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57186         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57187         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57188         and HAVE_MALLOC_POSIX.
57189
57190 2007-09-09  Bruno Haible  <bruno@clisp.org>
57191
57192         * modules/realloc-posix: New file.
57193         * modules/realloc (Depends-on): Add realloc-posix.
57194         * lib/realloc.c: Include errno.h.
57195         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57196         and a POSIX-compatible realloc into a single function. Set ENOMEM
57197         when returning NULL.
57198         * m4/realloc.m4: New file.
57199         * doc/functions/realloc.texi: Mention the realloc-posix module.
57200         * lib/stdlib_.h (realloc): New declaration.
57201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57202         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57203         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57204         and HAVE_REALLOC_POSIX.
57205
57206 2007-09-09  Bruno Haible  <bruno@clisp.org>
57207
57208         * modules/calloc-posix: New file.
57209         * modules/calloc (Depends-on): Add calloc-posix.
57210         * lib/calloc.c: Include errno.h.
57211         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57212         and a POSIX-compatible calloc into a single function. Set ENOMEM
57213         when returning NULL.
57214         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57215         * doc/functions/calloc.texi: Mention the calloc-posix module.
57216         * lib/stdlib_.h (calloc): New declaration.
57217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57218         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57219         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57220         and HAVE_CALLOC_POSIX.
57221
57222 2007-09-09  Bruno Haible  <bruno@clisp.org>
57223
57224         Allow for modules to show an arbitrary notice.
57225         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57226         * gnulib-tool: New option --extract-notice.
57227         (func_usage): Document it.
57228         (sed_extract_prog): Update.
57229         (func_get_notice): New function.
57230         (func_modules_notice): New function.
57231         (func_import, func_create_testdir): Invoke it.
57232         Suggested by Jim Meyering.
57233
57234 2007-09-09  Bruno Haible  <bruno@clisp.org>
57235
57236         * gnulib-tool: New options --verbose, --quiet.
57237         (func_usage): Document them.
57238         (verbose): New variable.
57239         (func_execute_command): New function.
57240         (func_import): Don't show the module list and the file list if
57241         $verbose < 0.
57242         (func_create_testdir): Likewise. Use func_execute_command.
57243         (func_create_megatestdir): Use func_execute_command.
57244
57245 2007-09-08  Bruno Haible  <bruno@clisp.org>
57246
57247         * gnulib-tool (func_import): Prefer rsync over wget when available,
57248         for fetching the PO files.
57249
57250 2007-09-08  Bruno Haible  <bruno@clisp.org>
57251
57252         * posix-modules: New file. Portions copied from gnulib-tool.
57253         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57254
57255 2007-09-08  Jim Meyering  <jim@meyering.net>
57256
57257         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57258         * lib/fpending.h: Rename from __fpending.h.
57259         * lib/fpending.c: Rename from __fpending.c.
57260         Include "fpending.h", not "__fpending.h".
57261         * lib/__fpending.h, lib/__fpending.c: Remove files.
57262         * modules/fpending (Files): Reflect new file names.
57263         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57264
57265 2007-09-08  Bruno Haible  <bruno@clisp.org>
57266
57267         * m4/inttypes-h.m4: Remove stub file.
57268
57269 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57270
57271         * doc/headers/stdint.texi: Discuss #include_next issue.
57272
57273 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57274
57275         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57276
57277 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57278
57279         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57280         in variable name.
57281
57282 2007-09-03  Jim Meyering  <jim@meyering.net>
57283
57284         New module: git-version-gen.
57285         * modules/git-version-gen: New file.
57286
57287         Import changes from coreutils for bootstrap script.
57288
57289         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57290
57291         bootstrap: uses rsync to download the .po files
57292         * build-aux/bootstrap (po_download_command_format): New global.
57293         (download_po_files): Use rsync.
57294         (update_po_files): Don't remove .po files after download,
57295         so future rsync runs can take advantage of the copies.
57296
57297         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57298
57299         Solve the unnecessary-.po-file-regeneration problem once and for all.
57300         * build-aux/bootstrap (download_po_files): New function, renamed from
57301         get_translations.  Now, downloads, but doesn't update LINGUAS.
57302         (update_po_files): New function.
57303
57304         bootstrap: Ignore more.
57305         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57306         uniwidth to e.g., lib/.gitignore.
57307         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57308
57309         * build-aux/bootstrap: New setting: vc_ignore.
57310         (insert_sorted_if_absent): Create $file if absent.
57311         Adapt to new, possibly empty, list: $vc_ignore.
57312
57313         bootstrap: generate more ignorable names
57314         * build-aux/bootstrap (slurp): When generating ignorable names,
57315         also map .sin to .sed, .gperf to .c, and .y to .c.
57316
57317 2007-09-03  Jim Meyering  <jim@meyering.net>
57318
57319         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57320         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57321
57322 2007-09-02  Bruno Haible  <bruno@clisp.org>
57323
57324         Fix mis-recognition of 'mcs' on QNX 6.
57325         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57326         output contains the string "Mono".
57327         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57328         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57329
57330 2007-09-01  Bruno Haible  <bruno@clisp.org>
57331
57332         Fix collision between uniwidth/* and linebreak modules.
57333         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57334         u32_width): Remove declarations.
57335         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57336         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57337         streq3, streq2, streq1, streq0): Remove functions.
57338         (STREQ): Remove macro.
57339         (is_cjk_encoding): Remove function.
57340         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57341         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57342         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57343         * NEWS: Document the change.
57344
57345 2007-09-01  Bruno Haible  <bruno@clisp.org>
57346
57347         * lib/streq.h: Add double-inclusion guard.
57348
57349 2007-09-01  Karl Berry  <karl@gnu.org>
57350
57351         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57352
57353 2007-08-28  Jim Meyering  <jim@meyering.net>
57354
57355         Rename mreadlink_with_size to areadlink_with_size.
57356         * NEWS: Document the change.
57357         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57358         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57359         * lib/mreadlink.h: Rename this to...
57360         * lib/areadlink.h: ...this.
57361         * modules/mreadlink-with-size: Rename this to...
57362         * modules/areadlink-with-size: ...this.
57363         * lib/canonicalize.c: Reflect the renaming.
57364         * modules/canonicalize: Likewise.
57365
57366 2007-08-26  Bruno Haible  <bruno@clisp.org>
57367
57368         * gnulib-tool (func_import): When deciding which files to remove,
57369         consider also dangling symbolic links.
57370         Reported by Eric Blake.
57371
57372 2007-08-26  Bruno Haible  <bruno@clisp.org>
57373
57374         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57375
57376 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57377
57378         * lib/readline.c: Don't include getline.h, the prototype is now
57379         found in stdio.h.
57380
57381 2007-08-23  Jim Meyering  <jim@meyering.net>
57382
57383         Getdelim touchup.
57384         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57385         around the funlockfile call, since funlockfile never sets errno.
57386         Don't set errno upon failed realloc.
57387
57388 2007-08-22  Eric Blake  <ebb9@byu.net>
57389
57390         Getline touchups.
57391         * lib/getdelim.c (getdelim): Revert regression that required *n to
57392         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57393         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57394         getdelim, rather than whether implementation is missing.
57395         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57396         * lib/stdio_.h (getline): Also declare if replacement is
57397         required.
57398         * doc/functions/getdelim.texi: New file.
57399         * doc/functions/getline.texi: Likewise.
57400         * doc/gnulib.texi (Function Substitutes): Add new files.
57401         Reported by Bruno Haible.
57402
57403 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57404
57405         * users.txt: Add Guile.
57406
57407 2007-08-22  Eric Blake  <ebb9@byu.net>
57408
57409         * tests/test-getdelim.c (main): Use remove, not unlink.
57410         * tests/test-getline.c (main): Likewise.
57411
57412         Move getline and getdelim into stdio.h, per POSIX 200x.
57413         * modules/getline (Files): Remove getline.h.
57414         (Depends-on): Add stdio.
57415         (configure.ac): Add module indicator.
57416         * modules/getdelim (Files): Remove getdelim.h.
57417         (Depends-on): Add stdio.
57418         (configure.ac): Add module indicator.
57419         * modules/stdio (Makefile.am): Work with new indicators.
57420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57421         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57422         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57423         * lib/getdelim.h: Delete.
57424         * lib/getline.h: Delete.
57425         * lib/stdio_.h (getdelim, getline): Declare.
57426         * modules/getdelim-tests: New module.
57427         * modules/getline-tests: Likewise.
57428         * tests/test-getdelim.c: New file.
57429         * tests/test-getline.c: Likewise.
57430         * NEWS: Document the change.
57431         * lib/getline.c: Update choice of header.
57432         * lib/csharpcomp.c: Likewise.
57433         * lib/getpass.c: Likewise.
57434         * lib/javacomp.c: Likewise.
57435         * lib/javaversion.c: Likewise.
57436         * lib/yesno.c: Likewise.
57437         * lib/getdelim.c: Likewise.
57438         (getdelim): Set errno on failure, and avoid memory leak.
57439
57440 2007-08-19  Bruno Haible  <bruno@clisp.org>
57441
57442         * modules/closein (Depends-on): Add freadahead.
57443         * lib/closein.c: Include freadahead.h.
57444         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57445         is zero.
57446
57447 2007-08-19  Bruno Haible  <bruno@clisp.org>
57448
57449         * modules/freadahead-tests: New file.
57450         * tests/test-freadahead.sh: New file.
57451         * tests/test-freadahead.c: New file.
57452
57453         * modules/freadahead: New file.
57454         * lib/freadahead.h: New file.
57455         * lib/freadahead.c: New file.
57456         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57457         fbufmode, fpurge, freadable, fwritable.
57458
57459 2007-08-19  Eric Blake  <ebb9@byu.net>
57460
57461         Test yesno in combination with closein.
57462         * lib/yesno.c (yesno): Document use of stdin.
57463         * modules/yesno-tests (Files): New module.
57464         * tests/test-yesno.c (main): New file.
57465         * tests/test-yesno.sh: Likewise.
57466
57467 2007-08-19  Bruno Haible  <bruno@clisp.org>
57468
57469         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57470         * lib/fseeko.c (rpl_fseeko): Likewise.
57471         * lib/fseterr.c (fseterr): Likewise.
57472
57473 2007-08-19  Bruno Haible  <bruno@clisp.org>
57474
57475         * tests/test-lseek.c (main): Disable a test for BeOS.
57476         * doc/functions/lseek.texi: Document the BeOS bug.
57477
57478 2007-08-19  Bruno Haible  <bruno@clisp.org>
57479             Eric Blake  <ebb9@byu.net>
57480
57481         * lib/lseek.c: Include <sys/stat.h>.
57482         (rpl_lseek): Add workaround code also for Unix platforms.
57483         Needed for BeOS.
57484         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57485         * doc/functions/lseek.texi: Document BeOS definiency.
57486
57487 2007-08-18  Bruno Haible  <bruno@clisp.org>
57488
57489         * modules/fstrcmp-tests: New file.
57490         * tests/test-fstrcmp.c: New file.
57491
57492 2007-08-18  Bruno Haible  <bruno@clisp.org>
57493
57494         * modules/fstrcmp: New file, from GNU gettext with modifications.
57495         * lib/fstrcmp.h: New file, from GNU gettext.
57496         * lib/fstrcmp.c: New file, from GNU gettext.
57497         * MODULES.html.sh (String handling): Add fstrcmp.
57498
57499 2007-08-18  Bruno Haible  <bruno@clisp.org>
57500
57501         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57502         'bool'.
57503         (diag, compareseq): Remove const from the ctxt argument.
57504         (USE_HEURISTIC): Undefine at the end.
57505
57506 2007-08-18  Jim Meyering  <jim@meyering.net>
57507
57508         New file: lib/idcache.h
57509         * NEWS: Mention the addition.
57510         * modules/idcache (Files): Add lib/idcache.h
57511         * lib/idcache.c: Include "idcache.h".
57512         Don't include <sys/types.h>.
57513         Add a FIXME comment.
57514         Move file-scoped "static" declarations to the top.
57515         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57516
57517 2007-08-17  Bruno Haible  <bruno@clisp.org>
57518         and Paul Eggert  <eggert@cs.ucla.edu>
57519
57520         * MODULES.html.sh: Add diffseq.
57521         * modules/diffseq: New file.
57522         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57523         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57524
57525 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57526
57527         Import changes from coreutils for bootstrap script.
57528
57529         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57530
57531         * build-aux/bootstrap (slurp): Work even in environments where
57532         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57533         current code does not slurp files whose names start with ".", and
57534         this looks like it might be a troublesome area.
57535
57536         2007-07-11  Jim Meyering  <jim@meyering.net>
57537
57538         If there's a GPL vN copyright comment, require that N == 3.
57539
57540         2007-07-08  Jim Meyering  <jim@meyering.net>
57541
57542         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57543         * build-aux/bootstrap (mam_template): Move definition out of loop.
57544
57545         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57546
57547         * build-aux/bootstrap (symlink_to_dir): Rename function from
57548         symlink_to_gnulib.  Add a directory parameter.  Update all
57549         callers.
57550         (cp_mark_as_generated): Also check for -- and link to -- files in
57551         gl/.
57552
57553         2007-07-08  Jim Meyering  <jim@meyering.net>
57554
57555         Adapt to deeper hierarchy in gnulib.
57556         * build-aux/bootstrap (symlink_to_dir): If the destination
57557         directory doesn't exist, create it. This is required at least for
57558         "lib/uniwidth/cjk.h".
57559
57560         2007-05-15  Jim Meyering  <jim@meyering.net>
57561
57562         * build-aux/bootstrap: Now that generated Makefile.am files
57563         are no longer under version control, they must be created at
57564         bootstrap time.
57565
57566 2007-08-14  Ben Pfaff  <blp@gnu.org>
57567
57568         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57569
57570 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57571
57572         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57573         given the changes below.
57574         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57575         even on hosts that have padding bits beyond the supported 64.
57576
57577 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57578
57579         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57580         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57581         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57582         depends on it.
57583         (xstrtol_error): Remove.
57584         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57585         but with a different signature.
57586         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57587         * lib/xstrtol-error.c: Include exitfail.h.
57588         (xstrtol_fatal): New function, with a different signature from the
57589         old xstrtol_error, so that the caller need not worry about passing
57590         in an exit status, or about storage management of the option argument.
57591         (xstrtol_error): Now a static function.  Redo signature to
57592         implement xstrtol_fatal.  Output the correct number of hyphens in
57593         front of the option so that the caller need not worry about
57594         storage management.
57595         (N_): New macro.
57596         (_): Remove; not used now.
57597         * modules/xstrtol: Depend on getopt.
57598         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57599         of old STRTOL_FATAL_ERROR macro.
57600         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57601         of test program.
57602         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57603         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57604
57605 2007-08-08  Eric Blake  <ebb9@byu.net>
57606
57607         * lib/xstrtol-error.c: Add missing include.
57608
57609         Move xstrtol messages into gnulib domain, when --pobase is used.
57610         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57611         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57612         * modules/xstrtol (Files): Distribute new file.
57613         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57614         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57615         * tests/test-xstrtol.c: ...into new file.
57616         * tests/test-xstrtoul.c: Also test xstrtoul.
57617         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57618         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57619         * tests/test-xstrtol.sh: Drive the tests.
57620         * tests/test-xstrtoimax.sh: Likewise.
57621         * tests/test-xstrtoumax.sh: Likewise.
57622         * modules/xstrtol-tests: New module.
57623         * modules/xstrtoimax-tests: Likewise.
57624         * modules/xstrtoumax-tests: Likewise.
57625
57626 2007-08-08  Jim Meyering  <jim@meyering.net>
57627
57628         New function: mfile_name_concat.
57629         * lib/filenamecat.c (mfile_name_concat): New function, just like
57630         file_name_concat, but return NULL upon failure rather than exiting
57631         with a diagnostic.
57632         * lib/filenamecat.h: Declare it.
57633
57634 2007-08-07  Bruno Haible  <bruno@clisp.org>
57635
57636         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57637         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57638         warning from gcc.
57639         Reported by Eric Blake.
57640
57641 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57642
57643         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57644         * modules/crypto/arcfour (License): Likewise.
57645         * modules/crypto/des-tests (License): Likewise.
57646         * modules/crypto/gc-arctwo-tests (License): Likewise.
57647         * modules/crypto/gc-des-tests (License): Likewise.
57648         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57649         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57650         * modules/crypto/gc-md2-tests (License): Likewise.
57651         * modules/crypto/gc-md4-tests (License): Likewise.
57652         * modules/crypto/gc-md5-tests (License): Likewise.
57653         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57654         * modules/crypto/gc-rijndael-tests (License): Likewise.
57655         * modules/crypto/gc-sha1-tests (License): Likewise.
57656         * modules/crypto/gc-tests (License): Likewise.
57657         * modules/crypto/hmac-md5 (License): Likewise.
57658         * modules/crypto/hmac-sha1 (License): Likewise.
57659         * modules/crypto/md2-tests (License): Likewise.
57660         * modules/crypto/md4-tests (License): Likewise.
57661         * modules/crypto/md5 (License): Likewise.
57662         * modules/crypto/rijndael (License): Likewise.
57663         * modules/crypto/sha1 (License): Likewise.
57664         * modules/memxor (License): Likewise.
57665
57666 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57667         and Bruno Haible  <bruno@clisp.org>
57668
57669         * NEWS: Describe interface changes to human, xstrtol.
57670         * lib/human.h: Include <xstrtol.h>.
57671         (human_options): Return enum strtol_error, not int.  Remove
57672         bool arg; take int * instead.
57673         * lib/human.c: Don't include "gettext.h".
57674         (_): Remove; no longer used.
57675         Don't include <xstrtol.h>, since human.h does it.
57676         (human_options): Adjust to abovementioned interface changes.
57677         Do not report error to stderr; that's now the caller's
57678         responsibility.
57679         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57680         interface change.
57681         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57682         Str, Argument_type_string.  All uses changed.  Put " argument"
57683         in diagnostics to make them clearer.  Change wording of suffix
57684         message for clarity.
57685         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57686         Argument_type_string.
57687         (STRTOL_FATAL_WARN): Remove; no longer used.
57688         * modules/human (Depends-on): Remove gettext-h.
57689
57690 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57691
57692         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57693
57694 2007-07-31  Bruno Haible  <bruno@clisp.org>
57695
57696         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57697         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57698         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57699
57700 2007-07-31  Bruno Haible  <bruno@clisp.org>
57701
57702         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57703         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57704
57705 2007-07-30  Bruno Haible  <bruno@clisp.org>
57706
57707         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57708         * modules/c-ctype (License): Likewise.
57709         * modules/c-strcase (License): Likewise.
57710         * modules/check-version (License): Likewise.
57711         * modules/iconv (License): Likewise.
57712         * modules/iconv_open (License): Likewise.
57713         * modules/read-file (License): Likewise.
57714         * modules/striconv (License): Likewise.
57715         * modules/strverscmp (License): Likewise.
57716         * modules/vasprintf (License): Likewise.
57717         * modules/crypto/des (License): Likewise.
57718         * modules/crypto/gc (License): Likewise.
57719         * modules/crypto/gc-arcfour (License): Likewise.
57720         * modules/crypto/gc-arctwo (License): Likewise.
57721         * modules/crypto/gc-des (License): Likewise.
57722         * modules/crypto/gc-hmac-md5 (License): Likewise.
57723         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57724         * modules/crypto/gc-md2 (License): Likewise.
57725         * modules/crypto/gc-md4 (License): Likewise.
57726         * modules/crypto/gc-md5 (License): Likewise.
57727         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57728         * modules/crypto/gc-random (License): Likewise.
57729         * modules/crypto/gc-rijndael (License): Likewise.
57730         * modules/crypto/gc-sha1 (License): Likewise.
57731         * modules/crypto/md2 (License): Likewise.
57732         * modules/crypto/md4 (License): Likewise.
57733
57734 2007-07-30  Jim Meyering  <jim@meyering.net>
57735
57736         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57737         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57738         it has valid stat data.  This bug would cause du not to count the
57739         sizes of inaccessible directories.
57740         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57741         in <http://bugzilla.redhat.com/250077>.
57742
57743 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57744             Bruno Haible  <bruno@clisp.org>
57745
57746         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57747         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57748         #include_next, gives a diagnostic about it, but reports no error in
57749         the exit code.
57750         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57751
57752 2007-07-24  Ben Pfaff  <blp@gnu.org>
57753
57754         Improve name: "count-one-bits" is better than "popcount".
57755         * MODULES.html.sh: Update name.
57756         * lib/popcount.h: Renamed lib/count-one-bits.h.
57757         (popcount): Renamed count_one_bits.
57758         (popcountl): Renamed count_one_bits_l.
57759         (popcountll): Renamed count_one_bits_ll.
57760         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57761         * modules/popcount: Renamed module/count-one-bits.
57762         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57763         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57764
57765 2007-07-23  Ben Pfaff  <blp@gnu.org>
57766
57767         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57768         better code generation, and add U to large constants to avoid
57769         warnings, in non-GCC case.
57770         Suggested by Bruno Haible.
57771
57772 2007-07-23  Ben Pfaff  <blp@gnu.org>
57773
57774         * lib/popcount.h: Use verify_true instead of if...abort.
57775         * modules/popcount: Depend on verify module.
57776         Suggested by Jim Meyering.
57777
57778 2007-07-23  Bruno Haible  <bruno@clisp.org>
57779
57780         * gnulib-tool (func_import): Create a .cvsignore file also when the
57781         directory is not yet in CVS but the toplevel directory is. When
57782         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57783         Reported by Karl Berry.
57784
57785 2007-07-22  Ben Pfaff  <blp@gnu.org>
57786
57787         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57788         case.
57789         Suggested by Eric Blake.
57790
57791 2007-07-22  Ben Pfaff  <blp@gnu.org>
57792
57793         New module: popcount.
57794         * MODULES.html.sh: Add popcount.
57795         * modules/popcount: New file.
57796         * modules/popcount-tests: New file.
57797         * tests/test-popcount.c: New file.
57798         * lib/popcount.h: New file.
57799         * m4/popcount.m4: New file.
57800
57801 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57802
57803         * build-aux/announce-gen: Update to GPLv3.
57804
57805         * build-aux/config.guess: Update from config.
57806
57807 2007-07-21  Bruno Haible  <bruno@clisp.org>
57808
57809         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57810         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57811
57812 2007-07-20  Jim Meyering  <jim@meyering.net>
57813
57814         * check-module: Diagnose a self-dependency.
57815
57816 2007-07-19  Bruno Haible  <bruno@clisp.org>
57817
57818         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57819         empty.
57820         Reported by Eric Blake.
57821
57822 2007-07-18  Bruno Haible  <bruno@clisp.org>
57823
57824         * gnulib-tool: New options --po-base, --po-domain.
57825         (func_usage): Document them.
57826         (pobase, po_domain): New variables.
57827         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57828         DEFAULT_TEXT_DOMAIN.
57829         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57830         (func_import): Consider pobase and po_domain. Create a po/ directory.
57831         (func_create_testdir): Set pobase and po_domain to empty.
57832         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57833         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57834
57835 2007-07-18  Bruno Haible  <bruno@clisp.org>
57836
57837         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57838         EXTRA_DIST augmentation for files in build-aux/.
57839
57840 2007-07-16  Bruno Haible  <bruno@clisp.org>
57841
57842         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57843         * modules/getdelim (License): Likewise.
57844
57845 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57846
57847         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57848         * modules/d-type (License): Likewise.
57849         * modules/extensions (License): Likewise.
57850         * modules/fnmatch (License): Likewise.
57851         * modules/fseeko (License): Likewise.
57852         * modules/getaddrinfo (License): Likewise.
57853         * modules/getline (License): Likewise.
57854         * modules/getlogin_r (License): Likewise.
57855         * modules/getpass (License): Likewise.
57856         * modules/gettimeofday (License): Likewise.
57857         * modules/glob (License): Likewise.
57858         * modules/inet_ntop (License): Likewise.
57859         * modules/malloc (License): Likewise.
57860         * modules/malloca (License): Likewise.
57861         * modules/memmem (License): Likewise.
57862         * modules/mempcpy (License): Likewise.
57863         * modules/memset (License): Likewise.
57864         * modules/minmax (License): Likewise.
57865         * modules/mktime (License): Likewise.
57866         * modules/netinet_in (License): Likewise.
57867         * modules/pathmax (License): Likewise.
57868         * modules/poll (License): Likewise.
57869         * modules/regex (License): Likewise.
57870         * modules/snprintf (License): Likewise.
57871         * modules/stdbool (License): Likewise.
57872         * modules/stdint (License): Likewise.
57873         * modules/stdio (License): Likewise.
57874         * modules/strcase (License): Likewise.
57875         * modules/strcasestr (License): Likewise.
57876         * modules/strdup (License): Likewise.
57877         * modules/string (License): Likewise.
57878         * modules/strndup (License): Likewise.
57879         * modules/strnlen (License): Likewise.
57880         * modules/strpbrk (License): Likewise.
57881         * modules/strptime (License): Likewise.
57882         * modules/strsep (License): Likewise.
57883         * modules/sys_select (License): Likewise.
57884         * modules/sys_socket (License): Likewise.
57885         * modules/sys_stat (License): Likewise.
57886         * modules/sys_time (License): Likewise.
57887         * modules/time (License): Likewise.
57888         * modules/time_r (License): Likewise.
57889         * modules/timegm (License): Likewise.
57890         * modules/unistd (License): Likewise.
57891         * modules/vsnprintf (License): Likewise.
57892         * modules/wctype (License): Likewise.
57893
57894 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57895
57896         * modules/argz (License): LGPLv2+.
57897
57898 2007-07-15  Karl Berry  <karl@gnu.org>
57899
57900         * doc/gnulib.texi: revise node structure per new fdl.texi.
57901
57902 2007-07-14  Bruno Haible  <bruno@clisp.org>
57903
57904         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57905         the output file.
57906         * lib/uniname/uninames.h: Regenerated.
57907
57908 2007-07-14  Karl Berry  <karl@gnu.org>
57909
57910         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57911         omitting sectioning and index commands.
57912
57913 2007-07-13  Bruno Haible  <bruno@clisp.org>
57914
57915         New gnulib-tool option --more-symlinks.
57916         * gnulib-tool (func_usage): Document --more-symlinks.
57917         (do_copyrights): New variable.
57918         Recognize option --more-symlinks.
57919         (func_import): Don't add a copyright notice transform to
57920         sed_transform_lib_file if do_copyrights is empty.
57921
57922 2007-07-13  Bruno Haible  <bruno@clisp.org>
57923
57924         * lib/vasnprintf.c (decimal_point_char): Define also if
57925         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57926         && !NEED_PRINTF_DIRECTIVE_A.
57927         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57928         Gary V. Vaughan <gary@gnu.org>.
57929
57930 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57931
57932         * lib/inttypes_.h: Undo previous change, since it was fixed
57933         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57934
57935 2007-07-13  Bruno Haible  <bruno@clisp.org>
57936
57937         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57938         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57939
57940 2007-07-13  Jim Meyering  <jim@meyering.net>
57941
57942         df: Don't fail for Tru64's "file-on-file mount".
57943         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57944         so we fall through and use statfs instead.  Details here:
57945         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57946         Reported by Albert Chin.
57947
57948 2007-07-13  Bruno Haible  <bruno@clisp.org>
57949
57950         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57951         * modules/configmake (License): Likewise.
57952         * modules/gettext (License): Likewise.
57953         * modules/gettext-h (License): Likewise.
57954         * modules/include_next (License): Likewise.
57955         * modules/link-warning (License): Likewise.
57956         * modules/localcharset (License): Likewise.
57957         * modules/localename (License): Likewise.
57958         * modules/lock (License): Likewise.
57959         * modules/relocatable-lib-lgpl (License): Likewise.
57960         * modules/size_max (License): Likewise.
57961         * modules/vasnprintf (License): Likewise.
57962         * modules/wchar (License): Likewise.
57963         * modules/xsize (License): Likewise.
57964
57965 2007-07-13  Bruno Haible  <bruno@clisp.org>
57966
57967         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57968         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57969
57970 2007-07-12  Bruno Haible  <bruno@clisp.org>
57971
57972         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57973         in the modules files.
57974
57975 2007-07-11  Karl Berry  <karl@gnu.org>
57976
57977         * MODULES.html.sh (func_module): use
57978          sed -e '\|^'"${includefile}"'$|d'
57979          instead of /.../d, to avoid errors on $includefile's containing /.
57980
57981 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57982
57983         * gnulib-tool (func_import): Avoid duplication of --avoid
57984         statements
57985         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57986         names to `_' in variable names.
57987
57988 2007-07-10  Eric Blake  <ebb9@byu.net>
57989
57990         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57991         * NEWS: Document this change.
57992
57993 2007-07-08  Bruno Haible  <bruno@clisp.org>
57994
57995         Update to Unicode 5.0.
57996         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57997         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57998         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57999         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58000         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58001         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58002         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58003         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58004         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58005         U+10A3F, U+1D242..U+1D244.
58006         (nonspacing_table_ind): Update.
58007         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58008         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58009
58010 2007-07-08  Bruno Haible  <bruno@clisp.org>
58011
58012         Update to Unicode 5.0.
58013         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58014         code transform. Extend the name index field of unicode_name_to_code and
58015         unicode_code_to_name from 16 to 24 bits.
58016         * lib/uniname/uniname.c (unicode_character_name,
58017         unicode_name_character): Add the range 0x12xxx to the code transform.
58018         * lib/uniname/uninames.h: Regenerated.
58019         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58020
58021 2007-07-07  Bruno Haible  <bruno@clisp.org>
58022
58023         * modules/wcwidth-tests: New file.
58024         * tests/test-wcwidth.c: New file.
58025
58026         Work around MacOS X wcwidth() bug.
58027         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58028         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58029         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58030         original wcwidth in non-UTF-8 locales.
58031         * modules/wcwidth (Depends-on): Add localcharset, streq,
58032         uniwidth/width.
58033         * doc/functions/wcwidth.texi: Update.
58034
58035 2007-07-07  Bruno Haible  <bruno@clisp.org>
58036
58037         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58038         (wcwidth): New declaration.
58039         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58040         macros.
58041         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58042         here. Prepare for creating <wchar.h> unconditionally.
58043         * modules/wchar (Depends-on): Add link-warning.
58044         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58045         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58046         * lib/wcwidth.h: Remove file.
58047         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58048         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58049         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58050         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58051         (Include): Replace wcwidth.h with <wchar.h>.
58052         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58053         * lib/mbchar.h: Don't include wcwidth.h.
58054         * lib/mbswidth.c: Likewise.
58055         * NEWS: Mention the change.
58056
58057 2007-07-07  Bruno Haible  <bruno@clisp.org>
58058
58059         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58060         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58061         definition with an external declaration.
58062         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58063         defined as a function. Remove AC_C_INLINE requirement.
58064         * modules/wcwidth (Files): Add lib/wcwidth.c.
58065         (Makefile.am): Remove redundant statement.
58066
58067 2007-07-07  Bruno Haible  <bruno@clisp.org>
58068
58069         * MODULES.html.sh (Unicode string functions): Add the new modules.
58070
58071         * tests/uniwidth/test-u32-strwidth.c: New file.
58072         * modules/uniwidth/u32-strwidth-tests: New file.
58073
58074         * lib/uniwidth/u32-strwidth.c: New file.
58075         * modules/uniwidth/u32-strwidth: New file.
58076
58077         * tests/uniwidth/test-u16-strwidth.c: New file.
58078         * modules/uniwidth/u16-strwidth-tests: New file.
58079
58080         * lib/uniwidth/u16-strwidth.c: New file.
58081         * modules/uniwidth/u16-strwidth: New file.
58082
58083         * tests/uniwidth/test-u8-strwidth.c: New file.
58084         * modules/uniwidth/u8-strwidth-tests: New file.
58085
58086         * lib/uniwidth/u8-strwidth.c: New file.
58087         * modules/uniwidth/u8-strwidth: New file.
58088
58089         * tests/uniwidth/test-u32-width.c: New file.
58090         * modules/uniwidth/u32-width-tests: New file.
58091
58092         * lib/uniwidth/u32-width.c: New file.
58093         * modules/uniwidth/u32-width: New file.
58094
58095         * tests/uniwidth/test-u16-width.c: New file.
58096         * modules/uniwidth/u16-width-tests: New file.
58097
58098         * lib/uniwidth/u16-width.c: New file.
58099         * modules/uniwidth/u16-width: New file.
58100
58101         * tests/uniwidth/test-u8-width.c: New file.
58102         * modules/uniwidth/u8-width-tests: New file.
58103
58104         * lib/uniwidth/u8-width.c: New file.
58105         * modules/uniwidth/u8-width: New file.
58106
58107         * tests/uniwidth/test-uc_width.c: New file.
58108         * modules/uniwidth/width-tests: New file.
58109
58110         * lib/uniwidth/width.c: New file, from GNU libiconv.
58111         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58112         * modules/uniwidth/width: New file.
58113
58114         * lib/uniwidth.h: New file, from GNU libiconv.
58115         * modules/uniwidth/base: New file.
58116
58117 2007-07-07  Bruno Haible  <bruno@clisp.org>
58118
58119         * lib/uniname.h: New file, from GNU gettext.
58120         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58121         * lib/uniname/uninames.h: New file, from GNU gettext.
58122         * lib/uniname/uniname.c: New file, from GNU gettext.
58123         * tests/uniname/test-uninames.sh: New file.
58124         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58125         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58126         * modules/uniname/base: New file.
58127         * modules/uniname/uniname: New file.
58128         * modules/uniname/uniname-tests: New file.
58129         * MODULES.html.sh (Unicode string functions): Add the new modules.
58130
58131 2007-07-06  Bruno Haible  <bruno@clisp.org>
58132
58133         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58134
58135 2007-07-06  Bruno Haible  <bruno@clisp.org>
58136
58137         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58138         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58139         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58140         include <sys/time.h>.
58141         Reported by Eric Blake.
58142
58143 2007-07-06  Eric Blake  <ebb9@byu.net>
58144
58145         Fix testing canonicalize on cygwin.
58146         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58147         Revert patch from 2007-06-19.
58148         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58149         canonicalize module is also in use.
58150         * tests/test-canonicalize.c: New file.
58151         * tests/test-canonicalize.sh: Likewise.
58152         * modules/canonicalize-tests: Likewise.
58153
58154 2007-07-06  Jim Meyering  <jim@meyering.net>
58155
58156         * lib/getugroups.c (getugroups): Detect getgrent failure.
58157         Adjust comment to reflect reality: this function may return -1.
58158
58159 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58160
58161         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58162         the new TP address.
58163         (usage): Fix typo
58164         (gnulib_mk): New variable.
58165
58166 2007-07-05  Jim Meyering  <jim@meyering.net>
58167
58168         Don't let endgrent clobber errno, no matter how improbable.
58169         * lib/getugroups.c (getugroups): Save and restore errno around
58170         endgrent call.
58171
58172         Close the group DB even when failing with 2^31 or more members.
58173         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58174
58175 2007-07-04  Jim Meyering  <jim@meyering.net>
58176
58177         * lib/getugroups.h: New file.
58178         * lib/getugroups.c: Include "getugroups.h".
58179         Remove uses of "register" keyword.
58180         Move local variable, "cp", down into scope where used.
58181         Give "username" parameter the "const" attribute.
58182         * modules/getugroups (Files): Add lib/getugroups.h
58183
58184 2007-07-04  Karl Berry  <karl@gnu.org>
58185
58186         * MODULES.html.sh (func_all_modules): Complete rename of
58187         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58188
58189 2007-07-02  Bruno Haible  <bruno@clisp.org>
58190
58191         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58192         mode, when inttypes.h comes from gnulib.
58193         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58194
58195 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58196
58197         * NEWS: Mention lgpl module name change.
58198
58199         * modules/lgpl-2.1: Renamed from lgpl.
58200
58201         * NEWS: Mention gpl module name change.
58202
58203         * modules/gpl-3.0: New file, based on gpl-2.0.
58204
58205         * modules/gpl-2.0: Renamed from gpl.
58206
58207         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58208         doc/gpl-2.0.texi.
58209
58210 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58211
58212         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58213         #define __STDC_LIMIT_MACROS temporarily while including
58214         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58215         Problem reported by Joel E. Denny in
58216         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58217
58218 2007-07-01  Bruno Haible  <bruno@clisp.org>
58219
58220         * lib/unistdio.h: New file.
58221         * lib/unistdio/u-asnprintf.h: New file.
58222         * lib/unistdio/u-asprintf.h: New file.
58223         * lib/unistdio/u-printf-args.c: New file.
58224         * lib/unistdio/u-printf-args.h: New file.
58225         * lib/unistdio/u-printf-parse.h: New file.
58226         * lib/unistdio/u-snprintf.h: New file.
58227         * lib/unistdio/u-sprintf.h: New file.
58228         * lib/unistdio/u-vasprintf.h: New file.
58229         * lib/unistdio/u-vsnprintf.h: New file.
58230         * lib/unistdio/u-vsprintf.h: New file.
58231         * lib/unistdio/ulc-asnprintf.c: New file.
58232         * lib/unistdio/ulc-asprintf.c: New file.
58233         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58234         * lib/unistdio/ulc-printf-parse.c: New file.
58235         * lib/unistdio/ulc-snprintf.c: New file.
58236         * lib/unistdio/ulc-sprintf.c: New file.
58237         * lib/unistdio/ulc-vasnprintf.c: New file.
58238         * lib/unistdio/ulc-vasprintf.c: New file.
58239         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58240         * lib/unistdio/ulc-vsnprintf.c: New file.
58241         * lib/unistdio/ulc-vsprintf.c: New file.
58242         * lib/unistdio/u8-asnprintf.c: New file.
58243         * lib/unistdio/u8-asprintf.c: New file.
58244         * lib/unistdio/u8-printf-parse.c: New file.
58245         * lib/unistdio/u8-snprintf.c: New file.
58246         * lib/unistdio/u8-sprintf.c: New file.
58247         * lib/unistdio/u8-vasnprintf.c: New file.
58248         * lib/unistdio/u8-vasprintf.c: New file.
58249         * lib/unistdio/u8-vsnprintf.c: New file.
58250         * lib/unistdio/u8-vsprintf.c: New file.
58251         * lib/unistdio/u8-u8-asnprintf.c: New file.
58252         * lib/unistdio/u8-u8-asprintf.c: New file.
58253         * lib/unistdio/u8-u8-snprintf.c: New file.
58254         * lib/unistdio/u8-u8-sprintf.c: New file.
58255         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58256         * lib/unistdio/u8-u8-vasprintf.c: New file.
58257         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58258         * lib/unistdio/u8-u8-vsprintf.c: New file.
58259         * lib/unistdio/u16-asnprintf.c: New file.
58260         * lib/unistdio/u16-asprintf.c: New file.
58261         * lib/unistdio/u16-printf-parse.c: New file.
58262         * lib/unistdio/u16-snprintf.c: New file.
58263         * lib/unistdio/u16-sprintf.c: New file.
58264         * lib/unistdio/u16-vasnprintf.c: New file.
58265         * lib/unistdio/u16-vasprintf.c: New file.
58266         * lib/unistdio/u16-vsnprintf.c: New file.
58267         * lib/unistdio/u16-vsprintf.c: New file.
58268         * lib/unistdio/u16-u16-asnprintf.c: New file.
58269         * lib/unistdio/u16-u16-asprintf.c: New file.
58270         * lib/unistdio/u16-u16-snprintf.c: New file.
58271         * lib/unistdio/u16-u16-sprintf.c: New file.
58272         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58273         * lib/unistdio/u16-u16-vasprintf.c: New file.
58274         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58275         * lib/unistdio/u16-u16-vsprintf.c: New file.
58276         * lib/unistdio/u32-asnprintf.c: New file.
58277         * lib/unistdio/u32-asprintf.c: New file.
58278         * lib/unistdio/u32-printf-parse.c: New file.
58279         * lib/unistdio/u32-snprintf.c: New file.
58280         * lib/unistdio/u32-sprintf.c: New file.
58281         * lib/unistdio/u32-vasnprintf.c: New file.
58282         * lib/unistdio/u32-vasprintf.c: New file.
58283         * lib/unistdio/u32-vsnprintf.c: New file.
58284         * lib/unistdio/u32-vsprintf.c: New file.
58285         * lib/unistdio/u32-u32-asnprintf.c: New file.
58286         * lib/unistdio/u32-u32-asprintf.c: New file.
58287         * lib/unistdio/u32-u32-snprintf.c: New file.
58288         * lib/unistdio/u32-u32-sprintf.c: New file.
58289         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58290         * lib/unistdio/u32-u32-vasprintf.c: New file.
58291         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58292         * lib/unistdio/u32-u32-vsprintf.c: New file.
58293         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58294         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58295         * tests/unistdio/test-ulc-printf1.h: New file.
58296         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58297         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58298         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58299         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58300         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58301         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58302         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58303         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58304         * tests/unistdio/test-u8-asnprintf1.c: New file.
58305         * tests/unistdio/test-u8-asnprintf1.h: New file.
58306         * tests/unistdio/test-u8-printf1.h: New file.
58307         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58308         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58309         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58310         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58311         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58312         * tests/unistdio/test-u8-vasprintf1.c: New file.
58313         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58314         * tests/unistdio/test-u8-vsprintf1.c: New file.
58315         * tests/unistdio/test-u16-asnprintf1.c: New file.
58316         * tests/unistdio/test-u16-asnprintf1.h: New file.
58317         * tests/unistdio/test-u16-printf1.h: New file.
58318         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58319         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58320         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58321         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58322         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58323         * tests/unistdio/test-u16-vasprintf1.c: New file.
58324         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58325         * tests/unistdio/test-u16-vsprintf1.c: New file.
58326         * tests/unistdio/test-u32-asnprintf1.c: New file.
58327         * tests/unistdio/test-u32-asnprintf1.h: New file.
58328         * tests/unistdio/test-u32-printf1.h: New file.
58329         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58330         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58331         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58332         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58333         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58334         * tests/unistdio/test-u32-vasprintf1.c: New file.
58335         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58336         * tests/unistdio/test-u32-vsprintf1.c: New file.
58337         * modules/unistdio/base: New file.
58338         * modules/unistdio/u-printf-args: New file.
58339         * modules/unistdio/ulc-asnprintf: New file.
58340         * modules/unistdio/ulc-asprintf: New file.
58341         * modules/unistdio/ulc-fprintf: New file.
58342         * modules/unistdio/ulc-printf-parse: New file.
58343         * modules/unistdio/ulc-snprintf: New file.
58344         * modules/unistdio/ulc-sprintf: New file.
58345         * modules/unistdio/ulc-vasnprintf: New file.
58346         * modules/unistdio/ulc-vasprintf: New file.
58347         * modules/unistdio/ulc-vfprintf: New file.
58348         * modules/unistdio/ulc-vsnprintf: New file.
58349         * modules/unistdio/ulc-vsprintf: New file.
58350         * modules/unistdio/u8-asnprintf: New file.
58351         * modules/unistdio/u8-asprintf: New file.
58352         * modules/unistdio/u8-printf-parse: New file.
58353         * modules/unistdio/u8-snprintf: New file.
58354         * modules/unistdio/u8-sprintf: New file.
58355         * modules/unistdio/u8-vasnprintf: New file.
58356         * modules/unistdio/u8-vasprintf: New file.
58357         * modules/unistdio/u8-vsnprintf: New file.
58358         * modules/unistdio/u8-vsprintf: New file.
58359         * modules/unistdio/u8-u8-asnprintf: New file.
58360         * modules/unistdio/u8-u8-asprintf: New file.
58361         * modules/unistdio/u8-u8-snprintf: New file.
58362         * modules/unistdio/u8-u8-sprintf: New file.
58363         * modules/unistdio/u8-u8-vasnprintf: New file.
58364         * modules/unistdio/u8-u8-vasprintf: New file.
58365         * modules/unistdio/u8-u8-vsnprintf: New file.
58366         * modules/unistdio/u8-u8-vsprintf: New file.
58367         * modules/unistdio/u16-asnprintf: New file.
58368         * modules/unistdio/u16-asprintf: New file.
58369         * modules/unistdio/u16-printf-parse: New file.
58370         * modules/unistdio/u16-snprintf: New file.
58371         * modules/unistdio/u16-sprintf: New file.
58372         * modules/unistdio/u16-vasnprintf: New file.
58373         * modules/unistdio/u16-vasprintf: New file.
58374         * modules/unistdio/u16-vsnprintf: New file.
58375         * modules/unistdio/u16-vsprintf: New file.
58376         * modules/unistdio/u16-u16-asnprintf: New file.
58377         * modules/unistdio/u16-u16-asprintf: New file.
58378         * modules/unistdio/u16-u16-snprintf: New file.
58379         * modules/unistdio/u16-u16-sprintf: New file.
58380         * modules/unistdio/u16-u16-vasnprintf: New file.
58381         * modules/unistdio/u16-u16-vasprintf: New file.
58382         * modules/unistdio/u16-u16-vsnprintf: New file.
58383         * modules/unistdio/u16-u16-vsprintf: New file.
58384         * modules/unistdio/u32-asnprintf: New file.
58385         * modules/unistdio/u32-asprintf: New file.
58386         * modules/unistdio/u32-printf-parse: New file.
58387         * modules/unistdio/u32-snprintf: New file.
58388         * modules/unistdio/u32-sprintf: New file.
58389         * modules/unistdio/u32-vasnprintf: New file.
58390         * modules/unistdio/u32-vasprintf: New file.
58391         * modules/unistdio/u32-vsnprintf: New file.
58392         * modules/unistdio/u32-vsprintf: New file.
58393         * modules/unistdio/u32-u32-asnprintf: New file.
58394         * modules/unistdio/u32-u32-asprintf: New file.
58395         * modules/unistdio/u32-u32-snprintf: New file.
58396         * modules/unistdio/u32-u32-sprintf: New file.
58397         * modules/unistdio/u32-u32-vasnprintf: New file.
58398         * modules/unistdio/u32-u32-vasprintf: New file.
58399         * modules/unistdio/u32-u32-vsnprintf: New file.
58400         * modules/unistdio/u32-u32-vsprintf: New file.
58401         * modules/unistdio/ulc-asnprintf-tests: New file.
58402         * modules/unistdio/ulc-vasnprintf-tests: New file.
58403         * modules/unistdio/ulc-vasprintf-tests: New file.
58404         * modules/unistdio/ulc-vsnprintf-tests: New file.
58405         * modules/unistdio/ulc-vsprintf-tests: New file.
58406         * modules/unistdio/u8-asnprintf-tests: New file.
58407         * modules/unistdio/u8-vasnprintf-tests: New file.
58408         * modules/unistdio/u8-vasprintf-tests: New file.
58409         * modules/unistdio/u8-vsnprintf-tests: New file.
58410         * modules/unistdio/u8-vsprintf-tests: New file.
58411         * modules/unistdio/u16-asnprintf-tests: New file.
58412         * modules/unistdio/u16-vasnprintf-tests: New file.
58413         * modules/unistdio/u16-vasprintf-tests: New file.
58414         * modules/unistdio/u16-vsnprintf-tests: New file.
58415         * modules/unistdio/u16-vsprintf-tests: New file.
58416         * modules/unistdio/u32-asnprintf-tests: New file.
58417         * modules/unistdio/u32-vasnprintf-tests: New file.
58418         * modules/unistdio/u32-vasprintf-tests: New file.
58419         * modules/unistdio/u32-vsnprintf-tests: New file.
58420         * modules/unistdio/u32-vsprintf-tests: New file.
58421         * MODULES.html.sh (Unicode string functions): Add the new modules.
58422
58423 2007-07-01  Bruno Haible  <bruno@clisp.org>
58424
58425         * lib/sprintf.c (sprintf): Limit the available length estimation,
58426         to avoid address wraparound.
58427         * lib/vsprintf.c (vsprintf): Likewise.
58428         * modules/sprintf-posix (Dependencies): Add stdint.
58429         * modules/vsprintf-posix (Dependencies): Likewise.
58430
58431 2007-07-01  Bruno Haible  <bruno@clisp.org>
58432
58433         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58434         Windows PATH as well. Conservative double-quoting. Comments.
58435
58436 2007-07-01  Bruno Haible  <bruno@clisp.org>
58437             Eric Blake  <ebb9@byu.net>
58438             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58439
58440         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58441         empty components in $PATH, denoting '.'.
58442
58443 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58444
58445         * gnulib-tool: Fix indentation.
58446         (func_create_megatestdir): Likewise.
58447         Report by Bruno Haible.
58448
58449 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58450
58451         Sync from Automake.
58452         * build-aux/gnupload: Fix shell portability issues with for loops.
58453         Report by Karl Berry.
58454
58455 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58456
58457         * build-aux/maint.mk (POURL): Use translationproject.org.
58458
58459 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58460             Bruno Haible  <bruno@clisp.org>
58461
58462         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58463         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58464         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58465         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58466         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58467
58468 2007-06-27  Bruno Haible  <bruno@clisp.org>
58469
58470         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58471         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58472
58473 2007-06-26  Karl Berry  <karl@gnu.org>
58474
58475         * MODULES.html.sh: remove xreadlink-with-size.
58476
58477 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58478
58479         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58480         method that I hope also handles the double-include problem noted
58481         by Bruno Haible in
58482         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58483
58484 2007-06-23  Bruno Haible  <bruno@clisp.org>
58485
58486         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58487         Don't let the 'mostlyclean' target fail if the last subdirectory could
58488         not be removed.
58489         Reported by Karl Berry.
58490
58491 2007-06-23  Bruno Haible  <bruno@clisp.org>
58492
58493         * gnulib-tool (echo): Add a speedier workaround for ksh.
58494         * tests/test-echo.sh: Likewise.
58495
58496 2007-06-23  Bruno Haible  <bruno@clisp.org>
58497
58498         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58499         * tests/test-echo.sh: Likewise.
58500
58501 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58502
58503         * gnulib-tool (IFS): Initialize early, so we don't set it to
58504         empty later.
58505         (self_abspathname): Rewrite algorithm to set it, reindent.
58506         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58507         (func_create_megatestdir): Merge some sed scripts.
58508
58509 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58510
58511         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58512         exposed by Sun Studio 11 cc on Solaris 8.
58513
58514 2007-06-22  Bruno Haible  <bruno@clisp.org>
58515
58516         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58517         backslashes.
58518         * tests/test-echo.sh: New file.
58519
58520 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58521
58522         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58523         simplify `sed_replace_build_aux' scripts, they are portable but
58524         echoing them with `echo' is not.
58525         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58526
58527 2007-06-21  Karl Berry  <karl@gnu.org>
58528
58529         * config/srclist.txt: guess we can't handle the licenses via
58530         srclist at the moment.
58531
58532 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58533
58534         * MODULES.html.sh: Add include_next.
58535         * modules/include_next: New file.
58536
58537 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58538
58539         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58540         INCLUDE_NEXT.
58541         (gl_CHECK_NEXT_HEADERS): New macro.
58542         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58543         the obsolescent gl_ABSOLUTE_HEADER.
58544         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58545         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58546         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58547         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58548         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58549         * m4/math_h.m4 (gl_MATH_H): Likewise.
58550         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58551         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58552         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58553         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58554         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58555         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58556         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58557         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58558         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58559         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58560         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58561         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58562         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58563         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58564         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58565         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58566         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58567         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58568         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58569         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58570         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58571         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58572         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58573         * lib/float_.h: Likewise.
58574         * lib/inttypes_.h: Likewise.
58575         * lib/math_.h: Likewise.
58576         * lib/search_.h: Likewise.
58577         * lib/signal_.h: Likewise.
58578         * lib/stdint_.h: Likewise.
58579         * lib/stdio_.h: Likewise.
58580         * lib/stdlib_.h: Likewise.
58581         * lib/string_.h: Likewise.
58582         * lib/sys_stat_.h: Likewise.
58583         * lib/sys_time_.h: Likewise.
58584         * lib/time_.h: Likewise.
58585         * lib/unistd_.h: Likewise.
58586         * lib/wchar_.h: Likewise.
58587         * lib/wctype_.h: Likewise.
58588         * lib/dirent_.h: Likewise.
58589         * lib/iconv_.h: Likewise.
58590         * lib/locale_.h: Likewise.
58591         * lib/netinet_in_.h: Likewise.
58592         * lib/sys_select_.h: Likewise.
58593         * lib/sys_socket_.h: Likewise.
58594         * lib/sysexits_.h: Likewise.
58595         * modules/fcntl (Depends-on): Depend on include_next, not
58596         absolute_header.
58597         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58598         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58599         * modules/fchdir: Likewise.
58600         * modules/float: Likewise.
58601         * modules/iconv_open: Likewise.
58602         * modules/inttypes: Likewise.
58603         * modules/locale: Likewise.
58604         * modules/math: Likewise.
58605         * modules/netinet_in: Likewise.
58606         * modules/search: Likewise.
58607         * modules/signal: Likewise.
58608         * modules/stdint: Likewise.
58609         * modules/stdio: Likewise.
58610         * modules/stdlib: Likewise.
58611         * modules/string: Likewise.
58612         * modules/sys_select: Likewise.
58613         * modules/sys_socket: Likewise.
58614         * modules/sys_stat: Likewise.
58615         * modules/sys_time: Likewise.
58616         * modules/sysexits: Likewise.
58617         * modules/time: Likewise.
58618         * modules/unistd: Likewise.
58619         * modules/wchar: Likewise.
58620         * modules/wctype: Likewise.
58621         * modules/sys_stat: Change maintainer to "all".
58622         * modules/unistd: Likewise.
58623
58624 2007-06-20  Karl Berry  <karl@gnu.org>
58625
58626         * config/srclist.txt: track www changes in license files.
58627
58628 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58629
58630         * build-aux/bootstrap: Remove stray dot.
58631         Make sure build_aux settings are honored when linking
58632         gnulib_extra_files.
58633
58634 2007-06-19  Eric Blake  <ebb9@byu.net>
58635
58636         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58637         Allow compilation on cygwin.
58638
58639 2007-06-19  Jim Meyering  <jim@meyering.net>
58640
58641         xreadlink-with-size: Remove module.  No longer used.
58642         Ex-callers now use xreadlink or mreadlink-with-size.
58643         * modules/xreadlink-with-size: Remove module.
58644         * lib/xreadlink-with-size.c: Remove file.
58645         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58646         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58647         just before the function definition *is* accurate.
58648
58649         Eliminate one way canonicalize_filename_mode could exit.
58650         * lib/canonicalize.c (canonicalize_filename_mode):
58651         Use mreadlink_with_size, not xreadlink_with_size.
58652
58653 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58654
58655         Detect porting problems to FreeBSD/arm, which has time_t wider than
58656         long int.  Original problem reported for GNU diff by Xin Li in
58657         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58658         * modules/getdate (Depends-on): Add intprops, verify.
58659         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58660         is an integer type no wider than long int.
58661
58662 2007-06-18  Jim Meyering  <jim@meyering.net>
58663
58664         New module: mreadlink-with-size.
58665         * MODULES.html.sh: Add mreadlink-with-size.
58666         * modules/mreadlink-with-size: New module
58667         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58668         not xreadlink-with-size.
58669         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58670
58671 2007-06-16  Bruno Haible  <bruno@clisp.org>
58672
58673         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58674         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58675         Reported by Gary V. Vaughan <gary@gnu.org>.
58676
58677 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58678
58679         Revamp lchown so that it lives in unistd.h where it belongs.
58680         * lib/lchown.h: Remove.
58681         * lib/dirchownmod.c: Don't include lib/lchown.h.
58682         * lib/fchownat.c: Likewise.
58683         * lib/openat.c: Likewise.
58684         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58685         does not follow symlinks.
58686         (EOPNOTSUPP): Define if not defined.
58687         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58688         is defined to 0.
58689         (lchown): New decl.
58690         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58691         Do not check for lchown decl.
58692         Set REPLACE_LCHOWN.
58693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58694         REPLACE_LCHOWN.
58695         * modules/chown: Make it clear it follows symlinks.
58696         * modules/lchown: Make it clear it doesn't follow symlinks.
58697         (Files): Remove lib/lchown.h
58698         (Depends-on): Add unistd.
58699         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58700         (Include): Include <unistd.h>, not "lchown.h".
58701         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58702         REPLACE_LCHOWN.
58703
58704 2007-06-15  Jim Meyering  <jim@meyering.net>
58705
58706         Change license (GPL to LGPL) of fsusage and dependents.
58707         * modules/fsusage (License): Change to LGPL.
58708         * modules/full-read (License): Likewise.
58709         * modules/full-write (License): Likewise.
58710         * modules/safe-read (License): Likewise.
58711         * modules/safe-write (License): Likewise.
58712
58713 2007-06-14  Ben Pfaff  <blp@gnu.org>
58714
58715         Missing part of allocsa -> malloca transition.
58716         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58717         gl_MALLOCA.
58718
58719 2007-06-12  Bruno Haible  <bruno@clisp.org>
58720
58721         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58722         to ia64, x86_64, i386.
58723         Reported by Eric Blake.
58724
58725 2007-06-12  Bruno Haible  <bruno@clisp.org>
58726
58727         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58728         cross-compiling to x86_64.
58729
58730 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58731
58732         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58733         glitch reported by Ralf Wildenhues in
58734         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58735
58736         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58737         Vin Shelton.
58738
58739 2007-06-11  Bruno Haible  <bruno@clisp.org>
58740
58741         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58742         replacement string.
58743         Reported by Eric Blake.
58744
58745 2007-06-10  Bruno Haible  <bruno@clisp.org>
58746
58747         Prepare vasnprintf code for use with Unicode strings.
58748         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58749         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58750         TYPE_U32_STRING.
58751         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58752         a_u32_string variants.
58753         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58754         * lib/printf-args.c: Don't include config.h and the specification
58755         header if PRINTF_FETCHARGS is already defined.
58756         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58757         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58758         TYPE_U16_STRING, TYPE_U32_STRING.
58759         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58760         u16_directive, u16_directives, u32_directive, u32_directives): New
58761         types.
58762         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58763         New declarations.
58764         * lib/printf-parse.c: Don't include config.h and the specification
58765         header if PRINTF_PARSE is already defined. Eliminate the set of
58766         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58767         them now. Include c-ctype.h.
58768         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58769         directive and CHAR_T_ONLY_ASCII.
58770         * lib/vasnprintf.c: Don't include config.h and the specification header
58771         if VASNPRINTF is already defined.
58772         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58773         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58774         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58775         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58776         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58777         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58778         code accordingly.
58779         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58780         pad_ourselves also in this case, with the 'c' and 's' directives, and
58781         with a different notion of "width".
58782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58783
58784 2007-06-10  Bruno Haible  <bruno@clisp.org>
58785
58786         * modules/unistr/u32-mbsnlen: New file.
58787         * lib/unistr/u32-mbsnlen.c: New file.
58788
58789         * modules/unistr/u16-mbsnlen: New file.
58790         * lib/unistr/u16-mbsnlen.c: New file.
58791
58792         * modules/unistr/u8-mbsnlen: New file.
58793         * lib/unistr/u8-mbsnlen.c: New file.
58794
58795         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58796         declarations.
58797
58798 2007-06-10  Bruno Haible  <bruno@clisp.org>
58799
58800         * lib/string_.h (mbsnlen): New declaration.
58801         * lib/mbsnlen.c: New file.
58802         * m4/mbsnlen.m4: New file.
58803         * modules/mbsnlen: New file.
58804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58805         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58806         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58807
58808 2007-06-10  Bruno Haible  <bruno@clisp.org>
58809
58810         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58811
58812 2007-06-10  Bruno Haible  <bruno@clisp.org>
58813
58814         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58815         * lib/mbuiter.h: Likewise.
58816
58817 2007-06-10  Bruno Haible  <bruno@clisp.org>
58818
58819         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58820         declaration.
58821
58822 2007-06-10  Karl Berry  <karl@gnu.org>
58823
58824         * config/srclist.txt: remove gettext entries, Bruno prefers
58825         to update individually.
58826
58827 2007-06-10  Bruno Haible  <bruno@clisp.org>
58828
58829         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58830         'maxlen'. Ensure only length + width bytes are allocated, not
58831         length + 1 + width.
58832
58833 2007-06-09  Bruno Haible  <bruno@clisp.org>
58834
58835         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58836         (CHAR_T): Remove macro.
58837         (VASNPRINTF): Update.
58838
58839 2007-06-09  Bruno Haible  <bruno@clisp.org>
58840
58841         * MODULES.html.sh (Unicode string functions): Add the new modules.
58842
58843         * modules/uniconv/u32-conv-to-enc: New file.
58844         * lib/uniconv/u32-conv-to-enc.c: New file.
58845         * modules/uniconv/u32-conv-to-enc-tests: New file.
58846         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58847
58848         * modules/uniconv/u16-conv-to-enc: New file.
58849         * lib/uniconv/u16-conv-to-enc.c: New file.
58850         * lib/uniconv/u-conv-to-enc.h: New file.
58851         * modules/uniconv/u16-conv-to-enc-tests: New file.
58852         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58853
58854         * modules/uniconv/u8-conv-to-enc: New file.
58855         * lib/uniconv/u8-conv-to-enc.c: New file.
58856         * modules/uniconv/u8-conv-to-enc-tests: New file.
58857         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58858
58859         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58860         u32_conv_to_encoding): New declarations.
58861
58862 2007-06-09  Bruno Haible  <bruno@clisp.org>
58863
58864         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58865
58866 2007-06-09  Bruno Haible  <bruno@clisp.org>
58867
58868         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58869         * modules/malloca: Renamed from modules/allocsa, updated.
58870         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58871         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58872         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58873         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58874         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58875         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58876         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58877         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58878         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58879         * modules/c-strcasestr (Depends-on): Update.
58880         * lib/c-strcasestr.c: Update.
58881         * modules/c-strstr (Depends-on): Update.
58882         * lib/c-strstr.c: Update.
58883         * modules/canonicalize-lgpl (Depends-on): Update.
58884         * lib/canonicalize-lgpl.c: Update.
58885         * modules/clean-temp (Depends-on): Update.
58886         * lib/clean-temp.c: Update.
58887         * modules/csharpcomp (Depends-on): Update.
58888         * lib/csharpcomp.c: Update.
58889         * modules/csharpexec (Depends-on): Update.
58890         * lib/csharpexec.c: Update.
58891         * modules/javacomp (Depends-on): Update.
58892         * lib/javacomp.c: Update.
58893         * modules/javaexec (Depends-on): Update.
58894         * lib/javaexec.c: Update.
58895         * modules/mbscasestr (Depends-on): Update.
58896         * lib/mbscasestr.c: Update.
58897         * modules/mbsstr (Depends-on): Update.
58898         * lib/mbsstr.c: Update.
58899         * modules/setenv (Depends-on): Update.
58900         * lib/setenv.c: Update.
58901         * modules/strcasestr (Depends-on): Update.
58902         * lib/strcasestr.c: Update.
58903         * modules/striconveha (Depends-on): Update.
58904         * lib/striconveha.c: Update.
58905         * modules/relocatable-prog-wrapper (Files): Update.
58906         * lib/relocwrapper.c: Update.
58907         * build-aux/install-reloc: Update.
58908         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58909
58910 2007-06-08  Bruno Haible  <bruno@clisp.org>
58911
58912         Port to uClibc.
58913         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58914         * lib/fpurge.c (fpurge): Likewise.
58915         * lib/freading.c (freading): Likewise.
58916         * lib/fseeko.c (rpl_fseeko): Likewise.
58917         * lib/fseterr.c (fseterr): Likewise.
58918         * lib/fwriting.c (fwriting): Likewise.
58919         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58920
58921 2007-06-08  Bruno Haible  <bruno@clisp.org>
58922
58923         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58924         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58925         * modules/gettext (Files): Add m4/intlmacosx.m4.
58926
58927 2007-06-07  Bruno Haible  <bruno@clisp.org>
58928
58929         * modules/localename-tests: New file.
58930         * tests/test-localename.c: New file.
58931
58932         New module 'localename'.
58933         * lib/localename.h: New file.
58934         * lib/localename.c: New file, from GNU gettext.
58935         * m4/localename.m4: New file.
58936         * modules/localename: New file.
58937
58938 2007-06-07  Bruno Haible  <bruno@clisp.org>
58939
58940         Work around the lack of <wchar.h> on some builds of uClibc.
58941         * doc/headers/wchar.texi: Update.
58942         * lib/wchar_.h: Include <wchar.h> only if it exists.
58943         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58944         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58945         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58946         doesn't exist.
58947         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58948         * modules/mbfile (Depends-on): Add wchar.
58949         * modules/mbiter (Depends-on): Likewise.
58950         * modules/mbuiter (Depends-on): Likewise.
58951         Reported by Simon Josefsson.
58952
58953 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58954
58955         Work around problem reported by Steven M. Schweda in
58956         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58957         Tru64 5.1B with the Compaq compiler environment installed declares
58958         an 'isblank' function but does not define it in the C library.
58959         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58960         * lib/regex_internal.h (isblank): Likewise.
58961         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58962         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58963
58964 2007-06-05  Bruno Haible  <bruno@clisp.org>
58965
58966         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58967         ia64.
58968         * modules/printf-safe: New file.
58969         * modules/fprintf-posix (Depends-on): Add printf-safe.
58970         * modules/printf-posix (Depends-on): Likewise.
58971         * modules/snprintf-posix (Depends-on): Likewise.
58972         * modules/sprintf-posix (Depends-on): Likewise.
58973         * modules/vasnprintf-posix (Depends-on): Likewise.
58974         * modules/vasprintf-posix (Depends-on): Likewise.
58975         * modules/vfprintf-posix (Depends-on): Likewise.
58976         * modules/vprintf-posix (Depends-on): Likewise.
58977         * modules/vsnprintf-posix (Depends-on): Likewise.
58978         * modules/vsprintf-posix (Depends-on): Likewise.
58979         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58980         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58981         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58982         "no" on i386, x86_64, ia64.
58983         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58984         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58985         on i386, x86_64, ia64.
58986         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58987         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58988         on i386, x86_64, ia64.
58989         * tests/test-vasnprintf-posix.c: Include float.h.
58990         (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-vasprintf-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-snprintf-posix.c: Include float.h.
58998         * tests/test-sprintf-posix.c: Likewise.
58999         * tests/test-vsnprintf-posix.c: Likewise.
59000         * tests/test-vsprintf-posix.c: Likewise.
59001
59002 2007-06-05  Bruno Haible  <bruno@clisp.org>
59003
59004         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59005         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59006         non-IEEE numbers on i386, x86_64, ia64.
59007         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59008         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59009         * tests/test-isnanl.h: Include float.h.
59010         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59011
59012 2007-06-05  Bruno Haible  <bruno@clisp.org>
59013
59014         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59015         also the %a / %A. Handle the %a / %A code before this extra handling.
59016
59017 2007-06-05  Bruno Haible  <bruno@clisp.org>
59018
59019         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59020         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59021
59022 2007-06-05  Bruno Haible  <bruno@clisp.org>
59023
59024         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59025         typo in variable name.
59026
59027 2007-06-05  Eric Blake  <ebb9@byu.net>
59028
59029         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59030         Reported by Simon Josefsson.
59031
59032 2007-06-04  Bruno Haible  <bruno@clisp.org>
59033
59034         Avoid test failures on some PowerPC platforms.
59035         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59036         Define differently for PowerPC.
59037         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59038         Reported by Gary V. Vaughan <gary@gnu.org>.
59039
59040 2007-06-02  Bruno Haible  <bruno@clisp.org>
59041
59042         Fix test-stdint failure on FreeBSD/ia64.
59043         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59044         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59045         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59046         * doc/headers/stdint.texi: Update.
59047
59048 2007-06-01  Bruno Haible  <bruno@clisp.org>
59049
59050         * tests/test-binary-io.c (main): Pass a third argument to open().
59051         Reported by Gary V. Vaughan <gary@gnu.org>.
59052
59053 2007-06-01  Bruno Haible  <bruno@clisp.org>
59054
59055         * doc/functions/frexpl.texi: Update for mingw.
59056
59057 2007-06-01  Bruno Haible  <bruno@clisp.org>
59058
59059         * tests/test-lseek.c (main): Disable test of errno for invalid third
59060         argument.
59061         * doc/functions/lseek.texi: Update.
59062         Reported by Gary V. Vaughan <gary@gnu.org>.
59063
59064 2007-05-28  Bruno Haible  <bruno@clisp.org>
59065
59066         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59067
59068 2007-05-31  Eric Blake  <ebb9@byu.net>
59069
59070         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59071         cross compiling.
59072
59073 2007-05-30  Eric Blake  <ebb9@byu.net>
59074         and Bruno Haible  <bruno@clisp.org>
59075
59076         Work around mingw test failures exposed by m4-1.4.9b.
59077         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59078         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59079         moment.
59080
59081 2007-05-30  Bruno Haible  <bruno@clisp.org>
59082
59083         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59084         assuming that they are closed. Needed on HP-UX 11.
59085
59086 2007-05-29  Bruno Haible  <bruno@clisp.org>
59087
59088         Fix a problem with #include_next.
59089         * lib/dirent_.h: Split the double-inclusion guard.
59090         * lib/fcntl_.h: Likewise.
59091         * lib/float_.h: Likewise.
59092         * lib/iconv_.h: Likewise.
59093         * lib/inttypes_.h: Likewise.
59094         * lib/locale_.h: Likewise.
59095         * lib/math_.h: Likewise.
59096         * lib/netinet_in_.h: Likewise.
59097         * lib/search_.h: Likewise.
59098         * lib/signal_.h: Likewise.
59099         * lib/stdint_.h: Likewise.
59100         * lib/stdio_.h: Likewise.
59101         * lib/stdlib_.h: Likewise.
59102         * lib/string_.h: Likewise.
59103         * lib/sys_select_.h: Likewise.
59104         * lib/sys_socket_.h: Likewise.
59105         * lib/sys_stat_.h: Likewise.
59106         * lib/sys_time_.h: Likewise.
59107         * lib/sysexits_.h: Likewise.
59108         * lib/time_.h: Likewise.
59109         * lib/unistd_.h: Likewise.
59110         * lib/wchar_.h: Likewise.
59111         * lib/wctype_.h: Likewise.
59112
59113 2007-05-29  Bruno Haible  <bruno@clisp.org>
59114
59115         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59116         for the moment.
59117
59118 2007-05-29  Bruno Haible  <bruno@clisp.org>
59119
59120         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59121         invocation.
59122         Reported by Eric Blake.
59123
59124 2007-05-29  Bruno Haible  <bruno@clisp.org>
59125
59126         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59127         compiling case.
59128
59129 2007-05-29  Eric Blake  <ebb9@byu.net>
59130             Bruno Haible  <bruno@clisp.org>
59131
59132         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59133         cross compiles.
59134
59135 2007-05-28  Eric Blake  <ebb9@byu.net>
59136
59137         * modules/closein-tests (test_closein_LDADD): Support test on
59138         cygwin with libtool.
59139
59140 2007-05-28  Bruno Haible  <bruno@clisp.org>
59141
59142         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59143         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59144         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59145         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59146         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59147         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59148         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59149         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59150         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59151
59152 2007-05-28  Eric Blake  <ebb9@byu.net>
59153
59154         Unconditionally include <config.h> in unit tests.
59155         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59156         * tests/test-allocsa.c, tests/test-arcfour.c,
59157         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59158         tests/test-array_list.c, tests/test-array_oset.c,
59159         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59160         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59161         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59162         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59163         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59164         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59165         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59166         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59167         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59168         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59169         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59170         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59171         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59172         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59173         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59174         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59175         test-md5.c, test-memmem.c, test-printf-posix.c,
59176         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59177         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59178         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59179         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59180         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59181         test-vasnprintf-posix2.c, test-vasnprintf.c,
59182         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59183         test-vfprintf-posix.c, test-vprintf-posix.c,
59184         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59185         test-xvasprintf.c: Likewise.
59186
59187 2007-05-28  Bruno Haible  <bruno@clisp.org>
59188
59189         * gnulib-tool (func_import): Remember the --with-tests command-line
59190         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59191         Reported by Eric Blake.
59192
59193 2007-05-28  Bruno Haible  <bruno@clisp.org>
59194
59195         * modules/ftell-tests: New file.
59196         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59197         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59198
59199         * lib/ftell.c: New file.
59200         * modules/ftell: New file.
59201         * m4/ftell.m4: New file.
59202         * doc/functions/ftell.texi: Update.
59203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59204         REPLACE_FTELL.
59205         * lib/stdio_.h (rpl_ftell): New declaration.
59206         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59207         REPLACE_FTELL.
59208
59209 2007-05-28  Eric Blake  <ebb9@byu.net>
59210
59211         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59212
59213 2007-05-28  Bruno Haible  <bruno@clisp.org>
59214
59215         * modules/fseek-tests: New file.
59216         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59217         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59218
59219         * lib/fseek.c: New file.
59220         * modules/fseek: New file.
59221         * m4/fseek.m4: New file.
59222         * doc/functions/fseek.texi: Update.
59223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59224         REPLACE_FSEEK.
59225         * lib/stdio_.h (rpl_fseek): New declaration.
59226         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59227         REPLACE_FSEEK.
59228
59229 2007-05-28  Bruno Haible  <bruno@clisp.org>
59230
59231         * lib/stdio_.h (fflush): More comments.
59232
59233 2007-05-28  Bruno Haible  <bruno@clisp.org>
59234
59235         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59236         runtime test.
59237
59238 2007-05-28  Eric Blake  <ebb9@byu.net>
59239
59240         Improve lseek module.
59241         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59242         * lib/unistd_.h (lseek): Scale back link warning message.
59243         * tests/test-lseek.c: Beef up test.
59244         * tests/test-lseek.sh: Exercise more facets of lseek.
59245         Reported by Bruno Haible.
59246
59247 2007-05-28  Bruno Haible  <bruno@clisp.org>
59248
59249         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59250         to define.
59251
59252 2007-05-27  Bruno Haible  <bruno@clisp.org>
59253
59254         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59255
59256 2007-05-27  Bruno Haible  <bruno@clisp.org>
59257
59258         * modules/openmp: New file.
59259         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59260         Noah Misch.
59261
59262 2007-05-26  Bruno Haible  <bruno@clisp.org>
59263
59264         * modules/chdir-long (Depends-on): Add fchdir.
59265         * modules/chdir-safer (Depends-on): Likewise.
59266         * modules/fts (Depends-on): Likewise.
59267         * modules/fts-lgpl (Depends-on): Likewise.
59268         * modules/openat (Depends-on): Likewise.
59269         * modules/savewd (Depends-on): Likewise.
59270
59271 2007-05-24  Eric Blake  <ebb9@byu.net>
59272
59273         Fix lseek on mingw.
59274         * modules/lseek: New module.
59275         * m4/lseek.m4: New file.
59276         * lib/lseek.c: New file.
59277         * modules/lseek-tests: New file.
59278         * tests/test-lseek.c: New file.
59279         * tests/test-lseek.sh: New file.
59280         * MODULES.html.sh: Document lseek module.
59281         * modules/fflush (Depends-on): Add lseek, fseeko.
59282         * modules/fseeko (Depends-on): Likewise.
59283         * modules/ftello (Depends-on): Likewise.
59284         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59285         broken.
59286         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59287         broken.
59288         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59289         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59290         * lib/ftello.c (rpl_ftello): Likewise.
59291         * tests/test-fseeko.c (main): Test this.
59292         * tests/test-fseeko.sh: Likewise.
59293         * tests/test-ftello.c (main): Likewise.
59294         * tests/test-ftello.sh: Likewise.
59295         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59296         implies replacing fseek.
59297         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59298         HAVE_FTELLO.
59299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59300         * modules/unistd (Makefile.am): Likewise.
59301         * lib/unistd_.h (lseek): Declare a replacement.
59302         * doc/functions/lseek.texi (lseek): Document this fix.
59303         * doc/functions/fseek.texi (fseek): Likewise.
59304         * doc/functions/ftell.texi (ftell): Likewise.
59305
59306 2007-05-24  Bruno Haible  <bruno@clisp.org>
59307
59308         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59309         in the printed representation of a NaN.
59310         * tests/test-vasprintf-posix.c (test_function): Likewise.
59311         * tests/test-snprintf-posix.h (test_function): Likewise.
59312         * tests/test-sprintf-posix.h (test_function): Likewise.
59313         Reported by Eric Blake.
59314
59315 2007-05-23  Eric Blake  <ebb9@byu.net>
59316
59317         Fix fseeko/ftello on cygwin 1.5.24.
59318         * doc/functions/fseeko.texi (fseeko): Document the fix.
59319         * doc/functions/ftello.texi (ftello): Document the fix.
59320         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59321         * doc/functions/stdout.text (stdout): New file.
59322         * doc/functions/stderr.text (stderr): New file.
59323         * doc/gnulib.texi (Function Substitutes): Use new files.
59324         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59325         prior to 1.7.0.
59326         * tests/test-ftello.c (main): Likewise for ftello.
59327         * tests/test-fseeko.sh: New file.
59328         * tests/test-ftello.sh: New file.
59329         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59330         with seekable stdin.
59331         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59332         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59333         (gl_REPLACE_FSEEKO): New macro.
59334         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59335         * modules/fseeko (Files): Distribute fseeko.c.
59336         * modules/ftello (Files): Distribute ftello.c.
59337         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59338         mode.
59339         * lib/ftello.c (rpl_ftello): New file.
59340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59341         fseeko, ftello.
59342         (gl_STDIN_LARGE_OFFSET): New macro.
59343         * modules/stdio (Makefile.am): Perform the replacement.
59344         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59345
59346 2007-05-23  Bruno Haible  <bruno@clisp.org>
59347
59348         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59349         GNULIB_POSIXCHECK is defined.
59350
59351 2007-05-21  Bruno Haible  <bruno@clisp.org>
59352
59353         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59354         Check also the output for NaN arguments. When cross-compiling, guess
59355         no on IRIX.
59356         * lib/vasnprintf.c: Update comments.
59357         * tests/test-vasnprintf-posix.c (strisnan): New function.
59358         (test_function): Use it.
59359         * tests/test-vasprintf-posix.c (strisnan): New function.
59360         (test_function): Use it.
59361         * tests/test-snprintf-posix.h (strisnan): New function.
59362         (test_function): Use it.
59363         * tests/test-sprintf-posix.h (strisnan): New function.
59364         (test_function): Use it.
59365         Reported by Eric Blake.
59366
59367 2007-05-20  Bruno Haible  <bruno@clisp.org>
59368
59369         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59370         numbers that fails on BeOS.
59371         * doc/functions/frexpl.texi: Update.
59372
59373 2007-05-20  Jim Meyering  <jim@meyering.net>
59374
59375         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59376         forced upon us by glibc-2.6.
59377
59378 2007-05-20  Bruno Haible  <bruno@clisp.org>
59379
59380         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59381         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59382         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59383         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59384         NEED_PRINTF_INFINITE.
59385         (is_infinitel): New function.
59386         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59387         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59388         gl_PREREQ_VASNPRINTF_INFINITE.
59389         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59390         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59391         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59392         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59393         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59394         gl_PREREQ_VASNPRINTF_INFINITE.
59395         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59396         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59397         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59398         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59399         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59400         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59401         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59402         * doc/functions/fprintf.texi: Update.
59403         * doc/functions/printf.texi: Update.
59404         * doc/functions/snprintf.texi: Update.
59405         * doc/functions/sprintf.texi: Update.
59406         * doc/functions/vfprintf.texi: Update.
59407         * doc/functions/vprintf.texi: Update.
59408         * doc/functions/vsnprintf.texi: Update.
59409         * doc/functions/vsprintf.texi: Update.
59410
59411 2007-05-20  Bruno Haible  <bruno@clisp.org>
59412
59413         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59414         was not found in libc.
59415         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59416
59417 2007-05-20  Bruno Haible  <bruno@clisp.org>
59418
59419         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59420         printed as "-nan" instead of "nan".
59421         * tests/test-vasprintf-posix.c (test_function): Likewise.
59422         * tests/test-snprintf-posix.h (test_function): Likewise.
59423         * tests/test-sprintf-posix.h (test_function): Likewise.
59424         Needed for HP-UX 11.
59425
59426 2007-05-20  Jim Meyering  <jim@meyering.net>
59427
59428         Fix buggy test for the fchownat-deref bug.
59429         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59430         symlink required for the run-test.  Without it, this test would
59431         always declare that fchownat doesn't work, and client code would
59432         unnecessarily use the replacement function with fixed libc.
59433         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59434         Reported by Greg Schafer.
59435
59436 2007-05-19  Bruno Haible  <bruno@clisp.org>
59437
59438         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59439         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59440         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59441         Needed for IRIX 6.5 and Solaris 2.5.1.
59442
59443 2007-05-19  Bruno Haible  <bruno@clisp.org>
59444
59445         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59446         (test_function): Skip tests involving -0.0 on platforms where
59447         -0.0 = 0.0.
59448         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59449         (test_function): Skip tests involving -0.0 on platforms where
59450         -0.0 = 0.0.
59451         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59452         (test_function): Skip tests involving -0.0 on platforms where
59453         -0.0 = 0.0.
59454         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59455         (test_function): Skip tests involving -0.0 on platforms where
59456         -0.0 = 0.0.
59457         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59458         tests.
59459         * tests/test-printf-posix.h (test_function): Likewise.
59460         * tests/test-printf-posix.output: Remove all -0.0 related results.
59461         Needed for IRIX 6.5.
59462
59463 2007-05-19  Bruno Haible  <bruno@clisp.org>
59464
59465         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59466         printed as "nan0x7fffffff" instead of "nan".
59467         * tests/test-vasprintf-posix.c (test_function): Likewise.
59468         * tests/test-snprintf-posix.h (test_function): Likewise.
59469         * tests/test-sprintf-posix.h (test_function): Likewise.
59470         * tests/test-fprintf-posix.h (NaN): Remove macro.
59471         (test_function): Remove all NaN related tests.
59472         * tests/test-printf-posix.h (NaN): Remove macro.
59473         (test_function): Remove all NaN related tests.
59474         * tests/test-printf-posix.output: Remove all NaN related results.
59475         Needed for IRIX 6.5.
59476
59477 2007-05-19  Bruno Haible  <bruno@clisp.org>
59478
59479         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59480         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59481
59482 2007-05-19  Bruno Haible  <bruno@clisp.org>
59483
59484         * lib/float_.h: New file.
59485         * m4/float_h.m4: New file.
59486         * modules/float: New file.
59487         * modules/isnanl (Dependencies): Add float.
59488         * modules/isnanl-nolibm (Dependencies): Likewise.
59489         * modules/mathl (Dependencies): Likewise.
59490         * modules/printf-frexpl (Dependencies): Likewise.
59491         * modules/signbit (Dependencies): Likewise.
59492         * modules/vasnprintf (Dependencies): Likewise.
59493         * doc/headers/float.texi: Update.
59494
59495 2007-05-19  Jim Meyering  <jim@meyering.net>
59496
59497         * lib/utimens.c (gl_futimens): Rename from futimens,
59498         now that glibc-2.6 declares futimens.
59499         * lib/utimens.h: Likewise.
59500
59501 2007-05-19  Bruno Haible  <bruno@clisp.org>
59502
59503         Avoid test failures on mingw.
59504         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59505         * tests/test-printf-posix.sh: Likewise.
59506         * tests/test-vfprintf-posix.sh: Likewise.
59507         * tests/test-vprintf-posix.sh: Likewise.
59508
59509 2007-05-19  Bruno Haible  <bruno@clisp.org>
59510
59511         Fix *printf result for NaN, Inf, -0.0 on mingw.
59512         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59513         * lib/vasnprintf.c: Include math.h and isnan.h.
59514         (is_infinite_or_zero): New function.
59515         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59516         values in the %f, %F, %e, %E, %g, %G directives.
59517         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59518         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59519         gl_PRINTF_INFINITE and test its result. Invoke
59520         gl_PREREQ_VASNPRINTF_INFINITE.
59521         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59522         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59523         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59524         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59525         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59526         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59527         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59528         * doc/functions/fprintf.texi: Update.
59529         * doc/functions/printf.texi: Update.
59530         * doc/functions/snprintf.texi: Update.
59531         * doc/functions/sprintf.texi: Update.
59532         * doc/functions/vfprintf.texi: Update.
59533         * doc/functions/vprintf.texi: Update.
59534         * doc/functions/vsnprintf.texi: Update.
59535         * doc/functions/vsprintf.texi: Update.
59536
59537 2007-05-19  Bruno Haible  <bruno@clisp.org>
59538
59539         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59540         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59541         Instead of multiplying with 10^k, set extra_zeroes to k.
59542         (scale10_round_long_double): Remove function.
59543
59544 2007-05-18  Bruno Haible  <bruno@clisp.org>
59545
59546         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59547         introduced on 2007-05-06.
59548
59549 2007-05-18  Bruno Haible  <bruno@clisp.org>
59550
59551         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59552         %g directives.
59553         * tests/test-vasprintf-posix.c (test_function): Likewise.
59554         * tests/test-snprintf-posix.h (test_function): Likewise.
59555         * tests/test-sprintf-posix.h (test_function): Likewise.
59556
59557 2007-05-18  Bruno Haible  <bruno@clisp.org>
59558
59559         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59560         (strmatch): New function.
59561         (test_function): Test the %f directive on numbers of various exponents.
59562         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59563         (strmatch): New function.
59564         (test_function): Test the %f directive on numbers of various exponents.
59565         * tests/test-snprintf-posix.h (strmatch): New function.
59566         (test_function): Test the %f directive on numbers of various exponents.
59567         * tests/test-sprintf-posix.h (strmatch): New function.
59568         (test_function): Test the %f directive on numbers of various exponents.
59569         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59570         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59571         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59572         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59573
59574 2007-05-18  Bruno Haible  <bruno@clisp.org>
59575
59576         Add support for 'long double' number output.
59577         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59578         * lib/vasnprintf.c: Include math.h and float+.h.
59579         (mp_limb_t): New type.
59580         (GMP_LIMB_BITS): New macro.
59581         (mp_twolimb_t): New type.
59582         (GMP_TWOLIMB_BITS): New macro.
59583         (mpn_t): New type.
59584         (multiply, divide, convert_to_decimal, decode_long_double,
59585         scale10_round_long_double, scale10_round_decimal_long_double,
59586         floorlog10l): New functions.
59587         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59588         for the %f, %F, %e, %E, %g, %G directives.
59589         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59590         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59591         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59592         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59593         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59594         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59595         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59596         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59597         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59598         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59599         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59600         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59601         * modules/snprintf-posix (Depends-on): Likewise.
59602         * modules/sprintf-posix (Depends-on): Likewise.
59603         * modules/vasnprintf-posix (Depends-on): Likewise.
59604         * modules/vasprintf-posix (Depends-on): Likewise.
59605         * modules/vfprintf-posix (Depends-on): Likewise.
59606         * modules/vsnprintf-posix (Depends-on): Likewise.
59607         * modules/vsprintf-posix (Depends-on): Likewise.
59608         * modules/vasnprintf (Files): Add lib/float+.h.
59609         * doc/functions/fprintf.texi: Update.
59610         * doc/functions/printf.texi: Update.
59611         * doc/functions/snprintf.texi: Update.
59612         * doc/functions/sprintf.texi: Update.
59613         * doc/functions/vfprintf.texi: Update.
59614         * doc/functions/vprintf.texi: Update.
59615         * doc/functions/vsnprintf.texi: Update.
59616         * doc/functions/vsprintf.texi: Update.
59617
59618 2007-05-18  Bruno Haible  <bruno@clisp.org>
59619
59620         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59621
59622 2007-05-18  Bruno Haible  <bruno@clisp.org>
59623
59624         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59625         for printing 64-bit integers. Needed for mingw.
59626
59627 2007-05-18  Bruno Haible  <bruno@clisp.org>
59628
59629         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59630         gl_FUNC_FREXPL_WORKS.
59631         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59632
59633 2007-05-18  Bruno Haible  <bruno@clisp.org>
59634
59635         * modules/frexpl-nolibm-tests: New file.
59636
59637         * modules/frexpl-nolibm: New file.
59638         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59639
59640 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59641
59642         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59643         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59644         GCC 4.2, which otherwise issues a lot of warnings.
59645         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59646         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59647         Likewise.
59648         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59649         * modules/iconv_open (iconv.h): Likewise.
59650         * modules/locale (locale.h): Likewise.
59651         * modules/netinet_in (netinet/in.h): Likewise.
59652         * modules/sys_select (sys_select.h): Likewise.
59653         * modules/sys_socket (sys/socket.h): Likewise.
59654         * modules/sys_stat (sys/stat.h): Likewise.
59655         * modules/sysexits (sysexits.h): Likewise.
59656         * modules/unistd (unistd.h): Likewise.
59657
59658 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59659
59660         * modules/closein-tests (Makefile.am): Distribute
59661         `test-closein.sh'.
59662
59663 2007-05-17  Bruno Haible  <bruno@clisp.org>
59664
59665         * tests/test-printf-posix.output: Renamed from
59666         tests/test-fprintf-posix.out.
59667         * modules/fprintf-posix-tests: Update.
59668         * modules/printf-posix-tests: Update.
59669         * modules/vfprintf-posix-tests: Update.
59670         * modules/vprintf-posix-tests: Update.
59671         * tests/test-fprintf-posix.sh: Update.
59672         * tests/test-printf-posix.sh: Update.
59673         * tests/test-vfprintf-posix.sh: Update.
59674         * tests/test-vprintf-posix.sh: Update.
59675         Reported by Ralf Wildenhues.
59676
59677 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59678
59679         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59680         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59681         GCC 4.2, which otherwise issues a lot of warnings.
59682         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59683         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59684         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59685         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59686         it should no longer be needed.
59687         * lib/string_.h: Likewise.
59688         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59689         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59690         * modules/inttypes (inttypes.h): Likewise.
59691         * modules/math (math.h): Likewise.
59692         * modules/search (search.h): Likewise.
59693         * modules/signal (signal.h): Likewise.
59694         * modules/stdint (stdint.h): Likewise.
59695         * modules/stdio (stdio.h): Likewise.
59696         * modules/stdlib (stdlib.h): Likewise.
59697         * modules/string (string.h): Likewise.
59698         * modules/sys_time (sys/time.h): Likewise.
59699         * modules/time (time.h): Likewise.
59700         * modules/wchar (wchar.h): Likewise.
59701         * modules/wctype (wtype.h): Likewise.
59702
59703 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59704
59705         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59706
59707 2007-05-13  Bruno Haible  <bruno@clisp.org>
59708
59709         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59710         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59711         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59712         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59713         (gl_PREREQ_STRTOK_R): Don't require it here.
59714
59715 2007-05-13  Bruno Haible  <bruno@clisp.org>
59716
59717         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59718         when used in C++ mode.
59719
59720 2007-05-12  Bruno Haible  <bruno@clisp.org>
59721
59722         * lib/linebuffer.h: Tweak doc.
59723         * lib/linebuffer.c: Likewise.
59724
59725 2007-05-12  James Youngman  <jay@gnu.org>
59726
59727         * lib/linebuffer.c (readlinebuffer_delim): New function,
59728         like readlinebuffer, but use a caller-specified delimiter.
59729         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59730         as the delimiter.
59731         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59732
59733 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59734
59735         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59736         * modules/openat (Files): Remove openat-die.c.
59737         (Depends-on): Add openat-die.
59738         * modules/openat-die: New module.
59739
59740 2007-05-06  Bruno Haible  <bruno@clisp.org>
59741
59742         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59743         Update with info about Cygwin.
59744         * doc/functions/fprintf.texi: Update.
59745         * doc/functions/printf.texi: Update.
59746         * doc/functions/snprintf.texi: Update.
59747         * doc/functions/sprintf.texi: Update.
59748         * doc/functions/vfprintf.texi: Update.
59749         * doc/functions/vprintf.texi: Update.
59750         * doc/functions/vsnprintf.texi: Update.
59751         * doc/functions/vsprintf.texi: Update.
59752         Reported by Eric Blake.
59753
59754 2007-05-06  Bruno Haible  <bruno@clisp.org>
59755
59756         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59757         padding ourselves for the floating-point directives.
59758         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59759         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59760         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59761         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59762         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59763         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59764         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59765         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59766         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59767         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59768         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59769         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59770         * tests/test-snprintf-posix.h (test_function): Also check the width
59771         and some flags in the %f directive.
59772         * tests/test-sprintf-posix.h (test_function): Likewise.
59773         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59774         * tests/test-vasprintf-posix.c (test_function): Likewise.
59775         * doc/functions/fprintf.texi: Update.
59776         * doc/functions/printf.texi: Update.
59777         * doc/functions/snprintf.texi: Update.
59778         * doc/functions/sprintf.texi: Update.
59779         * doc/functions/vfprintf.texi: Update.
59780         * doc/functions/vprintf.texi: Update.
59781         * doc/functions/vsnprintf.texi: Update.
59782         * doc/functions/vsprintf.texi: Update.
59783
59784 2007-05-06  Bruno Haible  <bruno@clisp.org>
59785
59786         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59787         pass the ' flag character to sprintf or snprintf.
59788         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59790         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59791         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59792         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59793         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59794         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59795         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59796         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59797         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59798         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59799         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59800         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59801         flag.
59802         * tests/test-sprintf-posix.h (test_function): Likewise.
59803         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59804         * tests/test-vasprintf-posix.c (test_function): Likewise.
59805         * doc/functions/fprintf.texi: Update.
59806         * doc/functions/printf.texi: Update.
59807         * doc/functions/snprintf.texi: Update.
59808         * doc/functions/sprintf.texi: Update.
59809         * doc/functions/vfprintf.texi: Update.
59810         * doc/functions/vprintf.texi: Update.
59811         * doc/functions/vsnprintf.texi: Update.
59812         * doc/functions/vsprintf.texi: Update.
59813
59814 2007-05-01  Bruno Haible  <bruno@clisp.org>
59815
59816         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59817
59818 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59819
59820         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59821         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59822
59823 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59824
59825         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59826         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59827         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59828
59829 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59830
59831         * lib/argp-help.c (struct hol_entry): New member `ord'.
59832         (HOL_ENTRY_PTRCMP): Use ord for comparison
59833         (hol_sort): Initialize ord.
59834
59835 2007-05-01  Bruno Haible  <bruno@clisp.org>
59836
59837         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59838         Reported by Eric Blake.
59839         * doc/gnulib.texi (Function Substitutes): Update.
59840
59841 2007-05-01  Bruno Haible  <bruno@clisp.org>
59842
59843         * doc/functions.texi: Remove file, now redundant through
59844         doc/functions/*.texi.
59845
59846 2007-05-01  Bruno Haible  <bruno@clisp.org>
59847
59848         * modules/argp (Depends-on): Add sleep.
59849
59850 2007-05-01  Bruno Haible  <bruno@clisp.org>
59851
59852         * modules/sleep-tests: New file.
59853         * tests/test-sleep.c: New file.
59854
59855         * modules/sleep: New file.
59856         * lib/sleep.c: New file.
59857         * m4/sleep.m4: New file.
59858         * lib/unistd_.h (sleep): New declaration.
59859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59860         HAVE_SLEEP.
59861         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59862         * doc/functions/sleep.texi: Document the sleep module.
59863
59864 2007-05-01  Bruno Haible  <bruno@clisp.org>
59865
59866         * lib/sigprocmask.h: Remove file.
59867         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59868         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59869         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59870         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59871         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59872         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59873         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59874         HAVE_SIGSET_T as a shell variable.
59875         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59876         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59877         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59878         (Depends-on): Add signal. Remove verify.
59879         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59880         (Include): Mention <signal.h> instead of sigprocmask.h.
59881         * NEWS: Mention the change.
59882         * lib/fatal-signal.c: Don't include sigprocmask.h.
59883
59884 2007-05-01  Bruno Haible  <bruno@clisp.org>
59885
59886         * modules/signal: New file.
59887         * lib/signal_.h: New file.
59888         * m4/signal_h.m4: New file.
59889
59890 2007-05-01  Bruno Haible  <bruno@clisp.org>
59891
59892         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59893         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59894         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59895         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59896
59897 2007-05-01  Bruno Haible  <bruno@clisp.org>
59898
59899         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59900         configure time.
59901         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59902         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59903         * modules/sys_stat (Makefile.am): Substitute their values into
59904         sys/stat.h.
59905
59906 2007-05-01  Bruno Haible  <bruno@clisp.org>
59907
59908         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59909         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59910         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59911
59912 2007-05-01  Bruno Haible  <bruno@clisp.org>
59913
59914         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59915         'assert' module here.
59916
59917 2007-05-01  Bruno Haible  <bruno@clisp.org>
59918
59919         * doc/functions/*.texi: New files.
59920         * doc/functions/google-ranking.txt: New file.
59921         * doc/gnulib.texi (Function Substitutes): New chapter.
59922         (ctime, inet_ntoa): Remove sections.
59923         * doc/ctime.texi: Remove file.
59924         * doc/inet_ntoa.texi: Remove file.
59925         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59926         dependencies.
59927         (%.info): New rule, specifying a --reference-limit.
59928
59929 2007-05-01  Bruno Haible  <bruno@clisp.org>
59930
59931         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59932
59933 2007-05-01  Bruno Haible  <bruno@clisp.org>
59934
59935         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59936         the portability of 'mkdir' to mingw systems.
59937
59938 2007-05-01  Bruno Haible  <bruno@clisp.org>
59939
59940         * doc/headers/google-ranking.txt: New file.
59941
59942 2007-04-30  Eric Blake  <ebb9@byu.net>
59943
59944         Prefer fseeko to fseek.
59945         * modules/getpass (Depends-on): Add fseeko.
59946         * lib/getpass.c (getpass): Use fseeko, not fseek.
59947
59948 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59949
59950         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59951         assumes the sorting is stable, while most qsort implementations
59952         are not.  Use argument addresses to ensure they never compare as
59953         equal.
59954
59955         * tests/test-argp-2.sh (usage-indent test): Fix output
59956         (func_compare): Restore diff options
59957         * tests/test-argp.c: Restore #include "progname.h"
59958
59959 2007-04-29  Bruno Haible  <bruno@clisp.org>
59960
59961         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59962         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59963         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59964         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59965         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59966         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59967         (TESTS, check_PROGRAMS): Add test-snprintf.
59968         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59969         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59970         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59971         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59972         assertions that fail on HP-UX, OSF/1, or IRIX.
59973         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59974
59975 2007-04-29  Bruno Haible  <bruno@clisp.org>
59976
59977         * MODULES.html.sh (posix_functions): Remove 'contents'.
59978
59979 2007-04-29  Karl Berry  <karl@gnu.org>
59980
59981         * config/srclist.txt (gendocs_template_min): new entry.
59982
59983 2007-04-29  Bruno Haible  <bruno@clisp.org>
59984
59985         Work around fpurge bug on BSD systems.
59986         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59987         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59988         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59989         fpurge to rpl_fpurge if the system already has this function.
59990         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59991         the case where the system already has this function. Correct invariants
59992         on BSD systems.
59993         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59994         BSD systems.
59995
59996 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59997
59998         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59999         proposed by Sven Verdoolaege.
60000
60001         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60002         options.
60003         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60004         (usage and help tests): Update
60005
60006 2007-04-29  Bruno Haible  <bruno@clisp.org>
60007
60008         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60009         Print more information in case of failure. Disable a test on BeOS.
60010
60011 2007-04-29  Bruno Haible  <bruno@clisp.org>
60012
60013         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60014         This helps debugging on systems on which no gdb is available.
60015
60016 2007-04-29  Bruno Haible  <bruno@clisp.org>
60017
60018         * lib/freading.h: Improve comments.
60019         * lib/fwriting.h: Likewise.
60020         * tests/test-freading.c (main): Don't check freading immediately after
60021         repositioning. Needed for glibc.
60022
60023 2007-04-29  Bruno Haible  <bruno@clisp.org>
60024
60025         * lib/freading.c (freading): Trivial simplification.
60026
60027 2007-04-28  Bruno Haible  <bruno@clisp.org>
60028
60029         * tests/test-fwriting.c (main): Also test the interaction between
60030         fflush and fwriting.
60031         * modules/fwriting-tests (Depends-on): Add fflush.
60032
60033         * tests/test-freading.c (main): Also test the interaction between
60034         fflush and freading.
60035         * modules/freading-tests (Depends-on): Add fflush.
60036
60037 2007-04-28  Bruno Haible  <bruno@clisp.org>
60038
60039         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60040         fseeko and ftello.
60041         Suggested by Eric Blake.
60042
60043 2007-04-28  Jim Meyering  <jim@meyering.net>
60044
60045         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60046         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60047         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60048
60049 2007-04-27  Eric Blake  <ebb9@byu.net>
60050
60051         * doc/headers/assert.texi (assert.h): Document assert module use.
60052
60053 2007-04-27  Bruno Haible  <bruno@clisp.org>
60054
60055         * doc/headers/*.texi: New files.
60056         * doc/gnulib.texi (Header File Substitutes): New chapter.
60057         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60058         dependencies.
60059         (standards.info ,standards.html, standards.dvi): Update dependencies.
60060         (mostlyclean, clean): New targets.
60061
60062 2007-04-27  Bruno Haible  <bruno@clisp.org>
60063
60064         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60065         * modules/sysexits (Files, Makefile.am): Update.
60066
60067         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60068         * modules/sys_socket (Files, Makefile.am): Update.
60069
60070         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60071         * modules/sys_stat (Files, Makefile.am): Update.
60072
60073 2007-04-27  Eric Blake  <ebb9@byu.net>
60074
60075         * lib/freading.h: Improve comments.
60076         * lib/fwriting.h: Likewise.
60077         * lib/fflush.c: Likewise.
60078
60079         Fix closein for mingw.
60080         * modules/closein-tests: Add tests for closein.
60081         * tests/test-closein.c: New file.
60082         * tests/test-closein.sh: Likewise.
60083         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60084         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60085
60086 2007-04-27  Bruno Haible  <bruno@clisp.org>
60087
60088         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60089         version is < 6.
60090         * lib/math_.h [__DECC]: Likewise.
60091         * lib/stdio_.h [__DECC]: Likewise.
60092         * lib/stdlib_.h [__DECC]: Likewise.
60093         * lib/string_.h [__DECC]: Likewise.
60094         * lib/time_.h [__DECC]: Likewise.
60095         * lib/wchar_.h [__DECC]: Likewise.
60096         * lib/wctype_.h [__DECC]: Likewise.
60097
60098 2007-04-27  Bruno Haible  <bruno@clisp.org>
60099
60100         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60101
60102 2007-04-27  Bruno Haible  <bruno@clisp.org>
60103
60104         * lib/fflush.c: Add comments.
60105         * modules/fpurge-tests (Depends-on): Add fflush.
60106         * modules/freadable-tests (Depends-on): Likewise.
60107         * modules/fwritable-tests (Depends-on): Likewise.
60108
60109 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60110
60111         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60112         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60113         Report by Bruno Haible <bruno@clisp.org>.
60114
60115 2007-04-26  Eric Blake  <ebb9@byu.net>
60116
60117         Fix fflush on mingw.
60118         * modules/fflush (Depends-on): Add freading.
60119         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60120         but unread data.
60121
60122 2007-04-26  Eric Blake  <ebb9@byu.net>
60123         and Bruno Haible  <bruno@clisp.org>
60124
60125         Implement freading and fwriting.
60126         * lib/freading.c: New file.
60127         * lib/freading.h: Likewise.
60128         * m4/freading.m4: Likewise.
60129         * modules/freading: Likewise.
60130         * modules/freading-tests: Likewise.
60131         * tests/test-freading.c: Likewise.
60132         * lib/fwriting.c: New file.
60133         * lib/fwriting.h: Likewise.
60134         * m4/fwriting.m4: Likewise.
60135         * modules/fwriting: Likewise.
60136         * modules/fwriting-tests: Likewise.
60137         * tests/test-fwriting.c: Likewise.
60138         * MODULES.html.sh (File stream based Input/Output): Mention them.
60139
60140 2007-04-26  Bruno Haible  <bruno@clisp.org>
60141
60142         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60143         'long' when we assume it.
60144         Suggested by Eric Blake.
60145
60146 2007-04-26  Bruno Haible  <bruno@clisp.org>
60147
60148         Ensure fseeko, ftello are declared on glibc systems.
60149         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60150         * modules/fseeko (configure.ac-early): Likewise.
60151         * modules/ftello (configure.ac-early): Likewise.
60152         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60153         AC_FUNC_FSEEKO for this.
60154         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60155         (gl_CHECK_FSEEKO): Remove macro.
60156
60157 2007-04-26  Bruno Haible  <bruno@clisp.org>
60158
60159         * tests/test-fflush.c (main): Also check the ftell result after
60160         fflush and fseek/fseeko.
60161         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60162         file descriptor position cache in the stream.
60163         * lib/fseeko.c (rpl_fseeko): Likewise.
60164
60165 2007-04-26  Bruno Haible  <bruno@clisp.org>
60166
60167         * modules/fflush-tests (Depends-on): Add fseeko.
60168
60169 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60170             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60171
60172         * lib/argz_.h: ensure error_t definition is obtained in same
60173         mechanism system argz.h would have.
60174         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60175         argz facilities are known bad.  Err on the side of caution if
60176         cross-compiling.
60177
60178 2007-04-25  Eric Blake  <ebb9@byu.net>
60179
60180         * lib/fpurge.c (includes): Use stdlib.h for free.
60181         * tests/test-fflush.c (main): Also test fflush-fseeko.
60182
60183 2007-04-25  Bruno Haible  <bruno@clisp.org>
60184
60185         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60186         * lib/fseeko.c: New file.
60187         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60188         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60189         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60190         gl_FUNC_FSEEKO.
60191         (gl_FUNC_FSEEKO): Invoke it.
60192         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60193         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60194         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60195
60196 2007-04-25  Bruno Haible  <bruno@clisp.org>
60197
60198         * modules/fflush (Depends-on): Add ftello.
60199
60200 2007-04-25  Bruno Haible  <bruno@clisp.org>
60201
60202         * modules/ftello-tests: New file.
60203         * tests/test-ftello.c: New file.
60204
60205         * modules/ftello: New file.
60206         * m4/ftello.m4: New file.
60207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60208         HAVE_FTELLO.
60209         * lib/stdio_.h (ftello): New declaration.
60210         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60211         HAVE_FTELLO.
60212
60213 2007-04-25  Bruno Haible  <bruno@clisp.org>
60214
60215         * modules/fseeko-tests: New file.
60216         * tests/test-fseeko.c: New file.
60217
60218         * modules/fseeko: New file.
60219         * m4/fseeko.m4: New file.
60220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60221         HAVE_FSEEKO.
60222         * lib/stdio_.h (fseeko): New declaration.
60223         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60224         HAVE_FSEEKO.
60225
60226 2007-04-25  Bruno Haible  <bruno@clisp.org>
60227
60228         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60229
60230 2007-04-25  Bruno Haible  <bruno@clisp.org>
60231
60232         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60233         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60234         * tests/test-unistd.c: Likewise.
60235         * tests/test-fcntl.c: Likewise.
60236
60237 2007-04-23  Eric Blake  <ebb9@byu.net>
60238
60239         * lib/fflush.c: Fix missing include.
60240         Reported by Bruno Haible.
60241
60242 2007-04-23  Bruno Haible  <bruno@clisp.org>
60243
60244         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60245         Reported by Eric Blake.
60246
60247 2007-04-23  Bruno Haible  <bruno@clisp.org>
60248
60249         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60250
60251 2007-04-23  Bruno Haible  <bruno@clisp.org>
60252
60253         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60254
60255 2007-04-23  Bruno Haible  <bruno@clisp.org>
60256
60257         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60258         Needed on HP-UX 11.
60259
60260 2007-04-16  Eric Blake  <ebb9@byu.net>
60261
60262         Make fflush rely on fpurge.
60263         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60264         open coding all variants.
60265         * modules/fflush (Depends-on): Add fpurge and unistd.
60266         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60267         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60268
60269         Fix --with-tests compilation on cygwin.
60270         * modules/argmatch-tests (Makefile.am): List gnulib library first
60271         in LDADD.
60272         * modules/argp-tests (Makefile.am): Likewise.
60273         * modules/array-list-tests (Makefile.am): Likewise.
60274         * modules/array-oset-tests (Makefile.am): Likewise.
60275         * modules/avltree-list-tests (Makefile.am): Likewise.
60276         * modules/avltree-oset-tests (Makefile.am): Likewise.
60277         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60278         * modules/carray-list-tests (Makefile.am): Likewise.
60279         * modules/dirname-tests (Makefile.am): Likewise.
60280         * modules/frexp-tests (Makefile.am): Likewise.
60281         * modules/isnanl-tests (Makefile.am): Likewise.
60282         * modules/linked-list-tests (Makefile.am): Likewise.
60283         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60284         * modules/lock-tests (Makefile.am): Likewise.
60285         * modules/rbtree-list-tests (Makefile.am): Likewise.
60286         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60287         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60288         * modules/tls-tests (Makefile.am): Likewise.
60289         * modules/tsearch-tests (Makefile.am): Likewise.
60290         * modules/xvasprintf-tests (Makefile.am): Likewise.
60291
60292         Fix fpurge for cygwin.
60293         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60294         value.
60295         * modules/fpurge-tests (Depends-on): Clean up trash.
60296
60297 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60298
60299         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60300
60301         * m4/autobuild.m4: Re-indent.
60302
60303 2007-04-13  Bruno Haible  <bruno@clisp.org>
60304
60305         * modules/fpurge-tests: New file.
60306         * tests/test-fpurge.c: New file.
60307
60308         * modules/fpurge: New file.
60309         * lib/fpurge.h: New file.
60310         * lib/fpurge.c: New file.
60311         * m4/fpurge.m4: New file.
60312
60313 2007-04-13  Bruno Haible  <bruno@clisp.org>
60314
60315         * modules/fbufmode-tests: New file.
60316         * tests/test-fbufmode.c: New file.
60317
60318         * modules/fbufmode: New file.
60319         * lib/fbufmode.h: New file.
60320         * lib/fbufmode.c: New file.
60321         * m4/fbufmode.m4: New file.
60322
60323 2007-04-13  Bruno Haible  <bruno@clisp.org>
60324
60325         * modules/fwritable-tests: New file.
60326         * tests/test-fwritable.c: New file.
60327
60328         * modules/fwritable: New file.
60329         * lib/fwritable.h: New file.
60330         * lib/fwritable.c: New file.
60331         * m4/fwritable.m4: New file.
60332
60333 2007-04-13  Bruno Haible  <bruno@clisp.org>
60334
60335         * modules/freadable-tests: New file.
60336         * tests/test-freadable.c: New file.
60337
60338         * modules/freadable: New file.
60339         * lib/freadable.h: New file.
60340         * lib/freadable.c: New file.
60341         * m4/freadable.m4: New file.
60342
60343 2007-04-13  Bruno Haible  <bruno@clisp.org>
60344
60345         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60346         MOSTLYCLEANFILES.
60347
60348 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60349
60350         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60351         gzip bootstrap.conf to avoid dragging in i18n machinery.
60352         (gnulib_tool_option): Use it.
60353
60354 2007-04-13  Bruno Haible  <bruno@clisp.org>
60355
60356         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60357         %F directives.
60358         * tests/test-vasprintf-posix.c (test_function): Likewise.
60359         * tests/test-snprintf-posix.h (test_function): Likewise.
60360         * tests/test-sprintf-posix.h (test_function): Likewise.
60361         * tests/test-fprintf-posix.h (test_function): Likewise.
60362         * tests/test-printf-posix.h (test_function): Likewise.
60363         * tests/test-fprintf-posix.out: Likewise.
60364
60365 2007-04-13  Bruno Haible  <bruno@clisp.org>
60366
60367         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60368         * modules/tls-tests (configure.ac): Likewise.
60369         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60370
60371 2007-04-13  Bruno Haible  <bruno@clisp.org>
60372
60373         * lib/tls.c (glthread_tls_get): Fix return type.
60374         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60375
60376 2007-04-12  Eric Blake  <ebb9@byu.net>
60377
60378         * modules/gettime (Depends-on): Remove gettime.
60379         Reported by Dmitry V. Levin.
60380
60381 2007-04-12  Bruno Haible  <bruno@clisp.org>
60382
60383         * modules/fflush (Include): Mention <stdio.h>.
60384         * modules/strtoimax (Include): Mention <inttypes.h>.
60385         * modules/strtoumax (Include): Likewise.
60386
60387 2007-04-12  Eric Blake  <ebb9@byu.net>
60388
60389         * .cvsignore: New file.
60390         * .gitignore: Likewise.
60391
60392 2007-04-12  Bruno Haible  <bruno@clisp.org>
60393
60394         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60395         not before, since $(LDADD) often contains libgnu.a.
60396         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60397         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60398         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60399         Needed on Cygwin.
60400
60401 2007-04-12  Eric Blake  <ebb9@byu.net>
60402
60403         Work around glibc's failure to flush stdin on fclose.
60404         * lib/closein.c (close_stdin): Flush stdin before closing.
60405
60406         Work around glibc's failure to reset seekable stdin on exit.
60407         * modules/closein: New module.
60408         * lib/closein.c: New file.
60409         * lib/closein.h: Likewise.
60410         * m4/closein.m4: Likewise.
60411         * MODULES.html.sh (File stream based Input/Output): Document it.
60412
60413 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60414
60415         * gnulib-tool: Rename generated 'autobuild' script to
60416         'do-autobuild' in --create-megatestdir output.
60417
60418         * doc/gnulib.texi (Build robot for gnulib): Fix.
60419
60420 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60421
60422         * modules/sysexits (Depends-on): Add absolute-header.
60423
60424 2007-04-12  Eric Blake  <ebb9@byu.net>
60425
60426         No need to preserve errno on success.
60427         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60428         Reported by Bruno Haible.
60429
60430 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60431
60432         * MODULES.html.sh (Support for maintaining and releasing
60433         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60434
60435 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60436
60437         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60438
60439 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60440
60441         * modules/autobuild: New module.
60442
60443         * m4/autobuild.m4: New file.
60444
60445 2007-04-11  Bruno Haible  <bruno@clisp.org>
60446
60447         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60448         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60449         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60450         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60451         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60452         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60453         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60454         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60455         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60456         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60457         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60458         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60459         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60460         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60461         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60462         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60463         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60464         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60465         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60466         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60467         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60468         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60469         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60470         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60471         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60472         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60473         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60474         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60475         Reported by Eric Blake.
60476
60477 2007-04-11  Bruno Haible  <bruno@clisp.org>
60478
60479         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60480
60481 2007-04-10  Bruno Haible  <bruno@clisp.org>
60482
60483         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60484         for NaN and Infinity. Needed on FreeBSD 6.1.
60485         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60486         regarding results for "%010a" of Infinity and NaN.
60487         * tests/test-vasprintf-posix.c (test_function): Likewise.
60488         * tests/test-snprintf-posix.h (test_function): Likewise.
60489         * tests/test-sprintf-posix.h (test_function): Likewise.
60490         * tests/test-fprintf-posix.h (test_function): Likewise.
60491         * tests/test-printf-posix.h (test_function): Likewise.
60492         * tests/test-fprintf-posix.out: Likewise.
60493
60494 2007-04-10  Bruno Haible  <bruno@clisp.org>
60495
60496         * modules/locale-tests: New file.
60497         * tests/test-locale.c: New file.
60498
60499         * modules/locale: New file.
60500         * lib/locale_.h: New file.
60501         * m4/locale_h.m4: New file.
60502
60503 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60504             Bruno Haible  <bruno@clisp.org>
60505
60506         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60507         be determined, test for availability of the copysignf, copysign,
60508         copysignl functions.
60509         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60510         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60511         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60512
60513 2007-04-09  Eric Blake  <ebb9@byu.net>
60514
60515         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60516         * modules/stdio (Makefile.am): Support fflush.
60517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60518         * modules/fflush: New file.
60519         * lib/fflush.c: Likewise.
60520         * m4/fflush.m4: Likewise.
60521         * modules/fflush-tests: New test.
60522         * tests/test-fflush.c: Likewise.
60523         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60524
60525 2007-04-06  Bruno Haible  <bruno@clisp.org>
60526
60527         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60528         (VASNPRINTF): Use signbit for faster determination whether to print a
60529         minus sign.
60530         * modules/vasnprintf (Files): Remove lib/float+.h.
60531         * modules/fprintf-posix (Depends-on): Add signbit.
60532         * modules/snprintf-posix (Depends-on): Likewise.
60533         * modules/sprintf-posix (Depends-on): Likewise.
60534         * modules/vasnprintf-posix (Depends-on): Likewise.
60535         * modules/vasprintf-posix (Depends-on): Likewise.
60536         * modules/vfprintf-posix (Depends-on): Likewise.
60537         * modules/vsnprintf-posix (Depends-on): Likewise.
60538         * modules/vsprintf-posix (Depends-on): Likewise.
60539
60540 2007-04-06  Bruno Haible  <bruno@clisp.org>
60541
60542         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60543         * tests/test-frexpl.c (main): Likewise.
60544         * tests/test-ldexpl.c (main): Likewise.
60545         * modules/frexp-tests (Depends-on): Add signbit.
60546         * modules/frexpl-tests (Depdends-on): Likewise.
60547         * modules/ldexpl-tests (Depdends-on): Likewise.
60548
60549 2007-04-06  Bruno Haible  <bruno@clisp.org>
60550
60551         * modules/signbit-tests: New file.
60552         * tests/test-signbit.c: New file.
60553
60554         * modules/signbit: New file.
60555         * lib/signbitf.c: New file.
60556         * lib/signbitd.c: New file.
60557         * lib/signbitl.c: New file.
60558         * m4/signbit.m4: New file.
60559         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60560         (signbit): New macro.
60561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60562         REPLACE_SIGNBIT.
60563         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60564         REPLACE_FREXPL into math.h.
60565
60566 2007-04-06  Bruno Haible  <bruno@clisp.org>
60567
60568         * modules/isnanf-nolibm-tests: New file.
60569         * tests/test-isnanf.c: New file.
60570
60571         * modules/isnanf-nolibm: New file.
60572         * lib/isnanf.h: New file.
60573         * lib/isnanf.c: New file.
60574         * lib/isnan.c: Consider the USE_FLOAT macro.
60575         * m4/isnanf.m4: New file.
60576
60577 2007-04-06  Bruno Haible  <bruno@clisp.org>
60578
60579         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60580         (Link): New section.
60581
60582         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60583
60584 2007-04-06  Bruno Haible  <bruno@clisp.org>
60585
60586         Assume the 'long double' type.
60587         * m4/longdouble.m4: Remove file.
60588         * config/srclist.txt: Don't mention longdouble.m4.
60589         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60590         * lib/float+.h: Likewise.
60591         * lib/frexp.c: Likewise.
60592         * lib/printf-args.h: Likewise.
60593         * lib/printf-args.c: Likewise.
60594         * lib/printf-frexp.c: Likewise.
60595         * lib/printf-parse.c: Likewise.
60596         * lib/vasnprintf.c: Likewise.
60597         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60598         * m4/intl.m4: Likewise.
60599         * m4/isnanl.m4: Likewise.
60600         * m4/printf.m4: Likewise.
60601         * m4/printf-frexpl.m4: Likewise.
60602         * m4/vasnprintf.m4: Likewise.
60603         * modules/allocsa (Files): Remove m4/longdouble.m4.
60604         * modules/gettext (Files): Likewise.
60605         * modules/relocatable-prog-wrapper (Files): Likewise.
60606         * modules/vasnprintf (Files): Likewise.
60607         * modules/isnanl (Files): Likewise.
60608         (Include): Simplify.
60609         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60610         (Include): Simplify.
60611         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60612         (Include): Simplify.
60613         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60614         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60615         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60616         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60617         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60618         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60619         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60620         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60621         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60622         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60623         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60624         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60625         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60626         * tests/test-isnanl.c: Likewise.
60627         * tests/test-snprintf-posix.h: Likewise.
60628         * tests/test-sprintf-posix.h: Likewise.
60629         * tests/test-vasnprintf-posix.c: Likewise.
60630         * tests/test-vasnprintf-posix2.c: Likewise.
60631         * tests/test-vasprintf-posix.c: Likewise.
60632
60633 2007-04-06  Bruno Haible  <bruno@clisp.org>
60634
60635         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60636         * lib/math_.h [__DECC]: Include the overridden include file through
60637         #include_next, outside the double-inclusion guard.
60638         * lib/stdio_.h [__DECC]: Likewise.
60639         * lib/stdlib_.h [__DECC]: Likewise.
60640         * lib/string_.h [__DECC]: Likewise.
60641         * lib/time_.h [__DECC]: Likewise.
60642         * lib/wchar_.h [__DECC]: Likewise.
60643         * lib/wctype_.h [__DECC]: Likewise.
60644         * lib/inttypes_.h [__DECC]: Likewise.
60645         Reported by Albert Chin <china@thewrittenword.com> in
60646         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60647
60648 2007-04-04  Eric Blake  <ebb9@byu.net>
60649
60650         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60651         1.5.x.
60652
60653 2007-04-04  Bruno Haible  <bruno@clisp.org>
60654
60655         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60656         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60657
60658 2007-04-04  Bruno Haible  <bruno@clisp.org>
60659
60660         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60661         results for "%010a" of Infinity and NaN.
60662         * tests/test-vasprintf-posix.c (test_function): Likewise.
60663         * tests/test-snprintf-posix.h (test_function): Likewise.
60664         * tests/test-sprintf-posix.h (test_function): Likewise.
60665         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60666         * tests/test-printf-posix.h (test_function): Likewise.
60667         * tests/test-fprintf-posix.out: Update.
60668         Needed for FreeBSD 6.1.
60669
60670 2007-04-04  Bruno Haible  <bruno@clisp.org>
60671
60672         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60673         directly used by the gnulib modules nor by gnulib-tool.
60674
60675 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60676
60677         * DEPENDENCIES: Give overall description of version dependency
60678         desirability.  Use more-typical names for apps.
60679         Add shell, coreutils, diffutils, grep, tar, gzip.
60680
60681 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60682
60683         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60684
60685 2007-04-04  Karl Berry  <karl@gnu.org>
60686
60687         * MODULES.html.sh (func_module): missing '.
60688
60689 2007-04-03  Bruno Haible  <bruno@clisp.org>
60690
60691         * modules/argmatch-tests (Makefile.am): New variable
60692         test_argmatch_LDADD.
60693         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60694         * modules/array-list-tests (Makefile.am): New variable
60695         test_array_list_LDADD.
60696         * modules/array-oset-tests (Makefile.am): New variable
60697         test_array_oset_LDADD.
60698         * modules/avltree-list-tests (Makefile.am): New variable
60699         test_avltree_list_LDADD.
60700         * modules/avltree-oset-tests (Makefile.am): New variable
60701         test_avltree_oset_LDADD.
60702         * modules/avltreehash-list-tests (Makefile.am): New variable
60703         test_avltreehash_list_LDADD.
60704         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60705         test_canonicalize_lgpl_LDADD.
60706         * modules/carray-list-tests (Makefile.am): New variable
60707         test_carray_list_LDADD.
60708         * modules/dirname-tests (Makefile.am): New variable
60709         test_dirname_LDADD.
60710         * modules/linked-list-tests (Makefile.am): New variable
60711         test_linked_list_LDADD.
60712         * modules/linkedhash-list-tests (Makefile.am): New variable
60713         test_linkedhash_list_LDADD.
60714         * modules/rbtree-list-tests (Makefile.am): New variable
60715         test_rbtree_list_LDADD.
60716         * modules/rbtree-oset-tests (Makefile.am): New variable
60717         test_rbtree_oset_LDADD.
60718         * modules/rbtreehash-list-tests (Makefile.am): New variable
60719         test_rbtreehash_list_LDADD.
60720         * modules/xvasprintf-tests (Makefile.am): New variable
60721         test_xvasprintf_LDADD.
60722         Reported by Eric Blake.
60723
60724 2007-04-03  Eric Blake  <ebb9@byu.net>
60725
60726         * DEPENDENCIES: Weaken m4 requirements.
60727
60728 2007-04-03  Bruno Haible  <bruno@clisp.org>
60729
60730         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60731         * modules/isnanl-tests (configure.ac): Likewise.
60732
60733 2007-04-03  Ben Pfaff  <blp@gnu.org>
60734
60735         * modules/iconv_open: Add $(srcdir)/ to source directory
60736         references in Makefile fragments that call gperf, to fix VPATH
60737         builds.
60738
60739 2007-04-03  Bruno Haible  <bruno@clisp.org>
60740
60741         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60742         * lib/ldexpl.c: Undo last change.
60743
60744 2007-04-03  Bruno Haible  <bruno@clisp.org>
60745
60746         * modules/printf-frexpl (Depends-on): Undo last change.
60747         (Files): Add m4/ldexpl.m4.
60748
60749 2007-04-03  Bruno Haible  <bruno@clisp.org>
60750
60751         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60752         * modules/isnanl (Link): New section.
60753
60754         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60755         * modules/frexp (Link): New section.
60756
60757         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60758         * modules/frexpl (Link): New section.
60759
60760         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60761         * modules/ldexpl (Link): New section.
60762
60763 2007-04-03  Bruno Haible  <bruno@clisp.org>
60764
60765         * modules/TEMPLATE-EXTENDED: New file.
60766         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60767
60768 2007-04-03  Bruno Haible  <bruno@clisp.org>
60769
60770         * DEPENDENCIES: New file.
60771         Suggested by Simon Josefsson.
60772
60773 2007-04-03  Bruno Haible  <bruno@clisp.org>
60774
60775         * doc/gnulib.texi: Escape @.
60776
60777 2007-04-03  James Youngman  <jay@gnu.org>
60778         and Paul Eggert  <eggert@cs.ucla.edu>
60779
60780         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60781         birthtime on all systems that have birthtime, not just those which
60782         use st_birthtimensec rather than st_birthtim.  Putting zero in
60783         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60784         that the birth time is not available for files on an NFS mount.
60785
60786 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60787
60788         * modules/memxor: Move back from crypto/, suggested by Bruno.
60789         * modules/crypto/hmac-sha1: Fix memxor dependency.
60790
60791         * modules/crypto/gc: Moved from ../.
60792
60793 2007-04-02  Eric Blake  <ebb9@byu.net>
60794
60795         * lib/ldexpl.c (includes): Avoid libm.
60796
60797         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60798
60799 2007-04-02  Bruno Haible  <bruno@clisp.org>
60800
60801         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60802         on IRIX.
60803
60804 2007-04-02  Bruno Haible  <bruno@clisp.org>
60805
60806         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60807         x86 or x86_64 platforms running MacOS X.
60808         Reported by Ryan Schmidt <@ryandesign.com>.
60809
60810 2007-04-02  Bruno Haible  <bruno@clisp.org>
60811
60812         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60813         i386.
60814
60815 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60816
60817         * modules/crypto/arcfour: Moved from ../.
60818         * modules/crypto/arcfour-tests: Moved from ../.
60819         * modules/crypto/arctwo: Moved from ../.
60820         * modules/crypto/arctwo-tests: Moved from ../.
60821         * modules/crypto/des: Moved from ../.
60822         * modules/crypto/des-tests: Moved from ../.
60823         * modules/crypto/gc-arcfour: Moved from ../.
60824         * modules/crypto/gc-arcfour-tests: Moved from ../.
60825         * modules/crypto/gc-arctwo: Moved from ../.
60826         * modules/crypto/gc-arctwo-tests: Moved from ../.
60827         * modules/crypto/gc-des: Moved from ../.
60828         * modules/crypto/gc-des-tests: Moved from ../.
60829         * modules/crypto/gc-hmac-md5: Moved from ../.
60830         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60831         * modules/crypto/gc-hmac-sha1: Moved from ../.
60832         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60833         * modules/crypto/gc-md2: Moved from ../.
60834         * modules/crypto/gc-md2-tests: Moved from ../.
60835         * modules/crypto/gc-md4: Moved from ../.
60836         * modules/crypto/gc-md4-tests: Moved from ../.
60837         * modules/crypto/gc-md5: Moved from ../.
60838         * modules/crypto/gc-md5-tests: Moved from ../.
60839         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60840         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60841         * modules/crypto/gc-random: Moved from ../.
60842         * modules/crypto/gc-rijndael: Moved from ../.
60843         * modules/crypto/gc-rijndael-tests: Moved from ../.
60844         * modules/crypto/gc-sha1: Moved from ../.
60845         * modules/crypto/gc-sha1-tests: Moved from ../.
60846         * modules/crypto/gc-tests: Moved from ../.
60847         * modules/crypto/hmac-md5: Moved from ../.
60848         * modules/crypto/hmac-md5-tests: Moved from ../.
60849         * modules/crypto/hmac-sha1: Moved from ../.
60850         * modules/crypto/hmac-sha1-tests: Moved from ../.
60851         * modules/crypto/md2: Moved from ../.
60852         * modules/crypto/md2-tests: Moved from ../.
60853         * modules/crypto/md4: Moved from ../.
60854         * modules/crypto/md4-tests: Moved from ../.
60855         * modules/crypto/md5: Moved from ../.
60856         * modules/crypto/md5-tests: Moved from ../.
60857         * modules/crypto/memxor: Moved from ../.
60858         * modules/crypto/rijndael: Moved from ../.
60859         * modules/crypto/rijndael-tests: Moved from ../.
60860         * modules/crypto/sha1: Moved from ../.
60861
60862 2007-03-30  James Youngman  <jay@gnu.org>
60863
60864         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60865         rename() to change the ctime of a file (because ctime is unaffected
60866         by rename on jfs2 on AIX 5.1).
60867         (main): Start by doing cleanup, in case a previous run failed leaving
60868         test files behind.
60869
60870 2007-03-31  Bruno Haible  <bruno@clisp.org>
60871
60872         Support old proprietary implementations of iconv.
60873         * modules/iconv_open: New file.
60874         * lib/iconv_.h: New file.
60875         * m4/iconv_h.m4: New file.
60876         * lib/iconv_open.c: New file.
60877         * lib/iconv_open-aix.gperf: New file.
60878         * lib/iconv_open-hpux.gperf: New file.
60879         * lib/iconv_open-irix.gperf: New file.
60880         * lib/iconv_open-osf.gperf: New file.
60881         * m4/iconv_open.m4: New file.
60882         * modules/linebreak (Depends-on): Add iconv_open.
60883         * modules/striconv (Depends-on): Likewise.
60884         * modules/striconveh (Depends-on): Likewise.
60885         * modules/unicodeio (Depends-on): Likewise.
60886         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60887         (iconv_t)(-1).
60888         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60889         conversion if cd is (iconv_t)(-1).
60890         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60891         is not possible.
60892
60893 2007-03-31  Bruno Haible  <bruno@clisp.org>
60894
60895         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60896         work on Solaris either. Protect also second use of "autodetect_jp".
60897
60898 2007-03-31  Bruno Haible  <bruno@clisp.org>
60899
60900         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60901         the function is not present.
60902
60903 2007-03-31  Bruno Haible  <bruno@clisp.org>
60904
60905         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60906         the function is not present.
60907
60908 2007-03-31  Bruno Haible  <bruno@clisp.org>
60909
60910         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60911         a bug in HP-UX iconv_open().
60912
60913 2007-03-31  Bruno Haible  <bruno@clisp.org>
60914
60915         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60916         (Mathematics <math.h>): New section, add fpieee.
60917         (Input/output <stdio.h>): Add fseterr.
60918         (Mathematics <math.h>): New section, add printf-frexp.
60919         (Container data structures): Add sublist.
60920         (Core language properties): Add fpucw, inline.
60921         (Functions for greatest-width integer types <inttypes.h>): Add
60922         imaxabs, imaxdiv, inttypes.
60923         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60924         isnanl-nolibm, ldexp.
60925         (Mathematics <math.h>): New section, add printf-frexpl.
60926         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60927         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60928         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60929         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60930         (Unicode string functions): Add unistr/u*-mbtoucr.
60931         (Java): Add javacomp-script, javaexec-script.
60932         (C#): Add csharpcomp-script, csharpexec-script.
60933         (Support for building libraries and executables): Add havelib,
60934         relocatable-*.
60935         (Support for maintaining and releasing projects): Renamed from
60936         'Support for maintaining and release projects'. Add announce-gen.
60937
60938 2007-03-31  Bruno Haible  <bruno@clisp.org>
60939
60940         * README: Talk primarily about git.
60941         (git and CVS): Renamed from CVS.
60942         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60943         gnulib is available through git.
60944         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60945
60946 2007-03-30  Bruno Haible  <bruno@clisp.org>
60947
60948         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60949         * lib/poll_.h: Likewise.
60950         * lib/stat_.h: Likewise.
60951         * lib/sys_time_.h: Likewise.
60952         * lib/sysexit_.h: Likewise.
60953         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60954         * lib/stdbool_.h: Likewise.
60955         * lib/byteswap_.h: Add double-inclusion guard.
60956
60957 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60958
60959         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60960
60961 2007-03-30  Karl Berry  <karl@gnu.org>
60962
60963         * config/srclist-update: double space after USA in the license
60964         substitution, since that's how it's usually (?) written.
60965
60966 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60967
60968         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60969         reported by Bruno Haible.
60970
60971 2007-03-29  Bruno Haible  <bruno@clisp.org>
60972
60973         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60974         a bug in AIX iconv().
60975
60976 2007-03-29  Bruno Haible  <bruno@clisp.org>
60977
60978         * modules/ldexpl-tests: New file.
60979         * tests/test-ldexpl.c: New file.
60980
60981 2007-03-29  Bruno Haible  <bruno@clisp.org>
60982
60983         * lib/ldexpl.c: Include fpucw.h.
60984         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60985         multiplication.
60986         * modules/ldexpl (Depends-on): Add fpucw.
60987
60988 2007-03-29  Bruno Haible  <bruno@clisp.org>
60989
60990         * modules/ldexpl: New file.
60991         * m4/ldexpl.m4: New file.
60992         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60993         set.
60994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60995         REPLACE_LDEXPL.
60996         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60997         REPLACE_LDEXPL.
60998         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60999         gl_FUNC_LDEXPL_WORKS.
61000         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61001         * modules/mathl (Files): Remove lib/ldexpl.c.
61002         (Depends-on): Add ldexpl.
61003
61004 2007-03-29  Bruno Haible  <bruno@clisp.org>
61005
61006         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61007
61008 2007-03-29  Bruno Haible  <bruno@clisp.org>
61009
61010         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61011         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61012         and possibly also HP-UX.
61013         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61014         work on AIX, IRIX, HP-UX, OSF/1.
61015         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61016         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61017         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61018         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61019         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61020         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61021
61022 2007-03-29  Bruno Haible  <bruno@clisp.org>
61023
61024         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61025
61026 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61027
61028         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61029         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61030
61031 2007-03-29  Eric Blake  <ebb9@byu.net>
61032
61033         * lib/acl-internal.h: Remove redundant include.
61034         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61035         Cygwin when a file is locked.
61036
61037 2007-03-29  Bruno Haible  <bruno@clisp.org>
61038
61039         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61040         file.
61041         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61042
61043 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61044
61045         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61046         try to remove a parent directory if the child couldn't be removed
61047         (except for the first rmdir, which could fail because the child
61048         doesn't exist).  Problem reported by Jeff Blaine in
61049         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61050
61051 2007-03-28  Bruno Haible  <bruno@clisp.org>
61052
61053         * lib/striconveh.c (utf8conv_carefully): New function.
61054         (mem_cd_iconveh_internal): Invoke it.
61055
61056 2007-03-28  Bruno Haible  <bruno@clisp.org>
61057
61058         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61059         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61060         input.
61061         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61062         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61063         unistr/u8-uctomb.
61064
61065 2007-03-28  Bruno Haible  <bruno@clisp.org>
61066
61067         * modules/unistr/u8-mbtoucr: New file.
61068         * lib/unistr/u8-mbtoucr.c: New file.
61069         * modules/unistr/u16-mbtoucr: New file.
61070         * lib/unistr/u16-mbtoucr.c: New file.
61071         * modules/unistr/u16-mbtoucr: New file.
61072         * lib/unistr/u16-mbtoucr.c: New file.
61073         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61074
61075 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61076             Bruno Haible  <bruno@clisp.org>
61077
61078         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61079         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61080         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61081
61082         * m4/stdio_h.m4: Add stubs for vasprintf too.
61083
61084         * modules/stdio: Support vasprintf in sed command.
61085
61086         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61087         vasprintf.h.  Add stdio module indicator.
61088
61089         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61090         vasprintf.h.
61091
61092         * lib/vasprintf.h: File removed.
61093
61094         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61095         * lib/vasprintf.c: Ditto.
61096         * lib/xvasprintf.c: Ditto.
61097         * tests/test-vasprintf-posix.c: Ditto.
61098         * tests/test-vasprintf.c: Ditto.
61099
61100 2007-03-27  Bruno Haible  <bruno@clisp.org>
61101
61102         Make vasnprintf multithread-safe.
61103         * lib/vasnprintf.c (decimal_point_char): New function.
61104         (VASNPRINTF): Use it.
61105         Suggested by Simon Josefsson.
61106
61107 2007-03-27  Eric Blake  <ebb9@byu.net>
61108
61109         Support sub-second birthtime on cygwin.
61110         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61111         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61112         (get_stat_birthtime): Also work with st_birthtim.
61113
61114 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61115
61116         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61117         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61118         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61119         (get_stat_birthtime_ns): Simplify compile-time tests.
61120         (get_stat_birthtime): Change the API to look like
61121         get_stat_mtime etc., except return a negative tv_nsec on error.
61122         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61123         Don't check for "spare" fields.
61124         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61125         or for struct stat.st_birthtime, as these tests aren't used.
61126         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61127
61128 2007-03-27  Bruno Haible  <bruno@clisp.org>
61129
61130         * lib/stat-time.h: Include <sys/stat.h>.
61131
61132 2007-03-27  James Youngman  <jay@gnu.org>
61133
61134         * lib/stat-time.h (get_stat_birthtime): New function for
61135           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61136         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61137           and its variants.
61138         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61139         * modules/stat-time-test: New file.
61140         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61141
61142 2007-03-26  Bruno Haible  <bruno@clisp.org>
61143
61144         Better support of signalling NaNs.
61145         * lib/atanl.c: Include isnanl.h.
61146         (atanl): Perform test for NaN at the beginning of the function and
61147         through a call to isnanl.
61148         * lib/cosl.c: Include isnanl.h.
61149         (cosl): Perform test for NaN at the beginning of the function and
61150         through a call to isnanl.
61151         * lib/ldexpl.c: Include isnanl.h.
61152         (ldexpl): Perform test for NaN through a call to isnanl.
61153         * lib/logl.c: Include isnanl.h.
61154         (logl): Perform test for NaN at the beginning of the function and
61155         through a call to isnanl.
61156         * lib/sinl.c: Include isnanl.h.
61157         (sinl): Perform test for NaN at the beginning of the function and
61158         through a call to isnanl.
61159         * lib/sqrtl.c: Include isnanl.h.
61160         (sqrtl): Perform test for NaN at the beginning of the function and
61161         through a call to isnanl.
61162         * lib/tanl.c: Include isnanl.h.
61163         (tanl): Perform test for NaN at the beginning of the function and
61164         through a call to isnanl.
61165         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61166         * modules/mathl (Depends-on): Add isnanl.
61167
61168 2007-03-26  Eric Blake  <ebb9@byu.net>
61169
61170         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61171         regression in logic sense of previous patch.
61172
61173 2007-03-26  Bruno Haible  <bruno@clisp.org>
61174
61175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61176         unportable shell command "if ! ...".
61177         Reported by Ralf Wildenhues.
61178
61179 2007-03-25  Bruno Haible  <bruno@clisp.org>
61180
61181         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61182         <sysexits.h> file, and only add EX_CONFIG.
61183         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61184         absolute file name and whether it is sufficient. Substitute also
61185         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61186         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61187         ABSOLUTE_SYSEXITS_H into sysexits.h.
61188
61189 2007-03-25  Bruno Haible  <bruno@clisp.org>
61190
61191         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61192         hints is NULL.
61193
61194 2007-03-25  Bruno Haible  <bruno@clisp.org>
61195
61196         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61197         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61198
61199 2007-03-25  Bruno Haible  <bruno@clisp.org>
61200
61201         * lib/vasnprintf.c: Include langinfo.h.
61202         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61203         multithread-safe.
61204         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61205         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61206         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61207         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61208         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61209         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61210         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61211         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61212         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61213         Reported by Simon Josefsson.
61214
61215 2007-03-25  Bruno Haible  <bruno@clisp.org>
61216
61217         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61218         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61219         * modules/vasnprintf (Depends-on): Add stdint.
61220
61221 2007-03-25  Bruno Haible  <bruno@clisp.org>
61222
61223         * modules/fpieee: New file.
61224         * m4/fpieee.m4: New file.
61225         * modules/isnan-nolibm (Depends-on): Add fpieee.
61226         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61227         * modules/isnanl (Depends-on): Add fpieee.
61228
61229 2007-03-25  Bruno Haible  <bruno@clisp.org>
61230
61231         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61232
61233 2007-03-25  Bruno Haible  <bruno@clisp.org>
61234
61235         Avoid test failures on IRIX 6.5.
61236         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61237         (main): Use it.
61238         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61239         macros.
61240         (main): Use them.
61241
61242 2007-03-25  Bruno Haible  <bruno@clisp.org>
61243
61244         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61245         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61246         exists but doesn't work.
61247         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61248         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61250         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61251         math.h.
61252
61253 2007-03-25  Bruno Haible  <bruno@clisp.org>
61254
61255         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61256         returns inf. Needed on IRIX 6.5.
61257
61258 2007-03-25  Bruno Haible  <bruno@clisp.org>
61259
61260         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61261         (main): Use isnanl instead of x != x idiom.
61262         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61263
61264         * tests/test-frexp.c: Include isnan.h.
61265         (main): Use isnan instead of x != x idiom.
61266         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61267
61268 2007-03-25  Bruno Haible  <bruno@clisp.org>
61269
61270         * tests/test-frexp.c (NaN): New function/macro.
61271         (main): Use it instead of 0.0 / 0.0.
61272         * tests/test-isnan.c (NaN): New function/macro.
61273         (main): Use it instead of 0.0 / 0.0.
61274         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61275         (test_function): Use it instead of 0.0 / 0.0.
61276         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61277         (test_function): Use it instead of 0.0 / 0.0.
61278         * tests/test-snprintf-posix.h (NaN): New function/macro.
61279         (test_function): Use it instead of 0.0 / 0.0.
61280         * tests/test-sprintf-posix.h (NaN): New function/macro.
61281         (test_function): Use it instead of 0.0 / 0.0.
61282         * tests/test-fprintf-posix.h (NaN): New function/macro.
61283         (test_function): Use it instead of 0.0 / 0.0.
61284         * tests/test-printf-posix.h (NaN): New function/macro.
61285         (test_function): Use it instead of 0.0 / 0.0.
61286
61287         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61288
61289 2007-03-25  Bruno Haible  <bruno@clisp.org>
61290
61291         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61292
61293 2007-03-25  Bruno Haible  <bruno@clisp.org>
61294
61295         * lib/regexec.c (merge_state_with_log): Make static.
61296
61297 2007-03-25  Bruno Haible  <bruno@clisp.org>
61298
61299         * lib/trigl.c (kernel_rem_pio2): Make static.
61300
61301 2007-03-25  Bruno Haible  <bruno@clisp.org>
61302
61303         * lib/sincosl.c (sincosl_table): Make static.
61304
61305 2007-03-25  Bruno Haible  <bruno@clisp.org>
61306
61307         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61308         if the compiler does not support C99.
61309
61310 2007-03-25  Bruno Haible  <bruno@clisp.org>
61311
61312         * modules/time (Makefile.am): Ensure all rule action lines start with a
61313         tab.
61314
61315 2007-03-24  Bruno Haible  <bruno@clisp.org>
61316
61317         * modules/tsearch-tests: New file.
61318         * tests/test-tsearch.sh: New file.
61319         * tests/test-tsearch.c: New file, mostly copied from glibc.
61320
61321         * modules/search-tests: New file.
61322         * tests/test-search.c: New file.
61323
61324         * modules/search: New file.
61325         * lib/search_.h: New file, incorporating lib/tsearch.h.
61326         * m4/search_h.m4: New file.
61327         * lib/tsearch.h: Remove file.
61328         * lib/tsearch.c: Include search.h instead of tsearch.h.
61329         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61330         HAVE_TSEARCH.
61331         * modules/tsearch (Files): Remove lib/tsearch.h.
61332         (Depends-on): Add search.
61333         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61334         (Include): Change tsearch.h into search.h.
61335
61336 2007-03-24  Bruno Haible  <bruno@clisp.org>
61337
61338         * modules/fpucw: New file.
61339         * lib/fpucw.h: New file.
61340         * lib/frexp.c: Include fpucw.h.
61341         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61342         (FUNC): Use them.
61343         * lib/printf-frexp.c: Include fpucw.h.
61344         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61345         (FUNC): Use them.
61346         * lib/vasnprintf.c: Include fpucw.h.
61347         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61348         'long double' calculations.
61349         * tests/test-frexpl.c: Include fpucw.h.
61350         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61351         * tests/test-printf-frexpl.c: Include fpucw.h.
61352         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61353         * modules/frexpl (Depends-on): Add fpucw.
61354         * modules/printf-frexpl (Depends-on): Likewise.
61355         * modules/fprintf-posix (Depends-on): Likewise.
61356         * modules/snprintf-posix (Depends-on): Likewise.
61357         * modules/sprintf-posix (Depends-on): Likewise.
61358         * modules/vasnprintf-posix (Depends-on): Likewise.
61359         * modules/vasprintf-posix (Depends-on): Likewise.
61360         * modules/vfprintf-posix (Depends-on): Likewise.
61361         * modules/vsnprintf-posix (Depends-on): Likewise.
61362         * modules/vsprintf-posix (Depends-on): Likewise.
61363         * modules/frexpl-tests (Depends-on): Likewise.
61364         * modules/printf-frexpl-tests (Depends-on): Likewise.
61365
61366 2007-03-24  Bruno Haible  <bruno@clisp.org>
61367
61368         * lib/float+.h: New file.
61369         * lib/isnan.c: Include float+.h.
61370         (SIZE): New macro.
61371         (FUNC): Compare only SIZE bytes of the value.
61372         * lib/vasnprintf.c: Include float+.h.
61373         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61374         SIZEOF_LDBL or SIZEOF_DBL bytes.
61375         * modules/isnan-nolibm (Files): Add lib/float+.h.
61376         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61377         * modules/isnanl (Files): Add lib/float+.h.
61378         * modules/vasnprintf (Files): Add lib/float+.h.
61379
61380 2007-03-24  Bruno Haible  <bruno@clisp.org>
61381
61382         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61383         include isnanl-nolibm.h.
61384
61385 2007-03-24  Bruno Haible  <bruno@clisp.org>
61386
61387         * tests/test-read-file.c (main): Don't produce spurious output for
61388         expected situations. Make the test fail if it encountered unexpected
61389         results.
61390
61391 2007-03-24  Bruno Haible  <bruno@clisp.org>
61392
61393         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61394         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61395
61396 2007-03-24  Bruno Haible  <bruno@clisp.org>
61397
61398         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61399
61400 2007-03-24  Bruno Haible  <bruno@clisp.org>
61401
61402         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61403         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61404
61405         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61406         * modules/utf8-ucs4: Turn into a symbolic link to module
61407         unistr/u8-mbtouc.
61408
61409         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61410         utf8-ucs4-unsafe.
61411         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61412         unistr/u8-mbtouc-unsafe.
61413
61414         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61415         * modules/utf16-ucs4: Turn into a symbolic link to module
61416         unistr/u16-mbtouc.
61417
61418         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61419         utf16-ucs4-unsafe.
61420         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61421         unistr/u16-mbtouc-unsafe.
61422
61423         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61424         * modules/ucs4-utf8: Turn into a symbolic link to module
61425         unistr/u8-ubtomb.
61426
61427         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61428         * modules/ucs4-utf16: Turn into a symbolic link to module
61429         unistr/u16-ubtomb.
61430
61431 2007-03-24  Bruno Haible  <bruno@clisp.org>
61432
61433         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61434         Enable the function only if HAVE_INLINE.
61435         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61436         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61437         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61438         Enable the function only if HAVE_INLINE.
61439         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61440         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61441         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61442         Enable the function only if HAVE_INLINE.
61443         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61444         Enable the function only if HAVE_INLINE.
61445         * modules/utf8-ucs4: Update.
61446         * modules/utf8-ucs4-unsafe: Update.
61447         * modules/utf16-ucs4: Update.
61448         * modules/utf16-ucs4-unsafe: Update.
61449         * modules/ucs4-utf8: Update.
61450         * modules/ucs4-utf16: Update.
61451
61452 2007-03-24  Bruno Haible  <bruno@clisp.org>
61453
61454         * lib/utf8-ucs4.h: Remove file.
61455         * lib/utf8-ucs4-unsafe.h: Remove file.
61456         * lib/utf16-ucs4.h: Remove file.
61457         * lib/utf16-ucs4-unsafe.h: Remove file.
61458         * lib/ucs4-utf8.h: Remove file.
61459         * lib/ucs4-utf16.h: Remove file.
61460         * lib/unistr.h: Include their previous contents.
61461         * m4/utf-ucs4.m4: Remove file.
61462         * m4/ucs4-utf.m4: Remove file.
61463         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61464         (Depends-on): Add unistr/base.
61465         (configure.ac): Remove gl_UTF_UCS4.
61466         (Makefile.am): Update.
61467         (Include): Change to unistr.h.
61468         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61469         (Depends-on): Add unistr/base.
61470         (configure.ac): Remove gl_UTF_UCS4.
61471         (Makefile.am): Update.
61472         (Include): Change to unistr.h.
61473         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61474         (Depends-on): Add unistr/base.
61475         (configure.ac): Remove gl_UTF_UCS4.
61476         (Makefile.am): Update.
61477         (Include): Change to unistr.h.
61478         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61479         (Depends-on): Add unistr/base.
61480         (configure.ac): Remove gl_UTF_UCS4.
61481         (Makefile.am): Update.
61482         (Include): Change to unistr.h.
61483         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61484         (Depends-on): Add unistr/base.
61485         (configure.ac): Remove gl_UCS4_UTF.
61486         (Makefile.am): Update.
61487         (Include): Change to unistr.h.
61488         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61489         (Depends-on): Add unistr/base.
61490         (configure.ac): Remove gl_UCS4_UTF.
61491         (Makefile.am): Update.
61492         (Include): Change to unistr.h.
61493         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61494         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61495         utf8-ucs4-unsafe.h.
61496         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61497         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61498         utf16-ucs4-unsafe.h.
61499         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61500         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61501         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61502         * lib/unistr/u8-strchr.c: Likewise.
61503         * lib/unistr/u8-strrchr.c: Likewise.
61504         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61505         * lib/unistr/u16-strchr.c: Likewise.
61506         * lib/unistr/u16-strrchr.c: Likewise.
61507         * lib/striconveh.c: Update.
61508         * lib/linebreak.c: Update.
61509
61510 2007-03-24  Bruno Haible  <bruno@clisp.org>
61511
61512         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61513         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61514
61515 2007-03-22  Bruno Haible  <bruno@clisp.org>
61516
61517         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61518
61519 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61520
61521         * MODULES.html.sh (File system functions): New module write-any-file.
61522         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61523         * m4/write-any-file.m4: New files.
61524
61525 2007-03-23  Eric Blake  <ebb9@byu.net>
61526
61527         * gnulib-tool: Rearrange space-tab sequences, since some editors
61528         like to eat them.
61529
61530 2007-03-23  Eric Blake  <ebb9@byu.net>
61531
61532         * lib/version-etc.c (version_etc_va): Update license wording to
61533         be more concise.  Recommended by Richard Stallman.
61534
61535 2007-03-22  Bruno Haible  <bruno@clisp.org>
61536
61537         * lib/poll.c (MSG_PEEK): New fallback definition.
61538
61539 2007-03-22  Bruno Haible  <bruno@clisp.org>
61540
61541         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61542         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61543         (main): Update.
61544         Fixes a compilation error on BeOS.
61545
61546 2007-03-22  Bruno Haible  <bruno@clisp.org>
61547
61548         * modules/frexpl-tests: New file.
61549         * tests/test-frexpl.c: New file.
61550
61551         * modules/frexpl: New file.
61552         * m4/frexpl.m4: New file.
61553         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61554         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61556         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61557         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61558         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61559
61560 2007-03-22  Bruno Haible  <bruno@clisp.org>
61561
61562         * lib/frexpl.c: Share code with lib/frexp.c.
61563         * modules/mathl (Files): Add lib/frexp.c.
61564         (Depends-on): Add isnanl-nolibm.
61565
61566 2007-03-22  Bruno Haible  <bruno@clisp.org>
61567
61568         * modules/printf-frexp (Files): Add m4/frexp.m4.
61569         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61570         only if the found frexp function actually works.
61571
61572 2007-03-22  Bruno Haible  <bruno@clisp.org>
61573
61574         * lib/frexp.c: Remove older implementation that uses divisions.
61575
61576 2007-03-21  Bruno Haible  <bruno@clisp.org>
61577
61578         * modules/frexp-tests: New file.
61579         * tests/test-frexp.c: New file.
61580
61581         * modules/frexp: New file.
61582         * lib/frexp.c: New file.
61583         * m4/frexp.m4: New file.
61584         * lib/math_.h (frexp): New declaration.
61585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61586         REPLACE_FREXP.
61587         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61588
61589 2007-03-21  Bruno Haible  <bruno@clisp.org>
61590
61591         * modules/isnanl-tests: New file.
61592         * tests/test-isnanl.c: New file.
61593
61594         * modules/isnanl: New file.
61595         * lib/isnanl.h: New file.
61596         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61597         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61598         gl_FUNC_ISNANL_WORKS.
61599         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61600         New macros.
61601
61602 2007-03-21  Bruno Haible  <bruno@clisp.org>
61603
61604         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61605         lib/isnanl.h.
61606         (Include): Update.
61607         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61608         * lib/vasnprintf.c: Update.
61609         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61610         tests/test-isnanl.h, remove tests/test-isnanl.c.
61611         (Makefile.am): Update.
61612         * tests/test-isnanl-nolibm.c: New file.
61613         * tests/test-isnanl.h: New file.
61614         * tests/test-isnanl.c: Remove file.
61615
61616 2007-03-21  Jim Meyering  <jim@meyering.net>
61617
61618         When trying to open ".", treat ESTALE like EACCES.
61619         * lib/savewd.c (savewd_save): Resort to forking not just upon
61620         failure with EACCES, but also when errno is ESTALE.
61621
61622 2007-03-20  Bruno Haible  <bruno@clisp.org>
61623
61624         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61625         Needed on AIX 5.1. Reported by Matthew Woehlke.
61626
61627 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61628
61629         Suggestions by Bruno Haible:
61630         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61631         our own.
61632         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61633         * modules/acl (Depends-on): Add gettext.
61634
61635 2007-03-19  Bruno Haible  <bruno@clisp.org>
61636
61637         * modules/iconvme: Remove file.
61638         * lib/iconvme.h: Remove file.
61639         * lib/iconvme.c: Remove file.
61640         * m4/iconvme.m4: Remove file.
61641
61642 2007-03-19  Bruno Haible  <bruno@clisp.org>
61643
61644         * doc/relocatable-maint.texi: Break long shell script line.
61645         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61646
61647 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61648
61649         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61650         handle file_has_acl.
61651         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61652         * lib/acl.c: Move header inclusions and related macro defns into
61653         lib/acl-internal.h.
61654         (S_ISLNK): Remove defn, since that's now done for us.
61655         (file_has_acl): Move to lib/file-has-acl.c.
61656         Call acl_trivial if available.  This is the crucial part of the fix.
61657         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61658         shared within the library.  Rewrite a bit, partly to make it compatible
61659         with the GNU coding style.
61660         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61661         Remove unnecessary double-quotes.
61662         Don't test for acl_to_text; the build will catch that.
61663         Replace acl_entries if it doesn't exist and it is needed.
61664         Check for -lsec and acl_trivial (as used on Solaris 10).
61665         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61666         lib/file-has-acl.c.
61667         (Depends-on): Add sys_stat, for S_ISLNK.
61668
61669 2007-03-19  Ben Pfaff  <blp@gnu.org>
61670
61671         * doc/gnulib.texi: Fix typos.
61672         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61673
61674 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61675
61676         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61677         If size is zero here, buf must be zero.
61678
61679 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61680
61681         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61682         <bruno@clisp.org>.
61683
61684 2007-03-18  Bruno Haible  <bruno@clisp.org>
61685
61686         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61687         Suggested by Eric Blake.
61688
61689 2007-03-18  Ben Pfaff  <blp@gnu.org>
61690
61691         * doc/relocatable.texi: Recommend using as prefix a directory
61692         that does not exist and will never be created.  Based on
61693         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61694         and others.
61695
61696 2007-03-17  Bruno Haible  <bruno@clisp.org>
61697
61698         * lib/fchownat.c: Include lchown.h.
61699
61700 2007-03-17  Bruno Haible  <bruno@clisp.org>
61701
61702         Fix endless loop when the given allocated size was > INT_MAX.
61703         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61704         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61705         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61706         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61707         * lib/sprintf.c (sprintf): Likewise.
61708
61709 2007-03-17  Bruno Haible  <bruno@clisp.org>
61710
61711         * tests/test-argp-2.sh (func_compare): Output a context diff.
61712
61713 2007-03-17  Bruno Haible  <bruno@clisp.org>
61714
61715         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61716         locale's decimal-point character.
61717
61718 2007-03-17  Bruno Haible  <bruno@clisp.org>
61719
61720         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61721         before comparing it. Needed because on some platforms (e.g. x86) a
61722         'long double' occupies less bytes than sizeof (long double).
61723
61724 2007-03-17  Bruno Haible  <bruno@clisp.org>
61725
61726         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61727         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61728         * tests/test-getaddrinfo.c (simple): Likewise.
61729         * tests/test-read-file.c (main): Likewise.
61730
61731 2007-03-17  Bruno Haible  <bruno@clisp.org>
61732
61733         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61734
61735 2007-03-17  Bruno Haible  <bruno@clisp.org>
61736
61737         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61738         unused variable.
61739
61740 2007-03-17  Bruno Haible  <bruno@clisp.org>
61741
61742         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61743         * tests/test-c-strncasecmp.c: Likewise.
61744
61745 2007-03-17  Bruno Haible  <bruno@clisp.org>
61746
61747         * modules/stdlib (Depends-on): Add unistd.
61748         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61749         Needed for MacOS X 10.3.
61750
61751 2007-03-17  Bruno Haible  <bruno@clisp.org>
61752
61753         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61754
61755 2007-03-17  Bruno Haible  <bruno@clisp.org>
61756
61757         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61758
61759 2007-03-17  Bruno Haible  <bruno@clisp.org>
61760
61761         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61762         to reflect files copied from gnulib (with or without modifications).
61763         Suggested by Jim Meyering.
61764
61765 2007-03-17  Eric Blake  <ebb9@byu.net>
61766
61767         * NEWS: Document stdlib change from 2007-02-18.
61768
61769 2007-03-17  Jim Meyering  <jim@meyering.net>
61770
61771         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61772         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61773         someone uses a name containing shell meta-characters.
61774         Reported by Alfred M. Szmidt.
61775
61776         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61777
61778 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61779
61780         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61781         and copy gettext configuration files only if configure.ac contains
61782         a use of AM_GNU_GETTEXT_VERSION.
61783
61784 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61785
61786         * build-aux/bootstrap (gnulib_name): New variable.
61787         (gnulib_tool_options): Use it.
61788
61789 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61790
61791         * tests/test-des.c: Use new namespace.
61792
61793 2007-03-15  Bruno Haible  <bruno@clisp.org>
61794
61795         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61796         Reported by James Youngman <jay@gnu.org>.
61797
61798 2007-03-15  Bruno Haible  <bruno@clisp.org>
61799
61800         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61801         declared prototype. Needed with cc on OSF/1 5.1.
61802
61803 2007-03-15  Bruno Haible  <bruno@clisp.org>
61804
61805         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61806         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61807         (struct gl_list_implementation): Add dispose_fn argument to the
61808         'create_empty', 'create' methods.
61809         (struct gl_list_impl_base): Add field 'dispose_fn'.
61810         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61811         argument.
61812         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61813         dispose_fn argument.
61814         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61815         dispose_fn on the dropped values.
61816         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61817         dispose_fn argument.
61818         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61819         dropped values.
61820         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61821         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61822         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61823         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61824         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61825         argument.
61826         (gl_tree_list_free): Call dispose_fn on the dropped values.
61827         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61828         the dropped values.
61829         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61830         Add dispose_fn argument.
61831         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61832         Call dispose_fn on the dropped values.
61833         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61834         Add dispose_fn argument.
61835         (gl_sublist_create): Initialize the 'dispose_fn' field.
61836         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61837         * tests/test-array_list.c (main): Update.
61838         * tests/test-carray_list.c (main): Update.
61839         * tests/test-avltree_list.c (main): Update.
61840         * tests/test-rbtree_list.c (main): Update.
61841         * tests/test-avltreehash_list.c (main): Update.
61842         * tests/test-rbtreehash_list.c (main): Update.
61843         * tests/test-linked_list.c (main): Update.
61844         * tests/test-linkedhash_list.c (main): Update.
61845         * tests/test-array_oset.c (main): Update.
61846
61847 2007-03-15  Bruno Haible  <bruno@clisp.org>
61848
61849         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61850         (gl_oset_create_empty): Add dispose_fn argument.
61851         (struct gl_oset_implementation): Add dispose_fn argument to
61852         'create_empty' method.
61853         (struct gl_oset_impl_base): Add dispose_fn field.
61854         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61855         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61856         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61857         values.
61858         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61859         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61860         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61861         dropped value.
61862         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61863         dropped value.
61864         * tests/test-array_oset.c (main): Update.
61865         * tests/test-avltree_oset.c (main): Update.
61866         * tests/test-rbtree_oset.c (main): Update.
61867         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61868
61869 2007-03-13  Bruno Haible  <bruno@clisp.org>
61870
61871         * tests/test-stdbool.c (i): Update after last patch.
61872
61873 2007-03-12  Bruno Haible  <bruno@clisp.org>
61874
61875         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61876         the iswprint macro. Needed on Solaris 2.5.1.
61877
61878 2007-03-12  Bruno Haible  <bruno@clisp.org>
61879
61880         * tests/test-printf-frexp.c (main): Declare x as volatile.
61881
61882 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61883
61884         * doc/gnulib.texi (Build robot for gnulib): New section.
61885
61886 2007-03-12  Jim Meyering  <jim@meyering.net>
61887
61888         * build-aux/bootstrap: New file.
61889         * build-aux/bootstrap.conf: New file, from coreutils.
61890
61891 2007-03-11  Bruno Haible  <bruno@clisp.org>
61892
61893         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61894
61895 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61896
61897         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61898         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61899         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61900
61901 2007-03-11  Bruno Haible  <bruno@clisp.org>
61902
61903         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61904         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61905
61906 2007-03-11  Bruno Haible  <bruno@clisp.org>
61907
61908         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61909         formula. Needed for SunPRO C 5.0.
61910
61911 2007-03-11  Bruno Haible  <bruno@clisp.org>
61912
61913         * modules/long-options (Depends-on): Add getopt.
61914
61915 2007-03-11  Bruno Haible  <bruno@clisp.org>
61916
61917         * modules/modechange (Depends-on): Add stdbool.
61918
61919 2007-03-11  Bruno Haible  <bruno@clisp.org>
61920
61921         * modules/i-ring (Depends-on): Add stdbool.
61922
61923 2007-03-11  Bruno Haible  <bruno@clisp.org>
61924
61925         * modules/gc-des (Depends-on): Add stdbool.
61926
61927 2007-03-11  Bruno Haible  <bruno@clisp.org>
61928
61929         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61930
61931 2007-03-11  Bruno Haible  <bruno@clisp.org>
61932
61933         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61934
61935 2007-03-11  Bruno Haible  <bruno@clisp.org>
61936
61937         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61938
61939 2007-03-11  Bruno Haible  <bruno@clisp.org>
61940
61941         * lib/vasnprintf.c (sprintf): Undefine.
61942
61943 2007-03-11  Bruno Haible  <bruno@clisp.org>
61944
61945         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61946         initializers in SunPRO C and Compaq C compilers.
61947
61948 2007-03-11  Bruno Haible  <bruno@clisp.org>
61949
61950         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61951         decrementing code ANSI C compliant.
61952
61953 2007-03-11  Bruno Haible  <bruno@clisp.org>
61954
61955         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61956         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61957
61958 2007-03-11  Bruno Haible  <bruno@clisp.org>
61959
61960         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61961         <stdbool.h> substitute doesn't pass.
61962
61963 2007-03-11  Bruno Haible  <bruno@clisp.org>
61964
61965         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61966
61967 2007-03-11  Bruno Haible  <bruno@clisp.org>
61968
61969         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61970         script, for submission to autobuild.josefsson.org.
61971
61972 2007-03-10  Bruno Haible  <bruno@clisp.org>
61973
61974         * modules/canonicalize-lgpl-tests: New file.
61975         * tests/test-canonicalize-lgpl.sh: New file.
61976         * tests/test-canonicalize-lgpl.c: New file.
61977
61978         * modules/c-strcase-tests: New file.
61979         * tests/test-c-strcase.sh: New file.
61980         * tests/test-c-strcasecmp.c: New file.
61981         * tests/test-c-strncasecmp.c: New file.
61982
61983         * modules/atexit-tests: New file.
61984         * tests/test-atexit.sh: New file.
61985         * tests/test-atexit.c: New file.
61986
61987 2007-03-10  Bruno Haible  <bruno@clisp.org>
61988
61989         * tests/test-binary-io.sh: Use temporary filenames that are not so
61990         likely to clash with those of other tests (in a parallel make).
61991         * tests/test-binary-io.c: Likewise.
61992
61993 2007-03-10  Bruno Haible  <bruno@clisp.org>
61994
61995         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61996         fallback; use #error instead.
61997         Suggested by Simon Josefsson.
61998
61999 2007-03-10  Bruno Haible  <bruno@clisp.org>
62000
62001         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62002         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62003         first and the last.
62004
62005 2007-03-10  Bruno Haible  <bruno@clisp.org>
62006
62007         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62008
62009 2007-03-10  Bruno Haible  <bruno@clisp.org>
62010
62011         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62012         "make distcheck".
62013         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62014         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62015         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62016
62017 2007-03-10  Bruno Haible  <bruno@clisp.org>
62018
62019         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62020         variable.
62021         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62022         variable.
62023
62024 2007-03-09  Eric Blake  <ebb9@byu.net>
62025         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62026
62027         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62028         types are not being provided by gnulib.
62029         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62030         types are supported.
62031
62032 2007-03-10  Bruno Haible  <bruno@clisp.org>
62033
62034         * lib/stdio_.h (__attribute__): New macro.
62035         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62036         vsprintf): Specify __attribute__ __format__ for GCC.
62037         Suggested by Eric Blake.
62038
62039 2007-03-09  Bruno Haible  <bruno@clisp.org>
62040
62041         * modules/printf-posix-tests: New file.
62042         * tests/test-printf-posix.sh: New file.
62043         * tests/test-printf-posix.c: New file.
62044
62045         * modules/printf-posix: New file.
62046         * lib/printf.c: New file.
62047         * m4/printf-posix-rpl.m4: New file.
62048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62049         REPLACE_PRINTF.
62050         * lib/stdio_.h (printf): New declaration.
62051         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62052         ____strfmon____): New macros.
62053         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62054         REPLACE_PRINTF.
62055
62056 2007-03-09  Bruno Haible  <bruno@clisp.org>
62057
62058         * tests/test-vasnprintf-posix2.sh: New file.
62059         * tests/test-vasnprintf-posix2.c: New file.
62060         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62061         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62062         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62063
62064         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62065         a locale dependent decimal point, rather than always '.'.
62066
62067 2007-03-09  Eric Blake  <ebb9@byu.net>
62068
62069         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62070         spite of platforms like Tandem/NSK that define it to -1.
62071
62072 2007-03-08  Bruno Haible  <bruno@clisp.org>
62073
62074         * modules/vprintf-posix-tests: New file.
62075         * tests/test-vprintf-posix.sh: New file.
62076         * tests/test-vprintf-posix.c: New file.
62077         * tests/test-printf-posix.h: New file.
62078
62079         * modules/vprintf-posix: New file.
62080         * lib/vprintf.c: New file.
62081         * m4/vprintf-posix.m4: New file.
62082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62083         REPLACE_VPRINTF.
62084         * lib/stdio_.h (vprintf): New declaration.
62085         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62086         REPLACE_VPRINTF.
62087
62088 2007-03-08  Bruno Haible  <bruno@clisp.org>
62089
62090         * modules/fprintf-posix-tests: New file.
62091         * tests/test-fprintf-posix.sh: New file.
62092         * tests/test-fprintf-posix.c: New file.
62093
62094         * modules/fprintf-posix: New file.
62095         * lib/fprintf.c: New file.
62096         * m4/fprintf-posix.m4: New file.
62097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62098         REPLACE_FPRINTF.
62099         * lib/stdio_.h (fprintf): New declaration.
62100         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62101         REPLACE_FPRINTF.
62102
62103 2007-03-08  Bruno Haible  <bruno@clisp.org>
62104
62105         * modules/vfprintf-posix-tests: New file.
62106         * tests/test-vfprintf-posix.sh: New file.
62107         * tests/test-vfprintf-posix.c: New file.
62108         * tests/test-fprintf-posix.h: New file.
62109         * tests/test-fprintf-posix.out: New file.
62110
62111         * modules/vfprintf-posix: New file.
62112         * lib/vfprintf.c: New file.
62113         * m4/vfprintf-posix.m4: New file.
62114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62115         REPLACE_VFPRINTF.
62116         * lib/stdio_.h (vfprintf): New declaration.
62117         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62118         REPLACE_VFPRINTF.
62119
62120 2007-03-08  Bruno Haible  <bruno@clisp.org>
62121
62122         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62123
62124 2007-03-08  Bruno Haible  <bruno@clisp.org>
62125
62126         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62127         instead of 'expr' invocations.
62128         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62129         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62130         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62131         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62132         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62133         Suggested by Paul Eggert.
62134
62135 2007-03-08  Bruno Haible  <bruno@clisp.org>
62136
62137         * modules/fseterr-tests: New file.
62138         * tests/test-fseterr.c: New file.
62139
62140         * modules/fseterr: New file.
62141         * lib/fseterr.h: New file.
62142         * lib/fseterr.c: New file.
62143
62144 2007-03-08  Bruno Haible  <bruno@clisp.org>
62145
62146         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62147         * lib/getopt_.h: Likewise.
62148         * lib/mbswidth.h: Likewise.
62149         * lib/setenv.h: Likewise.
62150         * lib/vasnprintf.h: Likewise.
62151         * lib/vasprintf.h: Likewise.
62152         * lib/verror.h: Likewise.
62153         * lib/xsetenv.h: Likewise.
62154         * lib/xvasprintf.h: Likewise.
62155
62156 2007-03-08  Jim Meyering  <jim@meyering.net>
62157
62158         * users.txt: Add parted.
62159
62160         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62161
62162 2007-03-07  Bruno Haible  <bruno@clisp.org>
62163
62164         * m4/printf.m4: Make the shell script snippets copy&pastable.
62165
62166 2007-03-02  Bruno Haible  <bruno@clisp.org>
62167
62168         * lib/netinet_in_.h: New file.
62169         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62170         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62171         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62172         (Depends-on): Add absolute-header.
62173         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62174         into netinet/in.h.
62175
62176 2007-03-03  Bruno Haible  <bruno@clisp.org>
62177
62178         * lib/sys_select_.h: New file.
62179         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62180         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62181         * modules/sys_select (Files): Add lib/sys_select_.h.
62182         (Depends-on): Add absolute-header.
62183         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62184         into sys/select.h.
62185
62186 2007-03-02  Bruno Haible  <bruno@clisp.org>
62187
62188         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62189         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62190         values.
62191         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62192         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62193         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62194         * modules/sys_socket (Depends-on): Add absolute-header.
62195         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62196         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62197         (Include): Remove requirement of inclusion of <sys/types.h>.
62198
62199 2007-03-02  Bruno Haible  <bruno@clisp.org>
62200
62201         * lib/byteswap_.h (bswap_32): Fix formula.
62202
62203 2007-03-06  Bruno Haible  <bruno@clisp.org>
62204
62205         * modules/sprintf-posix-tests: New file.
62206         * tests/test-sprintf-posix.c: New file.
62207
62208         * modules/sprintf-posix: New file.
62209         * lib/sprintf.c: New file.
62210         * m4/sprintf-posix.m4: New file.
62211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62212         REPLACE_SPRINTF.
62213         * lib/stdio_.h (sprintf): New declaration.
62214         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62215         REPLACE_SPRINTF.
62216
62217 2007-03-06  Bruno Haible  <bruno@clisp.org>
62218
62219         * modules/vsprintf-posix-tests: New file.
62220         * tests/test-vsprintf-posix.c: New file.
62221         * tests/test-sprintf-posix.h: New file.
62222
62223         * modules/vsprintf-posix: New file.
62224         * lib/vsprintf.c: New file.
62225         * m4/vsprintf-posix.m4: New file.
62226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62227         REPLACE_VSPRINTF.
62228         * lib/stdio_.h (vsprintf): New declaration.
62229         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62230         REPLACE_VSPRINTF.
62231
62232 2007-03-06  Bruno Haible  <bruno@clisp.org>
62233
62234         * modules/vsnprintf (Depend-on): Remove minmax.
62235
62236 2007-03-06  Bruno Haible  <bruno@clisp.org>
62237
62238         * modules/snprintf-posix-tests: New file.
62239         * tests/test-snprintf-posix.c: New file.
62240
62241         * modules/snprintf-posix: New file.
62242         * m4/snprintf-posix.m4: New file.
62243         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62244         gl_FUNC_SNPRINTF.
62245         (gl_FUNC_SNPRINTF): Invoke it.
62246         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62247         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62248         is set.
62249         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62250
62251 2007-03-06  Bruno Haible  <bruno@clisp.org>
62252
62253         * modules/vsnprintf-posix-tests: New file.
62254         * tests/test-vsnprintf-posix.c: New file.
62255         * tests/test-snprintf-posix.h: New file.
62256
62257         * modules/vsnprintf-posix: New file.
62258         * m4/vsnprintf-posix.m4: New file.
62259         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62260         gl_FUNC_VSNPRINTF.
62261         (gl_FUNC_VSNPRINTF): Invoke it.
62262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62263         * lib/stdio_.h (vsnprintf): Define as a replacement if
62264         REPLACE_VSNPRINTF is set.
62265         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62266
62267 2007-03-06  Bruno Haible  <bruno@clisp.org>
62268
62269         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62270         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62271
62272 2007-03-06  Bruno Haible  <bruno@clisp.org>
62273
62274         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62275         (asinl): Declare also if HAVE_DECL_ASINL is set.
62276         (atanl): Declare also if HAVE_DECL_ATANL is set.
62277         (ceill): Declare also if HAVE_DECL_CEILL is set.
62278         (cosl): Declare also if HAVE_DECL_COSL is set.
62279         (expl): Declare also if HAVE_DECL_EXPL is set.
62280         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62281         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62282         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62283         (logl): Declare also if HAVE_DECL_LOGL is set.
62284         (sinl): Declare also if HAVE_DECL_SINL is set.
62285         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62286         (tanl): Declare also if HAVE_DECL_TANL is set.
62287         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62289         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62290         declaration of frexpl, ldexpl.
62291         * modules/printf-frexpl (Depends-on): Add math.
62292         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62293
62294 2007-03-05  Bruno Haible  <bruno@clisp.org>
62295
62296         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62297         frexpl and ldexpl are declared.
62298         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62299
62300 2007-03-05  Bruno Haible  <bruno@clisp.org>
62301
62302         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62303         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62304
62305 2007-03-05  Bruno Haible  <bruno@clisp.org>
62306
62307         * lib/stdio_.h: Include <stddef.h>.
62308
62309 2007-03-05  Bruno Haible  <bruno@clisp.org>
62310
62311         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62312
62313 2007-03-05  Bruno Haible  <bruno@clisp.org>
62314
62315         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62316         NetBSD 4, from Ralf Wildenhues.
62317
62318 2007-03-04  Bruno Haible  <bruno@clisp.org>
62319
62320         * lib/vasprintf.h: Update #if logic for the case when the functions
62321         exist but are overridden.
62322
62323 2007-03-04  Bruno Haible  <bruno@clisp.org>
62324
62325         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62326         implementations: glibc-2.4 and MacOS X 10.3.
62327         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62328         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62329         * tests/test-vasprintf-posix.c (test_function): Likewise.
62330
62331 2007-03-04  Bruno Haible  <bruno@clisp.org>
62332
62333         * modules/vasprintf-posix-tests: New file.
62334         * tests/test-vasprintf-posix.c: New file.
62335
62336         * modules/vasprintf-posix: New file.
62337         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62338         defined.
62339         * m4/vasprintf-posix.m4: New file.
62340         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62341         gl_FUNC_VASPRINTF.
62342         (gl_FUNC_VASPRINTF): Invoke it.
62343         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62344         here.
62345         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62346
62347 2007-03-04  Bruno Haible  <bruno@clisp.org>
62348
62349         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62350         REPLACE_GETTIMEOFDAY.
62351         * modules/sys_time (Makefile.am): Likewise.
62352         * m4/sys_time_h.m4: Likewise.
62353         * m4/gettimeofday.m4: Likewise.
62354
62355 2007-03-04  Bruno Haible  <bruno@clisp.org>
62356
62357         * modules/vasnprintf-posix-tests: New file.
62358         * tests/test-vasnprintf-posix.c: New file.
62359
62360         * modules/vasnprintf-posix: New file.
62361         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62362         printf-frexpl.h.
62363         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62364         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62365         REPLACE_VASNPRINTF is defined.
62366         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62367         gl_FUNC_VASNPRINTF.
62368         (gl_FUNC_VASNPRINTF): Invoke it.
62369         * m4/vasnprintf-posix.m4: New file.
62370         * m4/printf.m4: New file.
62371
62372 2007-03-04  Bruno Haible  <bruno@clisp.org>
62373
62374         Compile progreloc.c only if --enable-relocatable is specified.
62375         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62376         if --enable-relocatable was specified.
62377         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62378         lib_SOURCES.
62379
62380 2007-03-04  Jim Meyering  <jim@meyering.net>
62381
62382         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62383         Use it consistently, rather than enumerating errno constants.
62384
62385 2007-03-04  Bruno Haible  <bruno@clisp.org>
62386
62387         * modules/xvasprintf-tests: New file.
62388         * tests/test-xvasprintf.c: New file.
62389
62390         * modules/vasprintf-tests: New file.
62391         * tests/test-vasprintf.c: New file.
62392
62393         * modules/vasnprintf-tests: New file.
62394         * tests/test-vasnprintf.c: New file.
62395
62396         * modules/vsnprintf-tests: New file.
62397         * tests/test-vsnprintf.c: New file.
62398
62399         * modules/snprintf-tests: New file.
62400         * tests/test-snprintf.c: New file.
62401
62402 2007-03-04  Bruno Haible  <bruno@clisp.org>
62403
62404         Compile relocatable.c only if --enable-relocatable is specified.
62405         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62406         gl_RELOCATABLE_LIBRARY.
62407         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62408         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62409         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62410         gl_RELOCATABLE_LIBRARY.
62411         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62412         (Makefile.am): Remove lib_SOURCES.
62413         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62414         gl_RELOCATABLE_LIBRARY.
62415         (Makefile.am): Remove lib_SOURCES.
62416         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62417         always.
62418         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62419         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62420
62421 2007-03-04  Bruno Haible  <bruno@clisp.org>
62422
62423         * modules/argmatch-tests: New file.
62424         * tests/test-argmatch.c: New file.
62425
62426         * tests/test-allocsa.c (main): Halve the number of loop runs.
62427
62428         * modules/alloca-opt-tests: New file.
62429         * tests/test-alloca-opt.c: New file.
62430
62431 2007-03-04  Jim Meyering  <jim@meyering.net>
62432
62433         Work around difference between Linux ACLs and Solaris 10 ZFS.
62434         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62435         for EINVAL.
62436
62437 2007-03-03  Bruno Haible  <bruno@clisp.org>
62438
62439         * modules/relocatable-prog (Depends-on): Add back progreloc's
62440         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62441
62442 2007-03-03  Bruno Haible  <bruno@clisp.org>
62443
62444         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62445         * modules/relocatable-lib: New file.
62446
62447 2007-03-03  Bruno Haible  <bruno@clisp.org>
62448
62449         * modules/relocatable-prog: Renamed from modules/relocatable.
62450         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62451
62452 2007-03-03  Bruno Haible  <bruno@clisp.org>
62453
62454         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62455         m4/relocatable-lib.m4.
62456         (Depends-on): Remove 'relocatable'.
62457         (configure.ac): Add gl_RELOCATABLE_NOP.
62458
62459 2007-03-03  Bruno Haible  <bruno@clisp.org>
62460
62461         * modules/relocatable-prog-wrapper: New file.
62462         * modules/relocatable (Depends-on): Add it. Remove all other
62463         dependencies except progname.
62464         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62465
62466         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62467         (gl_FUNC_STRERROR): Nop.
62468         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62469
62470         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62471         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62472
62473         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62474         (gl_FUNC_READLINK): Update.
62475
62476         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62477
62478 2007-03-03  Bruno Haible  <bruno@clisp.org>
62479
62480         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62481         * modules/xreadlink (Depends-on): Add unistd.
62482         * modules/xreadlink-with-size (Depends-on): Likewise.
62483
62484 2007-03-03  Bruno Haible  <bruno@clisp.org>
62485
62486         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62487         extracted from gt_FUNC_SETENV.
62488         (gt_FUNC_SETENV): Remove macro.
62489         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62490         remove gt_FUNC_SETENV.
62491
62492 2007-03-03  Bruno Haible  <bruno@clisp.org>
62493
62494         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62495         ENABLE_RELOCATABLE here.
62496         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62497
62498 2007-03-03  Bruno Haible  <bruno@clisp.org>
62499
62500         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62501         * tests/test-rbtreehash_list.c: Include progname.h.
62502         (main): Call set_program_name.
62503
62504         * modules/rbtree-oset-tests (Depends-on): Add progname.
62505         * tests/test-rbtree_oset.c: Include progname.h.
62506         (main): Call set_program_name.
62507
62508         * modules/rbtree-list-tests (Depends-on): Add progname.
62509         * tests/test-rbtree_list.c: Include progname.h.
62510         (main): Call set_program_name.
62511
62512         * modules/linked-list-tests (Depends-on): Add progname.
62513         * tests/test-linked_list.c: Include progname.h.
62514         (main): Call set_program_name.
62515
62516 2007-03-03  Bruno Haible  <bruno@clisp.org>
62517
62518         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62519         All uses of __restrict changed to _Restrict_.
62520         * lib/glob_.h (__restrict): Remove macro.
62521
62522 2007-03-02  Bruno Haible  <bruno@clisp.org>
62523
62524         * modules/gettext (configure.ac): Require gettext infrastructure
62525         from version 0.16.1.
62526
62527 2007-03-02  Bruno Haible  <bruno@clisp.org>
62528
62529         * modules/linkedhash-list-tests (Depends-on): Add progname.
62530         * tests/test-linkedhash_list.c: Include progname.h.
62531         (main): Call set_program_name.
62532
62533         * modules/carray-list-tests (Depends-on): Add progname.
62534         * tests/test-carray_list.c: Include progname.h.
62535         (main): Call set_program_name.
62536
62537         * modules/avltreehash-list-tests (Depends-on): Add progname.
62538         * tests/test-avltreehash_list.c: Include progname.h.
62539         (main): Call set_program_name.
62540
62541         * modules/avltree-oset-tests (Depends-on): Add progname.
62542         * tests/test-avltree_oset.c: Include progname.h.
62543         (main): Call set_program_name.
62544
62545         * modules/avltree-list-tests (Depends-on): Add progname.
62546         * tests/test-avltree_list.c: Include progname.h.
62547         (main): Call set_program_name.
62548
62549         * modules/array-oset-tests (Depends-on): Add progname.
62550         * tests/test-array_oset.c: Include progname.h.
62551         (main): Call set_program_name.
62552
62553         * modules/array-list-tests (Depends-on): Add progname.
62554         * tests/test-array_list.c: Include progname.h.
62555         (main): Call set_program_name.
62556
62557         * modules/argp-tests (Depends-on): Add progname.
62558         * tests/test-argp.c: Include argp.h first. Include progname.h.
62559         (main): Call set_program_name.
62560
62561 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62562
62563         * doc/gnulib-tool.texi (Initial import): Reword description of
62564         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62565         limited effect even if defined after the first system include.
62566
62567 2007-03-01  Bruno Haible  <bruno@clisp.org>
62568
62569         * build-aux/config.libpath: Update to libtool-1.5.22.
62570         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62571
62572 2007-03-01  Bruno Haible  <bruno@clisp.org>
62573
62574         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62575         foo_CFLAGS.
62576         Reported by Ralf Wildenhues.
62577
62578 2007-03-01  Bruno Haible  <bruno@clisp.org>
62579
62580         * build-aux/install-reloc: Remove object files left over by some
62581         compilers.
62582         Reported by Ralf Wildenhues.
62583
62584 2007-03-01  Bruno Haible  <bruno@clisp.org>
62585
62586         * build-aux/install-reloc: Break long lines.
62587
62588 2007-03-01  Bruno Haible  <bruno@clisp.org>
62589
62590         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62591         Reported by Ralf Wildenhues.
62592
62593 2007-03-01  Bruno Haible  <bruno@clisp.org>
62594
62595         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62596         include ordering constraints.
62597
62598 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62599
62600         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62601         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62602         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62603         as another example.
62604         * lib/time_.h: Fix misspelling.
62605         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62606         Require gl_HEADER_TIME_H_DEFAULTS.
62607         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62608         * m4/time_r.m4 (gl_TIME_R): Likewise.
62609         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62610
62611 2007-03-01  Bruno Haible  <bruno@clisp.org>
62612
62613         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62614         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62615
62616 2007-03-01  Jim Meyering  <jim@meyering.net>
62617
62618         * modules/xreadlink (Maintainer): Add my name.
62619         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62620
62621 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62622             Bruno Haible  <bruno@clisp.org>
62623
62624         * build-aux/install-reloc: Compile also c-ctype.c.
62625         * build-aux/relocatable.sh.in: New file.
62626         * doc/relocatable.texi: New file.
62627         * doc/relocatable-maint.texi: New file.
62628         * doc/gnulib.texi: Include relocatable-maint.texi.
62629         * lib/progreloc.c: Include unistd.h unconditionally.
62630         * lib/relocwrapper.c: Include unistd.h unconditionally.
62631         Include c-ctype.h.
62632         (add_dotbin): Use c_tolower.
62633         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62634         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62635         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62636         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62637         to m4/relocatable-lib.m4.
62638         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62639         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62640         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62641         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62642         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62643         * modules/relocatable: New file.
62644         * modules/relocatable-lib: New file.
62645         * modules/relocatable-script: New file.
62646
62647 2007-02-28  Bruno Haible  <bruno@clisp.org>
62648
62649         Import --enable-relocatable infrastructure.
62650         * build-aux/config.libpath: New file, from GNU gettext.
62651         * build-aux/install-reloc: New file, from GNU gettext.
62652         * build-aux/reloc-ldflags: New file, from GNU gettext.
62653         * lib/relocatable.h: New file, from GNU gettext.
62654         * lib/relocatable.c: New file, from GNU gettext.
62655         * lib/relocwrapper.c: New file, from GNU gettext.
62656         * m4/relocatable.m4: New file, from GNU gettext.
62657
62658 2007-02-28  Bruno Haible  <bruno@clisp.org>
62659
62660         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62661
62662         * modules/xreadlink: New file, from GNU gettext with modifications.
62663         * lib/xreadlink.c: New file, from GNU gettext.
62664         * lib/xreadlink.h: Add comments.
62665         (xreadlink): New declaration.
62666
62667         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62668         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62669         lib/xreadlink-with-size.c.
62670         (configure.ac): Remove gl_XREADLINK invocation.
62671         (Makefile.am): Augment lib_SOURCES.
62672         * m4/xreadlink.m4: Remove file.
62673         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62674         (xreadlink_with_size): Renamed from xreadink.
62675         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62676         * modules/canonicalize (Depends-on): Replace xreadlink with
62677         xreadlink-with-size.
62678         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62679
62680 2007-02-25  Jim Meyering  <jim@meyering.net>
62681
62682         * build-aux/announce-gen: When complaining about excess arguments,
62683         list them.
62684
62685 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62686
62687         * README: Document signed integer overflow situation more
62688         accurately.
62689
62690 2007-02-25  Bruno Haible  <bruno@clisp.org>
62691
62692         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62693         'a' or 'A' conversion.
62694
62695 2007-02-25  Bruno Haible  <bruno@clisp.org>
62696
62697         * modules/filename: Renamed from modules/pathname.
62698         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62699         lib/concatpath.c with lib/concat-filename.c.
62700         (Makefile.am): Update.
62701         (Include): Replace pathname.h with filename.h.
62702         * lib/filename.h: Renamed from lib/pathname.h.
62703         (concatenated_filename): Renamed from concatenated_pathname.
62704         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62705         (concatenated_filename): Renamed from concatenated_pathname.
62706         * lib/findprog.c: Include filename.h instead of pathname.h.
62707         (find_in_path): Update.
62708         * lib/javacomp.c: Include filename.h instead of pathname.h.
62709         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62710         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62711         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62712         is_oldgcj_14_13_usable, is_javac_usable): Update.
62713         * lib/javaexec.c: Include filename.h instead of pathname.h.
62714         (execute_java_class): Update.
62715         * modules/findprog: Update.
62716         * modules/javacomp: Update.
62717         * modules/javaexec: Update.
62718         * MODULES.html.sh (File system functions): Add 'filename', remove
62719         'pathname'.
62720
62721 2007-02-25  Bruno Haible  <bruno@clisp.org>
62722
62723         * modules/printf-frexpl-tests: New file.
62724         * tests/test-printf-frexpl.c: New file.
62725
62726         * modules/printf-frexpl: New file.
62727         * lib/printf-frexpl.h: New file.
62728         * lib/printf-frexpl.c: New file.
62729         * m4/printf-frexpl.m4: New file.
62730
62731 2007-02-25  Bruno Haible  <bruno@clisp.org>
62732
62733         * modules/printf-frexp-tests: New file.
62734         * tests/test-printf-frexp.c: New file.
62735
62736         * modules/printf-frexp: New file.
62737         * lib/printf-frexp.h: New file.
62738         * lib/printf-frexp.c: New file.
62739         * m4/printf-frexp.m4: New file.
62740
62741 2007-02-25  Bruno Haible  <bruno@clisp.org>
62742
62743         Assume automake >= 1.10 for the tests.
62744         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62745         * modules/arctwo-tests: Likewise.
62746         * modules/argp-tests: Likewise.
62747         * modules/avltree-list-tests: Likewise.
62748         * modules/avltree-oset-tests: Likewise.
62749         * modules/avltreehash-list-tests: Likewise.
62750         * modules/carray-list-tests: Likewise.
62751         * modules/crc-tests: Likewise.
62752         * modules/des-tests: Likewise.
62753         * modules/gc-arcfour-tests: Likewise.
62754         * modules/gc-arctwo-tests: Likewise.
62755         * modules/gc-des-tests: Likewise.
62756         * modules/gc-hmac-md5-tests: Likewise.
62757         * modules/gc-hmac-sha1-tests: Likewise.
62758         * modules/gc-md2-tests: Likewise.
62759         * modules/gc-md4-tests: Likewise.
62760         * modules/gc-md5-tests: Likewise.
62761         * modules/gc-pbkdf2-sha1-tests: Likewise.
62762         * modules/gc-rijndael-tests: Likewise.
62763         * modules/gc-sha1-tests: Likewise.
62764         * modules/gc-tests: Likewise.
62765         * modules/getaddrinfo-tests: Likewise.
62766         * modules/hmac-md5-tests: Likewise.
62767         * modules/hmac-sha1-tests: Likewise.
62768         * modules/linked-list-tests: Likewise.
62769         * modules/linkedhash-list-tests: Likewise.
62770         * modules/lock-tests: Likewise.
62771         * modules/md2-tests: Likewise.
62772         * modules/md4-tests: Likewise.
62773         * modules/md5-tests: Likewise.
62774         * modules/rbtree-list-tests: Likewise.
62775         * modules/rbtree-oset-tests: Likewise.
62776         * modules/rbtreehash-list-tests: Likewise.
62777         * modules/read-file-tests: Likewise.
62778         * modules/rijndael-tests: Likewise.
62779         * modules/stdint-tests: Likewise.
62780         * modules/tls-tests: Likewise.
62781
62782 2007-02-24  Bruno Haible  <bruno@clisp.org>
62783
62784         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62785         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62786         function; instead check whether isnan with a double argument links.
62787         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62788         function; instead check whether isnan with a 'long double' argument
62789         links.
62790         Reported by Eric Blake <ebb9@byu.net>.
62791
62792 2007-02-24  Bruno Haible  <bruno@clisp.org>
62793
62794         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62795         defined.
62796         * lib/isnanl.c: Remove all code. Just include isnan.c.
62797         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62798
62799 2007-02-25  Jim Meyering  <jim@meyering.net>
62800
62801         Avoid conflicting types for 'unsetenv' on FreeBSD.
62802         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62803         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62804         in stdlib.h.
62805
62806 2007-02-24  Bruno Haible  <bruno@clisp.org>
62807
62808         * modules/isnanl-nolibm-tests: New file.
62809         * tests/test-isnanl.c: New file.
62810
62811         * modules/isnanl-nolibm: New file.
62812         * lib/isnanl.h: New file.
62813         * lib/isnanl.c: New file.
62814         * m4/isnanl.m4: New file.
62815
62816 2007-02-24  Bruno Haible  <bruno@clisp.org>
62817
62818         * modules/isnan-nolibm-tests: New file.
62819         * tests/test-isnan.c: New file.
62820
62821         * modules/isnan-nolibm: New file.
62822         * lib/isnan.h: New file.
62823         * lib/isnan.c: New file.
62824         * m4/isnan.m4: New file.
62825
62826 2007-02-24  Bruno Haible  <bruno@clisp.org>
62827
62828         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62829         assume that an exponent fits in 20 bits.
62830
62831 2007-02-24  Jim Meyering  <jim@meyering.net>
62832
62833         * m4/regex.m4: Update the description of the configure-time option,
62834         --without-included-regex, to state accurately what the defaults are,
62835         and perhaps to give people an idea why using this option is risky.
62836
62837 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62838
62839         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62840         loops on small arguments.  This attempts to avoid the problem
62841         Bruno Haible reported for AIX 4.3.2 in
62842         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62843
62844 2007-02-23  Bruno Haible  <bruno@clisp.org>
62845
62846         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62847         Needed for help2man.
62848
62849 2007-02-23  Karl Berry  <karl@gnu.org>
62850
62851         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62852         exists, foo.h should be cvs-ignored, not committed.
62853
62854 2007-02-23  Eric Blake  <ebb9@byu.net>
62855
62856         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62857         * lib/stat-time.h (includes): Likewise.
62858         * lib/utimecmp.c (includes): Likewise.
62859         * lib/utimens.h (includes): Likewise.
62860         * lib/getdate.y (includes): Also include "timespec.h" for use
62861         internal to the module.
62862         * modules/utimens (Depends-on): Revert yesterday's patch.
62863         * modules/nanosleep (Depends-on): Add missing dependency.
62864
62865 2007-02-22  Bruno Haible  <bruno@clisp.org>
62866
62867         * lib/glob.c: Don't include getlogin_r.h.
62868
62869 2007-02-22  Jim Meyering  <jim@meyering.net>
62870
62871         * modules/utimens (Depends-on): Add timespec, required for
62872         utimens.h's inclusion of timespec.h.
62873
62874 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62875
62876         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62877         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62878         Schwab in
62879         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62880         I'll try to think of a better way to fix the Solaris problem.
62881
62882         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62883         like glibc; on Solaris 10, it fails with errno == EINVAL.
62884         POSIX says the behavior is unspecified if the first argument is NULL,
62885         so play it safe and never pass NULL to the system getcwd.
62886
62887 2007-02-21  Jim Meyering  <jim@meyering.net>
62888
62889         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62890         of gettimeofday.  It would conflict with the one now always
62891         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62892         an IRIX 6.5 build failure.
62893
62894 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62895
62896         Minor fixups to port to Solaris 10 with Sun C 5.8.
62897         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62898         * modules/getcwd (Depends-on): Add dirfd.
62899         * lib/putenv.c (putenv): #undef it.
62900         (rpl_putenv): New decl.
62901         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62902
62903 2007-02-20  Bruno Haible  <bruno@clisp.org>
62904
62905         * modules/stdio-tests: New file.
62906         * tests/test-stdio.c: New file.
62907
62908         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62909         (Depends-on): Add stdio.
62910         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62911         (Include): Use <stdio.h> instead of vsnprintf.h.
62912         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62913         HAVE_DECL_VSNPRINTF.
62914         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62915
62916         * modules/snprintf (Files): Remove lib/snprintf.h.
62917         (Depends-on): Add stdio.
62918         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62919         (Include): Use <stdio.h> instead of snprintf.h.
62920         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62921         HAVE_DECL_SNPRINTF.
62922         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62923         * lib/getaddrinfo.c: Likewise.
62924
62925         * modules/stdio: New file.
62926         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62927         * lib/snprintf.h: Remove file.
62928         * lib/vsnprintf.h: Remove file.
62929         * lib/.cppi-disable: Remove snprintf.h.
62930         * m4/stdio_h.m4: New file.
62931         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62932
62933 2007-02-20  Jim Meyering  <jim@meyering.net>
62934
62935         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62936         used by e.g., mingw.  From Bruno Haible.
62937
62938 2007-02-19  Bruno Haible  <bruno@clisp.org>
62939
62940         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62941         warnings.
62942         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62943
62944 2007-02-19  Bruno Haible  <bruno@clisp.org>
62945
62946         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62947         from mingw users.
62948
62949 2007-02-19  Bruno Haible  <bruno@clisp.org>
62950
62951         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62952         warnings.
62953         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62954
62955 2007-02-19  Jim Meyering  <jim@meyering.net>
62956
62957         Don't use FD after a successful "fdopendir (fd)".
62958         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62959         Reset it by calling dirfd on the just-obtained DIR*.
62960
62961         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62962         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62963
62964 2007-02-18  Bruno Haible  <bruno@clisp.org>
62965
62966         * lib/readlink.c: Include <unistd.h>.
62967         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62968         HAVE_READLINK.
62969         * modules/readlink (Depends-on): Add unistd.
62970         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62971         (Include): Add <unistd.h>.
62972
62973         * lib/getlogin_r.h: Remove file.
62974         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62975         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62976         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62977         HAVE_DECL_GETLOGIN_R.
62978         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62979         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62980         (Include): Use <unistd.h> instead of getlogin_r.h.
62981
62982         * lib/getcwd.h: Remove file.
62983         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62984         * lib/xgetcwd.c: Likewise.
62985         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62986         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62987         * modules/getcwd (Files): Remove lib/getcwd.h.
62988         (Depends-on): Add unistd.
62989         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62990         (Include): Use <unistd.h> instad of getcwd.h.
62991
62992         * lib/ftruncate.c: Include <unistd.h> first.
62993         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62994         Set HAVE_FTRUNCATE.
62995         * modules/ftruncate (Depends-on): Add unistd.
62996         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62997
62998         * lib/fchdir.c: Include <unistd.h> first.
62999         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63000         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63001         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63002         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63003         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63004
63005         * lib/dup2.c: Include <unistd.h> first.
63006         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63007         HAVE_DUP2.
63008         * modules/dup2 (Depends-on): Add unistd.
63009         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63010
63011         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63012         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63013         REPLACE_CHOWN. Don't define chown as a macro here.
63014         * modules/chown (Depends-on): Add unistd.
63015         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63016
63017         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63018         Add definition for GL_LINK_WARNING.
63019         (chown, dup2): New declarations.
63020         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63021         link warning.
63022         (ftruncate): New declaration.
63023         (getcwd): New declaration, taken from old getcwd.h.
63024         (getlogin_r): New declaration, taken from old getlogin_r.h.
63025         (readlink): New declaration.
63026         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63027         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63028         (gl_PREREQ_UNISTD): Remove macro.
63029         (gl_UNISTD_MODULE_INDICATOR): New macro.
63030         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63031         many new variables. Don't set UNISTD_H.
63032         * modules/unistd (Description): Change.
63033         (Depends-on): Add link-warning.
63034         (configure.ac): Update.
63035         (Makefile.am): Create unistd.h always. Substitute many new variables
63036         into it.
63037
63038 2007-02-18  Bruno Haible  <bruno@clisp.org>
63039
63040         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63041         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63042         HAVE_GETSUBOPT.
63043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63044         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63045         * lib/getsubopt.h: Remove file.
63046         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63047         (Depends-on): Add stdlib.
63048         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63049         (Includes): Use <stdlib.h> instead of getsubopt.h.
63050         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63051         Set HAVE_GETSUBOPT.
63052         * lib/getsubopt.c: Don't include getsubopt.h.
63053
63054 2007-02-18  Bruno Haible  <bruno@clisp.org>
63055
63056         * modules/fchdir (Depends-on): Add dup2.
63057
63058 2007-02-18  Bruno Haible  <bruno@clisp.org>
63059
63060         * lib/stdlib_.h: Handle glibc's special invocation convention
63061         specially.
63062
63063 2007-02-18  Bruno Haible  <bruno@clisp.org>
63064
63065         * modules/stdlib-tests: New file.
63066         * tests/test-stdlib.c: New file.
63067
63068         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63069         (Depends-on): Add stdlib.
63070         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63071         (Includes): Use <stdlib.h> instead of mkstemp.h.
63072         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63073         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63074         * lib/mkstemp.c: Don't include mkstemp.h.
63075         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63076         * lib/stdlib--.h: Don't include mkstemp.h.
63077
63078         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63079         (Depends-on): Add stdlib.
63080         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63081         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63082         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63083         HAVE_MKDTEMP.
63084         * lib/mkdtemp.c: Don't include mkdtemp.h.
63085         * lib/clean-temp.c: Don't include mkdtemp.h.
63086
63087         * modules/exit (Files): Remove lib/exit.h.
63088         (Depends-on): Add stdlib.
63089         (Makefile.am): Remove lib_SOURCES.
63090         (Include): Use <stdlib.h> instead of exit.h.
63091         * lib/argmatch.c: Don't include exit.h.
63092         * lib/execute.c: Likewise.
63093         * lib/pagealign_alloc.c: Likewise.
63094         * lib/pipe.c: Likewise.
63095         * lib/wait-process.c: Likewise.
63096         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63097         * lib/exitfail.c: Likewise.
63098         * lib/savewd.c: Likewise.
63099         * lib/xsetenv.c: Likewise.
63100
63101         * modules/stdlib: New file.
63102         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63103         and extra comments about mkstemp().
63104         * lib/exit.h: Remove file.
63105         * lib/mkdtemp.h: Remove file.
63106         * lib/mkstemp.h: Remove file.
63107         * m4/stdlib_h.m4: New file.
63108         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63109
63110 2007-02-18  Bruno Haible  <bruno@clisp.org>
63111
63112         * modules/math-tests: New file.
63113         * tests/test-math.c: New file.
63114
63115         * modules/math: New file.
63116         * modules/mathl (Files): Remove lib/mathl.h.
63117         (Depends-on): Add math.
63118         (Makefile.am): Don't mention mathl.h.
63119         (Include): Use <math.h> instead of mathl.h.
63120         * lib/math_.h: New file.
63121         * lib/mathl.h: Remove file.
63122         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63123         mathl.h.
63124         * lib/asinl.c: Likewise.
63125         * lib/atanl.c: Likewise.
63126         * lib/ceill.c: Likewise.
63127         * lib/cosl.c: Likewise.
63128         * lib/expl.c: Likewise.
63129         * lib/floorl.c: Likewise.
63130         * lib/frexpl.c: Likewise.
63131         * lib/ldexpl.c: Likewise.
63132         * lib/logl.c: Likewise.
63133         * lib/sincosl.c: Likewise.
63134         * lib/sinl.c: Likewise.
63135         * lib/sqrtl.c: Likewise.
63136         * lib/tanl.c: Likewise.
63137         * lib/trigl.c: Likewise.
63138         * m4/math_h.m4: New file.
63139         * MODULES.html.sh (Mathematics): Add math.
63140
63141 2007-02-17  Bruno Haible  <bruno@clisp.org>
63142
63143         * modules/wctype-tests: New file.
63144         * tests/test-wctype.c: New file.
63145
63146         * modules/wchar-tests: New file.
63147         * tests/test-wchar.c: New file.
63148
63149         * modules/unistd-tests: New file.
63150         * tests/test-unistd.c: New file.
63151
63152         * modules/time-tests: New file.
63153         * tests/test-time.c: New file.
63154
63155         * modules/sysexits-tests: New file.
63156         * tests/test-sysexits.c: New file.
63157
63158         * modules/sys_time-tests: New file.
63159         * tests/test-sys_time.c: New file.
63160
63161         * modules/sys_stat-tests: New file.
63162         * tests/test-sys_stat.c: New file.
63163
63164         * modules/sys_socket-tests: New file.
63165         * tests/test-sys_socket.c: New file.
63166
63167         * modules/sys_select-tests: New file.
63168         * tests/test-sys_select.c: New file.
63169
63170         * modules/string-tests: New file.
63171         * tests/test-string.c: New file.
63172
63173         * modules/stdbool-tests: New file.
63174         * tests/test-stdbool.c: New file.
63175
63176         * modules/netinet_in-tests: New file.
63177         * tests/test-netinet_in.c: New file.
63178
63179         * modules/inttypes-tests: New file.
63180         * tests/test-inttypes.c: New file.
63181
63182         * modules/fcntl-tests: New file.
63183         * tests/test-fcntl.c: New file.
63184
63185         * modules/byteswap-tests: New file.
63186         * tests/test-byteswap.c: New file.
63187
63188         * modules/arpa_inet-tests: New file.
63189         * tests/test-arpa_inet.c: New file.
63190
63191 2007-02-17  Bruno Haible  <bruno@clisp.org>
63192
63193         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63194         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63195         if the corresponding module is not enabled. Emit link warnings if
63196         the function is used nevertheless.
63197         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63198         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63199         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63200         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63201         * modules/inttypes (Depends-on): Add link-warning.
63202         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63203         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63204         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63205         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63206         * modules/imaxdiv (configure.ac): Likewise.
63207         * modules/strtoimax (configure.ac): Likewise.
63208         * modules/strtoumax (configure.ac): Likewise.
63209
63210 2007-02-17  Bruno Haible  <bruno@clisp.org>
63211
63212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63213         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63214         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63215         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63216
63217 2007-02-17  Bruno Haible  <bruno@clisp.org>
63218
63219         * modules/link-warning: New file.
63220         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63221         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63222         * modules/string (Depends-on): Add link-warning.
63223         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63224         string.h.
63225         * MODULES.html.sh (Support for building libraries and executables): Add
63226         link-warning.
63227
63228 2007-02-17  Bruno Haible  <bruno@clisp.org>
63229
63230         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63231         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63232         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63233         long lines.
63234
63235 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63236             Bruno Haible  <bruno@clisp.org>
63237
63238         * modules/tmpfile: New file.
63239         * lib/tmpfile.c: New file.
63240         * m4/tmpfile.m4: New file.
63241         * MODULES.html.sh (func_all_modules): New section "Input/output".
63242
63243 2007-02-15  Bruno Haible  <bruno@clisp.org>
63244
63245         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63246         (supports_delete_on_close): New function.
63247         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63248
63249 2007-02-14  Bruno Haible  <bruno@clisp.org>
63250
63251         * modules/mbspcasecmp-tests: New file.
63252         * tests/test-mbspcasecmp.sh: New file.
63253         * tests/test-mbspcasecmp.c: New file.
63254
63255         New module mbspcasecmp.
63256         * modules/mbspcasecmp: New file.
63257         * lib/mbspcasecmp.c: New file.
63258         * lib/string_.h (strncasecmp): Change warning message.
63259         (mbspcasecmp): New declaration.
63260         * m4/mbspcasecmp.m4: New file.
63261         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63262         GNULIB_MBSPCASECMP.
63263         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63264         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63265
63266 2007-02-14  Bruno Haible  <bruno@clisp.org>
63267
63268         * modules/mbsncasecmp-tests: New file.
63269         * tests/test-mbsncasecmp.sh: New file.
63270         * tests/test-mbsncasecmp.c: New file.
63271
63272         New module mbsncasecmp.
63273         * modules/mbsncasecmp: New file.
63274         * lib/mbsncasecmp.c: New file.
63275         * lib/string_.h (mbsncasecmp): New declaration.
63276         * m4/mbsncasecmp.m4: New file.
63277         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63278         GNULIB_MBSNCASECMP.
63279         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63280         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63281
63282 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63283
63284         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63285         Verify that it doesn't overlap with our flags.
63286         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63287         do not have the desired effect in multibyte locales; instead, use
63288         mbscasecmp.
63289         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63290         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63291         we don't require GNU fnmatch ourselves (if our users require it, they
63292         should do so explicitly).
63293
63294         Fix regex code so it doesn't rely on strcasecmp.
63295         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63296         Otherwise, include gnulib's langinfo.h.
63297         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63298         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63299         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63300         * modules/regex (FILES): Remove m4/codeset.m4.
63301         (Depends-on): Add localcharset.  Remove strcase.
63302
63303 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63304
63305         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63306         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63307
63308 2007-02-13  Bruno Haible  <bruno@clisp.org>
63309
63310         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63311         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63312
63313 2007-02-12  Bruno Haible  <bruno@clisp.org>
63314
63315         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63316         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63317         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63318         time warning rather than a link error.
63319
63320 2007-02-12  Bruno Haible  <bruno@clisp.org>
63321
63322         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63323         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63324         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63325
63326 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63327
63328         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63329         args, not 2.
63330
63331 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63332
63333         New module 'time', so that apps can include <time.h> as per
63334         POSIX and GNU instead of separate include files like time_r.h
63335         and timegm.h.  This implementation tries out a simpler approach
63336         for replacing decls in standard include files (as compared to
63337         the string module), somewhat as an experiment.
63338
63339         * config/srclist.txt: Comment out mktime.c for now.
63340         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63341         since it doesn't apply any more.  Use generic wording instead.
63342         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63343         'time'.
63344         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63345         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63346         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63347         Don't include <sys/types.h>; no longer needed since we assume C89.
63348         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63349         * lib/strftime.c: Likewise.
63350         * lib/time_r.c: Likewise.
63351         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63352         * lib/nanosleep.c: Include <time.h> first, to check interface.
63353         * lib/strptime.c: Likewise.
63354         * lib/time_r.c: Likewise.
63355         * lib/timegm.c: Likewise.
63356         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63357         needed.
63358         * lib/timegm.c: Don't include timegm.h; no longer needed.
63359         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63360         time.h now handles any problems in that area.
63361         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63362         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63363         that time.h defines struct timespec.
63364         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63365         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63366         handles that.
63367         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63368         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63369         needed.  Set REPLACE_LOCALTIME.
63370         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63371         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63372         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63373         nanosleep; time_h.m4 now does that.  Don't require
63374         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63375         module handles this now.
63376         * modules/getdate (Depends-on): Remove timespec.  Add time.
63377         * modules/nanosleep (Depends-on): Likewise.
63378         * modules/stat-time (Depends-on): Likewise.
63379         * modules/nanosleep (Include): Include time.h, not timespec.h.
63380         * modules/strptime (Files): Remove lib/strptime.h.
63381         (Depends-on): Add extensions, time.
63382         (Include): Include time.h, not strptime.h.
63383         * modules/time_r (Files): Remove lib/time_r.h.
63384         (Depends-on): Add time.
63385         (Include): Include time.h, not time_r.h.
63386         * modules/timegm: Likewise.
63387         * modules/timespec (Description): Now does timespec-related decls
63388         of our own, instead of struct timespec itself.
63389         (Depends-on): Add time; remove extensions.
63390         (Maintainer): Add self.
63391         * modules/utimecmp (Depends-on): Add time; remove timespec.
63392         * modules/utimens (Depends-on): Likewise.
63393         * modules/xnanosleep (Depends-on): Likewise.
63394
63395 2007-02-11  Bruno Haible  <bruno@clisp.org>
63396
63397         * lib/c-strstr.c: Include allocsa.h.
63398         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63399         * lib/c-strcasestr.c: Include allocsa.h.
63400         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63401         * lib/strcasestr.c: Include allocsa.h.
63402         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63403         * lib/mbsstr.c: Include allocsa.h.
63404         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63405         allocsa/freesa instead of malloc/free.
63406         * lib/mbscasestr.c: Include allocsa.h.
63407         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63408         allocsa/freesa instead of malloc/free.
63409         * modules/c-strstr (Depends-on): Add allocsa.
63410         * modules/c-strcasestr (Depends-on): Likewise.
63411         * modules/strcasestr (Depends-on): Likewise.
63412         * modules/mbsstr (Depends-on): Likewise.
63413         * modules/mbscasestr (Depends-on): Likewise.
63414
63415 2007-02-11  Bruno Haible  <bruno@clisp.org>
63416
63417         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63418
63419         * modules/mbsspn-tests: New file.
63420         * tests/test-mbsspn.sh: New file.
63421         * tests/test-mbsspn.c: New file.
63422
63423 2007-02-11  Bruno Haible  <bruno@clisp.org>
63424
63425         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63426
63427         * modules/mbspbrk-tests: New file.
63428         * tests/test-mbspbrk.sh: New file.
63429         * tests/test-mbspbrk.c: New file.
63430
63431 2007-02-11  Bruno Haible  <bruno@clisp.org>
63432
63433         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63434         unneeded cast.
63435
63436         * modules/mbscspn-tests: New file.
63437         * tests/test-mbscspn.sh: New file.
63438         * tests/test-mbscspn.c: New file.
63439
63440 2007-02-11  Bruno Haible  <bruno@clisp.org>
63441
63442         * modules/mbscasecmp-tests: New file.
63443         * tests/test-mbscasecmp.sh: New file.
63444         * tests/test-mbscasecmp.c: New file.
63445
63446 2007-02-11  Bruno Haible  <bruno@clisp.org>
63447
63448         Ensure O(n) worst-case complexity of mbscasestr.
63449         * lib/mbscasestr.c: Include stdbool.h.
63450         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63451         functions.
63452         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63453         the bookkeeping indicates that it's worth it.
63454         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63455
63456         * modules/mbscasestr-tests: New file.
63457         * tests/test-mbscasestr1.c: New file.
63458         * tests/test-mbscasestr2.sh: New file.
63459         * tests/test-mbscasestr2.c: New file.
63460         * tests/test-mbscasestr3.sh: New file.
63461         * tests/test-mbscasestr3.c: New file.
63462         * tests/test-mbscasestr4.sh: New file.
63463         * tests/test-mbscasestr4.c: New file.
63464         * m4/locale-tr.m4: New file.
63465
63466 2007-02-11  Bruno Haible  <bruno@clisp.org>
63467
63468         Ensure O(n) worst-case complexity of mbsstr.
63469         * lib/mbsstr.c: Include stdbool.h.
63470         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63471         functions.
63472         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63473         bookkeeping indicates that it's worth it.
63474         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63475
63476         * modules/mbsstr-tests: New file.
63477         * tests/test-mbsstr1.c: New file.
63478         * tests/test-mbsstr2.sh: New file.
63479         * tests/test-mbsstr2.c: New file.
63480         * tests/test-mbsstr3.sh: New file.
63481         * tests/test-mbsstr3.c: New file.
63482         * m4/locale-fr.m4: New file.
63483
63484 2007-02-11  Bruno Haible  <bruno@clisp.org>
63485
63486         * lib/mbsrchr.c (mbsrchr): Fix bug.
63487
63488         * modules/mbsrchr-tests: New file.
63489         * tests/test-mbsrchr.sh: New file.
63490         * tests/test-mbsrchr.c: New file.
63491
63492 2007-02-11  Bruno Haible  <bruno@clisp.org>
63493
63494         * lib/mbschr.c (mbschr): Fix bug.
63495
63496         * modules/mbschr-tests: New file.
63497         * tests/test-mbschr.sh: New file.
63498         * tests/test-mbschr.c: New file.
63499         * m4/locale-zh.m4: New file.
63500
63501 2007-02-11  Bruno Haible  <bruno@clisp.org>
63502
63503         Support for copying multibyte string iterators.
63504         * lib/mbiter.h: Include <string.h>.
63505         (mbiter_multi_copy): New function.
63506         (mbi_copy): New macro.
63507         * lib/mbuiter.h: Include <string.h>.
63508         (mbuiter_multi_copy): New function.
63509         (mbui_copy): New macro.
63510
63511 2007-02-11  Bruno Haible  <bruno@clisp.org>
63512
63513         New module mbslen.
63514         * modules/mbslen: New file.
63515         * lib/mbslen.c: New file.
63516         * lib/string_.h (mbslen): New declaration.
63517         * m4/mbslen.m4: New file.
63518         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63519         GNULIB_MBSLEN.
63520         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63521         * MODULES.html.sh (Internationalization functions): Add mbslen.
63522
63523 2007-02-11  Bruno Haible  <bruno@clisp.org>
63524
63525         Ensure O(n) worst-case complexity of strcasestr substitute.
63526         * lib/strcasestr.c: Include stdbool.h.
63527         (knuth_morris_pratt): New function.
63528         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63529         bookkeeping indicates that it's worth it.
63530         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63531
63532         * modules/strcasestr-tests: New file.
63533         * tests/test-strcasestr.c: New file.
63534
63535 2007-02-11  Bruno Haible  <bruno@clisp.org>
63536
63537         Ensure O(n) worst-case complexity of c_strcasestr.
63538         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63539         (knuth_morris_pratt): New function.
63540         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63541         the bookkeeping indicates that it's worth it.
63542         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63543
63544         * modules/c-strcasestr-tests: New file.
63545         * tests/test-c-strcasestr.c: New file.
63546
63547 2007-02-11  Bruno Haible  <bruno@clisp.org>
63548
63549         Ensure O(n) worst-case complexity of c_strstr.
63550         * lib/c-strstr.c: Include stdbool.h, string.h.
63551         (knuth_morris_pratt): New function.
63552         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63553         bookkeeping indicates that it's worth it.
63554         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63555
63556         * lib/c-strstr.c: Complete rewrite for maintainability.
63557
63558         * modules/c-strstr-tests: New file.
63559         * tests/test-c-strstr.c: New file.
63560
63561 2007-02-11  Bruno Haible  <bruno@clisp.org>
63562
63563         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63564         5.2.1 and earlier, whereby \055 was treated just like the range
63565         delimiter '-'.
63566         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63567
63568 2007-02-08  Bruno Haible  <bruno@clisp.org>
63569
63570         * modules/regex (Depends-on): Add stdbool.
63571         Reported by Dalibor Topic <robilad@kaffe.org>.
63572
63573 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63574
63575         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63576         Prefer returning from main to exiting from it.
63577         Remove unnecessary parens after sizeof.
63578
63579 2007-02-05  Bruno Haible  <bruno@clisp.org>
63580
63581         New module mbssep.
63582         * modules/mbssep: New file.
63583         * lib/mbssep.c: New file.
63584         * lib/string_.h (strsep): Add a conditional link warning.
63585         (mbssep): New declaration.
63586         * m4/mbssep.m4: New file.
63587         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63588         GNULIB_MBSSEP.
63589         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63590         * MODULES.html.sh (Internationalization functions): Add mbssep.
63591
63592 2007-02-05  Bruno Haible  <bruno@clisp.org>
63593
63594         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63595         Optimize search in case of 1 delimiter.
63596
63597 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63598
63599         * lib/acl.h: Include sys/types.h before sys/acl.h.
63600
63601 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63602
63603         Merge upstream fix for glibc bugzilla #3957:
63604
63605         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63606
63607         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63608         bit for RE_HAT_LISTS_NOT_NEWLINE.
63609         (build_charclass_op): Remove bogus comment.
63610
63611 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63612
63613         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63614
63615 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63616
63617         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63618         * lib/memmem.c [!defined _LIBC]: Include config.h.
63619
63620 2007-02-04  Bruno Haible  <bruno@clisp.org>
63621
63622         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63623         warning message.
63624
63625 2007-02-04  Bruno Haible  <bruno@clisp.org>
63626
63627         New module mbstok_r.
63628         * modules/mbstok_r: New file.
63629         * lib/mbstok_r.c: New file.
63630         * lib/string_.h (strtok_r): Change argument names to match the
63631         comments. Add a conditional link warning.
63632         (mbstok_r): New declaration.
63633         * m4/mbstok_r.m4: New file.
63634         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63635         GNULIB_MBSTOK_R.
63636         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63637         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63638
63639 2007-02-04  Bruno Haible  <bruno@clisp.org>
63640
63641         New module mbsspn.
63642         * modules/mbsspn: New file.
63643         * lib/mbsspn.c: New file.
63644         * lib/string_.h (strspn): Add a conditional link warning.
63645         (mbsspn): New declaration.
63646         * m4/mbsspn.m4: New file.
63647         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63648         GNULIB_MBSSPN.
63649         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63650         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63651
63652 2007-02-04  Bruno Haible  <bruno@clisp.org>
63653
63654         New module mbspbrk.
63655         * modules/mbspbrk: New file.
63656         * lib/mbspbrk.c: New file.
63657         * lib/string_.h (strpbrk): Add a conditional link warning.
63658         (mbspbrk): New declaration.
63659         * m4/mbspbrk.m4: New file.
63660         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63661         GNULIB_MBSPBRK.
63662         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63663         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63664
63665 2007-02-04  Bruno Haible  <bruno@clisp.org>
63666
63667         New module mbscspn.
63668         * modules/mbscspn: New file.
63669         * lib/mbscspn.c: New file.
63670         * lib/string_.h (strcspn): Add a conditional link warning.
63671         (mbscspn): New declaration.
63672         * m4/mbscspn.m4: New file.
63673         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63674         GNULIB_MBSCSPN.
63675         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63676         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63677
63678 2007-02-04  Bruno Haible  <bruno@clisp.org>
63679
63680         New module mbscasestr, reduced goal of strcasestr.
63681         * modules/mbscasestr: New file.
63682         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63683         (mbscasestr): Renamed from strcasestr.
63684         * lib/strcasestr.c: Don't include mbuiter.h.
63685         (strcasestr): Remove support for multibyte locales.
63686         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63687         Change the conditional link warning.
63688         (mbscasestr): New declaration.
63689         * m4/mbscasestr.m4: New file.
63690         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63691         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63692         REPLACE_STRCASESTR.
63693         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63694         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63695         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63696         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63697         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63698         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63699         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63700         (Depends-on): Remove mbuiter.
63701         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63702
63703 2007-02-04  Bruno Haible  <bruno@clisp.org>
63704
63705         Simplify handling of strncasecmp.
63706         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63707         the conditional link warning.
63708         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63709         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63710         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63711         * modules/strcase (configure.ac): Don't invoke
63712         gl_STRING_MODULE_INDICATOR.
63713         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63714
63715 2007-02-04  Bruno Haible  <bruno@clisp.org>
63716
63717         New module mbscasecmp, reduced goal of strcasecmp.
63718         * modules/mbscasecmp: New file.
63719         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63720         (mbscasecmp): Renamed from strcasecmp.
63721         * lib/strcasecmp.c: Don't include mbuiter.h.
63722         (strcasecmp): Remove support for multibyte locales.
63723         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63724         Change the conditional link warning.
63725         (mbscasecmp): New declaration.
63726         * m4/mbscasecmp.m4: New file.
63727         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63728         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63729         REPLACE_STRCASECMP.
63730         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63731         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63732         GNULIB_MBSCASECMP.
63733         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63734         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63735         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63736         (Depends-on): Remove mbuiter.
63737         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63738
63739 2007-02-04  Bruno Haible  <bruno@clisp.org>
63740
63741         New module mbsstr. Remove module strstr.
63742         * modules/mbsstr: New file.
63743         * modules/strstr: Remove file.
63744         * lib/mbsstr.c: Renamed from lib/strstr.c.
63745         (mbsstr): Renamed from strstr.
63746         * lib/string_.h (strstr): Remove declaration. Change the conditional
63747         link warning.
63748         (mbsstr): New declaration.
63749         * m4/mbsstr.m4: New file.
63750         * m4/strstr.m4: Remove file.
63751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63752         REPLACE_STRSTR.
63753         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63754         Don't initialize GNULIB_STRSTR.
63755         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63756         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63757         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63758         (Support for systems lacking ANSI C 89): Remove strstr.
63759
63760 2007-02-04  Bruno Haible  <bruno@clisp.org>
63761
63762         New module mbsrchr.
63763         * modules/mbsrchr: New file.
63764         * lib/mbsrchr.c: New file.
63765         * lib/string_.h (strrchr): Add a conditional link warning.
63766         (mbsrchr): New declaration.
63767         * m4/mbsrchr.m4: New file.
63768         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63769         GNULIB_MBSRCHR.
63770         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63771         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63772
63773 2007-02-04  Bruno Haible  <bruno@clisp.org>
63774
63775         New module mbschr.
63776         * modules/mbschr: New file.
63777         * lib/mbschr.c: New file.
63778         * lib/string_.h (strchr): Add a conditional link warning.
63779         (mbschr): New declaration.
63780         * m4/mbschr.m4: New file.
63781         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63782         GNULIB_MBSCHR.
63783         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63784         * MODULES.html.sh (Internationalization functions): Add mbschr.
63785
63786 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63787
63788         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63789
63790         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63791
63792 2007-02-04  Bruno Haible  <bruno@clisp.org>
63793
63794         New module description section 'configure.ac-early'.
63795         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63796         (func_get_autoconf_early_snippet): New function.
63797         (func_import, func_create_testdir): Use it. Remove special cases for
63798         modules 'extensions' and 'lock'.
63799         * modules/extensions (configure.ac-early): Require
63800         gl_USE_SYSTEM_EXTENSIONS.
63801         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63802
63803 2007-02-04  Bruno Haible  <bruno@clisp.org>
63804
63805         Make use of gcj-4.3's -fsource and -ftarget option.
63806         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63807         and if so try the options -fsource and -ftarget.
63808         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63809         source_version, ftarget_option, target_version arguments.
63810         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63811         (is_envjavac_oldgcj_14_14_usable): Renamed from
63812         is_envjavac_gcj_14_14_usable.
63813         (is_envjavac_oldgcj_14_13_usable): Renamed from
63814         is_envjavac_gcj_14_13_usable.
63815         (is_gcj_present): Update.
63816         (is_gcj_43, is_gcj43_usable): New functions.
63817         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63818         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63819         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63820         try the options -fsource and -ftarget.
63821
63822 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63823
63824         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63825         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63826         larger value.
63827
63828 2007-02-03  Jim Meyering  <jim@meyering.net>
63829
63830         Give tools a better chance to allocate space for very large buffers.
63831         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63832
63833         Make pwd and readlink work also when run with an unreadable parent dir
63834         on systems with openat support.
63835         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63836         provided getcwd function, even when we have openat support.
63837         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63838
63839 2007-02-02  Bruno Haible  <bruno@clisp.org>
63840
63841         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63842         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63843         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63844         portability problems if one of these functions is only used on specific
63845         platforms.
63846         Reported by Paul Eggert.
63847
63848 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63849
63850         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63851         is causing more trouble than it's curing.
63852         * lib/regex_internal.h (__mempcpy): Remove.
63853         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63854         (and make the code a tad smaller to boot).
63855         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63856
63857 2007-02-02  Jim Meyering  <jim@meyering.net>
63858
63859         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63860         section, not in the Makefile.am: one.
63861
63862 2007-02-02  Eric Blake  <ebb9@byu.net>
63863
63864         * lib/strchrnul.c: Always include config.h first.
63865
63866         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63867         gnulib strstr is not necessary here.
63868
63869 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63870
63871         * m4/socklen.m4: Fix typo.
63872
63873 2007-02-02  Eric Blake  <ebb9@byu.net>
63874
63875         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63876         * modules/netinet_in (Makefile.am): Likewise.
63877
63878 2007-02-01  Bruno Haible  <bruno@clisp.org>
63879
63880         * lib/string_.h (GL_LINK_WARNING): New macro.
63881         (strcasecmp, strstr, strcasestr): If provided by the system,
63882         conditionally define as a macro that leads to a warning instead of to
63883         an error.
63884         (strncasecmp): Conditionally define as a macro that leads to a warning.
63885
63886 2007-02-01  Karl Berry  <karl@gnu.org>
63887
63888         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63889
63890 2007-02-01  Bruno Haible  <bruno@clisp.org>
63891
63892         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63893         renamings.
63894
63895 2007-02-01  Eric Blake  <ebb9@byu.net>
63896
63897         * modules/regex (Depends-on): Revert dependence on mempcpy.
63898         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63899         module's definition of mempcpy.
63900         Reported by Paul Eggert.
63901
63902 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63903
63904         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63905         the symbol XYZ before redefining it.  This fixes a problem with
63906         programs that don't use XYZ, when compiled on systems that define
63907         XYZ to something else.
63908
63909 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63910
63911         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63912         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63913         writeable to group or other and (2) is intended to have a special
63914         mode bit that is set or cleared.  In such a case, the directory
63915         should be neither group- nor other-writeable until the special
63916         mode bits are right.
63917
63918 2007-01-31  Eric Blake  <ebb9@byu.net>
63919
63920         * modules/mountlist (Depends-on): Add strstr.
63921
63922         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63923         bug.
63924         * modules/string (Makefile.am): Remove redundant replacement.
63925         * modules/regex (Depends-on): Add mempcpy.
63926
63927 2007-01-31  Bruno Haible  <bruno@clisp.org>
63928
63929         New module description field 'Link'.
63930         * gnulib-tool (func_usage): Document --extract-link-directive.
63931         (sed_extract_prog): Recognize 'Link' directive.
63932         (func_get_link_directive): New function.
63933         (func_import): Show summary of link directives.
63934         Handle --extract-link-directive option.
63935         * modules/acl (Link): New section.
63936         * modules/clock-time (Link): New section.
63937         * modules/euidaccess (Link): New section.
63938         * modules/gettext (Link): New section.
63939         * modules/iconv (Link): New section.
63940         * modules/lock (Link): New section.
63941         * modules/nanosleep (Link): New section.
63942         * modules/readline (Link): New section.
63943
63944 2007-01-27  Bruno Haible  <bruno@clisp.org>
63945
63946         Enforce the use of gnulib modules for unportable <string.h> functions.
63947         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63948         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63949         (gl_HEADER_STRING_H_BODY): Require it.
63950         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63951         the symbol XYZ to one that gives a link error.
63952         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63953         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63954         * modules/mempcpy (configure.ac): Likewise.
63955         * modules/memrchr (configure.ac): Likewise.
63956         * modules/stpcpy (configure.ac): Likewise.
63957         * modules/stpncpy (configure.ac): Likewise.
63958         * modules/strcase (configure.ac): Likewise.
63959         * modules/strcasestr (configure.ac): Likewise.
63960         * modules/strchrnul (configure.ac): Likewise.
63961         * modules/strdup (configure.ac): Likewise.
63962         * modules/strndup (configure.ac): Likewise.
63963         * modules/strnlen (configure.ac): Likewise.
63964         * modules/strpbrk (configure.ac): Likewise.
63965         * modules/strsep (configure.ac): Likewise.
63966         * modules/strstr (configure.ac): Likewise.
63967         * modules/strtok_r (configure.ac): Likewise.
63968
63969 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63970
63971         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63972
63973 2007-01-30  Jim Meyering  <jim@meyering.net>
63974
63975         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63976
63977 2007-01-29  Bruno Haible  <bruno@clisp.org>
63978
63979         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63980         * lib/execute.c: Likewise.
63981         * lib/pipe.c: Likewise.
63982         * lib/printf-args.h: Likewise.
63983         * lib/printf-args.c: Likewise.
63984         * lib/printf-parse.c: Likewise.
63985         * lib/vasnprintf.c: Likewise.
63986
63987 2007-01-29  Eric Blake  <ebb9@byu.net>
63988
63989         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63990         declaration.
63991
63992 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63993
63994         * lib/strptime.h (strptime): Use 'restrict' for args where
63995         POSIX requires this.
63996         * lib/strptime.c (strptime): Likewise.
63997         Change license notice from LGPL to GPL, since gnulib-tool will
63998         change this as needed.
63999         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64000         defined.
64001         Include "strptime.h" first, to check interface.
64002         Do not #undef _LIBC and _NL_CURRENT.
64003         Do not include <stdlib.h>; no longer needed.
64004         Include "time_r.h" and declare ptime_locale_status
64005         only if _LIBC is not defined.
64006         (__P): Remove unused macro.
64007         (match_string): Bring back glibc version, but use it only if _LIBC
64008         is defined.
64009         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64010         Remove unnecessary assertion and abort() call.
64011         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64012         * m4/strptime.m4: Fix serial number comment.
64013         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64014         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64015         (Depends-on): Add time_r.
64016
64017 2007-01-29  Bruno Haible  <bruno@clisp.org>
64018
64019         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64020         strptime.
64021         * modules/strptime (Depends-on): Add stdbool.
64022         * lib/strptime.h: Include <time.h> always. Add comments.
64023
64024 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64025
64026         * modules/strptime: New file.
64027         * lib/strptime.h: New file.
64028         * lib/strptime.c: New file.
64029         * m4/strptime.m4: New file.
64030
64031 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64032
64033         * MODULES.html.sh: New module mpsort.
64034         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64035
64036         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64037         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64038         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64039         All uses changed.
64040         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64041         All uses changed.
64042         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64043         to _Restrict_.
64044         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64045         the parameter matches the prototype.
64046
64047 2007-01-28  Jim Meyering  <jim@meyering.net>
64048
64049         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64050         sys/time.h here, reverting that part of the previous patch:
64051         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64052
64053 2007-01-28  Bruno Haible  <bruno@clisp.org>
64054
64055         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64056         value of $(SYS_TIME_H).
64057         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64058         remove it conditionally, too. [added by Jim Meyering]
64059         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64060         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64061         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64062         GETTIMEOFDAY_REPLACEMENT to 1.
64063
64064 2007-01-28  Bruno Haible  <bruno@clisp.org>
64065
64066         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64067         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64068         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64069         Set UNISTD_H instead of UNISTD_H2.
64070         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64071
64072 2007-01-28  Bruno Haible  <bruno@clisp.org>
64073
64074         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64075         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64076
64077 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64078
64079         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64080         (func_create_testdir): Ensure C locale for `grep' and `tr'
64081         character ranges.
64082         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64083         ACLOCAL_AMFLAGS parsing state machine.
64084
64085 2007-01-27  Bruno Haible  <bruno@clisp.org>
64086
64087         * modules/unistr/base: Update.
64088
64089 2007-01-27  Bruno Haible  <bruno@clisp.org>
64090
64091         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64092         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64093         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64094         modules/unistr/u32-mbtouc.
64095         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64096         * lib/unistr.h: Update.
64097         * lib/linebreak.c: Update.
64098         * modules/unistr/u32-mbtouc: Renamed from
64099         modules/unistr/u32-mbtouc-safe.
64100         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64101         * lib/unistr.h: Update.
64102         * lib/unistr/u32-to-u8.c: Update.
64103         * lib/unistr/u32-to-u16.c: Update.
64104
64105 2007-01-27  Bruno Haible  <bruno@clisp.org>
64106
64107         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64108         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64109         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64110         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64111         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64112         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64113         modules/unistr/u16-mbtouc.
64114         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64115         * lib/unistr.h: Update.
64116         * lib/linebreak.c: Update.
64117         * modules/linebreak: Update.
64118         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64119         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64120         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64121         * modules/unistr/u16-mbtouc: Renamed from
64122         modules/unistr/u16-mbtouc-safe.
64123         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64124         * lib/unistr.h: Update.
64125         * lib/unistr/u16-to-u8.c: Update.
64126         * modules/unistr/u16-to-u8: Update.
64127         * lib/unistr/u16-to-u32.c: Update.
64128         * modules/unistr/u16-to-u32: Update.
64129
64130 2007-01-27  Bruno Haible  <bruno@clisp.org>
64131
64132         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64133         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64134         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64135         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64136         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64137         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64138         modules/unistr/u8-mbtouc.
64139         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64140         * lib/unistr.h: Update.
64141         * lib/striconveh.c: Update.
64142         * modules/striconveh: Update.
64143         * lib/linebreak.c: Update.
64144         * modules/linebreak: Update.
64145         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64146         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64147         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64148         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64149         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64150         * lib/unistr.h: Update.
64151         * lib/striconveh.c: Update.
64152         * modules/striconveh: Update.
64153         * lib/unistr/u8-to-u16.c: Update.
64154         * modules/unistr/u8-to-u16: Update.
64155         * lib/unistr/u8-to-u32.c: Update.
64156         * modules/unistr/u8-to-u32: Update.
64157
64158 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64159
64160         Sync from Libtool.
64161         * lib/argz.c: Do not include strings.h nor memory.h, include
64162         string.h unconditionally.  Patch by Simon Josefsson.
64163
64164 2007-01-27  Bruno Haible  <bruno@clisp.org>
64165
64166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64167         from gl_HEADER_STRING_H_BODY.
64168         (gl_HEADER_STRING_H_BODY): Require it.
64169         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64170         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64171         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64172         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64173         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64174         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64175         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64176         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64177         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64178         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64179         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64180         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64181         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64182         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64183         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64184
64185 2007-01-27  Bruno Haible  <bruno@clisp.org>
64186
64187         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64188         check_PROGRAMS into noinst_PROGRAMS.
64189         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64190         check_PROGRAMS in this case.
64191         (func_import): Set for_test to false.
64192         (func_create_testdir): Set for_test to true.
64193
64194 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64195             Bruno Haible  <bruno@clisp.org>
64196
64197         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64198         (Depends-on): Add string.
64199         (Includes): Use <string.h> instead of strcasestr.h.
64200         * modules/string (Makefile.am): Also substitute the value of
64201         REPLACE_STRCASESTR.
64202         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64203         assume strcasestr is declared in <string.h> not <strings.h>. Also
64204         set REPLACE_STRCASESTR.
64205         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64206         REPLACE_STRCASESTR.
64207         * lib/strcasestr.h: Remove file.
64208         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64209         * lib/string_.h (strcasestr): New declaration.
64210
64211 2007-01-27  Bruno Haible  <bruno@clisp.org>
64212
64213         * lib/string_.h: Use 'extern'.
64214
64215 2007-01-27  Jim Meyering  <jim@meyering.net>
64216
64217         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64218         of set-but-not-used local, "q".
64219
64220         * lib/mempcpy.c: Include <config.h> before <string.h>.
64221         This fixes a compilation error on HP-UX, due to the system's
64222         "restrict"-using mempcpy prototype.
64223
64224 2007-01-26  Bruno Haible  <bruno@clisp.org>
64225
64226         Small optimization.
64227         * lib/javacomp.c: Include c-strstr.h.
64228          (is_envjavac_gcj): Use c_strstr instead of strstr.
64229         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64230
64231 2007-01-26  Bruno Haible  <bruno@clisp.org>
64232
64233         * MODULES.html.sh (Unicode string functions): Add the new modules.
64234
64235         * modules/uniconv/u32-strconv-to-locale: New file.
64236         * lib/uniconv/u32-strconv-to-locale.c: New file.
64237
64238         * modules/uniconv/u16-strconv-to-locale: New file.
64239         * lib/uniconv/u16-strconv-to-locale.c: New file.
64240
64241         * modules/uniconv/u8-strconv-to-locale: New file.
64242         * lib/uniconv/u8-strconv-to-locale.c: New file.
64243
64244         * modules/uniconv/u32-strconv-from-locale: New file.
64245         * lib/uniconv/u32-strconv-from-locale.c: New file.
64246
64247         * modules/uniconv/u16-strconv-from-locale: New file.
64248         * lib/uniconv/u16-strconv-from-locale.c: New file.
64249
64250         * modules/uniconv/u8-strconv-from-locale: New file.
64251         * lib/uniconv/u8-strconv-from-locale.c: New file.
64252
64253         * modules/uniconv/u32-strconv-to-enc: New file.
64254         * lib/uniconv/u32-strconv-to-enc.c: New file.
64255         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64256         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64257
64258         * modules/uniconv/u16-strconv-to-enc: New file.
64259         * lib/uniconv/u16-strconv-to-enc.c: New file.
64260         * lib/uniconv/u-strconv-to-enc.h: New file.
64261         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64262         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64263
64264         * modules/uniconv/u8-strconv-to-enc: New file.
64265         * lib/uniconv/u8-strconv-to-enc.c: New file.
64266         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64267         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64268
64269         * modules/uniconv/u32-strconv-from-enc: New file.
64270         * lib/uniconv/u32-strconv-from-enc.c: New file.
64271         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64272         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64273
64274         * modules/uniconv/u16-strconv-from-enc: New file.
64275         * lib/uniconv/u16-strconv-from-enc.c: New file.
64276         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64277         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64278
64279         * modules/uniconv/u8-strconv-from-enc: New file.
64280         * lib/uniconv/u8-strconv-from-enc.c: New file.
64281         * lib/uniconv/u-strconv-from-enc.h: New file.
64282         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64283         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64284
64285         * modules/uniconv/u32-conv-from-enc: New file.
64286         * lib/uniconv/u32-conv-from-enc.c: New file.
64287         * modules/uniconv/u32-conv-from-enc-tests: New file.
64288         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64289
64290         * modules/uniconv/u16-conv-from-enc: New file.
64291         * lib/uniconv/u16-conv-from-enc.c: New file.
64292         * lib/uniconv/u-conv-from-enc.h: New file.
64293         * modules/uniconv/u16-conv-from-enc-tests: New file.
64294         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64295
64296         * modules/uniconv/u8-conv-from-enc: New file.
64297         * lib/uniconv/u8-conv-from-enc.c: New file.
64298         * modules/uniconv/u8-conv-from-enc-tests: New file.
64299         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64300
64301         * modules/uniconv/base: New file.
64302         * lib/uniconv.h: New file.
64303
64304 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64305
64306         * doc/gnulib-tool.texi (Initial import): Update to match current
64307         behavior with strdup module.
64308         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64309         * lib/memmem.h: Remove; all uses removed.  This is now done
64310         by <string.h>.
64311         * lib/mempcpy.h: Likewise.
64312         * lib/memrchr.h: Likewise.
64313         * lib/stpcpy.h: Likewise.
64314         * lib/stpncpy.h: Likewise.
64315         * lib/strcase.h: Likewise.
64316         * lib/strchrnul.h: Likewise.
64317         * lib/strdup.h: Likewise.
64318         * lib/strndup.h: Likewise.
64319         * lib/strnlen.h: Likewise.
64320         * lib/strpbrk.h: Likewise.
64321         * lib/strsep.h: Likewise.
64322         * lib/strstr.h: Likewise.
64323         * lib/strtok_r.h: Likewise.
64324         * lib/string_.h: New file.
64325         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64326         Rely on <string.h> instead.
64327         * lib/canon-host.c: Likewise.
64328         * lib/chdir-long.c: Likewise.
64329         * lib/concatpath.c: Likewise.
64330         * lib/exclude.c: Likewise.
64331         * lib/fchdir.c: Likewise.
64332         * lib/getaddrinfo.c: Likewise.
64333         * lib/getcwd.c: Likewise.
64334         * lib/getsubopt.c: Likewise.
64335         * lib/glob.c: Likewise.
64336         * lib/hard-locale.c: Likewise.
64337         * lib/iconvme.c: Likewise.
64338         * lib/javacomp.c: Likewise.
64339         * lib/mempcpy.c: Likewise.
64340         * lib/memrchr.c: Likewise.
64341         * lib/regex_internal.h: Likewise.
64342         * lib/stpncpy.c: Likewise.
64343         * lib/strcasecmp.c: Likewise.
64344         * lib/strchrnul.c: Likewise.
64345         * lib/strdup.c: Likewise.
64346         * lib/striconv.c: Likewise.
64347         * lib/striconveh.c: Likewise.
64348         * lib/striconveha.c: Likewise.
64349         * lib/strncasecmp.c: Likewise.
64350         * lib/strndup.c: Likewise.
64351         * lib/strnlen.c: Likewise.
64352         * lib/strsep.c: Likewise.
64353         * lib/strstr.c: Likewise.
64354         * lib/strtok_r.c: Likewise.
64355         * lib/userspec.c: Likewise.
64356         * lib/w32spawn.h: Likewise.
64357         * lib/xstrndup.c: Likewise.
64358         * lib/mountlist.c (strstr): Remove decl.
64359         * m4/string_h.m4: New file.
64360         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64361         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64362         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64363         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64364         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64365         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64366         Set REPLACE_STRCASECMP if necessary.
64367         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64368         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64369         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64370         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64371         HAVE_DECL_STRDUP if necessary.
64372         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64373         since gl_FUNC_STRNDUP does that now.
64374         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64375         Check for decl here...
64376         (gl_PREREQ_STRNLEN): ... not here.
64377         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64378         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64379         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64380         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64381         necessary.
64382         * modules/string: New file.
64383         * modules/memmem (Files): Remove special-purpose include file.
64384         (Depends-on): Add string.
64385         (Include): Include <string.h>, not the removed file.
64386         * modules/mempcpy: Likewise.
64387         * modules/memrchr: Likewise.
64388         * modules/stpcpy: Likewise.
64389         * modules/stpncpy: Likewise.
64390         * modules/strcase: Likewise.
64391         * modules/strchrnul: Likewise.
64392         * modules/strdup: Likewise.
64393         * modules/strndup: Likewise.
64394         * modules/strnlen: Likewise.
64395         * modules/strpbrk: Likewise.
64396         * modules/strsep: Likewise.
64397         * modules/strstr: Likewise.
64398         * modules/strtok_r: Likewise.
64399         * tests/test-dirname.c: Don't include "strdup.h", since
64400         <string.h> now suffices.
64401         * tests/test-memmem.c: Don't include "memmem.h", since
64402         <string.h> now suffices.
64403
64404 2007-01-25  Bruno Haible  <bruno@clisp.org>
64405
64406         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64407         *resultp is 0.
64408
64409         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64410         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64411         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64412         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64413
64414         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64415         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64416         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64417         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64418         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64419         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64420
64421 2007-01-24  Bruno Haible  <bruno@clisp.org>
64422
64423         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64424         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64425         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64426         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64427         gl_FUNC_FTS_CORE.
64428         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64429         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64430         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64431         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64432         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64433         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64434         gl_FUNC_FCHOWNAT.
64435         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64436         gl_FUNC_STRFTIME.
64437         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64438         Reported by Ralf Wildenhues.
64439
64440 2007-01-24  Bruno Haible  <bruno@clisp.org>
64441
64442         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64443         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64444         gl_GETADDRINFO.
64445         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64446         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64447         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64448
64449 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64450
64451         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64452         Don't use 'exit'; just return from 'main'.
64453         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64454
64455         * lib/fnmatch_.h: Readjust white space and comments to match
64456         glibc, to avoid spurious diffs.
64457
64458 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64459
64460         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64461         2004-12-01 change by Jakub Jelinek, since this code won't compile
64462         if !LIBC.  Problem reported by Bob Proulx.
64463
64464 2007-01-23  Bruno Haible  <bruno@clisp.org>
64465
64466         * lib/striconveh.c: Include c-strcaseeq.h.
64467         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64468         * modules/striconveh (Depends-on): Add c-strcaseeq.
64469
64470 2007-01-23  Bruno Haible  <bruno@clisp.org>
64471
64472         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64473
64474         * modules/c-strcaseeq: New file.
64475         * lib/c-strcaseeq.h: New file.
64476
64477         * modules/streq: New file.
64478         * lib/streq.h: New file.
64479
64480 2007-01-23  Bruno Haible  <bruno@clisp.org>
64481
64482         * modules/striconveha-tests: New file.
64483         * tests/test-striconveha.c: New file.
64484
64485         * lib/striconveha.h: Include <stdbool.h>.
64486         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64487         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64488         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64489         (mem_iconveha): New function.
64490         (str_iconveha_notranslit): Renamed from str_iconveha.
64491         (str_iconveha): New function.
64492         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64493         c-strcase.
64494
64495 2007-01-23  Bruno Haible  <bruno@clisp.org>
64496
64497         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64498         encodings without forgiving before trying any encoding with handler.
64499         (str_iconveha): Try all encodings without forgiving before trying any
64500         encoding with handler.
64501
64502 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64503
64504         Import the following changes from libc.
64505
64506         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64507
64508         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64509
64510         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64511
64512         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64513         normal_bracket label.
64514
64515         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64516
64517         [BZ #361]
64518         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64519         to normal_bracket after fetching the next character.
64520
64521 2007-01-22  Bruno Haible  <bruno@clisp.org>
64522
64523         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64524         argument.
64525         * lib/striconveh.c (iconv_carefully_1): New function.
64526         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64527         argument.
64528         (str_cd_iconveh): Update.
64529         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64530         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64531         * tests/test-striconveh.c (MAGIC): New macro.
64532         (new_offsets): New function.
64533         (main): Test call with and without offsets.
64534
64535 2007-01-22  Bruno Haible  <bruno@clisp.org>
64536
64537         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64538         * modules/sys_select (Makefile.am): Likewise.
64539         * modules/sys_socket (Makefile.am): Likewise.
64540         * modules/sys_time (Makefile.am): Likewise.
64541
64542 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64543
64544         * modules/gettimeofday (License): Change from GPL to LGPL, since
64545         gettimeofday is a library function.
64546
64547 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64548
64549         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64550
64551 2007-01-21  Bruno Haible  <bruno@clisp.org>
64552
64553         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64554
64555 2007-01-21  Bruno Haible  <bruno@clisp.org>
64556
64557         * modules/striconveha: New file.
64558         * lib/striconveha.h: New file.
64559         * lib/striconveha.c: New file.
64560         * MODULES.html.sh (Internationalization functions): Add striconveha.
64561         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64562         string.
64563         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64564
64565 2007-01-21  Bruno Haible  <bruno@clisp.org>
64566
64567         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64568         * lib/striconveh.c (str_iconveh): Likewise.
64569
64570 2007-01-21  Bruno Haible  <bruno@clisp.org>
64571
64572         * lib/striconveh.h (mem_iconveh): New declaration.
64573         * lib/striconveh.c (mem_iconveh): New function.
64574         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64575
64576 2007-01-21  Bruno Haible  <bruno@clisp.org>
64577
64578         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64579
64580         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64581         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64582         original result buffer.
64583         (str_cd_iconveh): Update.
64584         * tests/test-striconveh.c (main): Update.
64585
64586         * lib/striconv.h (mem_cd_iconv): Change specification.
64587         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64588         result buffer.
64589         (str_cd_iconv): Update.
64590         * tests/test-striconv.c (main): Update.
64591
64592 2007-01-21  Bruno Haible  <bruno@clisp.org>
64593
64594         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64595
64596 2007-01-20  Jim Meyering  <jim@meyering.net>
64597
64598         * lib/userspec.c (parse_with_separator): If a user or group string
64599         starts with "+", skip the corresponding name-to-ID look-up, since
64600         such a look-up must fail: user and group names may not include "+".
64601
64602 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64603
64604         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64605         since we now assume the sys_time module.
64606         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64607         check for sys/time.h; no longer needed.
64608         * modules/poll (Depends-on): Depend on sys_time.
64609
64610 2007-01-18  Bruno Haible  <bruno@clisp.org>
64611
64612         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64613         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64614
64615         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64616         gettimeofday.
64617
64618         * tests/test-gettimeofday.c: Include <time.h>.
64619         (dummy): Remove variable.
64620
64621         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64622         gl_HEADER_SYS_TIME_H.
64623         (gl_HEADER_SYS_TIME_H): New macro.
64624
64625         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64626         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64627         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64628         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64629         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64630         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64631         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64632         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64633         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64634         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64635         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64636
64637         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64638         last change; it caused a compilation error when cross-compiling to
64639         Cygwin.
64640
64641 2007-01-18  Jim Meyering  <jim@meyering.net>
64642
64643         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64644         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64645         than the race-prone "test -d sys || mkdir sys".
64646         (configure.ac): Use AC_PROG_MKDIR_P.
64647         * modules/sys_select: Likewise.
64648         * modules/sys_socket: Likewise.
64649         * modules/sys_time: Likewise.
64650
64651 2007-01-18  Eric Blake  <ebb9@byu.net>
64652
64653         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64654         replace gettimeofday.
64655         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64656         name, to avoid infinite recursion.
64657
64658 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64659
64660         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64661         module sys_time.
64662         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64663         assume timespec.h defines struct timeval.
64664         * lib/settime.c: Likewise.
64665         * lib/utimens.c: Likewise.
64666         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64667         since we now assume the gettimeofday module.
64668         * lib/tempname.c (__gen_tempname): Likewise.
64669         * lib/gettimeofday.h: Remove.
64670         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64671         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64672         Include <time.h>, for 'time()'.
64673         (localtime_buffer_addr): Also use this workaround if
64674         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64675         to simplify the uses.  All uses changed.
64676         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64677         that #undef is inside {}, and 'const' follows type name consistently.
64678         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64679         (gettimeofday): Do not use the maximum possible value for
64680         tv->tv_usec, since that might break usages other than ls.c.
64681         Instead, we'll leave ls.c alone.  This undoes today's patch
64682         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64683         we've never observed the problem but might as well keep the
64684         canary.
64685         * lib/nanosleep.c: Include timespec.h first, for interface check.
64686         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64687         now assume the sys_time module.
64688         * lib/tempname.c: Likewise.
64689         * lib/timespec.h: Likewise.
64690         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64691         needed.
64692         * lib/strftime.c: Likewise.
64693         * lib/timespec.h: Likewise.
64694         * lib/posixtm.c: Include posixtm.h first, for interface check.
64695         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64696         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64697         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64698         * lib/sys_time_.h: New file.
64699         * lib/timespec.h (struct timespec): Use long int, not long.
64700         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64701         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64702         Remove obsolescent call to AC_HEADER_TIME.
64703         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64704         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64705         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64706         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64707         Likewise.
64708         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64709         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64710         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64711         into the sys_time module.  Check for gettimeofday just once.
64712         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64713         for gettimeofday signature to just check the signature.  Merely
64714         compile it, since linking doesn't test signature.  Improve test for
64715         whether gettimeofday.o is actually needed.
64716         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64717         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64718         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64719         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64720         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64721         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64722         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64723         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64724         than worrying about sys/time.h.
64725         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64726         Don't bother worrying about TIME_WITH_SYS_TIME.
64727         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64728         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64729         * m4/sys_time_h.m4: New file.
64730         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64731         Don't include sys/time.h.  Return from main rather than exiting.
64732         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64733         all uses changed.
64734         * modules/gethrxtime (Depends-on): Add sys_time.
64735         * modules/gettime (Depends-on): Likewise.
64736         * modules/gettimeofday (Depends-on): Likewise.
64737         * modules/nanosleep (Depends-on): Likewise.
64738         * modules/settime (Depends-on): Likewise.
64739         * modules/tempname (Depends-on): Likewise.
64740         * modules/utimens (Depends-on): Likewise.
64741         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64742         (Include): Change back to <sys/time.h>.
64743         (Maintainer): Add self.
64744         * modules/sys_time: New file.
64745         * modules/tempname (Depends-on): Add gettimeofday.
64746         * tests/test-gettimeofday.c: Include <sys/time.h>
64747         rather than gettimeofday.h.
64748
64749 2007-01-17  Bruno Haible  <bruno@clisp.org>
64750
64751         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64752         the license default to GPL.
64753         (func_create_testdir): Don't complain if a module is LGPL and its
64754         tests module depends on GPLed modules.
64755
64756 2007-01-17  Bruno Haible  <bruno@clisp.org>
64757
64758         * lib/gettimeofday.c (gettimeofday): Add code for the case
64759         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64760         maximum possible value for tv->tv_usec, rather than the minimum one.
64761
64762 2005-10-08  Martin Lambers  <marlam@marlam.de>
64763 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64764 2007-01-16  Bruno Haible  <bruno@clisp.org>
64765
64766         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64767         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64768         gl_FUNC_GETTIMEOFDAY.
64769         (Include): Add gettimeofday.h.
64770         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64771         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64772         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64773         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64774         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64775         * lib/gettimeofday.h: New file.
64776         * lib/gettimeofday.c: Include <sys/timeb.h>.
64777         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64778         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64779         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64780         fall back on time().
64781
64782         * tests/test-gettimeofday.c: New file.
64783         * modules/gettimeofday-tests: New file.
64784
64785 2007-01-16  Eric Blake  <ebb9@byu.net>
64786
64787         * modules/fnmatch (Depends-on): Depend on wchar.
64788         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64789         * m4/fnmatch.m4: Likewise.
64790         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64791         * m4/mbchar.m4: Likewise.
64792         * modules/mbswidth (Depends-on): Depend on wchar.
64793         * lib/mbswidth.c: Assume <wchar.h>.
64794         * m4/mbswidth.m4: Likewise.
64795         * modules/quotearg (Depends-on): Depend on wchar.
64796         * lib/quotearg.c: Assume <wchar.h>.
64797         * m4/quotearg.m4: Likewise.
64798         * modules/regex (Depends-on): Depend on wchar.
64799         * lib/regex_internal.h: Assume <wchar.h>.
64800         * m4/regex.m4: Likewise.
64801         * modules/stdint (Depends-on): Depend on wchar.
64802         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64803         * m4/stdint.m4: Likewise.
64804         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64805         * modules/strftime (Depends-on): Depend on wchar.
64806         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64807         * modules/strtol (Depends-on): Depend on wchar.
64808         * lib/strtol.c: Assume <wchar.h>.
64809         * modules/wcwidth (Depends-on): Depend on wchar.
64810         * lib/wcwidth.h: Assume <wchar.h>.
64811         * m4/wcwidth.m4: Likewise.
64812
64813 2007-01-16  Bruno Haible  <bruno@clisp.org>
64814
64815         * modules/csharpexec-script: New, created from...
64816         * modules/csharpexec: ... this.
64817
64818 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64819
64820         * modules/javaexec-script: New, created from...
64821         * modules/javaexec: ... this.
64822
64823 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64824
64825         * modules/poll (Dependencies): Add sys_select.
64826
64827 2007-01-15  Jim Meyering  <jim@meyering.net>
64828
64829         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64830         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64831         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64832         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64833
64834 2007-01-15  Bruno Haible  <bruno@clisp.org>
64835
64836         * modules/striconveh: New file.
64837         * lib/striconveh.h: New file.
64838         * lib/striconveh.c: New file.
64839         * MODULES.html.sh (Internationalization functions): Add striconveh.
64840
64841         * modules/striconveh-tests: New file.
64842         * tests/test-striconveh.c: New file.
64843
64844 2007-01-15  Bruno Haible  <bruno@clisp.org>
64845
64846         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64847         not from GNU libiconv or GNU libc.
64848
64849 2007-01-15  Bruno Haible  <bruno@clisp.org>
64850
64851         * doc/gnulib-intro.texi (Copyright): Explain the different license
64852         terms for module descriptions, autoconf macros, tests, documentation.
64853
64854 2007-01-14  Bruno Haible  <bruno@clisp.org>
64855
64856         * modules/striconv-tests: New file.
64857         * tests/test-striconv.c: New file.
64858
64859 2007-01-14  Bruno Haible  <bruno@clisp.org>
64860
64861         * modules/iconv-tests: New file.
64862         * tests/test-iconv.c: New file.
64863
64864 2007-01-14  Bruno Haible  <bruno@clisp.org>
64865
64866         * gnulib-tool (func_get_license): For test modules, use the license of
64867         the main module.
64868
64869 2007-01-14  Bruno Haible  <bruno@clisp.org>
64870
64871         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64872         if iconv is found to exist.
64873
64874 2007-01-14  Bruno Haible  <bruno@clisp.org>
64875
64876         * modules/c-ctype-tests: New file.
64877         * tests/test-c-ctype.c: New file.
64878
64879 2007-01-14  Bruno Haible  <bruno@clisp.org>
64880
64881         * modules/binary-io-tests: New file.
64882         * tests/test-binary-io.sh: New file.
64883         * tests/test-binary-io.c: New file.
64884
64885 2007-01-14  Bruno Haible  <bruno@clisp.org>
64886
64887         * modules/array-oset-tests: New file.
64888         * tests/test-array_oset.c: New file.
64889
64890 2007-01-14  Bruno Haible  <bruno@clisp.org>
64891
64892         * modules/array-list-tests: New file.
64893         * tests/test-array_list.c: New file.
64894
64895 2007-01-14  Bruno Haible  <bruno@clisp.org>
64896
64897         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64898         and make.
64899         Reported by Simon Josefsson in
64900         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64901
64902 2007-01-14  Bruno Haible  <bruno@clisp.org>
64903
64904         * modules/allocsa-tests: New file.
64905         * tests/test-allocsa.c: New file.
64906
64907 2007-01-14  Bruno Haible  <bruno@clisp.org>
64908
64909         * modules/fchdir (Depends-on): Add absolute-header.
64910         * modules/unistd (Depends-on): Likewise.
64911
64912 2006-12-30  Bruno Haible  <bruno@clisp.org>
64913
64914         * modules/fchdir: New file.
64915         * modules/unistd (Files): Add lib/unistd_.h.
64916         (Makefile.am): Generate unistd.h from unistd_.h.
64917         * lib/fchdir.c: New file.
64918         * lib/dirent_.h: New file.
64919         * lib/unistd_.h: New file.
64920         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64921         * m4/fchdir.m4: New file.
64922         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64923         (gl_HEADER_UNISTD): Invoke it.
64924         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64925         function.
64926         * lib/backupfile.c (opendir, closedir): Undefine.
64927         * lib/chown.c (open, close): Undefine.
64928         * lib/clean-temp.c (open, close): Undefine.
64929         * lib/copy-file.c (open, close): Undefine.
64930         * lib/execute.c (open, close): Undefine.
64931         * lib/fsusage.c (open, close): Undefine.
64932         * lib/gc-gnulib.c (open, close): Undefine.
64933         * lib/getcwd.c (opendir, closedir): Undefine.
64934         * lib/glob.c (opendir, closedir): Undefine.
64935         * lib/javacomp.c (open, close): Undefine.
64936         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64937         * lib/openat-proc.c (open, close): Undefine.
64938         * lib/pagealign_alloc.c (open, close): Undefine.
64939         * lib/pipe.c (open, close): Undefine.
64940         * lib/progreloc.c (open, close): Undefine.
64941         * lib/savedir.c (opendir, closedir): Undefine.
64942         * lib/utime.c (open, close): Undefine.
64943         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64944
64945 2007-01-10  Bruno Haible  <bruno@clisp.org>
64946
64947         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64948
64949 2007-01-12  Eric Blake  <ebb9@byu.net>
64950
64951         Provide a robust <wchar.h>.  Further simplifications are now
64952         possible in other modules, but not included here.
64953         * modules/wchar: New module.
64954         * m4/wchar.m4: New file.
64955         * lib/wchar_.h: Likewise.
64956         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64957         of the new module.
64958         * MODULES.html.sh (Extended multibyte and wide character utilities):
64959         New section.
64960
64961 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64962
64963         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64964         to a reasonable default for memory allocation.
64965         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64966         file system that reports garbage st_size values for symlinks.
64967         Problem reported by Liyang Hu.
64968
64969 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64970
64971         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64972         Emacs .#* auto-save files).
64973
64974 2007-01-11  Bruno Haible  <bruno@clisp.org>
64975
64976         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64977         directory.
64978
64979 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64980
64981         Use @...@ consistently in lib/wctype_.h.
64982         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64983         on it being set to 1 or 0.
64984         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64985         go back to AC_SUBSTing it.
64986         * modules/wctype (Makefile.am): Undo previous change.
64987
64988 2007-01-10  Eric Blake  <ebb9@byu.net>
64989
64990         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64991         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64992         * modules/wctype (Makefile.am): Likewise.
64993         Reported by Chris McGuire.
64994
64995 2007-01-10  Jim Meyering  <jim@meyering.net>
64996
64997         fts.c: a small readability/maintainability improvement
64998         * lib/fts.c (fts_read): Make this code slightly more readable and
64999         maintainable by hoisting the "sp->fts_cur = p" assignments to
65000         immediately follow the statements that set P.  Derived from
65001         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65002
65003 2007-01-10  Eric Blake  <ebb9@byu.net>
65004
65005         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65006         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65007         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65008         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65009         Reported by Chris McGuire.
65010
65011 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65012
65013         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65014         in sed script.
65015
65016 2007-01-09  Bruno Haible  <bruno@clisp.org>
65017
65018         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65019         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65020         variables.
65021         (func_module): Use them.
65022
65023 2007-01-09  Bruno Haible  <bruno@clisp.org>
65024
65025         * modules/unistr/base: New file.
65026         * lib/unistr.h: New file.
65027
65028         * modules/unistr/u8-to-u16: New file.
65029         * lib/unistr/u8-to-u16.c: New file.
65030
65031         * modules/unistr/u8-to-u32: New file.
65032         * lib/unistr/u8-to-u32.c: New file.
65033
65034         * modules/unistr/u16-to-u8: New file.
65035         * lib/unistr/u16-to-u8.c: New file.
65036
65037         * modules/unistr/u16-to-u32: New file.
65038         * lib/unistr/u16-to-u32.c: New file.
65039
65040         * modules/unistr/u32-to-u8: New file.
65041         * lib/unistr/u32-to-u8.c: New file.
65042
65043         * modules/unistr/u32-to-u16: New file.
65044         * lib/unistr/u32-to-u16.c: New file.
65045
65046         * modules/unistr/u8-check: New file.
65047         * modules/unistr/u16-check: New file.
65048         * modules/unistr/u32-check: New file.
65049         * lib/unistr/u8-check.c: New file.
65050         * lib/unistr/u16-check.c: New file.
65051         * lib/unistr/u32-check.c: New file.
65052
65053         * modules/unistr/u8-chr: New file.
65054         * modules/unistr/u16-chr: New file.
65055         * modules/unistr/u32-chr: New file.
65056         * lib/unistr/u8-chr.c: New file.
65057         * lib/unistr/u16-chr.c: New file.
65058         * lib/unistr/u32-chr.c: New file.
65059
65060         * modules/unistr/u8-cmp: New file.
65061         * modules/unistr/u16-cmp: New file.
65062         * modules/unistr/u32-cmp: New file.
65063         * lib/unistr/u8-cmp.c: New file.
65064         * lib/unistr/u16-cmp.c: New file.
65065         * lib/unistr/u32-cmp.c: New file.
65066
65067         * modules/unistr/u8-cpy: New file.
65068         * modules/unistr/u16-cpy: New file.
65069         * modules/unistr/u32-cpy: New file.
65070         * lib/unistr/u8-cpy.c: New file.
65071         * lib/unistr/u16-cpy.c: New file.
65072         * lib/unistr/u32-cpy.c: New file.
65073         * lib/unistr/u-cpy.h: New file.
65074
65075         * modules/unistr/u8-cpy-alloc: New file.
65076         * modules/unistr/u16-cpy-alloc: New file.
65077         * modules/unistr/u32-cpy-alloc: New file.
65078         * lib/unistr/u8-cpy-alloc.c: New file.
65079         * lib/unistr/u16-cpy-alloc.c: New file.
65080         * lib/unistr/u32-cpy-alloc.c: New file.
65081         * lib/unistr/u-cpy-alloc.h: New file.
65082
65083         * modules/unistr/u8-endswith: New file.
65084         * modules/unistr/u16-endswith: New file.
65085         * modules/unistr/u32-endswith: New file.
65086         * lib/unistr/u8-endswith.c: New file.
65087         * lib/unistr/u16-endswith.c: New file.
65088         * lib/unistr/u32-endswith.c: New file.
65089         * lib/unistr/u-endswith.h: New file.
65090
65091         * modules/unistr/u8-mblen: New file.
65092         * modules/unistr/u16-mblen: New file.
65093         * modules/unistr/u32-mblen: New file.
65094         * lib/unistr/u8-mblen.c: New file.
65095         * lib/unistr/u16-mblen.c: New file.
65096         * lib/unistr/u32-mblen.c: New file.
65097
65098         * modules/unistr/u8-mbtouc: New file.
65099         * modules/unistr/u16-mbtouc: New file.
65100         * modules/unistr/u32-mbtouc: New file.
65101         * lib/unistr/u8-mbtouc.c: New file.
65102         * lib/unistr/u16-mbtouc.c: New file.
65103         * lib/unistr/u32-mbtouc.c: New file.
65104
65105         * modules/unistr/u8-mbtouc-safe: New file.
65106         * modules/unistr/u16-mbtouc-safe: New file.
65107         * modules/unistr/u32-mbtouc-safe: New file.
65108         * lib/unistr/u8-mbtouc-safe.c: New file.
65109         * lib/unistr/u16-mbtouc-safe.c: New file.
65110         * lib/unistr/u32-mbtouc-safe.c: New file.
65111
65112         * modules/unistr/u8-move: New file.
65113         * modules/unistr/u16-move: New file.
65114         * modules/unistr/u32-move: New file.
65115         * lib/unistr/u8-move.c: New file.
65116         * lib/unistr/u16-move.c: New file.
65117         * lib/unistr/u32-move.c: New file.
65118         * lib/unistr/u-move.h: New file.
65119
65120         * modules/unistr/u8-next: New file.
65121         * modules/unistr/u16-next: New file.
65122         * modules/unistr/u32-next: New file.
65123         * lib/unistr/u8-next.c: New file.
65124         * lib/unistr/u16-next.c: New file.
65125         * lib/unistr/u32-next.c: New file.
65126
65127         * modules/unistr/u8-prev: New file.
65128         * modules/unistr/u16-prev: New file.
65129         * modules/unistr/u32-prev: New file.
65130         * lib/unistr/u8-prev.c: New file.
65131         * lib/unistr/u16-prev.c: New file.
65132         * lib/unistr/u32-prev.c: New file.
65133
65134         * modules/unistr/u8-set: New file.
65135         * modules/unistr/u16-set: New file.
65136         * modules/unistr/u32-set: New file.
65137         * lib/unistr/u8-set.c: New file.
65138         * lib/unistr/u16-set.c: New file.
65139         * lib/unistr/u32-set.c: New file.
65140         * lib/unistr/u-set.h: New file.
65141
65142         * modules/unistr/u8-startswith: New file.
65143         * modules/unistr/u16-startswith: New file.
65144         * modules/unistr/u32-startswith: New file.
65145         * lib/unistr/u8-startswith.c: New file.
65146         * lib/unistr/u16-startswith.c: New file.
65147         * lib/unistr/u32-startswith.c: New file.
65148         * lib/unistr/u-startswith.h: New file.
65149
65150         * modules/unistr/u8-stpcpy: New file.
65151         * modules/unistr/u16-stpcpy: New file.
65152         * modules/unistr/u32-stpcpy: New file.
65153         * lib/unistr/u8-stpcpy.c: New file.
65154         * lib/unistr/u16-stpcpy.c: New file.
65155         * lib/unistr/u32-stpcpy.c: New file.
65156         * lib/unistr/u-stpcpy.h: New file.
65157
65158         * modules/unistr/u8-stpncpy: New file.
65159         * modules/unistr/u16-stpncpy: New file.
65160         * modules/unistr/u32-stpncpy: New file.
65161         * lib/unistr/u8-stpncpy.c: New file.
65162         * lib/unistr/u16-stpncpy.c: New file.
65163         * lib/unistr/u32-stpncpy.c: New file.
65164         * lib/unistr/u-stpncpy.h: New file.
65165
65166         * modules/unistr/u8-strcat: New file.
65167         * modules/unistr/u16-strcat: New file.
65168         * modules/unistr/u32-strcat: New file.
65169         * lib/unistr/u8-strcat.c: New file.
65170         * lib/unistr/u16-strcat.c: New file.
65171         * lib/unistr/u32-strcat.c: New file.
65172         * lib/unistr/u-strcat.h: New file.
65173
65174         * modules/unistr/u8-strchr: New file.
65175         * modules/unistr/u16-strchr: New file.
65176         * modules/unistr/u32-strchr: New file.
65177         * lib/unistr/u8-strchr.c: New file.
65178         * lib/unistr/u16-strchr.c: New file.
65179         * lib/unistr/u32-strchr.c: New file.
65180
65181         * modules/unistr/u8-strcmp: New file.
65182         * modules/unistr/u16-strcmp: New file.
65183         * modules/unistr/u32-strcmp: New file.
65184         * lib/unistr/u8-strcmp.c: New file.
65185         * lib/unistr/u16-strcmp.c: New file.
65186         * lib/unistr/u32-strcmp.c: New file.
65187
65188         * modules/unistr/u8-strcpy: New file.
65189         * modules/unistr/u16-strcpy: New file.
65190         * modules/unistr/u32-strcpy: New file.
65191         * lib/unistr/u8-strcpy.c: New file.
65192         * lib/unistr/u16-strcpy.c: New file.
65193         * lib/unistr/u32-strcpy.c: New file.
65194         * lib/unistr/u-strcpy.h: New file.
65195
65196         * modules/unistr/u8-strcspn: New file.
65197         * modules/unistr/u16-strcspn: New file.
65198         * modules/unistr/u32-strcspn: New file.
65199         * lib/unistr/u8-strcspn.c: New file.
65200         * lib/unistr/u16-strcspn.c: New file.
65201         * lib/unistr/u32-strcspn.c: New file.
65202         * lib/unistr/u-strcspn.h: New file.
65203
65204         * modules/unistr/u8-strdup: New file.
65205         * modules/unistr/u16-strdup: New file.
65206         * modules/unistr/u32-strdup: New file.
65207         * lib/unistr/u8-strdup.c: New file.
65208         * lib/unistr/u16-strdup.c: New file.
65209         * lib/unistr/u32-strdup.c: New file.
65210         * lib/unistr/u-strdup.h: New file.
65211
65212         * modules/unistr/u8-strlen: New file.
65213         * modules/unistr/u16-strlen: New file.
65214         * modules/unistr/u32-strlen: New file.
65215         * lib/unistr/u8-strlen.c: New file.
65216         * lib/unistr/u16-strlen.c: New file.
65217         * lib/unistr/u32-strlen.c: New file.
65218         * lib/unistr/u-strlen.h: New file.
65219
65220         * modules/unistr/u8-strmblen: New file.
65221         * modules/unistr/u16-strmblen: New file.
65222         * modules/unistr/u32-strmblen: New file.
65223         * lib/unistr/u8-strmblen.c: New file.
65224         * lib/unistr/u16-strmblen.c: New file.
65225         * lib/unistr/u32-strmblen.c: New file.
65226
65227         * modules/unistr/u8-strmbtouc: New file.
65228         * modules/unistr/u16-strmbtouc: New file.
65229         * modules/unistr/u32-strmbtouc: New file.
65230         * lib/unistr/u8-strmbtouc.c: New file.
65231         * lib/unistr/u16-strmbtouc.c: New file.
65232         * lib/unistr/u32-strmbtouc.c: New file.
65233
65234         * modules/unistr/u8-strncat: New file.
65235         * modules/unistr/u16-strncat: New file.
65236         * modules/unistr/u32-strncat: New file.
65237         * lib/unistr/u8-strncat.c: New file.
65238         * lib/unistr/u16-strncat.c: New file.
65239         * lib/unistr/u32-strncat.c: New file.
65240         * lib/unistr/u-strncat.h: New file.
65241
65242         * modules/unistr/u8-strncmp: New file.
65243         * modules/unistr/u16-strncmp: New file.
65244         * modules/unistr/u32-strncmp: New file.
65245         * lib/unistr/u8-strncmp.c: New file.
65246         * lib/unistr/u16-strncmp.c: New file.
65247         * lib/unistr/u32-strncmp.c: New file.
65248
65249         * modules/unistr/u8-strncpy: New file.
65250         * modules/unistr/u16-strncpy: New file.
65251         * modules/unistr/u32-strncpy: New file.
65252         * lib/unistr/u8-strncpy.c: New file.
65253         * lib/unistr/u16-strncpy.c: New file.
65254         * lib/unistr/u32-strncpy.c: New file.
65255         * lib/unistr/u-strncpy.h: New file.
65256
65257         * modules/unistr/u8-strnlen: New file.
65258         * modules/unistr/u16-strnlen: New file.
65259         * modules/unistr/u32-strnlen: New file.
65260         * lib/unistr/u8-strnlen.c: New file.
65261         * lib/unistr/u16-strnlen.c: New file.
65262         * lib/unistr/u32-strnlen.c: New file.
65263         * lib/unistr/u-strnlen.h: New file.
65264
65265         * modules/unistr/u8-strpbrk: New file.
65266         * modules/unistr/u16-strpbrk: New file.
65267         * modules/unistr/u32-strpbrk: New file.
65268         * lib/unistr/u8-strpbrk.c: New file.
65269         * lib/unistr/u16-strpbrk.c: New file.
65270         * lib/unistr/u32-strpbrk.c: New file.
65271         * lib/unistr/u-strpbrk.h: New file.
65272
65273         * modules/unistr/u8-strrchr: New file.
65274         * modules/unistr/u16-strrchr: New file.
65275         * modules/unistr/u32-strrchr: New file.
65276         * lib/unistr/u8-strrchr.c: New file.
65277         * lib/unistr/u16-strrchr.c: New file.
65278         * lib/unistr/u32-strrchr.c: New file.
65279
65280         * modules/unistr/u8-strspn: New file.
65281         * modules/unistr/u16-strspn: New file.
65282         * modules/unistr/u32-strspn: New file.
65283         * lib/unistr/u8-strspn.c: New file.
65284         * lib/unistr/u16-strspn.c: New file.
65285         * lib/unistr/u32-strspn.c: New file.
65286         * lib/unistr/u-strspn.h: New file.
65287
65288         * modules/unistr/u8-strstr: New file.
65289         * modules/unistr/u16-strstr: New file.
65290         * modules/unistr/u32-strstr: New file.
65291         * lib/unistr/u8-strstr.c: New file.
65292         * lib/unistr/u16-strstr.c: New file.
65293         * lib/unistr/u32-strstr.c: New file.
65294         * lib/unistr/u-strstr.h: New file.
65295
65296         * modules/unistr/u8-strtok: New file.
65297         * modules/unistr/u16-strtok: New file.
65298         * modules/unistr/u32-strtok: New file.
65299         * lib/unistr/u8-strtok.c: New file.
65300         * lib/unistr/u16-strtok.c: New file.
65301         * lib/unistr/u32-strtok.c: New file.
65302         * lib/unistr/u-strtok.h: New file.
65303
65304         * modules/unistr/u8-uctomb: New file.
65305         * modules/unistr/u16-uctomb: New file.
65306         * modules/unistr/u32-uctomb: New file.
65307         * lib/unistr/u8-uctomb.c: New file.
65308         * lib/unistr/u16-uctomb.c: New file.
65309         * lib/unistr/u32-uctomb.c: New file.
65310
65311         * MODULES.html.sh (Unicode string functions): Add the new modules.
65312
65313 2007-01-08  Bruno Haible  <bruno@clisp.org>
65314
65315         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65316         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65317         subdirectories.
65318
65319 2007-01-08  Karl Berry  <karl@gnu.org>
65320
65321         * doc/error.texi: mention that main() fns must set program_name
65322         when progname is used.
65323
65324 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65325
65326         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65327         WCTYPE_H is empty, for the benefit of builds from non-distclean
65328         directories.  Problem reported by Eric Blake in
65329         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65330
65331 2007-01-08  Bruno Haible  <bruno@clisp.org>
65332
65333         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65334         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65335         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65336         PROVIDE_CANONICALIZE_FILENAME_MODE.
65337         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65338
65339 2007-01-08  Bruno Haible  <bruno@clisp.org>
65340
65341         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65342         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65343         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65344         * lib/fts.c: Likewise.
65345         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65346
65347 2006-12-25  Bruno Haible  <bruno@clisp.org>
65348
65349         * modules/utf8-ucs4-safe: New file.
65350         * lib/utf8-ucs4-safe.h: New file.
65351         * lib/unistr/utf8-ucs4-safe.c: New file.
65352
65353         * modules/utf16-ucs4-safe: New file.
65354         * lib/utf16-ucs4-safe.h: New file.
65355         * lib/unistr/utf16-ucs4-safe.c: New file.
65356
65357         * MODULES.html.sh (Unicode string functions): Add the new modules.
65358
65359 2007-01-08  Bruno Haible  <bruno@clisp.org>
65360
65361         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65362         (Depends-on): Add unitypes.
65363         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65364         (u8_mbtouc_aux): Move out to separate file.
65365         (u8_mbtouc): Use ucs4_t, uint8_t types.
65366         * lib/unistr/utf8-ucs4.c: New file.
65367
65368         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65369         (Depends-on): Add unitypes.
65370         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65371         (u16_mbtouc_aux): Move out to separate file.
65372         (u16_mbtouc): Use ucs4_t, uint16_t types.
65373         * lib/unistr/utf16-ucs4.c: New file.
65374
65375         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65376         (Depends-on): Add unitypes.
65377         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65378         (u8_uctomb_aux): Move out to separate file.
65379         (u8_uctomb): Use ucs4_t, uint8_t types.
65380         * lib/unistr/ucs4-utf8.c: New file.
65381
65382         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65383         (Depends-on): Add unitypes.
65384         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65385         (u16_uctomb_aux): Move out to separate file.
65386         (u16_uctomb): Use ucs4_t, uint16_t types.
65387         * lib/unistr/ucs4-utf16.c: New file.
65388
65389 2006-12-25  Bruno Haible  <bruno@clisp.org>
65390
65391         * modules/unitypes: New file.
65392         * lib/unitypes.h: New file.
65393         * MODULES.html.sh (func_all_modules): New section "Unicode string
65394         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65395         this section. Add unitypes.
65396
65397 2007-01-08  Bruno Haible  <bruno@clisp.org>
65398
65399         Avoid variable names that conflict with those from libtool.
65400         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65401         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65402         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65403         library_names_spec to acl_library_names_spec, hardcode_* to
65404         acl_hardcode_*.
65405         Reported by Ralf Wildenhues.
65406
65407 2007-01-08  Bruno Haible  <bruno@clisp.org>
65408
65409         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65410         definition.
65411         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65412         definition.
65413         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65414         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65415         definition.
65416         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65417         definition.
65418         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65419         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65420         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65421         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65422         definition.
65423         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65424         definition.
65425         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65426         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65427         GC_USE_<algorithm>.
65428         * lib/gc-libgcrypt.c: Likewise.
65429         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65430         * modules/gc-arctwo (configure.ac): Likewise.
65431         * modules/gc-des (configure.ac): Likewise.
65432         * modules/gc-hmac-md5 (configure.ac): Likewise.
65433         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65434         * modules/gc-md2 (configure.ac): Likewise.
65435         * modules/gc-md4 (configure.ac): Likewise.
65436         * modules/gc-md5 (configure.ac): Likewise.
65437         * modules/gc-random (configure.ac): Likewise.
65438         * modules/gc-rijndael (configure.ac): Likewise.
65439         * modules/gc-sha1 (configure.ac): Likewise.
65440
65441 2007-01-08  Bruno Haible  <bruno@clisp.org>
65442
65443         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65444         macro definition.
65445         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65446         definition.
65447         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65448         definition.
65449         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65450         * modules/fcntl-safer (configure.ac): Likewise.
65451         * modules/fopen-safer (configure.ac): Likewise.
65452         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65453         GNULIB_FWRITEERROR macro definition.
65454
65455 2007-01-08  Bruno Haible  <bruno@clisp.org>
65456
65457         * m4/gnulib-common.m4: New file.
65458         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65459         (func_get_filelist): Add m4/gnulib-common.m4.
65460
65461 2007-01-08  Bruno Haible  <bruno@clisp.org>
65462
65463         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65464         command.
65465
65466 2007-01-08  Jim Meyering  <jim@meyering.net>
65467
65468         Use a more robust test for a "can't happen" condition.
65469         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65470         narrowed the st_size value.  Presuming the "can't happen" condition
65471         is true, that narrowing could conceivably convert an invalid st_size
65472         value into a valid one.  Instead, use a change based on Matthew
65473         Woehlke's original patch.
65474
65475         Slight readability improvement: use an assert-like macro
65476         in place of literal "abort ()" uses.
65477         * lib/fts.c (fts_assert): Define.
65478         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65479         Use this macro instead of a bare 'abort'.
65480
65481 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65482
65483         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65484         simply work around them.
65485         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65486         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65487         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65488         declaring.
65489         Don't bother to define as macros, since the standard doesn't require it.
65490         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65491         longer worry about IRIX 5.3.
65492         (HAVE_WCTYPE_CTMP_BUG): Remove.
65493
65494 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65495
65496         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65497         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65498         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65499         Problems reported by Georg Schwarz for IRIX 5.3.
65500
65501         * gnulib-tool (autoconf_minversion): Take the maximum version number
65502         found, not the minimum.  Problem reported by James Youngman.
65503
65504 2007-01-03  Karl Berry  <karl@gnu.org>
65505
65506         * doc/error.texi: new file, explaining interaction with progname.
65507         * doc/gnulib.texi: include it.  Update copyright.
65508
65509 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65510
65511         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65512         AC_CANONICAL_HOST, to improve autobuild outputs.
65513
65514 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65515             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65516
65517         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65518         sockets, server sockets, and other file descriptors.  Count errors
65519         to compute the return value.  Reorder the code a bit to be easier
65520         to follow.  Don't set event bits that were not requested (except
65521         POLLERR and POLLHUP).
65522
65523 2007-01-01  Bruno Haible  <bruno@clisp.org>
65524
65525         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65526
65527 2007-01-03  Jim Meyering  <jim@meyering.net>
65528
65529         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65530
65531 2007-01-02  Bruno Haible  <bruno@clisp.org>
65532
65533         * modules/settime (Include): Require timespec.h.
65534         * modules/nanosleep (Include): Likewise.
65535
65536 2007-01-01  Bruno Haible  <bruno@clisp.org>
65537
65538         * gnulib-tool (func_emit_copyright_notice): Bump year.
65539         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65540
65541 2007-01-01  Bruno Haible  <bruno@clisp.org>
65542
65543         Improve support for OpenBSD.
65544         * build-aux/config.rpath (libname_spec): Export.
65545         (library_names_spec): New variable. Export.
65546         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65547         library_names_spec from the config.rpath output. Locate shared library
65548         through the name pattern in library_names_spec.
65549
65550 2007-01-01  Eric Blake  <ebb9@byu.net>
65551
65552         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65553
65554 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65555
65556         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65557         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65558         assume the C locale, and avoid an "eval" that could cause trouble.
65559         Problem with SORT reported by Bob Proulx.
65560
65561         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65562         Define.  Trivial patch from Henning Nielsen Lund, originally
65563         sent to bug-grep@gnu.org today.
65564
65565 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65566
65567         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65568         struct stat.  Problem reported by Henning Nielsen Lund.
65569         * lib/acl.c: Include acl.h first, to check interface.  Don't
65570         bother to include sys/types.h and sys/stat.h again.
65571
65572 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65573
65574         Import the following change from libc; problem reported by
65575         Sven Verdoolaege.
65576
65577         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65578
65579         [BZ #1373]
65580         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65581
65582 2006-12-28  Jim Meyering  <jim@meyering.net>
65583
65584         * build-aux/announce-gen: Do not assume that the package
65585         builds any of tar.gz, tar.bz2, and .xdelta files.
65586         Suggestion from Simon Josefsson.
65587
65588 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65589
65590         * modules/announce-gen: New file.
65591
65592 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65593
65594         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65595         handles its gotchas now.
65596         * lib/mbswidth.c: Likewise.
65597         * lib/wcwidth.h: Likewise.
65598         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65599         and iswcntrl; the wctype module does this stuff now.
65600         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65601         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65602         * modules/mbchar (Depends-on): Add wctype.
65603         * modules/mbswidth (Depends-on): Likewise.
65604         * modules/wcwidth (Depends-on): Likewise.
65605
65606 2006-12-27  Eric Blake  <ebb9@byu.net>
65607
65608         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65609         module uses more than what <wctype.h> is required to provide.
65610
65611 2006-12-26  Eric Blake  <ebb9@byu.net>
65612
65613         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65614
65615 2006-12-26  Eric Blake  <ebb9@byu.net>
65616
65617         * modules/absolute-header: New module.
65618         * modules/fcntl (Depends-on): Depend on it.
65619         * modules/inttypes (Depends-on): Likewise.
65620         * modules/stdint (Depends-on): Likewise.
65621         * modules/sys_stat (Depends-on): Likewise.
65622         * modules/wctype (Depends-on): Likewise.
65623         * MODULES.html.sh (Support for building libraries and
65624         executables): Document it.
65625
65626 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65627
65628         * gnulib-tool (SED): Remove, undoing previous change.
65629         The problem was that it broke coreutils on Solaris, because
65630         "sed --posix" leaked into a makefile.
65631         (sed): New alias, if 'alias' and GNU sed.
65632
65633 2006-12-24  Jim Meyering  <jim@meyering.net>
65634
65635         Work around an fchownat bug in glibc-2.4:
65636         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65637         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65638         in spite of the -P option.
65639         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65640         New macros.
65641         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65642         * modules/openat (Files): Add lib/fchownat.c.
65643         * lib/openat.c (fchownat): Don't define here.  Move to...
65644         * lib/fchownat.c: ...this new file.
65645
65646 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65647
65648         Fix bug reported by Bruno Haible in
65649         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65650         where quotearg.c didn't compile on Mac OS X 10.2 because it
65651         lacks <wchar.h> and wint_t.
65652         * lib/wctype_.h (__wctype_wint_t): New type.
65653         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65654         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65655         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65656         Arg is now of type __wctype_wint_t, not wint_t.
65657         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65658         substitute HAVE_WINT_T.
65659         * modules/wctype (Files): Add m4/wint_t.m4.
65660         (wctype.h): Substitute HAVE_WINT_T.
65661
65662 2006-12-23  Bruno Haible  <bruno@clisp.org>
65663
65664         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65665
65666 2006-12-23  Bruno Haible  <bruno@clisp.org>
65667
65668         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65669         S_ISLNK.
65670         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65671         mingw.
65672
65673 2006-12-22  Bruno Haible  <bruno@clisp.org>
65674
65675         * lib/copy-file.c: Include acl.h.
65676         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65677         Close the file descriptors only after being done with copy_acl.
65678         * modules/copy-file (Depends-on): Add acl.
65679
65680 2006-12-22  Bruno Haible  <bruno@clisp.org>
65681
65682         * gnulib-tool (SED): New variable.
65683         Use $SED instead of sed everywhere.
65684
65685 2006-12-22  Bruno Haible  <bruno@clisp.org>
65686
65687         * modules/no-c++: New file.
65688         * m4/no-c++.m4: New file.
65689         * MODULES.html.sh (Support for building libraries and executables):
65690         Add no-c++.
65691
65692 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65693
65694         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65695         Include <limits.h>, and use its INT_MAX to rewrite the
65696         j loop so that it does not overflow 'int'.  Problem reported by
65697         Ralf Wildenhues in
65698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65699         Play it safe by shifting left by 1 rather than multiplying by 2,
65700         as GCC is less likely to optimize this away when the value
65701         is signed (when it assumes overflow leads to undefined behavior).
65702         Also, don't assume time_t uses two's complement.
65703
65704 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65705
65706         * MODULES.html.sh: New module wctype.
65707         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65708         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65709         <wctype.h>, since the new wctype module should fix this.
65710         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65711         the wctype module should arrange for it.
65712         * lib/regex_internal.h: Likewise.
65713         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65714         since the wctype module should handle this now.
65715         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65716         * modules/fnmatch (Depends-on): Add wctype.
65717         * modules/quotearg (Depends-on): Likewise.
65718         * modules/regex (Depends-on): Likewise.
65719
65720 2006-12-19  Bruno Haible  <bruno@clisp.org>
65721
65722         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65723         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65724
65725 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65726
65727         * modules/savewd (Depends-on): Fix dependency on fcntl.
65728
65729 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65730
65731         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65732         conforms to C99, rather than relying on the user's environment
65733         setting of STDINT_H.
65734
65735 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65736         and Eric Blake  <ebb9@byu.net>
65737
65738         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65739         This is more consistent with the other defines here.
65740         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65741         Port to z/OS.  Problem reported by Paul Gilmartin.
65742         Change local vars to use gl_ prefix rather than ac_.
65743         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65744         with other defines.
65745         * modules/double-slash-root: New module.
65746         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65747         (Depends-on): Add double-slash-root.
65748         * MODULES.html.sh (File system functions): Mention new module.
65749
65750 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65751
65752         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65753         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65754         This is for the benefit of gzip, which doesn't do i18n.
65755
65756 2006-12-12  Jim Meyering  <jim@meyering.net>
65757
65758         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65759         Reported by Andreas Schwab <schwab@suse.de>.
65760
65761 2006-12-12  Bruno Haible  <bruno@clisp.org>
65762
65763         Merge these changes.
65764         2006-09-05  Bruno Haible  <bruno@clisp.org>
65765         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65766         iconv_alloc succeeded.
65767         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65768         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65769         test for " && dest " at the end - dest is always != NULL there. Call
65770         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65771         with 2xNULL arguments, also to flush the state storage. Handle the
65772         IRIX iconv behaviour. Realloc the final result, to throw away unused
65773         memory.
65774
65775 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65776
65777         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65778         and fchmodat unconditionally, since glibc 2.4 has them.
65779         Problem reported by Arkadiusz Miskiewicz.
65780
65781 2006-12-10  Bruno Haible  <bruno@clisp.org>
65782
65783         * gnulib-tool (func_import): Show the include files only for those
65784         modules that are copied and specified.
65785         Reported by Karl Berry.
65786
65787 2006-12-08  Jim Meyering  <jim@meyering.net>
65788
65789         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65790         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65791
65792         * build-aux/announce-gen: Add two new options, both optional:
65793         --bootstrap-tools=TOOL_LIST
65794               a comma-separated list of tools, e.g.,
65795               autoconf,automake,bison,gnulib
65796         --gnulib-snapshot-date=DATE
65797               if gnulib is in the bootstrap tool list,
65798               then report this as the snapshot date.
65799               If not specified, use the current date/time.
65800               If you specify a date here, be sure it's UTC.
65801
65802 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65803
65804         * tests/test-argp-2.sh: Fix test to match actual output.
65805         (func_compare): Fix sed script to be portable.
65806
65807 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65808
65809         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65810         workaround for this case.  It is not autoconfigured now; offhand
65811         it's hard to see how to autoconfigure it.
65812
65813 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65814
65815         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65816         a directory that is about to be chowned.  Such a directory's
65817         initial file permissions should permit the owner only and this
65818         should not be changed until after the chown, since the group and
65819         other bits would be incorrect if they granted permission before
65820         the chown.
65821
65822         Fix porting problem for iswctype reported by Georg Schwarz in:
65823         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65824         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65825         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65826         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65827         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65828
65829 2006-12-03  Jim Meyering  <jim@meyering.net>
65830
65831         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65832         p->fts_statp may not yet be defined.
65833         (fts_read): Instead, set it in the caller, once p->fts_statp is
65834         sure to be defined, and corresponds to a top-level directory.
65835         This bug made du -x fail.  Here's the coreutils test case:
65836         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65837         Reported by Mike Frysinger.
65838
65839 2006-12-01  Jim Meyering  <jim@meyering.net>
65840
65841         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65842         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65843         Reported by Simon Josefsson.
65844
65845 2006-11-30  Jim Meyering  <jim@meyering.net>
65846
65847         * m4/warning.m4: Use the all-permissive copyright notice
65848         recommended by RMS (rather than LGPL).
65849         * m4/vararrays.m4: Likewise.
65850         * m4/flexmember.m4: Likewise.
65851
65852 2006-11-29  Bruno Haible  <bruno@clisp.org>
65853
65854         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65855         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65856         using +=.
65857         Reported by Simon Josefsson <simon@josefsson.org>.
65858
65859 2006-11-28  James Youngman <jay@gnu.org>
65860
65861         * README: Advise users that they might find the bug-gnulib@gnu.org
65862         and autotools-announce@gnu.org mailing lists useful.
65863
65864 2006-11-28  Bruno Haible  <bruno@clisp.org>
65865
65866         * m4/ptrdiff_max.m4: Remove file.
65867
65868 2006-11-21  Bruno Haible  <bruno@clisp.org>
65869
65870         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65871         _AC_COMPUTE_INT.
65872         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65873         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65874         _AC_COMPUTE_INT.
65875         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65876         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65877         _AC_COMPUTE_INT.
65878         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65879
65880 2006-11-28  Jim Meyering  <jim@meyering.net>
65881
65882         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65883         warning from "gcc -Wshadow" about shadowing the builtin.
65884
65885 2006-11-27  Bruno Haible  <bruno@clisp.org>
65886
65887         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65888         _AC_COMPUTE_INT.
65889         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65890
65891 2006-11-27  Bruno Haible  <bruno@clisp.org>
65892             Paul Eggert  <eggert@cs.ucla.edu>
65893
65894         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65895
65896 2006-11-26  Bruno Haible  <bruno@clisp.org>
65897
65898         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65899         noinst_LTLIBRARIES.
65900
65901 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65902             Bruno Haible  <bruno@clisp.org>
65903
65904         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65905         if compiling with "gcc -ansi".
65906
65907 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65908
65909         Fix some incompatibilities with gcc -ansi -pedantic.
65910         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65911         if compiling pedantically with GCC, unless it's C99 or later.
65912         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65913         it mishandles gcc -ansi -pedantic as well.
65914         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65915         if gcc -pedantic.
65916         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65917         initializers for struct if -pedantic, unless it's C99 or later.
65918
65919 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65920
65921         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65922         Don't close an fd more than once. Identical atimes indicate
65923         success, not failure.
65924
65925 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65926
65927         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65928
65929 2006-11-23  Jim Meyering  <jim@meyering.net>
65930
65931         * build-aux/announce-gen: New file.  From coreutils.
65932
65933 2006-11-22  Jim Meyering  <jim@meyering.net>
65934
65935         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65936         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65937         (fts_read): Use a temporary to narrow the overused st_size member
65938         before using it in a switch statement.  Reported by Matthew Woehlke.
65939
65940         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65941         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65942
65943 2006-11-20  Bruno Haible  <bruno@clisp.org>
65944
65945         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65946         changequote instead of pairs of brackets.
65947         Reported by Andreas Schwab <schwab@suse.de>.
65948
65949 2006-11-21  Jim Meyering  <jim@meyering.net>
65950
65951         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65952         so as to remain compatible with older compilers.
65953         Patch from Michael Deutschmann.
65954
65955 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65956
65957         * MODULES.html.sh (File system functions): Add openat.
65958
65959         * lib/openat.h (rpl_fstatat): New macro, if
65960         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65961         (fstatat): Define to rpl_fstatat under the same conditions,
65962         unless COMPILING_FSTATAT.
65963         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65964         seems to have the bug.
65965         * lib/fstatat.c: New file.
65966         * modules/openat (Files): Add it.
65967
65968 2006-11-20  Bruno Haible  <bruno@clisp.org>
65969
65970         * Makefile: New file.
65971
65972 2006-11-20  Jim Meyering  <jim@meyering.net>
65973
65974         The beginnings of syntax-related checks for gnulib.
65975         * lib/Makefile: New file.
65976         * lib/t-idcache: New script.  Ensure that the two halves of
65977         idcache.c stay in sync.
65978
65979         * lib/idcache.c: Adjust comments in user- and group- portions to
65980         be more accurate, and to be consistent with one another.
65981
65982 2006-11-20  Jim Meyering  <jim@meyering.net>
65983
65984         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65985         continue using the flexible array member (thus, this module performs
65986         half as many malloc calls), with the addition that...
65987         (getgroup, getuser): Consistently record a non-match via an empty
65988         "name" string, and map an empty string match to a NULL return value.
65989         * modules/idcache (Depends-on): Re-add flexmember.
65990
65991         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65992         (getuidbyname, getgroup, getgidbyname): Likewise.
65993
65994         Use cleaner syntax: NULL rather than 0.
65995         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65996
65997 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65998
65999         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66000         It mishandled the case where the group was missing.
66001         Problem reported by Greg Schafer.
66002         * modules/idcache: Likewise.
66003
66004 2006-11-18  Jim Meyering  <jim@meyering.net>
66005
66006         * check-module (%exempt_header): Add exception for some
66007         conditionally-included headers.
66008
66009         * modules/i-ring (Depends-on): Add verify.
66010         (License): Change to LGPL.
66011
66012 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66013
66014         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66015         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66016         and inttostr.h.  Use snprintf rather than uinttostr, so that
66017         LGPLed code doesn't depend on GPLed.
66018
66019 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66020
66021         * modules/inline (License): Change from GPL to LGPL.
66022
66023 2006-11-17  Jim Meyering  <jim@meyering.net>
66024
66025         * modules/d-type (License): Switch to LGPL.
66026
66027 2006-11-15  Bruno Haible  <bruno@clisp.org>
66028
66029         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66030
66031 2006-11-15  Eric Blake  <ebb9@byu.net>
66032
66033         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66034         the module dependency.
66035
66036 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66037             Bruno Haible  <bruno@clisp.org>
66038
66039         * gnulib-tool (func_create_testdir): Add license consistency check.
66040
66041 2006-11-15  Eric Blake  <ebb9@byu.net>
66042
66043         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66044         random "(cached)" in configure output.
66045
66046 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66047
66048         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66049         test for conforming inttypes.h is both announced and cached.
66050
66051         * MODULES.html.sh (seen_modules, seen_files): New variables.
66052         (func_module): Rewrite to use a few less gnulib-tool and sed
66053         invocations.  Avoid a couple of quadratic algorithms for ...
66054         (missed_modules, missed_files): ... these, with ...
66055         (func_append, func_tmpdir): ... these new functions, from
66056         gnulib-tool.  Analogously, install traps for cleanup.
66057
66058         * tests/test-gc.c (main): Remove unused variables.
66059         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66060
66061 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66062
66063         * modules/inttostr (License): Change to LGPL.
66064
66065 2006-11-14  Eric Blake  <ebb9@byu.net>
66066
66067         * modules/tempname (License): Change to LGPL.
66068
66069 2006-11-14  Eric Blake  <ebb9@byu.net>
66070
66071         * doc/functions.texi (Function Portability): *printf functions on
66072         Cygwin now understand all POSIX size specifiers.
66073
66074 2006-11-14  Bruno Haible  <bruno@clisp.org>
66075
66076         * modules/c-ctype (License): Change to LGPL.
66077
66078 2006-11-12  Bruno Haible  <bruno@clisp.org>
66079
66080         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66081         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66082         for GNOME libraries, for which the include files are installed in
66083         subdirectories of $prefix/include.
66084
66085 2006-11-12  Bruno Haible  <bruno@clisp.org>
66086
66087         * m4/lib-link.m4: Require at least autoconf-2.54.
66088         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66089         name to underscores for the --with option.
66090
66091 2006-11-13  Bruno Haible  <bruno@clisp.org>
66092
66093         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66094         the tests directory.
66095         Reported by Ralf Wildenhues.
66096
66097 2006-11-13  Bruno Haible  <bruno@clisp.org>
66098
66099         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66100         (func_emit_initmacro_end): Undo the override here.
66101         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66102         Works around the famous automake error in coreutils.
66103
66104 2006-11-13  Eric Blake  <ebb9@byu.net>
66105
66106         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66107         element, not its node.
66108
66109 2006-11-12  Bruno Haible  <bruno@clisp.org>
66110
66111         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66112         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66113
66114 2006-11-12  Bruno Haible  <bruno@clisp.org>
66115
66116         * gnulib-tool: New option --local-symlink.
66117         (func_usage): Document it.
66118         (lsymbolic): New variable.
66119         (func_import, func_create_testdir): If --symlink was not specified,
66120         test whether --local-symlink was specified and the file comes from
66121         the local_gnulib_dir.
66122
66123 2006-11-12  Bruno Haible  <bruno@clisp.org>
66124
66125         * gnulib-tool (func_ln): New function.
66126         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66127
66128 2006-11-12  Bruno Haible  <bruno@clisp.org>
66129
66130         Finish support for source files in subdirectories.
66131         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66132         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66133         AUTOMAKE_OPTIONS.
66134         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66135
66136 2006-11-12  Bruno Haible  <bruno@clisp.org>
66137
66138         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66139         EXTRA_lib_SOURCES augmentation.
66140         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66141
66142 2006-11-12  Jim Meyering  <jim@meyering.net>
66143
66144         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66145         file descriptors.  This also averts a failure on systems with
66146         native openat support when a traversed directory lacks "x" access.
66147         * lib/fts_.h: Include "i-ring.h"
66148         (struct FTS) [fts_fd_ring]: New member.
66149         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66150         (FCHDIR): Add parentheses.
66151         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66152         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66153         When descending, rather than simply closing the previous
66154         fts_cwd_fd value, push that file descriptor onto the ring.
66155         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66156         (fts_open): Initialize the new fd_ring member.
66157         (fts_close): Clear the ring.
66158         (fts_safe_changedir): When possible, use our new fd_ring to skip
66159         the diropen and fstat and dev/ino comparison that would normally
66160         accompany a virtual `chdir ("..")'.
66161
66162         * modules/fts (Depends-on): Add i-ring.
66163         * modules/i-ring: New module.
66164         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66165         * m4/i-ring.m4: New file.
66166
66167 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66168
66169         * gnulib-tool (func_create_testdir): Fix replacement of
66170         `build-aux' in configure.ac.  Run autotools in gltests
66171         subdirectory.
66172         (func_create_testdir, func_create_megatestdir, test): There is
66173         no need for '--force' in most autotool invocations in a new
66174         tree.  Actually fail the whole test if any of the tools, or the
66175         configure or make stages fail.
66176
66177         Sync from Automake.
66178         * build-aux/gnupload: Revert last change.  Add pointer to upload
66179         instructions of the GNU Maintenance Instructions.
66180         Suggestion by Karl Berry.
66181
66182 2006-11-10  Jim Meyering  <jim@meyering.net>
66183
66184         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66185
66186 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66187
66188         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66189         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66190         (bind_textdomain_codeset) [! ENABLE_NLS]:
66191         Evaluate all the arguments.  That way, callers get compatible behavior
66192         if the arguments have side effects.  Also, it avoids some GCC
66193         diagnostics in some cases; Joel E. Denny reported problems when Bison
66194         was configured with --enable-gcc-warnigs.
66195
66196 2006-11-10  Jim Meyering  <jim@meyering.net>
66197
66198         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66199         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66200         account.
66201
66202 2006-11-10  Jim Meyering  <jim@meyering.net>
66203
66204         * modules/inline: New file/module.
66205         * modules/xalloc (Files): Remove m4/inline.m4.
66206         (Depends-on): Add inline, instead.
66207         * modules/oset: Likewise.
66208         * modules/list: Likewise.
66209
66210 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66211
66212         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66213         Problem reported by Matthew Woehlke.
66214
66215 2006-11-09  Bruno Haible  <bruno@clisp.org>
66216
66217         * lib/tempname.c (gen_tempname): Remove variant that invokes
66218         __gen_tempname.
66219         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66220         __gen_tempname.
66221
66222 2006-11-08  Bruno Haible  <bruno@clisp.org>
66223
66224         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66225         to 'yes' instead of 'cross-compiling'.
66226
66227 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66228
66229         * lib/quotearg.h (quotearg_free): New decl.
66230         * lib/quotearg.c (quotearg_free): New function.
66231         (slot0, nslots, slotvec0, slotvec):
66232         Now file-scope so that quotearg_free can get at them.
66233
66234 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66235
66236         Sync from Automake.
66237         * build-aux/gnupload: Add missing 'gnu' to example URL.
66238         Report by Karl Berry.
66239
66240 2006-11-08  Bruno Haible  <bruno@clisp.org>
66241
66242         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66243         Suggested by Paul Eggert.
66244
66245 2006-11-08  Jim Meyering  <jim@meyering.net>
66246
66247         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66248         It's already included if !_LIBC.
66249         (fts_safe_changedir): Add a comment.
66250
66251 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66252
66253         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66254         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66255         Matthew Woehlke.
66256
66257         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66258         definitions up, to avoid colliding with change below.
66259         (static_inline) [HAVE_INLINE]: New macro.
66260         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66261         Provide extern decls when !HAVE_INLINE.  Do not define unless
66262         static_inline is defined, either by us or by xmalloc.c.  Use
66263         static_inline rather than static inline.
66264         (XCALLOC): Optimize sizeof(T) = 1 case.
66265         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66266
66267 2006-11-07  Bruno Haible  <bruno@clisp.org>
66268
66269         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66270         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66271         AC_C_INLINE.
66272         * modules/xalloc (Files): Add m4/inline.m4.
66273
66274 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66275
66276         * README: Fix typo.
66277         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66278         (Miscellanous Notes): ...from this.
66279
66280 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66281
66282         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66283         Mention that offsetof should be used instead of sizeof.
66284         From Bruno Haible.
66285
66286 2006-11-07  Bruno Haible  <bruno@clisp.org>
66287
66288         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66289
66290 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66291
66292         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66293         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66294         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66295         (gl_tree_add_before, gl_tree_add_after):
66296         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66297         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66298         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66299         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66300         (gl_linked_add_after, gl_linked_add_at): Likewise.
66301         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66302         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66303         (gl_tree_add_before, gl_tree_add_after): Likewise.
66304         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66305         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66306         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66307
66308 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66309
66310         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66311
66312 2006-11-06  Bruno Haible  <bruno@clisp.org>
66313
66314         * m4/inline.m4: New file.
66315         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66316         * modules/list (Files): Add m4/inline.m4.
66317         * modules/oset (Files): Likewise.
66318
66319 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66320
66321         * lib/idcache.c: Include <stddef.h>, for offsetof.
66322         (struct userid.name): Change from char * to a flexible array member.
66323         All uses changed.
66324         * modules/idcache (Depends-on): Add flexmember.
66325
66326         * MODULES.html.sh (Core language properties): New module flexmember.
66327         * modules/flexmember, m4/flexmember.m4: New files.
66328
66329         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66330         inline functions that are identical with the old xnmalloc_inline,
66331         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66332         that we can avoid some unnecessary integer multiplications and
66333         divisions in the common case where the element size is known at
66334         compile time.
66335         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66336         needed.
66337         (xnboundedmalloc): Remove.
66338         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66339         arguments, for consistency with rest of this header.
66340         (xcharalloc): Rewrite using XNMALLOC.
66341         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66342         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66343         versions have been moved to lib/xalloc.h and renamed to be the
66344         non-*_inline versions.
66345         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66346         and xnrealloc functions, since those functions are now inline and
66347         now call us.
66348         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66349         renaming described above.
66350         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66351         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66352         captures the dependency in AC_C_INLINE.
66353
66354         New module canonicalize-lgpl, proposed by Charles Wilson in
66355         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66356         with a few small changes afterwards.
66357         * MODULES.html.sh (File system functions): New module
66358         canonicalize-lgpl.
66359         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66360         and canonicalize_file_name.
66361         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66362         * modules/canonicalize-lgpl: New files.
66363
66364 2006-11-05  Bruno Haible  <bruno@clisp.org>
66365
66366         * gnulib-tool (func_import, func_create_testdir): Create directories
66367         also for files in subdirectories of lib/.
66368
66369 2006-11-05  Bruno Haible  <bruno@clisp.org>
66370
66371         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66372         ANSI C compliant.
66373
66374 2006-11-03  Bruno Haible  <bruno@clisp.org>
66375
66376         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66377         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66378         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66379         (xnboundedmalloc): New inline function.
66380         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66381         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66382         xmalloc.
66383         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66384         xmalloc.
66385         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66386         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66387         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66388         xmalloc.
66389         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66390         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66391         xmalloc.
66392         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66393         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66394         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66395         xmalloc.
66396         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66397         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66398         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66399         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66400         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66401         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66402         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66403
66404 2006-11-03  Bruno Haible  <bruno@clisp.org>
66405
66406         * lib/c-ctype.h [C++]: Define functions without name mangling.
66407         * lib/fwriteerror.h [C++]: Likewise.
66408         * lib/gcd.h [C++]: Likewise.
66409         * lib/linebreak.h [C++]: Likewise.
66410
66411 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66412
66413         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66414         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66415         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66416         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66417         Check for functions and headers just once.
66418         Check for declaration of canonicalize_file_name.
66419         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66420
66421 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66422
66423         * gnulib-tool (func_import): Fix typo in actioncmd.
66424
66425 2006-11-02  Bruno Haible  <bruno@clisp.org>
66426
66427         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66428         newline sequence in the Makefile.am snippet as a space, like "make"
66429         does.
66430         Reported by Roger Persson <perrog@gmail.com>.
66431
66432 2006-11-01  Bruno Haible  <bruno@clisp.org>
66433
66434         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66435         already declared in <string.h>.
66436         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66437
66438 2006-11-01  Bruno Haible  <bruno@clisp.org>
66439
66440         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66441         * lib/strcase.h: Include <string.h>.
66442         (strcasecmp): Define to rpl_strcasecmp here.
66443
66444 2006-11-01  Bruno Haible  <bruno@clisp.org>
66445
66446         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66447
66448 2006-11-01  Eric Blake  <ebb9@byu.net>
66449
66450         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66451
66452         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66453
66454 2006-10-29  Bruno Haible  <bruno@clisp.org>
66455
66456         Make it compile in C++ mode.
66457         * lib/full-write.c (full_rw): Add a cast.
66458
66459 2006-11-01  Bruno Haible  <bruno@clisp.org>
66460
66461         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66462         be POSIX compliant.
66463         Reported by Roger Persson <perrog@gmail.com>.
66464
66465 2006-11-01  Eric Blake  <ebb9@byu.net>
66466
66467         * lib/getopt_.h: Fix comments.
66468
66469 2006-10-31  Eric Blake  <ebb9@byu.net>
66470
66471         * modules/tmpdir (Depends-on): Add sys_stat.
66472         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66473         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66474         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66475         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66476         tempname.
66477
66478 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66479
66480         Avoid some C++ diagnostics reported by Bruno Haible.
66481         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66482         xmalloc.
66483         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66484         (struct slotvec): Move to top level.
66485         (quotearg_n_options): Rewrite to avoid xmalloc.
66486         * lib/xalloc.h (xcharalloc): New function.
66487         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66488         [defined __cplusplus]: Add function template that provides result
66489         type propagation.  This part of the change is from Bruno Haible.
66490
66491 2006-10-29  Bruno Haible  <bruno@clisp.org>
66492
66493         Make it compile in C++ mode.
66494         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66495         * lib/strnlen1.c (strnlen1): Cast memchr result.
66496         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66497         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66498         (create_temp_dir): Rename local variable 'template'.
66499         (compile_csharp_using_sscli): Add cast.
66500         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66501         * lib/findprog.c (find_in_path): Likewise.
66502         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66503         * lib/wait-process.c (register_slave_subprocess): Likewise.
66504
66505 2006-10-22  Bruno Haible  <bruno@clisp.org>
66506
66507         * modules/tsearch: New file.
66508         * lib/tsearch.h: New file.
66509         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66510         * m4/tsearch.m4: New file.
66511         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66512
66513 2006-10-29  Eric Blake  <ebb9@byu.net>
66514
66515         * lib/arcfour.c: Assume config.h.
66516         * lib/arctwo.c: Likewise.
66517         * lib/base64.c: Likewise.
66518         * lib/check-version.c: Likewise.
66519         * lib/crc.c: Likewise.
66520         * lib/des.c: Likewise.
66521         * lib/gc-gnulib.c: Likewise.
66522         * lib/gc-libgcrypt.c: Likewise.
66523         * lib/gc-pbkdf2-sha1.c: Likewise.
66524         * lib/getaddrinfo.c: Likewise.
66525         * lib/getdelim.c: Likewise.
66526         * lib/getline.c: Likewise.
66527         * lib/hmac-md5.c: Likewise.
66528         * lib/hmac-sha1.c: Likewise.
66529         * lib/iconvme.c: Likewise.
66530         * lib/md2.c: Likewise.
66531         * lib/md4.c: Likewise.
66532         * lib/memxor.c: Likewise.
66533         * lib/read-file.c: Likewise.
66534         * lib/readline.c: Likewise.
66535         * lib/rijndael-alg-fst.c: Likewise.
66536         * lib/rijndael-api-fst.c: Likewise.
66537         * lib/xgetdomainname.c: Likewise.
66538
66539 2006-10-28  Eric Blake  <ebb9@byu.net>
66540
66541         * lib/xstrndup.c: Assume config.h.
66542
66543 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66544
66545         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66546         stat-macros.h is now for our own macros, whereas stat_h is for
66547         macros in the <sys/stat.h> name space.
66548         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66549         (STAT_MACROS_H): Remove.
66550         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66551         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66552         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66553         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66554         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66555         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66556         Move these macros to ...
66557         * lib/stat_.h: here.  Don't include stat-macros.h.
66558         * lib/canonicalize.c: Don't include stat-macros.h.
66559         * lib/chown.c: Likewise.
66560         * lib/euidaccess.c: Likewise.
66561         * lib/file-type.c: Likewise.
66562         * lib/filemode.c: Likewise.
66563         * lib/glob.c: Likewise.
66564         * lib/isapipe.c: Likewise.
66565         * lib/lchown.c: Likewise.
66566         * lib/lstat.c: Likewise.
66567         * lib/mkdir-p.c: Likewise.
66568         * lib/rmdir.c: Likewise.
66569         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66570         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66571         unless mkdir isn't declared, to speed up 'configure'.
66572         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66573         would define all the S_* symbols.
66574         * modules/canonicalize (Depends-on):
66575         Depend on sys_stat, not stat-macros.
66576         * modules/chown: Likewise.
66577         * modules/euidaccess: Likewise.
66578         * modules/filemode: Likewise.
66579         * modules/file-type: Likewise.
66580         * modules/glob: Likewise.
66581         * modules/isapipe: Likewise.
66582         * modules/lchown: Likewise.
66583         * modules/lstat: Likewise.
66584         * modules/mkancesdirs: Likewise.
66585         * modules/rmdir: Likewise.
66586         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66587         * modules/modechange: Likewise.
66588         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66589         (configure.ac): Remove gl_STAT_MACROS.
66590         * modules/sys_stat (Depends-on): Remove stat-macros.
66591
66592 2006-10-27  Bruno Haible  <bruno@clisp.org>
66593
66594         * m4/signed.m4: Remove file.
66595         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66596         invocation.
66597         * modules/vasnprintf (Files): Remove m4/signed.m4.
66598
66599 2006-10-27  Bruno Haible  <bruno@clisp.org>
66600
66601         Update to GNU gettext 0.16.
66602         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66603         m4/inttypes-h.m4, m4/signed.m4.
66604         * m4/gettext.m4: Update to GNU gettext 0.16.
66605         * m4/intl.m4: New file, from GNU gettext.
66606         * m4/intldir.m4: New file, from GNU gettext.
66607         * config/srclist.txt: Update
66608
66609 2006-10-27  Eric Blake  <ebb9@byu.net>
66610
66611         * MODULES.html.sh: Document tempname.
66612         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66613         dependencies.
66614         (Files): Move lib/tempname.c...
66615         * modules/tempname: ...to this new module.
66616         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66617         (gl_PREREQ_TEMPNAME): Move...
66618         * m4/tempname.m4: ...to this new file.
66619         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66620         * modules/sys_stat (Depends-on): Add stat-macros.
66621         * lib/stat_.h (includes): Pick up stat macros.
66622         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66623         if stat macros are broken.
66624         * lib/tempname.c (includes): No need to include "stat-macros.h".
66625         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66626         (direxists, __path_search) [!_LIBC]: Don't compile these in
66627         gnulib; the tmpdir module covers that.
66628         * lib/tempname.h: New file.
66629
66630 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66631
66632         * COPYING: Explain how gnulib-tool converts licence headers.
66633         Almost all wording by Eric Blake.
66634
66635 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66636
66637         * lib/mbchar.h (is_basic_table): Make read-only.
66638         * lib/mbchar.c (is_basic_table): Likewise.
66639         Reported by John Darrington.
66640
66641 2006-10-25  Bruno Haible  <bruno@clisp.org>
66642
66643         * lib/progname.h (set_program_name): Undefine before defining.
66644
66645 2006-10-25  Bruno Haible  <bruno@clisp.org>
66646
66647         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66648         false for non-gcc C++ compilers.
66649         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66650
66651 2006-10-24  Bruno Haible  <bruno@clisp.org>
66652
66653         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66654         iconv implementations like Irix iconv.
66655
66656 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66657
66658         * modules/vararrays: New file.
66659         * m4/vararrays.m4: New file, taken from diffutils.
66660         * MODULES.html.sh: New module vararrays.
66661
66662 2006-10-24  Karl Berry  <karl@gnu.org>
66663
66664         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66665         Don't call GNU Unix.
66666
66667 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66668
66669         * users.txt: Add Libtool.
66670
66671         Sync from Libtool:
66672
66673         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66674
66675         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66676         to gnulib's policy of including config.h unconditionally.
66677
66678 2006-10-24  Bruno Haible  <bruno@clisp.org>
66679
66680         * modules/wcwidth (Files): Add m4/wint_t.m4.
66681         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66682         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66683
66684 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66685
66686         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66687         to pacify GCC with some -W flags enabled.  Problem reported by
66688         Bruno Haible.
66689
66690 2006-10-24  Jim Meyering  <jim@meyering.net>
66691
66692         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66693         Reported by Karl Berry.
66694
66695 2006-10-23  Bruno Haible  <bruno@clisp.org>
66696
66697         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66698
66699 2006-10-24  Bruno Haible  <bruno@clisp.org>
66700
66701         * lib/gl_list.h: Use C comment style, not C++ comment style.
66702
66703 2006-10-23  Eric Blake  <ebb9@byu.net>
66704
66705         * lib/getaddrinfo.c (includes): Add missing include.
66706
66707 2006-10-23  Bruno Haible  <bruno@clisp.org>
66708             Paul Eggert  <eggert@cs.ucla.edu>
66709
66710         Ability to rename obstack_free.
66711         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66712         obstack_free.
66713         (obstack_free): Invoke the __obstack_free macro.
66714         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66715
66716 2006-10-23  Bruno Haible  <bruno@clisp.org>
66717             Paul Eggert  <eggert@cs.ucla.edu>
66718
66719         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66720         __argc, __argv from the declaration. (They are defined as macros on
66721         mingw.)
66722
66723 2006-10-22  Bruno Haible  <bruno@clisp.org>
66724
66725         * doc/gnulib-intro.texi: New file.
66726         * doc/gnulib.texi: Include it.
66727
66728 2006-10-21  Bruno Haible  <bruno@clisp.org>
66729
66730         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66731         "Introduction", "Miscellanous Notes", "Particular Modules".
66732
66733 2006-10-21  Bruno Haible  <bruno@clisp.org>
66734
66735         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66736         Change mostlyclean-local rule to avoid sh syntax error from bash
66737         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66738
66739 2006-10-23  Jim Meyering  <jim@meyering.net>
66740
66741         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66742         in place of snprintf.
66743
66744         * modules/inttostr (Files): Add lib/uinttostr.c.
66745         * lib/uinttostr.c (inttostr): New file/function.
66746         * lib/inttostr.h (uinttostr): Declare.
66747         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66748         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66749         Add uinttostr.
66750         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66751
66752 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66753
66754         * lib/canonicalize.c (ELOOP): Define if not already defined.
66755         Problem reported by Bruno Haible in
66756         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66757
66758 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66759
66760         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66761         Problem reported by Perry Smith and Ville Laurikari.
66762
66763         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66764         uses.
66765
66766 2006-10-19  Bruno Haible  <bruno@clisp.org>
66767
66768         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66769         for mingw.
66770
66771 2006-10-19  Bruno Haible  <bruno@clisp.org>
66772
66773         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66774         Needed for mingw.
66775
66776 2006-10-19  Bruno Haible  <bruno@clisp.org>
66777
66778         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66779
66780 2006-10-19  Bruno Haible  <bruno@clisp.org>
66781
66782         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66783         it.
66784
66785 2006-10-19  Bruno Haible  <bruno@clisp.org>
66786
66787         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66788         invocation.
66789
66790 2006-10-19  Bruno Haible  <bruno@clisp.org>
66791
66792         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66793         mountlist by default.
66794
66795 2006-10-16  Bruno Haible  <bruno@clisp.org>
66796
66797         * lib/c-strstr.c: Include c-strstr.h.
66798
66799 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66800
66801         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66802         in a slash.
66803
66804 2006-10-18  Bruno Haible  <bruno@clisp.org>
66805
66806         * lib/lock.h [C++]: Wrap definitions in extern "C".
66807
66808 2006-10-18  Bruno Haible  <bruno@clisp.org>
66809
66810         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66811         gl_LIBOBJS list.
66812
66813 2006-10-18  Bruno Haible  <bruno@clisp.org>
66814
66815         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66816
66817 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66818
66819         * lib/xstrtol.h: Include gettext.h.
66820         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66821         Problem reported by Eric Blake.
66822         * modules/xstrtol (Depends-on): Add gettext-h.
66823
66824 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66825
66826         * lib/strftime.c (advance): New macro.
66827         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66828         incomplete type, so you can't add 0 to it.  Problem and patch
66829         reported by Eelco Dolstra for dietlibc.
66830
66831 2006-10-18  Jim Meyering  <jim@meyering.net>
66832
66833         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66834         type for a local, and rename it: s/up/user_proc/.
66835
66836 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66837
66838         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66839         READ_UTMP_USER_PROCESS.
66840         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66841
66842 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66843
66844         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66845         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66846
66847 2006-10-17  Eric Blake  <ebb9@byu.net>
66848
66849         * lib/sigprocmask.c (sigprocmask): Fix typo.
66850
66851         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66852
66853         * modules/clean-temp (Makefile.am): Don't add to make output...
66854         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66855         config.h.
66856
66857 2006-10-17  Bruno Haible  <bruno@clisp.org>
66858
66859         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66860         differently if DEFAULT_TEXT_DOMAIN is set.
66861
66862 2006-10-16  Bruno Haible  <bruno@clisp.org>
66863
66864         * lib/clean-temp.c: Include fwriteerror.h.
66865
66866 2006-10-16  Bruno Haible  <bruno@clisp.org>
66867
66868         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66869
66870 2006-10-16  Bruno Haible  <bruno@clisp.org>
66871
66872         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66873         * lib/sigprocmask.h: Include <sys/types.h>.
66874         (sigset_t): Use the system's definition if present.
66875
66876 2006-10-17  Eric Blake  <ebb9@byu.net>
66877
66878         * lib/xvasprintf.c (includes): Assume config.h.
66879         * lib/xasprintf.c (includes): Likewise.
66880
66881 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66882
66883         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66884         at least as wide as intmax_t.
66885
66886 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66887
66888         (Imported from Automake.)
66889         * build-aux/gnupload: Update to version 1.1 of directive file.
66890
66891 2006-10-16  Eric Blake  <ebb9@byu.net>
66892
66893         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66894         match Automake 1.10a.
66895
66896 2006-10-14  Bruno Haible  <bruno@clisp.org>
66897
66898         * modules/sigprocmask: New file.
66899         * lib/sigprocmask.h: New file.
66900         * lib/sigprocmask.c: New file.
66901         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66902         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66903         request sigprocmask.o.
66904         (gl_PREREQ_SIGPROCMASK): New macro.
66905         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66906         (Depends-on): Add sigprocmask.
66907         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66908         gt_SIGNALBLOCKING. Test for 'raise' only once.
66909         * lib/fatal-signal.c: Include sigprocmask.h.
66910         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66911         unblock_fatal_signals): Define always.
66912         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66913         sigprocmask.
66914
66915 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66916
66917         Sync from Automake.
66918         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66919         which incorrectly sets the mode of an existing destination
66920         directory.  In some cases the unpatched install-sh could do the
66921         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66922         system.  We hope this is rare in practice, but it's clearly worth
66923         fixing.  Problem reported by Alex Unleashed in
66924         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66925         Also, don't bother to check for -m bugs unless we're using -m;
66926         suggested by Stepan Kasal.
66927
66928 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66929
66930         Sync from Automake.
66931         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66932         `-c' flag, so they appear at the same position as in %FASTDEP%
66933         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66934         which ignores unknown options only after the first non-option.
66935         Bug report against M4 by Nelson H. F. Beebe.
66936
66937 2006-10-13  Jim Meyering  <jim@meyering.net>
66938
66939         Fix a bug in yesterday's change.
66940         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66941         p->fts_statp->st_dev would be used uninitialized.
66942         Ensures that we always call fts_stat on the very first entry.
66943         Miklos Szeredi reported that find -xdev stopped working.
66944
66945 2006-10-12  Bruno Haible  <bruno@clisp.org>
66946
66947         * gnulib-tool (func_get_automake_snippet): Append an automatically
66948         computed EXTRA_DIST augmentation.
66949         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66950         * modules/alloca-opt (Makefile.am): Likewise.
66951         * modules/allocsa (Makefile.am): Likewise.
66952         * modules/arcfour (Makefile.am): Likewise.
66953         * modules/arctwo (Makefile.am): Likewise.
66954         * modules/argmatch (Makefile.am): Likewise.
66955         * modules/argz (Makefile.am): Likewise.
66956         * modules/atexit (Makefile.am): Likewise.
66957         * modules/backupfile (Makefile.am): Likewise.
66958         * modules/byteswap (Makefile.am): Likewise.
66959         * modules/c-strtod (Makefile.am): Likewise.
66960         * modules/c-strtold (Makefile.am): Likewise.
66961         * modules/calloc (Makefile.am): Likewise.
66962         * modules/canon-host (Makefile.am): Likewise.
66963         * modules/canonicalize (Makefile.am): Likewise.
66964         * modules/chdir-long (Makefile.am): Likewise.
66965         * modules/chdir-safer (Makefile.am): Likewise.
66966         * modules/check-version (Makefile.am): Likewise.
66967         * modules/chown (Makefile.am): Likewise.
66968         * modules/cloexec (Makefile.am): Likewise.
66969         * modules/close-stream (Makefile.am): Likewise.
66970         * modules/closeout (Makefile.am): Likewise.
66971         * modules/crc (Makefile.am): Likewise.
66972         * modules/csharpexec (Makefile.am): Likewise.
66973         * modules/cycle-check (Makefile.am): Likewise.
66974         * modules/des (Makefile.am): Likewise.
66975         * modules/dev-ino (Makefile.am): Likewise.
66976         * modules/dirfd (Makefile.am): Likewise.
66977         * modules/dirname (Makefile.am): Likewise.
66978         * modules/dup2 (Makefile.am): Likewise.
66979         * modules/eealloc (Makefile.am): Likewise.
66980         * modules/error (Makefile.am): Likewise.
66981         * modules/euidaccess (Makefile.am): Likewise.
66982         * modules/exclude (Makefile.am): Likewise.
66983         * modules/exitfail (Makefile.am): Likewise.
66984         * modules/fcntl-safer (Makefile.am): Likewise.
66985         * modules/fcntl (Makefile.am): Likewise.
66986         * modules/file-type (Makefile.am): Likewise.
66987         * modules/fileblocks (Makefile.am): Likewise.
66988         * modules/filemode (Makefile.am): Likewise.
66989         * modules/filenamecat (Makefile.am): Likewise.
66990         * modules/fnmatch (Makefile.am): Likewise.
66991         * modules/fopen-safer (Makefile.am): Likewise.
66992         * modules/fpending (Makefile.am): Likewise.
66993         * modules/fprintftime (Makefile.am): Likewise.
66994         * modules/free (Makefile.am): Likewise.
66995         * modules/fsusage (Makefile.am): Likewise.
66996         * modules/ftruncate (Makefile.am): Likewise.
66997         * modules/fts (Makefile.am): Likewise.
66998         * modules/gc-arcfour (Makefile.am): Likewise.
66999         * modules/gc-des (Makefile.am): Likewise.
67000         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67001         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67002         * modules/gc-md4 (Makefile.am): Likewise.
67003         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67004         * modules/gc-sha1 (Makefile.am): Likewise.
67005         * modules/gc (Makefile.am): Likewise.
67006         * modules/getaddrinfo (Makefile.am): Likewise.
67007         * modules/getcwd (Makefile.am): Likewise.
67008         * modules/getdelim (Makefile.am): Likewise.
67009         * modules/getdomainname (Makefile.am): Likewise.
67010         * modules/getgroups (Makefile.am): Likewise.
67011         * modules/gethostname (Makefile.am): Likewise.
67012         * modules/gethrxtime (Makefile.am): Likewise.
67013         * modules/getline (Makefile.am): Likewise.
67014         * modules/getloadavg (Makefile.am): Likewise.
67015         * modules/getlogin_r (Makefile.am): Likewise.
67016         * modules/getndelim2 (Makefile.am): Likewise.
67017         * modules/getopt (Makefile.am): Likewise.
67018         * modules/getpagesize (Makefile.am): Likewise.
67019         * modules/getpass-gnu (Makefile.am): Likewise.
67020         * modules/getpass (Makefile.am): Likewise.
67021         * modules/getsubopt (Makefile.am): Likewise.
67022         * modules/gettime (Makefile.am): Likewise.
67023         * modules/gettimeofday (Makefile.am): Likewise.
67024         * modules/getugroups (Makefile.am): Likewise.
67025         * modules/getusershell (Makefile.am): Likewise.
67026         * modules/glob (Makefile.am): Likewise.
67027         * modules/group-member (Makefile.am): Likewise.
67028         * modules/hard-locale (Makefile.am): Likewise.
67029         * modules/hash (Makefile.am): Likewise.
67030         * modules/hmac-md5 (Makefile.am): Likewise.
67031         * modules/hmac-sha1 (Makefile.am): Likewise.
67032         * modules/human (Makefile.am): Likewise.
67033         * modules/idcache (Makefile.am): Likewise.
67034         * modules/imaxabs (Makefile.am): Likewise.
67035         * modules/imaxdiv (Makefile.am): Likewise.
67036         * modules/inet_ntop (Makefile.am): Likewise.
67037         * modules/inet_pton (Makefile.am): Likewise.
67038         * modules/intprops (Makefile.am): Likewise.
67039         * modules/inttostr (Makefile.am): Likewise.
67040         * modules/inttypes (Makefile.am): Likewise.
67041         * modules/isapipe (Makefile.am): Likewise.
67042         * modules/javaversion (Makefile.am): Likewise.
67043         * modules/lchmod (Makefile.am): Likewise.
67044         * modules/lchown (Makefile.am): Likewise.
67045         * modules/localcharset (Makefile.am): Likewise.
67046         * modules/long-options (Makefile.am): Likewise.
67047         * modules/lstat (Makefile.am): Likewise.
67048         * modules/malloc (Makefile.am): Likewise.
67049         * modules/mathl (Makefile.am): Likewise.
67050         * modules/mbchar (Makefile.am): Likewise.
67051         * modules/md2 (Makefile.am): Likewise.
67052         * modules/md4 (Makefile.am): Likewise.
67053         * modules/md5 (Makefile.am): Likewise.
67054         * modules/memcasecmp (Makefile.am): Likewise.
67055         * modules/memchr (Makefile.am): Likewise.
67056         * modules/memcmp (Makefile.am): Likewise.
67057         * modules/memcoll (Makefile.am): Likewise.
67058         * modules/memcpy (Makefile.am): Likewise.
67059         * modules/memmem (Makefile.am): Likewise.
67060         * modules/memmove (Makefile.am): Likewise.
67061         * modules/mempcpy (Makefile.am): Likewise.
67062         * modules/memrchr (Makefile.am): Likewise.
67063         * modules/memset (Makefile.am): Likewise.
67064         * modules/memxor (Makefile.am): Likewise.
67065         * modules/mkancesdirs (Makefile.am): Likewise.
67066         * modules/mkdir-p (Makefile.am): Likewise.
67067         * modules/mkdir (Makefile.am): Likewise.
67068         * modules/mkdtemp (Makefile.am): Likewise.
67069         * modules/mkstemp (Makefile.am): Likewise.
67070         * modules/mktime (Makefile.am): Likewise.
67071         * modules/modechange (Makefile.am): Likewise.
67072         * modules/mountlist (Makefile.am): Likewise.
67073         * modules/nanosleep (Makefile.am): Likewise.
67074         * modules/obstack (Makefile.am): Likewise.
67075         * modules/openat (Makefile.am): Likewise.
67076         * modules/pagealign_alloc (Makefile.am): Likewise.
67077         * modules/pathmax (Makefile.am): Likewise.
67078         * modules/physmem (Makefile.am): Likewise.
67079         * modules/poll (Makefile.am): Likewise.
67080         * modules/posixtm (Makefile.am): Likewise.
67081         * modules/posixver (Makefile.am): Likewise.
67082         * modules/putenv (Makefile.am): Likewise.
67083         * modules/quote (Makefile.am): Likewise.
67084         * modules/quotearg (Makefile.am): Likewise.
67085         * modules/raise (Makefile.am): Likewise.
67086         * modules/read-file (Makefile.am): Likewise.
67087         * modules/readline (Makefile.am): Likewise.
67088         * modules/readlink (Makefile.am): Likewise.
67089         * modules/readtokens (Makefile.am): Likewise.
67090         * modules/readutmp (Makefile.am): Likewise.
67091         * modules/realloc (Makefile.am): Likewise.
67092         * modules/regex (Makefile.am): Likewise.
67093         * modules/rename-dest-slash (Makefile.am): Likewise.
67094         * modules/rename (Makefile.am): Likewise.
67095         * modules/rijndael (Makefile.am): Likewise.
67096         * modules/rmdir (Makefile.am): Likewise.
67097         * modules/rpmatch (Makefile.am): Likewise.
67098         * modules/safe-read (Makefile.am): Likewise.
67099         * modules/safe-write (Makefile.am): Likewise.
67100         * modules/same-inode (Makefile.am): Likewise.
67101         * modules/same (Makefile.am): Likewise.
67102         * modules/save-cwd (Makefile.am): Likewise.
67103         * modules/savedir (Makefile.am): Likewise.
67104         * modules/setenv (Makefile.am): Likewise.
67105         * modules/settime (Makefile.am): Likewise.
67106         * modules/sha1 (Makefile.am): Likewise.
67107         * modules/sig2str (Makefile.am): Likewise.
67108         * modules/snprintf (Makefile.am): Likewise.
67109         * modules/stat-macros (Makefile.am): Likewise.
67110         * modules/stat-time (Makefile.am): Likewise.
67111         * modules/stdbool (Makefile.am): Likewise.
67112         * modules/stdint (Makefile.am): Likewise.
67113         * modules/stdlib-safer (Makefile.am): Likewise.
67114         * modules/stpcpy (Makefile.am): Likewise.
67115         * modules/stpncpy (Makefile.am): Likewise.
67116         * modules/strcase (Makefile.am): Likewise.
67117         * modules/strcasestr (Makefile.am): Likewise.
67118         * modules/strchrnul (Makefile.am): Likewise.
67119         * modules/strcspn (Makefile.am): Likewise.
67120         * modules/strdup (Makefile.am): Likewise.
67121         * modules/strerror (Makefile.am): Likewise.
67122         * modules/strftime (Makefile.am): Likewise.
67123         * modules/strndup (Makefile.am): Likewise.
67124         * modules/strnlen (Makefile.am): Likewise.
67125         * modules/strpbrk (Makefile.am): Likewise.
67126         * modules/strsep (Makefile.am): Likewise.
67127         * modules/strstr (Makefile.am): Likewise.
67128         * modules/strtod (Makefile.am): Likewise.
67129         * modules/strtoimax (Makefile.am): Likewise.
67130         * modules/strtok_r (Makefile.am): Likewise.
67131         * modules/strtol (Makefile.am): Likewise.
67132         * modules/strtoll (Makefile.am): Likewise.
67133         * modules/strtoul (Makefile.am): Likewise.
67134         * modules/strtoull (Makefile.am): Likewise.
67135         * modules/strtoumax (Makefile.am): Likewise.
67136         * modules/strverscmp (Makefile.am): Likewise.
67137         * modules/sys_socket (Makefile.am): Likewise.
67138         * modules/sys_stat (Makefile.am): Likewise.
67139         * modules/sysexits (Makefile.am): Likewise.
67140         * modules/time_r (Makefile.am): Likewise.
67141         * modules/timegm (Makefile.am): Likewise.
67142         * modules/timespec (Makefile.am): Likewise.
67143         * modules/tmpfile-safer (Makefile.am): Likewise.
67144         * modules/trim (Makefile.am): Likewise.
67145         * modules/unistd-safer (Makefile.am): Likewise.
67146         * modules/unlinkdir (Makefile.am): Likewise.
67147         * modules/unlocked-io (Makefile.am): Likewise.
67148         * modules/userspec (Makefile.am): Likewise.
67149         * modules/utime (Makefile.am): Likewise.
67150         * modules/utimecmp (Makefile.am): Likewise.
67151         * modules/utimens (Makefile.am): Likewise.
67152         * modules/vasnprintf (Makefile.am): Likewise.
67153         * modules/vasprintf (Makefile.am): Likewise.
67154         * modules/vsnprintf (Makefile.am): Likewise.
67155         * modules/xalloc (Makefile.am): Likewise.
67156         * modules/xgetcwd (Makefile.am): Likewise.
67157         * modules/xnanosleep (Makefile.am): Likewise.
67158         * modules/xreadlink (Makefile.am): Likewise.
67159         * modules/xstrtod (Makefile.am): Likewise.
67160         * modules/xstrtol (Makefile.am): Likewise.
67161         * modules/xstrtold (Makefile.am): Likewise.
67162         * modules/yesno (Makefile.am): Likewise.
67163         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67164
67165 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67166
67167         * modules/error (Makefile.am): Distribute files through
67168         EXTRA_DIST, not lib_SOURCES.
67169
67170 2006-10-12  Eric Blake  <ebb9@byu.net>
67171
67172         * modules/error (Makefile.am): Distribute files in /lib.
67173         * modules/obstack (Makefile.am): Likewise.
67174
67175 2006-10-12  Bruno Haible  <bruno@clisp.org>
67176
67177         * modules/acl (Makefile.am): Distribute all files in lib/ through
67178         EXTRA_DIST.
67179         * modules/arcfour (Makefile.am): Likewise.
67180         * modules/arctwo (Makefile.am): Likewise.
67181         * modules/argmatch (Makefile.am): Likewise.
67182         * modules/argz (Makefile.am): Likewise.
67183         * modules/atexit (Makefile.am): Likewise.
67184         * modules/backupfile (Makefile.am): Likewise.
67185         * modules/c-strtod (Makefile.am): Likewise.
67186         * modules/c-strtold (Makefile.am): Likewise.
67187         * modules/calloc (Makefile.am): Likewise.
67188         * modules/canon-host (Makefile.am): Likewise.
67189         * modules/canonicalize (Makefile.am): Likewise.
67190         * modules/chdir-long (Makefile.am): Likewise.
67191         * modules/chdir-safer (Makefile.am): Likewise.
67192         * modules/check-version (Makefile.am): Likewise.
67193         * modules/chown (Makefile.am): Likewise.
67194         * modules/cloexec (Makefile.am): Likewise.
67195         * modules/close-stream (Makefile.am): Likewise.
67196         * modules/closeout (Makefile.am): Likewise.
67197         * modules/crc (Makefile.am): Likewise.
67198         * modules/cycle-check (Makefile.am): Likewise.
67199         * modules/des (Makefile.am): Likewise.
67200         * modules/dirfd (Makefile.am): Likewise.
67201         * modules/dirname (Makefile.am): Likewise.
67202         * modules/dup2 (Makefile.am): Likewise.
67203         * modules/euidaccess (Makefile.am): Likewise.
67204         * modules/exclude (Makefile.am): Likewise.
67205         * modules/exitfail (Makefile.am): Likewise.
67206         * modules/fcntl-safer (Makefile.am): Likewise.
67207         * modules/file-type (Makefile.am): Likewise.
67208         * modules/fileblocks (Makefile.am): Likewise.
67209         * modules/filemode (Makefile.am): Likewise.
67210         * modules/filenamecat (Makefile.am): Likewise.
67211         * modules/fnmatch (Makefile.am): Likewise.
67212         * modules/fopen-safer (Makefile.am): Likewise.
67213         * modules/fpending (Makefile.am): Likewise.
67214         * modules/fprintftime (Makefile.am): Likewise.
67215         * modules/free (Makefile.am): Likewise.
67216         * modules/fsusage (Makefile.am): Likewise.
67217         * modules/ftruncate (Makefile.am): Likewise.
67218         * modules/fts (Makefile.am): Likewise.
67219         * modules/gc (Makefile.am): Likewise.
67220         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67221         * modules/getaddrinfo (Makefile.am): Likewise.
67222         * modules/getcwd (Makefile.am): Likewise.
67223         * modules/getdelim (Makefile.am): Likewise.
67224         * modules/getdomainname (Makefile.am): Likewise.
67225         * modules/getgroups (Makefile.am): Likewise.
67226         * modules/gethostname (Makefile.am): Likewise.
67227         * modules/gethrxtime (Makefile.am): Likewise.
67228         * modules/getline (Makefile.am): Likewise.
67229         * modules/getloadavg (Makefile.am): Likewise.
67230         * modules/getlogin_r (Makefile.am): Likewise.
67231         * modules/getopt (Makefile.am): Likewise.
67232         * modules/getpass (Makefile.am): Likewise.
67233         * modules/getpass-gnu (Makefile.am): Likewise.
67234         * modules/getsubopt (Makefile.am): Likewise.
67235         * modules/gettime (Makefile.am): Likewise.
67236         * modules/gettimeofday (Makefile.am): Likewise.
67237         * modules/getugroups (Makefile.am): Likewise.
67238         * modules/getusershell (Makefile.am): Likewise.
67239         * modules/glob (Makefile.am): Likewise.
67240         * modules/group-member (Makefile.am): Likewise.
67241         * modules/hard-locale (Makefile.am): Likewise.
67242         * modules/hash (Makefile.am): Likewise.
67243         * modules/hmac-md5 (Makefile.am): Likewise.
67244         * modules/hmac-sha1 (Makefile.am): Likewise.
67245         * modules/human (Makefile.am): Likewise.
67246         * modules/idcache (Makefile.am): Likewise.
67247         * modules/imaxabs (Makefile.am): Likewise.
67248         * modules/imaxdiv (Makefile.am): Likewise.
67249         * modules/inet_ntop (Makefile.am): Likewise.
67250         * modules/inet_pton (Makefile.am): Likewise.
67251         * modules/inttostr (Makefile.am): Likewise.
67252         * modules/isapipe (Makefile.am): Likewise.
67253         * modules/lchown (Makefile.am): Likewise.
67254         * modules/long-options (Makefile.am): Likewise.
67255         * modules/lstat (Makefile.am): Likewise.
67256         * modules/malloc (Makefile.am): Likewise.
67257         * modules/mathl (Makefile.am): Likewise.
67258         * modules/mbchar (Makefile.am): Likewise.
67259         * modules/md2 (Makefile.am): Likewise.
67260         * modules/md4 (Makefile.am): Likewise.
67261         * modules/md5 (Makefile.am): Likewise.
67262         * modules/memcasecmp (Makefile.am): Likewise.
67263         * modules/memchr (Makefile.am): Likewise.
67264         * modules/memcmp (Makefile.am): Likewise.
67265         * modules/memcoll (Makefile.am): Likewise.
67266         * modules/memcpy (Makefile.am): Likewise.
67267         * modules/memmem (Makefile.am): Likewise.
67268         * modules/memmove (Makefile.am): Likewise.
67269         * modules/mempcpy (Makefile.am): Likewise.
67270         * modules/memrchr (Makefile.am): Likewise.
67271         * modules/memset (Makefile.am): Likewise.
67272         * modules/memxor (Makefile.am): Likewise.
67273         * modules/mkancesdirs (Makefile.am): Likewise.
67274         * modules/mkdir (Makefile.am): Likewise.
67275         * modules/mkdir-p (Makefile.am): Likewise.
67276         * modules/mkdtemp (Makefile.am): Likewise.
67277         * modules/mkstemp (Makefile.am): Likewise.
67278         * modules/mktime (Makefile.am): Likewise.
67279         * modules/modechange (Makefile.am): Likewise.
67280         * modules/mountlist (Makefile.am): Likewise.
67281         * modules/nanosleep (Makefile.am): Likewise.
67282         * modules/openat (Makefile.am): Likewise.
67283         * modules/pagealign_alloc (Makefile.am): Likewise.
67284         * modules/physmem (Makefile.am): Likewise.
67285         * modules/poll (Makefile.am): Likewise.
67286         * modules/posixtm (Makefile.am): Likewise.
67287         * modules/posixver (Makefile.am): Likewise.
67288         * modules/putenv (Makefile.am): Likewise.
67289         * modules/quote (Makefile.am): Likewise.
67290         * modules/quotearg (Makefile.am): Likewise.
67291         * modules/raise (Makefile.am): Likewise.
67292         * modules/read-file (Makefile.am): Likewise.
67293         * modules/readline (Makefile.am): Likewise.
67294         * modules/readlink (Makefile.am): Likewise.
67295         * modules/readtokens (Makefile.am): Likewise.
67296         * modules/readutmp (Makefile.am): Likewise.
67297         * modules/realloc (Makefile.am): Likewise.
67298         * modules/regex (Makefile.am): Likewise.
67299         * modules/rename (Makefile.am): Likewise.
67300         * modules/rename-dest-slash (Makefile.am): Likewise.
67301         * modules/rijndael (Makefile.am): Likewise.
67302         * modules/rmdir (Makefile.am): Likewise.
67303         * modules/rpmatch (Makefile.am): Likewise.
67304         * modules/safe-read (Makefile.am): Likewise.
67305         * modules/safe-write (Makefile.am): Likewise.
67306         * modules/same (Makefile.am): Likewise.
67307         * modules/save-cwd (Makefile.am): Likewise.
67308         * modules/savedir (Makefile.am): Likewise.
67309         * modules/setenv (Makefile.am): Likewise.
67310         * modules/settime (Makefile.am): Likewise.
67311         * modules/sha1 (Makefile.am): Likewise.
67312         * modules/sig2str (Makefile.am): Likewise.
67313         * modules/snprintf (Makefile.am): Likewise.
67314         * modules/stdlib-safer (Makefile.am): Likewise.
67315         * modules/stpcpy (Makefile.am): Likewise.
67316         * modules/stpncpy (Makefile.am): Likewise.
67317         * modules/strcase (Makefile.am): Likewise.
67318         * modules/strcasestr (Makefile.am): Likewise.
67319         * modules/strchrnul (Makefile.am): Likewise.
67320         * modules/strcspn (Makefile.am): Likewise.
67321         * modules/strdup (Makefile.am): Likewise.
67322         * modules/strerror (Makefile.am): Likewise.
67323         * modules/strftime (Makefile.am): Likewise.
67324         * modules/strndup (Makefile.am): Likewise.
67325         * modules/strnlen (Makefile.am): Likewise.
67326         * modules/strpbrk (Makefile.am): Likewise.
67327         * modules/strsep (Makefile.am): Likewise.
67328         * modules/strstr (Makefile.am): Likewise.
67329         * modules/strtod (Makefile.am): Likewise.
67330         * modules/strtoimax (Makefile.am): Likewise.
67331         * modules/strtok_r (Makefile.am): Likewise.
67332         * modules/strtol (Makefile.am): Likewise.
67333         * modules/strtoll (Makefile.am): Likewise.
67334         * modules/strtoul (Makefile.am): Likewise.
67335         * modules/strtoull (Makefile.am): Likewise.
67336         * modules/strtoumax (Makefile.am): Likewise.
67337         * modules/strverscmp (Makefile.am): Likewise.
67338         * modules/time_r (Makefile.am): Likewise.
67339         * modules/timegm (Makefile.am): Likewise.
67340         * modules/tmpfile-safer (Makefile.am): Likewise.
67341         * modules/unistd-safer (Makefile.am): Likewise.
67342         * modules/unlinkdir (Makefile.am): Likewise.
67343         * modules/userspec (Makefile.am): Likewise.
67344         * modules/utime (Makefile.am): Likewise.
67345         * modules/utimecmp (Makefile.am): Likewise.
67346         * modules/utimens (Makefile.am): Likewise.
67347         * modules/vasnprintf (Makefile.am): Likewise.
67348         * modules/vasprintf (Makefile.am): Likewise.
67349         * modules/vsnprintf (Makefile.am): Likewise.
67350         * modules/xalloc (Makefile.am): Likewise.
67351         * modules/xgetcwd (Makefile.am): Likewise.
67352         * modules/xnanosleep (Makefile.am): Likewise.
67353         * modules/xreadlink (Makefile.am): Likewise.
67354         * modules/xstrtod (Makefile.am): Likewise.
67355         * modules/xstrtol (Makefile.am): Likewise.
67356         * modules/xstrtold (Makefile.am): Likewise.
67357         * modules/yesno (Makefile.am): Likewise.
67358
67359 2006-10-12  Jim Meyering  <jim@meyering.net>
67360
67361         * m4/getloadavg.m4: Revert the change below.
67362
67363         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67364         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67365         fail with a symlink, which is what coreutils' ./bootstrap now
67366         creates by default.
67367
67368 2006-10-12  Bruno Haible  <bruno@clisp.org>
67369
67370         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67371         mingw.
67372         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67373         MSVC and mingw explicitly.
67374
67375 2006-10-11  Simon Josefsson  <jas@extundo.com>
67376             Bruno Haible  <bruno@clisp.org>
67377
67378         Add support for multiple gnulib-tool invocations in the scope of a
67379         single configure.ac file.
67380         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67381         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67382         with the same contents as the _LIBADD variable.
67383         (func_emit_initmacro_start, func_emit_initmacro_end,
67384         func_emit_initmacro_done): New functions.
67385         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67386         gl_LIBOBJS and gl_LTLIBOBJS.
67387
67388 2006-10-11  Bruno Haible  <bruno@clisp.org>
67389
67390         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67391         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67392         autoreconf. Instead, invoke autopoint explicitly but move back the
67393         *.m4 files from gnulib.
67394
67395 2006-10-11  Bruno Haible  <bruno@clisp.org>
67396
67397         * gnulib-tool (func_usage): Make module names after --create-testdir
67398         optional.
67399         (func_create_testdir): If no module was specified, use nearly all
67400         modules.
67401
67402 2006-10-12  Jim Meyering  <jim@meyering.net>
67403
67404         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67405         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67406         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67407         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67408         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67409         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67410         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67411         (fts_set_stat_required): New function.
67412         (fts_open): Defer the calls to fts_stat, if possible or requested.
67413         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67414         into fts_stat itself.
67415         (fts_read): Perform any required (deferred) fts_stat call.
67416         (fts_build): Likewise, for the directory we're about to open and read.
67417         In the readdir loop, carefully decide whether each entry will require
67418         an eventual call to fts_stat, using dirent.d_type info if available.
67419         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67420         a command line argument into this function.  Update all callers.
67421         Map a return value of FTS_DOT to FTS_D for a command line argument.
67422         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67423         Thanks to Miklos Szeredi for his tenacity and for the initial
67424         bug report about "find" failing on a FUSE-based file system.
67425
67426         * lib/fts.c (fts_open): Use consistent indentation.
67427
67428 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67429
67430         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67431         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67432         reported by Jim Meyering.  All uses of cache variables renamed
67433         to match Autoconf's.
67434         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67435         the other one.
67436
67437         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67438         Fix misspelling in diagnostic.
67439
67440 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67441
67442         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67443         defined.  Problem reported by Matthew Woehlke.
67444
67445         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67446         Add support for Tandem NonStop R series.
67447         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67448         Use new macro.
67449
67450         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67451         (has_trailing_slash): Omit size arg; all callers changed.
67452         Omit 'inline', since it doesn't help performance and we'd
67453         need to configure it.
67454         Don't count //, ///, etc. as having a trailing slash.
67455         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67456         (rpl_rename_dest_slash): On failure, use rename's errno rather
67457         than (in some cases) an incorrect or junk errno.
67458         Simplify code by removing need to compute length; this does
67459         cause it to make two passes instead of one over the file name,
67460         but it's worth it.
67461
67462         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67463         change, since Autoconf's version may no longer be appropriate now
67464         that we are using CVS Autoconf's version.  Add support for Tandem.
67465
67466 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67467             Bruno Haible  <bruno@clisp.org>
67468
67469         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67470         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67471         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67472         gl_AC_TYPE_LONG_LONG.
67473
67474         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67475         instead of HAVE_LONG_LONG.
67476         * lib/printf-args.c (printf_fetchargs): Likewise.
67477         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67478         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67479         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67480         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67481         gl_AC_TYPE_LONG_LONG.
67482
67483 2006-10-11  Bruno Haible  <bruno@clisp.org>
67484
67485         * m4/longlong.m4: Add comments.
67486         * m4/ulonglong.m4: Likewise.
67487
67488 2006-10-10  Bruno Haible  <bruno@clisp.org>
67489
67490         Make it possible to #define stpcpy, strdup to aliases.
67491         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67492         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67493
67494 2006-10-10  Bruno Haible  <bruno@clisp.org>
67495
67496         Make it possible to #define gcd to an alias.
67497         * lib/gcd.c: Include config.h.
67498
67499 2006-10-10  Bruno Haible  <bruno@clisp.org>
67500
67501         Make it possible to #define c_isascii to an alias.
67502         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67503         defined. Undefine the macros before defining them, to avoid gcc
67504         warnings.
67505         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67506         define NO_C_CTYPE_MACROS early.
67507
67508 2006-10-10  Bruno Haible  <bruno@clisp.org>
67509
67510         Make it possible to #define set_program_name to an alias.
67511         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67512         ENABLE_RELOCATABLE early.
67513
67514 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67515
67516         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67517         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67518         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67519         More generally, don't assume that 64-bit signed int is available
67520         if unsigned int is, and vice versa.
67521         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67522         unsigned symbols, not on their signed counterparts.
67523         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67524         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67525         (UINT64_C, UINTMAX_C):
67526         Likewise.
67527         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67528         unsigned counterparts.
67529         (Have_long_long, Unsigned): New macros.
67530         (Int): Renamed from INT.
67531         (strtoimax): Use the new macros.
67532         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67533         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67534         * modules/inttypes (inttypes.h): Substitute
67535         HAVE_UNSIGNED_LONG_LONG_INT.
67536         * modules/stdint (stdint.h): Likewise.
67537         (Files): Add m4/ulonglong.m4.
67538
67539 2006-10-10  Bruno Haible  <bruno@clisp.org>
67540
67541         Fix a gcc -Wshadow warning.
67542         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67543         to 'bucket'.
67544         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67545         gl_linked_indexof_from_to): Likewise.
67546         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67547         Likewise.
67548         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67549         Likewise.
67550         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67551         Reported by Eric Blake.
67552
67553 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67554
67555         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67556         for NetBSD.  Problem reported by Bruno Haible.
67557
67558 2006-10-09  Jim Meyering  <jim@meyering.net>
67559
67560         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67561         Patch from Bruno Haible.
67562
67563 2006-10-09  Jim Meyering  <jim@meyering.net>
67564
67565         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67566         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67567         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67568
67569 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67570
67571         Don't include <config.h> twice; this doesn't work in some cases,
67572         e.g., when config.h has "#define intmax_t long long int" and
67573         we include <config.h>, <inttypes.h>, <config.h> in that order.
67574         Problem reported by Matthew Woehlke in:
67575         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67576         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67577         * lib/fts-cycle.c: Don't include config.h.
67578         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67579         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67580         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67581         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67582         inttypes.h.
67583         * lib/xstrtoumax.c: Likewise.
67584         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67585         __strtol and the like, so that this module is more like its siblings.
67586         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67587         Remove; no longer needed now that we assume gnulib inttypes.h.
67588
67589 2006-10-08  Bruno Haible  <bruno@clisp.org>
67590
67591         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67592         option.
67593
67594 2006-10-07  Jim Meyering  <jim@meyering.net>
67595
67596         * modules/inttypes (inttypes.h): Revert what seems to have been
67597         an inadvertent part of today's change: use "|", not "/" in the
67598         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67599
67600 2006-10-07  Bruno Haible  <bruno@clisp.org>
67601
67602         * modules/sublist: New file.
67603
67604 2006-10-07  Bruno Haible  <bruno@clisp.org>
67605
67606         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67607         * modules/argz (argz.h): Likewise.
67608         * modules/arpa_inet (arpa/inet.h): Likewise.
67609         * modules/byteswap (byteswap.h): Likewise.
67610         * modules/configmake (configmake.h): Likewise.
67611         * modules/fcntl (fcntl.h): Likewise.
67612         * modules/fnmatch (fnmatch.h): Likewise.
67613         * modules/getopt (getopt.h): Likewise.
67614         * modules/glob (glob.h): Likewise.
67615         * modules/inttypes (inttypes.h): Likewise.
67616         * modules/netinet_in (netinet/in.h): Likewise.
67617         * modules/poll (poll.h): Likewise.
67618         * modules/stdbool (stdbool.h): Likewise.
67619         * modules/stdint (stdint.h): Likewise.
67620         * modules/sys_select (sys/select.h): Likewise.
67621         * modules/sys_socket (sys/socket.h): Likewise.
67622         * modules/sys_stat (sys/stat.h): Likewise.
67623         * modules/sysexits (sysexits.h): Likewise.
67624         * modules/unistd (unistd.h): Likewise.
67625         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67626         Add a "DO NOT EDIT" comment to the generated file.
67627         (func_import): Likewise for gnulib-comp.m4.
67628
67629 2006-10-07  Bruno Haible  <bruno@clisp.org>
67630
67631         * lib/gl_sublist.h: New file.
67632         * lib/gl_sublist.c: New file.
67633
67634 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67635
67636         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67637         name (relative to the original working directory) and the file
67638         name component (relative to the temporary working directory).  All
67639         callers changed.
67640         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67641         * lib/mkdir-p.c (make_dir_parents): Likewise.
67642         * lib/mkdir-p.h (make_dir_parents): Likewise.
67643
67644 2006-10-06  Eric Blake  <ebb9@byu.net>
67645
67646         Define several macros for use by the clean-temp module.
67647         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67648         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67649         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67650
67651         * lib/clean-temp.h (close_stream_temp): New declaration.
67652         * lib/clean-temp.c (includes): Pull in headers according to what
67653         other modules are in use.
67654         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67655
67656 2006-10-06  Bruno Haible  <bruno@clisp.org>
67657
67658         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67659         instead of fopen, fwriteerror.
67660
67661 2006-10-06  Bruno Haible  <bruno@clisp.org>
67662
67663         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67664         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67665         int.
67666         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67667         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67668         Return an error indicator.
67669         Suggested by Eric Blake.
67670
67671 2006-10-06  Bruno Haible  <bruno@clisp.org>
67672
67673         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67674         Reported by Eric Blake.
67675
67676 2006-10-06  Bruno Haible  <bruno@clisp.org>
67677
67678         * modules/closeout (Description): Mention stderr too.
67679
67680 2006-10-06  Bruno Haible  <bruno@clisp.org>
67681         and Paul Eggert  <eggert@cs.ucla.edu>
67682
67683         * lib/closeout.c (close_stdout): Also close stderr.
67684         * lib/closeout.h: Update comment.
67685
67686 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67687
67688         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67689         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67690         * lib/dirchownmod.c: Include lchown.h.
67691         * lib/lchown.c: Don't include files that lchown.h now includes.
67692         Don't declare chown, since lchown.h now does that.
67693         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67694         (lchown): Define to rpl_chown if lchown is declared but
67695         does not exist.  Declare using a prototype if lchown is not
67696         declared.  Add a copyright notice.
67697         * lib/mkstemp.h: Include <unistd.h>.
67698         * lib/openat.c: Include lchown.h.
67699
67700         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67701         we now test for that separately.
67702         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67703         rather than O_NOFOLLOW, when testing whether it's possible to
67704         avoid a race condition reliably.
67705         * lib/savewd.c (savewd_chdir): Likewise.
67706
67707         Remove macros that are no longer needed now that stdint.h is
67708         reliable.
67709         * lib/fsusage.c (UINTMAX_MAX): Remove.
67710         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67711         * lib/utimecmp.c (SIZE_MAX): Remove.
67712
67713         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67714
67715         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67716         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67717         O_NOATIME works.
67718
67719 2006-10-05  Bruno Haible  <bruno@clisp.org>
67720
67721         * lib/gl_list.h (gl_sortedlist_search_from_to,
67722         gl_sortedlist_indexof_from_to): New declarations.
67723         (gl_list_implementation): New fields sortedlist_search_from_to,
67724         sortedlist_indexof_from_to.
67725         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67726         inline functions.
67727         * lib/gl_list.c (gl_sortedlist_search_from_to,
67728         gl_sortedlist_indexof_from_to): New functions.
67729         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67730         function.
67731         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67732         (gl_array_sortedlist_search_from_to): New function.
67733         (gl_array_list_implementation): Update.
67734         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67735         function.
67736         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67737         (gl_carray_sortedlist_search_from_to): New function.
67738         (gl_carray_list_implementation): Update.
67739         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67740         gl_linked_sortedlist_indexof_from_to): New functions.
67741         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67742         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67743         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67744         gl_tree_sortedlist_indexof_from_to): New functions.
67745         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67746         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67747         Update.
67748         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67749         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67750         Update.
67751
67752 2006-10-05  Bruno Haible  <bruno@clisp.org>
67753
67754         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67755         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67756         (struct gl_list_implementation): Add fields search_from_to,
67757         indexof_from_to. Remove fields search, indexof.
67758         (gl_list_search): Use the search_from_to method.
67759         (gl_list_search_from, gl_list_search_from_to): New functions.
67760         (gl_list_indexof): Use the indexof_from_to method.
67761         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67762         * lib/gl_list.c (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_array_list.c (gl_array_indexof_from_to): Renamed from
67767         gl_array_indexof. Add start_index, end_index arguments.
67768         (gl_array_search_from_to): Renamed from gl_array_search. Add
67769         start_index, end_index arguments.
67770         (gl_array_remove, gl_array_list_implementation): Update.
67771         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67772         gl_carray_indexof. Add start_index, end_index arguments.
67773         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67774         start_index, end_index arguments.
67775         (gl_carray_remove, gl_carray_list_implementation): Update.
67776         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67777         gl_linked_search. Add start_index, end_index arguments.
67778         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67779         start_index, end_index arguments.
67780         (gl_linked_remove): Update.
67781         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67782         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67783         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67784         field to 'size_t'.
67785         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67786         gl_tree_search. Add start_index, end_index arguments.
67787         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67788         start_index, end_index arguments.
67789         (gl_tree_remove): Update.
67790         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67791         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67792         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67793         function.
67794         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67795         gl_tree_search. Add start_index, end_index arguments.
67796         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67797         start_index, end_index arguments.
67798         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67799         Update.
67800         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67801
67802 2006-10-05  Bruno Haible  <bruno@clisp.org>
67803
67804         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67805
67806         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67807         fwriteerror_temp): New declarations.
67808         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67809         (descriptors): New variable.
67810         (cleanup): First, close the descriptors.
67811         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67812         fclose_temp, fwriteerror_temp): New functions.
67813
67814 2006-10-04  Jim Meyering  <jim@meyering.net>
67815
67816         * lib/fts.c (fts_open): Tiny comment change.
67817
67818 2006-10-04  Bruno Haible  <bruno@clisp.org>
67819
67820         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67821         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67822         gl_LOCK_BODY.
67823         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67824         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67825         gl_LOCK_EARLY_BODY.
67826         (gl_LOCK): Require gl_LOCK_BODY.
67827
67828 2006-10-04  Bruno Haible  <bruno@clisp.org>
67829
67830         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67831         (gl_oset_search_atleast): New declaration.
67832         (struct gl_oset_implementation): Add field 'search_atleast'.
67833         (gl_oset_search_atleast): New inline function.
67834         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67835         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67836         (gl_array_oset_implementation): Update.
67837         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67838         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67839         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67840
67841 2006-10-04  Bruno Haible  <bruno@clisp.org>
67842
67843         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67844
67845 2006-10-03  Bruno Haible  <bruno@clisp.org>
67846
67847         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67848         from gl_avltreehash_list_implementation.
67849
67850 2006-10-03  Bruno Haible  <bruno@clisp.org>
67851
67852         * lib/gl_oset.c (gl_oset_add): Fix return type.
67853
67854 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67855
67856         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67857
67858 2006-10-02  Eric Blake  <ebb9@byu.net>
67859
67860         * modules/strnlen (Depends-on): Add extensions.
67861
67862 2006-10-02  Eric Blake  <ebb9@byu.net>
67863
67864         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67865         definition in 2.60+.
67866
67867 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67868
67869         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67870         checks.
67871
67872 2006-10-02  Bruno Haible  <bruno@clisp.org>
67873
67874         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67875         to the AUTOMAKE_OPTIONS.
67876         Reported by Jim Meyering.
67877
67878 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67879
67880         Work around bug in Solaris 10 /proc file system:
67881         /proc/self/fd/NNN/.. isn't the parent directory of
67882         the directory whose file descriptor is NNN.  This needs to
67883         be worked around at run time, not compile time, since a
67884         program might be built on Solaris 8, where things work, and
67885         run on Solaris 10.
67886         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67887         to use the following interface instead:
67888         (OPENAT_BUFFER_SIZE): New macro.
67889         (openat_proc_name): New function.
67890         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67891         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67892         Likewise.
67893         * lib/openat-proc.c: New file.
67894         * modules/openat (Files): Add lib/openat-proc.c.
67895         (Depends-on): Add same-inode, stdbool.
67896         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67897
67898 2006-09-29  Bruno Haible  <bruno@clisp.org>
67899
67900         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67901         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67902         argument. Set stdout_closed before testing for ferror, not after.
67903         (fwriteerror, fwriteerror_no_ebadf): New functions.
67904
67905 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67906
67907         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67908
67909 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67910
67911         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67912         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67913
67914 2006-09-28  Jim Meyering  <jim@meyering.net>
67915
67916         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67917         Include <unistd.h>.
67918
67919 2006-09-28  Bruno Haible  <bruno@clisp.org>
67920
67921         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67922         * modules/linkedhash-list (Depends-on): Likewise.
67923         * modules/rbtreehash-list (Depends-on): Likewise.
67924
67925 2006-09-28  Bruno Haible  <bruno@clisp.org>
67926
67927         * lib/strndup.h: Simplify the redefinition of strndup.
67928         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67929         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67930
67931 2006-09-28  Bruno Haible  <bruno@clisp.org>
67932
67933         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67934         * lib/gl_linkedhash_list.c: Likewise.
67935         * lib/gl_rbtreehash_list.c: Likewise.
67936
67937 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67938
67939         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67940         getaddrinfo.
67941
67942         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67943         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67944         it causes <stdio_ext.h> to cause a compile-time error.
67945         Problem reported by Nelson H. F. Beebe.
67946         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67947         of HAVE_DECL___PENDING.
67948
67949         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67950         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67951         declaration.
67952
67953 2006-09-27  Jim Meyering  <jim@meyering.net>
67954
67955         This file could end up with a definition for a function
67956         named __strndup, rather than rpl_strndup on a system with
67957         incomplete weak_alias support.
67958         * lib/strndup.c (strndup): Rename from __strndup.
67959         Remove #defines that used to map __strndup to strndup.
67960         Don't use K&R prototypes.
67961         Remove LIBC-related code, since this file is not sync'd with glibc.
67962         * lib/strndup.h: Revamp, accordingly.
67963         * m4/strndup.m4: Modernize.
67964
67965 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67966
67967         * modules/savewd (Depends-on): Add 'raise'.
67968         * lib/savewd.c: Include <signal.h>, for 'raise'.
67969
67970 2006-09-26  Jim Meyering  <jim@meyering.net>
67971
67972         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67973         when we detect Darwin 8.7.0's acl_get_file bug.
67974         Rearrange to perform the new (below) run-test while $LIBS
67975         contains any acl-related library.  Set USE_ACL at the end.
67976         (gl_ACL_GET_FILE): New function.
67977
67978 2006-09-26  Eric Blake  <ebb9@byu.net>
67979
67980         * lib/verror.c: Include <config.h> unconditionally.
67981
67982 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67983
67984         * modules/clock-time (Maintainer): Add self.
67985         * modules/getlogin_r (Depends-on): Add extensions.
67986
67987 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67988
67989         * modules/clock-time: New module.
67990         * modules/nanosleep (Depends-on): Add clock-time.
67991         * modules/gethrxtime (Depends-on): Likewise.
67992         * modules/gettime (Depends-on): Likewise.
67993         * modules/settime (Depends-on): Likewise.
67994
67995         * modules/fts-lgpl: Depend on openat.
67996         * modules/mkancesdirs: Depend on savewd.
67997         * modules/mkdir-p: Likewise.
67998
67999 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68000
68001         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68002
68003         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68004         `gl_have_arbitrary_file_name_length_limit' to
68005         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68006         actually works between configure runs.
68007
68008 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68009             Bruno Haible  <bruno@clisp.org>
68010
68011         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68012
68013 2006-09-25  Jim Meyering  <jim@meyering.net>
68014
68015         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68016         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68017
68018 2006-09-25  Eric Blake  <ebb9@byu.net>
68019
68020         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68021         exec's in 2006-09-18 patch when shuffling fds.
68022
68023 2006-09-25  Bruno Haible  <bruno@clisp.org>
68024
68025         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68026         Reported by Jim Meyering.
68027
68028 2006-09-24  Jim Meyering  <jim@meyering.net>
68029
68030         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68031         compare a pointer against a literal "0".  That caused failures with
68032         at least HP-UX's hpcc.
68033
68034 2006-09-22  Simon Josefsson  <jas@extundo.com>
68035
68036         * modules/gc-sha1:
68037         * modules/gc-md4:
68038         * modules/gc-hmac-sha1:
68039         * modules/gc-hmac-md5:
68040         * modules/gc-des:
68041         * modules/gc-arcfour: Distribute more files.
68042
68043 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68044
68045         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68046         (gl_linked_iterator_from_to): Initialize struct completely.
68047         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68048         (gl_tree_iterator_from_to): Likewise
68049         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68050         * lib/gl_array_list.c [lint] (gl_array_iterator)
68051         (gl_array_iterator_from_to): Likewise.
68052         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68053         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68054         (gl_carray_iterator_from_to): Likewise.
68055
68056         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68057         * lib/md4.c (md4_process_block): Remove unused variable.
68058         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68059         parentheses for clarity.
68060
68061 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68062
68063         * modules/bison-i18n (Depends-on): Add gettext.
68064
68065 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68066
68067         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68068         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68069         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68070         also add missing comma that caused broken test.
68071         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68072         stdlib.h, for `abort'.
68073         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68074         variables.
68075         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68076         include unistd.h if present, for `rmdir'.
68077         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68078         variables.
68079         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68080         in the process include standard headers for prototypes.
68081         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68082         gets declared on GNU/Linux.
68083         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68084         unistd.h, for `rmdir'.
68085         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68086
68087         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68088         always true.
68089         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68090
68091         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68092
68093 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68094
68095         * gnulib-tool (func_version): Create output all at once.  This
68096         may help avoid triggering unnecessary SIGPIPEs, and at any
68097         rate it doesn't hurt.
68098
68099 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68100             Bruno Haible  <bruno@clisp.org>
68101
68102         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68103         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68104         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68105
68106         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68107         (gl_FUNC_VASPRINTF): Invoke it.
68108
68109 2006-09-22  Bruno Haible  <bruno@clisp.org>
68110
68111         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68112         getloadavg.c as first argument.
68113
68114 2006-09-22  Bruno Haible  <bruno@clisp.org>
68115
68116         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68117         at the beginning of the gl_INIT macro.
68118         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68119         gl_GETLOADAVG.
68120
68121 2006-09-22  Bruno Haible  <bruno@clisp.org>
68122
68123         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68124         module.
68125         Suggested by Ralf Wildenhues.
68126
68127 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68128
68129         Import this patch from libc:
68130
68131         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68132
68133         * lib/regex_internal.c (re_string_reconstruct): Handle
68134         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68135         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68136         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68137         re_string_context_at.
68138
68139         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68140         now requires it.
68141         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68142         gl_REGEX now does it for us.
68143         (gl_REGEX): Add test taken from
68144         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68145
68146         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68147         Check that large offsets work.  Modernize Autoconf usages.
68148         Prefer "yes" to mean a good thing rather than a bad.
68149         Don't put "#define mkstemp" in config.h, as this might interfere
68150         with standard system headers that "#define mkstemp mkstemp64".
68151
68152         * modules/mkstemp (Depends-on): Add extensions, so that
68153         mkstemp is visible on some platforms.
68154         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68155         (Include): Change to "mkstemp.h" from <stdlib.h>.
68156         (Files): Add mkstemp.h.
68157
68158         * lib/mkstemp.h: New file, since some standard headers
68159         #define mkstemp.
68160         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68161         Include "mkstemp.h".
68162         Make the _LIBC code resemble glibc original more,
68163         e.g., use K&R style.
68164         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68165         (mkstemp): Remove, since mkstemp.h does this for us.
68166         * lib/stdlib--.h: Include mkstemp.h.
68167
68168         Import this patch from libc:
68169
68170         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68171
68172         * lib/tempname.c (__gen_tempname): Change attempts_min
68173         into a macro.  Use preprocessor to decide how to initialize
68174         attempts [Coverity CID 67].
68175
68176 2006-09-20  Bruno Haible  <bruno@clisp.org>
68177
68178         * lib/mkdtemp.c: Import from libc.
68179         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68180                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68181                 attempts_min into a macro.  Use preprocessor to decide how to
68182                 initialize attempts [Coverity CID 67].
68183         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68184                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68185                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68186
68187 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68188
68189         * gnulib-tool (func_exit): New function, to allow to pass the
68190         exit status portably through the trap.  Use everywhere.
68191         (--help, --version): Signal a write error.
68192         (trap): catch SIGPIPE, for write errors.
68193         Exit at the end of the trap, with the correct exit status.
68194
68195 2006-09-19  Karl Berry  <karl@gnu.org>
68196
68197         * doc/gnulib.texi: note about the license texinfo files.
68198
68199 2006-09-19  Eric Blake  <ebb9@byu.net>
68200
68201         * gnulib-tool: Avoid space-tab.
68202
68203 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68204
68205         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68206         that prevented coreutils 6.1 from building.  Problem reported
68207         by Petter Reinholdtsen.
68208
68209 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68210
68211         * gnulib-tool (avoidlist): Fix typo that broke options like
68212         --avoid=lock that are used by coreutils bootstrap.
68213
68214 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68215
68216         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68217         more systematically.
68218
68219 2006-09-18  Jim Meyering  <jim@meyering.net>
68220
68221         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68222
68223 2006-09-18  Bruno Haible  <bruno@clisp.org>
68224
68225         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68226
68227 2006-09-18  Bruno Haible  <bruno@clisp.org>
68228
68229         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68230         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68231         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68232         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68233         * m4/gettext.m4: Require autoconf >= 2.52.
68234         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68235         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68236         of gl_cv_header_inttypes_h.
68237
68238 2006-09-18  Bruno Haible  <bruno@clisp.org>
68239
68240         * lib/javaversion.c: Include configmake.h.
68241
68242 2006-09-18  Bruno Haible  <bruno@clisp.org>
68243
68244         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68245         avoid that the while loops be executed in a subshell.
68246
68247 2006-09-18  Bruno Haible  <bruno@clisp.org>
68248
68249         * MODULES.html.sh (func_module): Break long lines.
68250         Suggested by Bruce Korb <bkorb@gnu.org>.
68251
68252 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68253
68254         Speed up by a factor of 1.12.
68255         * gnulib-tool (nl): New variable.
68256         (func_import): Rewrite include directive extraction to only read each
68257         directive once.
68258
68259 2006-09-17  Bruno Haible  <bruno@clisp.org>
68260
68261         * modules/javaversion (Makefile.am): Remove DEFS setting.
68262         (Depends-on): Add configmake, for PKGDATADIR definition.
68263
68264 2006-09-17  Bruno Haible  <bruno@clisp.org>
68265
68266         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68267
68268 2006-09-17  Bruno Haible  <bruno@clisp.org>
68269
68270         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68271         (func_modules_transitive_closure, func_modules_add_dummy,
68272         func_modules_to_filelist, func_import, func_create_testdir,
68273         func_create_megatestdir, ...): Use it wherever possible.
68274         Suggested by Ralf Wildenhues.
68275
68276 2006-09-16  Karl Berry  <karl@gnu.org>
68277
68278         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68279         to avoid sectioning errors.
68280         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68281         [ifinfo]: blank line after @center-ed titles.
68282         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68283         Spell FSF address consistently with others.
68284         (These changes approved by rms.)
68285
68286 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68287
68288         Speed up by a factor of 1.61.
68289         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68290         already checked module names again.
68291
68292 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68293
68294         Speed up by a factor of 1.13.
68295         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68296         for new_files, and the input to func_add_or_update.
68297
68298 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68299
68300         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68301         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68302
68303 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68304
68305         * modules/mkancesdirs (Depends-on): Add fcntl.
68306         * modules/savewd: New file.
68307         * MODULES.html.sh (File system functions): Add savewd.
68308
68309         * modules/configmake (Makefile.am): Add support for the
68310         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68311
68312 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68313
68314         * m4/savewd.m4: New file.
68315
68316 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68319         (dirchownmod): New arg FD.  All callers changed.
68320         Use FD rather than opening the directory ourself, as opening is
68321         now the caller's responsibility.
68322         * lib/dirchownmod.h: Likewise.
68323         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68324         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68325         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68326         (test_dir): Remove.
68327         (mkancesdirs): Return length of prefix of FILE that has already
68328         been made, or -2 if there is a child doing the work.  Redo
68329         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68330         ".", and treat ".." specially since it might stray back into
68331         already-created areas.  Use a subprocess if necessary.  New arg
68332         WD; all users changed.  MAKE_DIR function should now return 1
68333         if it creates a directory that is not readable.  Return -2 if
68334         a child process is spun off.
68335         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68336         Adjust signature to match code.
68337         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68338         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68339         all users changed.
68340         * lib/savewd.c, lib/savewd.h: New files.
68341
68342 2006-09-15  Jim Meyering  <jim@meyering.net>
68343
68344         * modules/rename-dest-slash: New module.
68345         * MODULES.html.sh (posix_compat): Add it here.
68346
68347         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68348
68349 2006-09-15  Jim Meyering  <jim@meyering.net>
68350
68351         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68352         file.
68353
68354         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68355
68356 2006-09-15  Jim Meyering  <jim@meyering.net>
68357
68358         * lib/rename-dest-slash.c (has_trailing_slash): Use
68359         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68360         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68361         test before testing whether SRC is a directory.
68362         Suggestions from Bruno Haible.
68363
68364         Avoid a warning about an unused variable.
68365         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68366         into the #ifdef block where it's used.
68367
68368         * lib/rename-dest-slash.c: New file.
68369
68370 2006-09-14  Bruno Haible  <bruno@clisp.org>
68371
68372         * lib/allocsa.c: Include <config.h> unconditionally.
68373         * lib/asnprintf.c: Likewise.
68374         * lib/asprintf.c: Likewise.
68375         * lib/c-strcasecmp.c: Likewise.
68376         * lib/c-strcasestr.c: Likewise.
68377         * lib/c-strncasecmp.c: Likewise.
68378         * lib/c-strstr.c: Likewise.
68379         * lib/classpath.c: Likewise.
68380         * lib/clean-temp.c: Likewise.
68381         * lib/concatpath.c: Likewise.
68382         * lib/copy-file.c: Likewise.
68383         * lib/csharpcomp.c: Likewise.
68384         * lib/csharpexec.c: Likewise.
68385         * lib/execute.c: Likewise.
68386         * lib/fatal-signal.c: Likewise.
68387         * lib/findprog.c: Likewise.
68388         * lib/fwriteerror.c: Likewise.
68389         * lib/gl_array_list.c: Likewise.
68390         * lib/gl_array_oset.c: Likewise.
68391         * lib/gl_avltree_list.c: Likewise.
68392         * lib/gl_avltree_oset.c: Likewise.
68393         * lib/gl_avltreehash_list.c: Likewise.
68394         * lib/gl_carray_list.c: Likewise.
68395         * lib/gl_linked_list.c: Likewise.
68396         * lib/gl_linkedhash_list.c: Likewise.
68397         * lib/gl_list.c: Likewise.
68398         * lib/gl_oset.c: Likewise.
68399         * lib/gl_rbtree_list.c: Likewise.
68400         * lib/gl_rbtree_oset.c: Likewise.
68401         * lib/gl_rbtreehash_list.c: Likewise.
68402         * lib/imaxabs.c: Likewise.
68403         * lib/imaxdiv.c: Likewise.
68404         * lib/javacomp.c: Likewise.
68405         * lib/javaexec.c: Likewise.
68406         * lib/javaversion.c: Likewise.
68407         * lib/linebreak.c: Likewise.
68408         * lib/localcharset.c: Likewise.
68409         * lib/lock.c: Likewise.
68410         * lib/mbchar.c: Likewise.
68411         * lib/mbswidth.c: Likewise.
68412         * lib/mkdtemp.c: Likewise.
68413         * lib/pipe.c: Likewise.
68414         * lib/printf-args.c: Likewise.
68415         * lib/printf-parse.c: Likewise.
68416         * lib/progname.c: Likewise.
68417         * lib/progreloc.c: Likewise.
68418         * lib/readlink.c: Likewise.
68419         * lib/sh-quote.c: Likewise.
68420         * lib/stpcpy.c: Likewise.
68421         * lib/stpncpy.c: Likewise.
68422         * lib/strcasecmp.c: Likewise.
68423         * lib/strcasestr.c: Likewise.
68424         * lib/strcspn.c: Likewise.
68425         * lib/striconv.c: Likewise.
68426         * lib/strncasecmp.c: Likewise.
68427         * lib/strnlen1.c: Likewise.
68428         * lib/strstr.c: Likewise.
68429         * lib/strtok_r.c: Likewise.
68430         * lib/tls.c: Likewise.
68431         * lib/tmpdir.c: Likewise.
68432         * lib/unicodeio.c: Likewise.
68433         * lib/unsetenv.c: Likewise.
68434         * lib/vasnprintf.c: Likewise.
68435         * lib/vasprintf.c: Likewise.
68436         * lib/wait-process.c: Likewise.
68437         * lib/xallocsa.c: Likewise.
68438         * lib/xsetenv.c: Likewise.
68439         * lib/xstriconv.c: Likewise.
68440
68441 2006-09-13  Simon Josefsson  <jas@extundo.com>
68442
68443         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68444         that internally, suggested by Ralf Wildenhues
68445         <Ralf.Wildenhues@gmx.de>.
68446
68447 2006-09-13  Simon Josefsson  <jas@extundo.com>
68448
68449         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68450         @LIBOBJS@.
68451         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68452
68453 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68454
68455         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68456         longer worry about uses that don't define HAVE_CONFIG_H.
68457         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68458         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68459         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68460         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68461         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68462         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68463         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68464         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68465         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68466         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68467         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68468         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68469         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68470         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68471         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68472         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68473         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68474         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68475         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68476         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68477         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68478         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68479         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68480         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68481         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68482         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68483         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68484         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68485         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68486         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68487         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68488         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68489         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68490         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68491         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68492         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68493         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68494         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68495         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68496         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68497         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68498         Likewise.
68499
68500 2006-09-13  Eric Blake  <ebb9@byu.net>
68501
68502         * lib/getopt.c: Fix typo in last commit.
68503
68504 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68505
68506         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68507         dgettext.
68508
68509 2006-09-12  Jim Meyering  <jim@meyering.net>
68510
68511         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68512         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68513         Reported by Nelson H. F. Beebe.
68514
68515 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68516
68517         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68518         program_invocation_name and program_invocation_short_name are
68519         initialized.
68520         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68521         and program_invocation_short_name to argp.h, so they are visible
68522         to user programs.
68523         * lib/argp.h: Likewise
68524
68525 2006-09-10  Bruno Haible  <bruno@clisp.org>
68526
68527         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68528         m4/inttypes_h.m4, m4/uintmax_t.m4.
68529
68530 2006-09-10  Bruno Haible  <bruno@clisp.org>
68531
68532         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68533         gl_AC_TYPE_UINTMAX_T.
68534
68535 2006-09-10  Bruno Haible  <bruno@clisp.org>
68536
68537         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68538
68539 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68540
68541         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68542         convention.  Text proposed by Bruno Haible.
68543         (struct argp_option): Document the use of N_() wrappers.
68544
68545         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68546         '\v', and translate the two parts separately, instead of feeding
68547         the whole string to gettext.  This allows to exclude
68548         '\v' from the strings visible to the translator by writing doc
68549         strings as N_("..") "\v" N_("..").
68550
68551 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68552
68553         * config/srclist.txt: Undo latest change; the bug was fixed.
68554
68555 2006-09-09  Bruno Haible  <bruno@clisp.org>
68556
68557         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68558         assignments if building a library without libtool.
68559         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68560         in func_emit_lib_Makefile_am.
68561         (func_import): When building a static library libfoo.a, arrange to
68562         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68563         (func_create_testdir): Likewise.
68564         * modules/gc (configure.ac, Makefile.am): If building statically,
68565         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68566         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68567         * modules/striconv (configure.ac, Makefile.am): Likewise.
68568         Based on a suggestion by Ralf Wildenhues.
68569
68570 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68571
68572         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68573         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68574         Also:
68575
68576         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68577         Add year_2050_test to catch glibc bug 2821
68578         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68579
68580         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68581         Prefer #ifdef to #if.
68582
68583         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68584         Return from 'main' instead of calling 'exit'.
68585
68586 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68587
68588         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68589         returned the maximum time_t value rather than (time_t) -1.
68590         Problem originally reported by William Bardwell
68591         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68592
68593         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68594         Moved to here ...
68595         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68596         ... from here.
68597
68598 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68599
68600         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68601         2821 is fixed.
68602
68603 2006-09-08  Jim Meyering  <jim@meyering.net>
68604
68605         Don't make generated files read-only.  That would bother too many
68606         people.  However, do retain the ability to work when targets are
68607         read-only: remove the destination and temporary files before writing
68608         them (when generated via sed or echo), or by using the -f option for
68609         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68610         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68611         * modules/byteswap, modules/configmake, modules/fcntl:
68612         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68613         * modules/localcharset, modules/netinet_in, modules/poll:
68614         * modules/stdbool, modules/stdint, modules/sys_select:
68615         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68616
68617 2006-09-08  Jim Meyering  <jim@meyering.net>
68618
68619         Avoid new build failure on FreeBSD 6.0.
68620         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68621         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68622         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68623
68624 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68625
68626         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68627
68628 2006-09-07  Jim Meyering  <jim@meyering.net>
68629
68630         Fix global typo in last change: use chmod u-w, not chmod u-x.
68631         Spotted by Paul Eggert and Bruce Korb.
68632         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68633         * modules/byteswap, modules/configmake, modules/fcntl:
68634         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68635         * modules/localcharset, modules/netinet_in, modules/poll:
68636         * modules/stdbool, modules/stdint, modules/sys_select:
68637         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68638
68639 2006-09-06  Jim Meyering  <jim@meyering.net>
68640
68641         Make generated files be read-only.
68642         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68643         Ensure that each generated file is now read-only.
68644         * modules/argz: Likewise.
68645         * modules/arpa_inet: Likewise.
68646         * modules/byteswap: Likewise.
68647         * modules/configmake: Likewise.
68648         * modules/fcntl: Likewise.
68649         * modules/fnmatch: Likewise.
68650         * modules/getopt: Likewise.
68651         * modules/glob: Likewise.
68652         * modules/inttypes: Likewise.
68653         * modules/netinet_in: Likewise.
68654         * modules/poll: Likewise.
68655         * modules/stdbool: Likewise.
68656         * modules/stdint: Likewise.
68657         * modules/sys_select: Likewise.
68658         * modules/sys_socket: Likewise.
68659         * modules/sys_stat: Likewise.
68660         * modules/sysexits: Likewise.
68661         * modules/localcharset: Same as above, but continue using temporary
68662         file named "t-$@" (why different?) rather than the "$@-t" used
68663         everywhere else.
68664
68665         * modules/sysexits (Makefile.am): Replace literal occurrences
68666         of "sysexit.h" more readable, and more consistent, "$@".
68667
68668 2006-09-06  Bruno Haible  <bruno@clisp.org>
68669
68670         * modules/striconv: New file.
68671         * modules/xstriconv: New file.
68672         * MODULES.html.sh (Internationalization functions): Add striconv,
68673         xstriconv.
68674
68675 2006-09-06  Bruno Haible  <bruno@clisp.org>
68676
68677         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68678         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68679         not using libtool correctly.
68680
68681 2006-09-06  Bruno Haible  <bruno@clisp.org>
68682
68683         * lib/striconv.h: New file.
68684         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68685         iconvstring.c.
68686         * lib/xstriconv.h: New file.
68687         * lib/xstriconv.c: New file.
68688
68689 2006-09-06  Bruno Haible  <bruno@clisp.org>
68690
68691         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68692         lib_..._LDFLAGS.
68693
68694 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68695
68696         * lib/argz_.h: Sync from Libtool.
68697
68698         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68699                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68700
68701         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68702
68703 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68704
68705         * modules/trim: New file.
68706
68707 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68708
68709         * lib/trim.h: New file.
68710         * lib/trim.c: New file.
68711
68712 2006-09-05  Bruno Haible  <bruno@clisp.org>
68713
68714         * MODULES.html.sh (String handling): Add trim.
68715
68716 2006-09-04  Karl Berry  <karl@gnu.org>
68717
68718         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68719         until next release.
68720
68721 2006-09-03  Bruno Haible  <bruno@clisp.org>
68722
68723         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68724         correctly.
68725
68726 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68727
68728         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68729         not gl_GETLOADAVG.  Omit unneeded semicolons.
68730         Problems reported by Ralf Wildenhues in
68731         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68732         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68733         at the end, which is the usual gnulib style.
68734
68735         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68736         of doing all the work ourselves.
68737         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68738         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68739
68740 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68741
68742         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68743         Problem reported by Ralf Wildenhues in
68744         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68745
68746         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68747         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68748
68749 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68750
68751         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68752         yesterday's patch by changing test -n to test -z.
68753
68754 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68755
68756         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68757         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68758         the former is now obsolescent.
68759
68760         * modules/chdir-long (Depends-on): Add fcntl.
68761
68762 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68763
68764         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68765         obsolescent, and programs should use gnulib instead.
68766         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68767         but with prefixes changed.
68768
68769 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68770
68771         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68772         or stdbool.h, because they might not exist while configuring.
68773
68774         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68775         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68776         does that for us.
68777         (O_DIRECTORY): Remove.
68778
68779 2006-08-31  Eric Blake  <ebb9@byu.net>
68780
68781         * gnulib-tool: Don't let emacs change spaces to TAB.
68782
68783 2006-08-31  Bruno Haible  <bruno@clisp.org>
68784
68785         * gnulib-tool: When calling func_import more than once, do it in a
68786         subshell.
68787         Reported by Eric Blake <ebb9@byu.net>.
68788
68789 2006-08-31  Bruno Haible  <bruno@clisp.org>
68790
68791         * gnulib-tool (nl): Remove variable.
68792         (sed_transform_lib_file): Use more robust test for config-h module.
68793         (func_import): Fix typo in 2006-08-25 patch.
68794
68795 2006-08-31  Bruno Haible  <bruno@clisp.org>
68796
68797         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68798         specified, augment Makefile.am variables instead of assigning them.
68799
68800 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68801
68802         Work around a bug in both the Linux and SunOS 64-bit kernels:
68803         nanosleep mishandles sleeps for longer than 2**31 seconds.
68804         Problem reported by Frank v Waveren in
68805         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68806         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68807         Check for nanosleep bug.
68808         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68809
68810 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68811
68812         Work around a bug in both the Linux and SunOS 64-bit kernels:
68813         nanosleep mishandles sleeps for longer than 2**31 seconds.
68814         Problem reported by Frank v Waveren in
68815         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68816         * lib/nanosleep.c (BILLION): New constant.
68817         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68818         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68819         implementation.
68820
68821 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68822
68823         * modules/nanosleep (Depends-on): Add gettime.
68824
68825 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68826         and Simon Josefsson  <jas@extundo.com>
68827         and Oskar Liljeblad  <oskar@osk.mine.nu>
68828
68829         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68830         * gnulib-tool (func_import): New license type 'unmodifiable license
68831         text'.
68832         * modules/fdl: Use it.  Longer description.
68833         * module/gpl, module/lgpl: New files.
68834
68835 2006-08-30  Jim Meyering  <jim@meyering.net>
68836
68837         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68838         shadowing the parameter.
68839
68840 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68841
68842         Sync from Libtool:
68843
68844         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68845
68846         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68847         sharing with gnulib.  Report by Eric Blake.
68848
68849 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68850
68851         * modules/isapipe: New file.
68852         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68853
68854 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68855
68856         * modules/configmake (Makefile.am): Add a comment, and omit
68857         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68858         by Bruno Haible.
68859
68860 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68861
68862         * m4/isapipe.m4: New file.
68863
68864 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68865
68866         * lib/isapipe.c, lib/isapipe.h: New files.
68867
68868 2006-08-29  Jim Meyering  <jim@meyering.net>
68869
68870         * modules/configmake (Makefile.am): Make configmake.h depend on
68871         Makefile.  Otherwise, a stale configmake.h could hang around.
68872
68873 2006-08-29  Eric Blake  <ebb9@byu.net>
68874
68875         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68876         resolution of upstream bug 3044.
68877
68878 2006-08-29  Bruno Haible  <bruno@clisp.org>
68879
68880         * modules/localcharset (Depends-on): Add configmake.
68881         (Makefile.am): Remove setting of LIBDIR through DEFS.
68882
68883 2006-08-29  Bruno Haible  <bruno@clisp.org>
68884
68885         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68886         defined.
68887
68888 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68889
68890         * modules/fcntl: New file.
68891         * modules/chdir-safer (Depends-on): Add fcntl.
68892         * modules/fts: Likewise.
68893         * modules/mkdir-p: Likewise.
68894
68895         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68896         This undoes the most recent change, since we're now addressing the
68897         problem in a different way.
68898
68899         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68900         into output, since the output might be called Makefile.am even
68901         if $makefile_name is something different.
68902         (func_import): Use $makefile_am rather than
68903         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68904         empty.
68905
68906         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68907
68908 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68909
68910         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68911         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68912         recent change to stdint.m4, since we're now addressing the problem in a
68913         different way.
68914
68915 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68916
68917         * m4/fcntl_h.m4: New file.
68918
68919 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68920
68921         * lib/fcntl_.h: New file.
68922         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68923         the fcntl module.
68924         * lib/dirchownmod.c: Likewise.
68925         * lib/fts.c: Likewise.
68926
68927         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68928         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68929         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68930         just before including <inttypes.h>, to avoid circular inclusion.
68931
68932 2006-08-28  Jim Meyering  <jim@meyering.net>
68933
68934         * doc/visibility.texi: Actually read and correct the grammar of the
68935         sentence affected by yesterday's change.
68936
68937 2006-08-28  Eric Blake  <ebb9@byu.net>
68938
68939         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68940         needs wrapper.
68941
68942 2006-08-28  Eric Blake  <ebb9@byu.net>
68943
68944         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68945
68946 2006-08-28  Eric Blake  <ebb9@byu.net>
68947
68948         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68949
68950 2006-08-28  Bruno Haible  <bruno@clisp.org>
68951
68952         * modules/c-strstr: New file, from GNU gettext.
68953         * MODULES.html.sh (String handling): Add c-strstr.
68954
68955 2006-08-28  Bruno Haible  <bruno@clisp.org>
68956
68957         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68958         macros.
68959         Reported by Eric Blake.
68960
68961 2006-08-28  Bruno Haible  <bruno@clisp.org>
68962
68963         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68964         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68965         * lib/vasprintf.c: Include errno.h, limits.h.
68966         (EOVERFLOW): New fallback definition.
68967         (vasprintf): Test here whether the string length is > INT_MAX.
68968         * lib/vsnprintf.c: Include errno.h, limits.h.
68969         (EOVERFLOW): New fallback definition.
68970         (vsnprintf): Fix bug when generated string was too long for the buffer.
68971         Test here whether the string length is > INT_MAX.
68972
68973 2006-08-28  Bruno Haible  <bruno@clisp.org>
68974
68975         * lib/inttypes_.h (SCNX*): Remove definitions.
68976         Reported by Eric Blake.
68977
68978 2006-08-28  Bruno Haible  <bruno@clisp.org>
68979
68980         * lib/c-strstr.h: New file, from GNU gettext.
68981         * lib/c-strstr.c: New file, from GNU gettext.
68982
68983 2006-08-28  Bruno Haible  <bruno@clisp.org>
68984
68985         * gnulib-tool: Reorder some statements.
68986
68987 2006-08-28  Bruno Haible  <bruno@clisp.org>
68988
68989         * gnulib-tool: New option --makefile-name.
68990         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68991         $makefile_name.
68992         (func_import): Write $makefile_name to the cache file, and read it from
68993         there unless explicitly specified. Use $makefile_name as file name
68994         instead of Makefile.am. Adjust the recommendations accordingly.
68995
68996 2006-08-28  Bruno Haible  <bruno@clisp.org>
68997
68998         * gnulib-tool (func_verify_module): Check against misapplying patch.
68999
69000 2006-08-28  Bruno Haible  <bruno@clisp.org>
69001
69002         * gnulib-tool (func_relativize, func_relconcat): New functions.
69003         Give an error if --local-dir is given with --update.
69004         Remove trailing slashes from $local_gnulib_dir.
69005         (func_import): Store the relativized $local_gnulib_dir in
69006         gnulib-cache.m4, and read it from there if not specified explicitly.
69007
69008 2006-08-28  Bruno Haible  <bruno@clisp.org>
69009
69010         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69011         is the current directory. Respect also $local_gnulib_dir.
69012
69013 2006-08-28  Bruno Haible  <bruno@clisp.org>
69014             Simon Josefsson  <jas@extundo.com>
69015
69016         BeOS portability.
69017         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69018
69019 2006-08-27  Jim Meyering  <jim@meyering.net>
69020
69021         * doc/visibility.texi: Remove duplicate word: "pointer".
69022
69023 2006-08-26  Bruno Haible  <bruno@clisp.org>
69024
69025         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69026         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69027         (Makefile.am): Create inttypes.h from inttypes_.h.
69028         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69029
69030         * modules/imaxabs: New file.
69031
69032         * modules/imaxdiv: New file.
69033
69034 2006-08-26  Bruno Haible  <bruno@clisp.org>
69035
69036         * m4/inttypes.m4: New file.
69037         * m4/_inttypes_h.m4: Remove file.
69038         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69039         PRI_MACROS_BROKEN.
69040         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69041
69042         * m4/imaxabs.m4: New file.
69043
69044         * m4/imaxdiv.m4: New file.
69045
69046 2006-08-26  Bruno Haible  <bruno@clisp.org>
69047
69048         * lib/inttypes_.h: New file.
69049         * lib/inttypes.h: Remove file.
69050         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69051
69052         * lib/imaxabs.c: New file.
69053
69054         * lib/imaxdiv.c: New file.
69055
69056 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69057
69058         New config-h module, so that "make" output needn't be cluttered
69059         by -DHAVE_CONFIG_H.
69060         * MODULES.html.sh (Support for building libraries and executables):
69061         Add config-h.
69062         * modules/config-h: New file.
69063         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69064         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69065         the config-h module is used.
69066
69067         New configmake module, so that "make" output needn't be cluttered
69068         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69069         * MODULES.html.sh (Support for building libraries and executables):
69070         Add configmake.
69071         * modules/configmake: New file.
69072
69073 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69074
69075         * m4/config-h.m4: New file.
69076
69077 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69078
69079         * config/srclist.txt: Add elisp-comp.
69080
69081 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69082
69083         * MODULES.html.sh (Support for building libraries and executables):
69084         Add elisp-comp.
69085         * build-aux/elisp-comp: New file.
69086         * modules/elisp-comp: New file.
69087
69088 2006-08-24  Bruno Haible  <bruno@clisp.org>
69089
69090         * gnulib-tool (func_create_testdir): Use non-default values of
69091         sourcebase and m4base.
69092
69093 2006-08-24  Bruno Haible  <bruno@clisp.org>
69094
69095         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69096         HTML structure.
69097
69098 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69099
69100         * modules/openat (Depends-on): Add lchown.
69101
69102 2006-08-23  Bruno Haible  <bruno@clisp.org>
69103
69104         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69105         of gl_LOCK_EARLY instead of gl_LOCK.
69106
69107 2006-08-23  Bruno Haible  <bruno@clisp.org>
69108
69109         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69110         on OSF/1 to no.
69111         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69112
69113 2006-08-23  Bruno Haible  <bruno@clisp.org>
69114
69115         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69116         as unusable.
69117
69118         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69119         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69120         (gl_LOCK): New macro.
69121
69122 2006-08-22  Simon Josefsson  <jas@extundo.com>
69123
69124         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69125         to md5 module.
69126
69127 2006-08-22  Simon Josefsson  <jas@extundo.com>
69128
69129         * MODULES.html.sh: Add "Support for maintaining and release
69130         projects".
69131
69132         * build-aux/gnupload: New file, from coreutils.
69133
69134 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69135
69136         Avoid the need for AC_LIBSOURCES in m4 macros.
69137         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69138         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69139         * modules/check-version (EXTRA_DIST): Add check-version.h.
69140         * modules/crc (EXTRA_DIST): Add crc.h.
69141         * modules/des (EXTRA_DIST): Add des.h.
69142         * modules/gc (EXTRA_DIST): Add gc.h.
69143         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69144         * modules/getline (EXTRA_DIST): Add getline.h.
69145         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69146         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69147         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69148         * modules/md2 (EXTRA_DIST): Add md2.h.
69149         * modules/md4 (EXTRA_DIST): Add md4.h.
69150         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69151         * modules/read-file (EXTRA_DIST): Add read-file.h.
69152         * modules/readline (EXTRA_DIST): Add readline.h.
69153         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69154         rijndael-api-fst.h.
69155
69156 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69157
69158         * m4/rijndael.m4 (gl_ARCFOUR):
69159         * m4/arctwo.m4 (gl_ARCTWO):
69160         * m4/check-version.m4 (gl_CHECK_VERSION):
69161         * m4/crc.m4 (gl_CRC):
69162         * m4/des.m4 (gl_DES):
69163         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69164         * m4/gc.m4 (gl_GC):
69165         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69166         * m4/getline.m4 (gl_FUNC_GETLINE):
69167         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69168         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69169         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69170         * m4/md2.m4 (gl_MD2):
69171         * m4/md4.m4 (gl_MD4):
69172         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69173         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69174         * m4/readline.m4 (gl_FUNC_READLINE):
69175         * m4/rijndael.m4 (gl_RIJNDAEL):
69176         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69177         to get the necessary .h files and whatnot.
69178
69179 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69180
69181         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69182         gnulib rather than the other way around.
69183         * config/srclistvars.sh (COREUTILS): Remove.
69184
69185 2006-08-22  Jim Meyering  <jim@meyering.net>
69186
69187         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69188
69189         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69190
69191 2006-08-22  Eric Blake  <ebb9@byu.net>
69192
69193         * modules/regexprops-generic: New file.
69194         * MODULES.html.sh (Support for building documentation): List it.
69195
69196 2006-08-22  Eric Blake  <ebb9@byu.net>
69197
69198         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69199         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69200         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69201         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69202
69203 2006-08-22  Bruno Haible  <bruno@clisp.org>
69204
69205         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69206         and lib_LTLIBRARIES like the other lib_* variables.
69207
69208 2006-08-22  Bruno Haible  <bruno@clisp.org>
69209
69210         * build-aux/x-to-1.in: New file, from GNU gettext.
69211
69212 2006-08-22  Bruno Haible  <bruno@clisp.org>
69213
69214         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69215         <utmpx.h> exists.
69216
69217 2006-08-22  Bruno Haible  <bruno@clisp.org>
69218
69219         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69220         <utmpx.h> exists.
69221
69222 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69223
69224         BeOS portability.
69225         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69226         exist.
69227         Problem reported by Bruno Haible.
69228
69229 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69230
69231         Avoid the need for AC_LIBSOURCES in m4 macros.
69232         * modules/acl (EXTRA_DIST): Add acl.h.
69233         * modules/argmatch (Files): Add m4/argmatch.m4.
69234         (configure.ac): Add gl_ARGMATCH.
69235         (EXTRA_DIST): Renamed from lib_SOURCES, for
69236         consistency with the other modules.  Remove argmatch.c.
69237         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69238         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69239         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69240         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69241         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69242         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69243         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69244         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69245         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69246         * modules/closeout (EXTRA_DIST): Add closeout.h.
69247         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69248         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69249         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69250         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69251         dirname.h; remove basename.c and stripslash.c.
69252         * modules/exclude (EXTRA_DIST): Add exclude.h.
69253         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69254         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69255         * modules/file-type (EXTRA_DIST): Add file-type.h.
69256         * modules/filemode (EXTRA_DIST): Add filemode.h.
69257         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69258         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69259         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69260         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69261         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69262         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69263         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69264         * modules/getdate (EXTRA_DIST): Add getdate.c.
69265         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69266         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69267         * modules/getpass (EXTRA_DIST): Add getpass.h.
69268         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69269         * modules/group-member (EXTRA_DIST): Add group-member.h.
69270         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69271         * modules/hash (EXTRA_DIST): Add hash.h.
69272         * modules/human (EXTRA_DIST): Add human.h.
69273         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69274         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69275         * modules/lchown (EXTRA_DIST): Add lchown.h.
69276         * modules/long-options (EXTRA_DIST): Add long-options.h.
69277         * modules/lstat (EXTRA_DIST): Add lstat.h.
69278         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69279         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69280         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69281         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69282         * modules/memxor (EXTRA_DIST): Add memxor.h.
69283         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69284         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69285         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69286         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69287         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69288         * modules/physmem (EXTRA_DIST): Add physmem.h.
69289         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69290         * modules/posixver (EXTRA_DIST): Add posixver.h.
69291         * modules/quote (EXTRA_DIST): Add quote.h.
69292         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69293         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69294         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69295         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69296         regex_internal.h regexec.c.
69297         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69298         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69299         * modules/same (EXTRA_DIST): Add same.h.
69300         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69301         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69302         * modules/savedir (EXTRA_DIST): Add savedir.h.
69303         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69304         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69305         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69306         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69307         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69308         * modules/strdup (EXTRA_DIST): Add strdup.h.
69309         * modules/strftime (EXTRA_DIST): Add strftime.h.
69310         * modules/strndup (EXTRA_DIST): Add strndup.h.
69311         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69312         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69313         * modules/time_r (EXTRA_DIST): Add time_r.h.
69314         * modules/timespec (EXTRA_DIST): Add timespec.h.
69315         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69316         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69317         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69318         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69319         * modules/userspec (EXTRA_DIST): Add userspec.h.
69320         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69321         * modules/utimens (EXTRA_DIST): Add utimens.h.
69322         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69323         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69324         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69325         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69326         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69327         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69328         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69329         * modules/yesno (EXTRA_DIST): Add yesno.h.
69330
69331 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69332
69333         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69334
69335         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69336         * m4/dev-ino.m4, same-inode.m4: Remove.
69337
69338         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69339         * m4/acl.m4 (AC_FUNC_ACL):
69340         * m4/backupfile.m4 (gl_BACKUPFILE):
69341         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69342         * m4/canon-host.m4 (gl_CANON_HOST):
69343         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69344         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69345         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69346         * m4/cloexec.m4 (gl_CLOEXEC):
69347         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69348         * m4/closeout.m4 (gl_CLOSEOUT):
69349         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69350         * m4/dirname.m4 (gl_DIRNAME):
69351         * m4/exclude.m4 (gl_EXCLUDE):
69352         * m4/exitfail.m4 (gl_EXITFAIL):
69353         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69354         * m4/file-type.m4 (gl_FILE_TYPE):
69355         * m4/filemode.m4 (gl_FILEMODE):
69356         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69357         * m4/fpending.m4 (gl_FUNC_FPENDING):
69358         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69359         * m4/fts.m4 (gl_FUNC_FTS):
69360         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69361         * m4/getdate.m4 (gl_GETDATE):
69362         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69363         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69364         * m4/getpass.m4 (gl_FUNC_GETPASS):
69365         * m4/gettime.m4 (gl_GETTIME):
69366         * m4/getugroups.m4 (gl_GETUGROUPS):
69367         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69368         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69369         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69370         * m4/hash.m4 (gl_HASH):
69371         * m4/idcache.m4 (gl_IDCACHE):
69372         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69373         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69374         * m4/long-options.m4 (gl_LONG_OPTIONS):
69375         * m4/lstat.m4 (gl_FUNC_LSTAT):
69376         * m4/md5.m4 (gl_MD5):
69377         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69378         * m4/memcoll.m4 (gl_MEMCOLL):
69379         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69380         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69381         * m4/memxor.m4 (gl_MEMXOR):
69382         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69383         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69384         * m4/modechange.m4 (gl_MODECHANGE):
69385         * m4/mountlist.m4 (gl_MOUNTLIST):
69386         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69387         * m4/openat.m4 (gl_FUNC_OPENAT):
69388         * m4/pathmax.m4 (gl_PATHMAX):
69389         * m4/physmem.m4 (gl_PHYSMEM):
69390         * m4/posixtm.m4 (gl_POSIXTM):
69391         * m4/posixver.m4 (gl_POSIXVER):
69392         * m4/quote.m4 (gl_QUOTE):
69393         * m4/quotearg.m4 (gl_QUOTEARG):
69394         * m4/readtokens.m4 (gl_READTOKENS):
69395         * m4/readutmp.m4 (gl_READUTMP):
69396         * m4/regex.m4 (gl_REGEX):
69397         * m4/safe-read.m4 (gl_SAFE_READ):
69398         * m4/safe-write.m4 (gl_SAFE_WRITE):
69399         * m4/same.m4 (gl_SAME):
69400         * m4/save-cwd.m4 (gl_SAVE_CWD):
69401         * m4/savedir.m4 (gl_SAVEDIR):
69402         * m4/settime.m4 (gl_SETTIME):
69403         * m4/sha1.m4 (gl_SHA1):
69404         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69405         * m4/stat-macros.m4 (gl_STAT_MACROS):
69406         * m4/stat-time.m4 (gl_STAT_TIME):
69407         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69408         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69409         * m4/strdup.m4 (gl_FUNC_STRDUP):
69410         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69411         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69412         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69413         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69414         * m4/time_r.m4 (gl_TIME_R):
69415         * m4/timespec.m4 (gl_TIMESPEC):
69416         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69417         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69418         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69419         * m4/userspec.m4 (gl_USERSPEC):
69420         * m4/utimecmp.m4 (gl_UTIMECMP):
69421         * m4/utimens.m4 (gl_UTIMENS):
69422         * m4/xalloc.m4 (gl_XALLOC):
69423         * m4/xgetcwd.m4 (gl_XGETCWD):
69424         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69425         * m4/xreadlink.m4 (gl_XREADLINK):
69426         * m4/xstrtod.m4 (gl_XSTRTOD):
69427         * m4/yesno.m4 (gl_YESNO):
69428         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69429         to get the necessary .h files and whatnot.
69430
69431 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69432             Bruno Haible  <bruno@clisp.org>
69433
69434         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69435         /bin/sh understanding of '!' conditional negation.
69436
69437 2006-08-21  Jim Meyering  <jim@meyering.net>
69438
69439         * modules/openat (Depends-on): Really alphabetize.
69440
69441         * modules/acl (Depends-on): Add error and quote.
69442
69443         * check-module (find_included_lib_files): Add at-func.c to the
69444         ok-to-include-more-than-once white list.
69445
69446         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69447
69448 2006-08-21  Bruno Haible  <bruno@clisp.org>
69449
69450         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69451         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69452         Reported by Martin Lambers <marlam@marlam.de>.
69453
69454 2006-08-21  Bruno Haible  <bruno@clisp.org>
69455
69456         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69457         specify an installation location, don't emit a noinst_LIBRARIES or
69458         noinst_LTLIBRARIES assignment.
69459
69460 2006-08-21  Bruno Haible  <bruno@clisp.org>
69461
69462         BeOS portability.
69463         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69464         BeOS has mbrtowc() but no <wctype.h>.
69465
69466 2006-08-21  Bruno Haible  <bruno@clisp.org>
69467
69468         BeOS portability.
69469         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69470         exist.
69471
69472 2006-08-21  Bruno Haible  <bruno@clisp.org>
69473
69474         BeOS portability.
69475         * lib/mbchar.h: Include <wctype.h> only if it exists.
69476
69477 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69478
69479         Remove files that are no longer needed by their respective modules.
69480         * m4/obstack.m4: Remove.
69481         * m4/strerror_r.m4: Remove.
69482         * m4/uint32_t.m4: Remove.
69483         * m4/uintptr_t.m4: Remove.
69484         * m4/ullong_max.m4: Remove.
69485         * m4/xstrtoimax.m4: Remove.
69486         * m4/xstrtoumax.m4: Remove.
69487
69488         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69489         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69490         dependencies now capture this.
69491
69492         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69493         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69494         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69495         * m4/human.m4 (gl_HUMAN): Likewise.
69496         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69497         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69498
69499         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69500
69501         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69502         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69503         stdint.
69504         * m4/human.m4 (gl_HUMAN): Likewise.
69505         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69506         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69507         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69508         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69509         * m4/xstrtol (gl_XSTRTOL): Likewise.
69510
69511         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69512         AC_TYPE_LONG_LONG_INT.
69513         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69514         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69515         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69516         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69517
69518         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69519         on stdbool.
69520
69521         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69522         (gl_PREREQ_XSTRTOUL): Remove.
69523
69524         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69525
69526         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69527         mode.
69528
69529 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69530
69531         Add and change modules to make it easier for coreutils to use
69532         gnulib-tool.
69533         * modules/backupfile (Files): Remove m4/d-ino.m4.
69534         (Depends-on): Add d-ino.
69535         * modules/cycle-check (Depends-on): Add stdint.
69536         (lib_SOURCES): Add cycle-check.h.
69537         * modules/d-ino: New module.
69538         * modules/d-type: New module.
69539         * modules/error (Files): Remove m4/strerror_r.m4.
69540         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69541         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69542         m4/inttypes_h.m4, m4/uintmax_t.m4.
69543         (Depends-on): Add stdint.
69544         (lib_SOURCES): Add fsusage.h.
69545         * modules/getcwd (Files): Remove d-ino.m4.
69546         (Depends-on): Add d-ino.
69547         * modules/getndelim2 (Depends-on): Add stdint.
69548         * modules/glob (Files): Remove m4/d-type.m4.
69549         (Depends-on): Add d-type.
69550         * modules/host-os: New module.
69551         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69552         m4/inttypes_h.m4, m4/uintmax_t.m4.
69553         * Depends-on: Add stdint.
69554         (lib_SOURCES): Add human.h.
69555         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69556         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69557         m4/uintmax_t.m4, m4/ulonglong.m4.
69558         (Depends-on): Add stdint.
69559         (EXTRA_DIST): Add inttostr.h.
69560         * modules/lchmod: New module.
69561         * modules/link-follow: New module.
69562         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69563         (Depends-on): Add lchmod.
69564         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69565         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69566         (Depends-on): Add stdint.
69567         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69568         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69569         (Depends-on): Add stdint.
69570         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69571         * modules/perl: New module.
69572         * modules/regex (Depends-on): Add stdint.
69573         * modules/rmdir-errno: New module.
69574         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69575         m4/intmax_t.m4.
69576         (Depends-on): Add stdint.
69577         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69578         m4/uintmax_t.m4.
69579         (Depends-on): Add stdint.
69580         * modules/unlink-busy: New module.
69581         * modules/utimecmp (Depends-on): Add stdint.
69582         * modules/uptime: New module.
69583         * modules/winsz-ioctl: New module.
69584         * modules/winsz-termios: New module.
69585         * modules/xnanosleep (Depends-on): Add nanosleep.
69586         * modules/ullong_max: Remove.
69587         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69588         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69589         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69590         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69591         (Depends-on): Add inttypes.
69592         (lib_SOURCES): Add xstrtol.h.
69593         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69594         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69595         * MODULES.html.sh: Move 'assert' into the assert section.
69596         Move 'dummy' into the linking section.
69597         Remove ullong_max.
69598         Add section for compatibility checks for POSIX:2001 functions,
69599         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69600         winsz-ioctl, and winsz-termios into it.
69601         Add lchmod.
69602         Add top-level Misc section and put host-os, perl, and uptime
69603         into it.
69604
69605 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69608         now assume the stdint module.  Do not include inttypes.h.
69609         * lib/fsusage.h: Likewise.
69610         * lib/getndelim2.c: Likewise.
69611         * lib/human.h: Likewise.
69612         * lib/inttostr.h: Likewise.
69613         * lib/obstack.c: Likewise.
69614         * lib/regex_internal.h: Likewise.
69615         * lib/tempname.c: Likewise.
69616         * lib/utimecmp.c: Likewise.
69617         * lib/xstrtol.h: Likewise.
69618
69619         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69620
69621         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69622         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69623         * lib/xtime.h: Likewise.
69624
69625 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69626
69627         * modules/openat (Files): Add lib/fchmodat.c.
69628         Fixes problem reported by Jay Youngman.
69629
69630 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69631
69632         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69633         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69634
69635 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69636             Bruno Haible  <bruno@clisp.org>
69637
69638         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69639         and is a script that invokes bison. Tighten the code. Add comments.
69640
69641 2006-08-18  Jim Meyering  <jim@meyering.net>
69642
69643         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69644         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69645         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69646         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69647
69648 2006-08-18  Bruno Haible  <bruno@clisp.org>
69649
69650         * modules/bison-i18n: New file.
69651         * MODULES.html.sh (Internationalization functions): Add it.
69652
69653 2006-08-18  Bruno Haible  <bruno@clisp.org>
69654
69655         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69656         sys/statvfs.h. When getmntinfo was found, check its declaration and
69657         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69658
69659 2006-08-18  Bruno Haible  <bruno@clisp.org>
69660
69661         * m4/bison-i18n.m4: New file, from bison.
69662
69663 2006-08-18  Bruno Haible  <bruno@clisp.org>
69664
69665         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69666         (ME_DUMMY): Treat "kernfs" as a dummy.
69667         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69668
69669 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69670
69671         Update from coreutils.
69672
69673         2006-08-15  Jim Meyering  <jim@meyering.net>
69674
69675         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69676
69677         2006-01-17  Jim Meyering  <jim@meyering.net>
69678
69679         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69680
69681         2006-01-11  Jim Meyering  <jim@meyering.net>
69682
69683         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69684         Check for the lchmod function.
69685
69686 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69687
69688         Update from coreutils.
69689
69690         * lib/__fpending.h: Add copyright notice.
69691         * lib/fprintftime.h: Likewise.
69692         * lib/savedir.c: Use (C) in copyright notice.
69693         * lib/savedir.h: Likewise.
69694
69695         2006-08-15  Jim Meyering  <jim@meyering.net>
69696
69697         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69698         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69699         in support of the EXPECTED_ERRNO macro.
69700         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69701         definitions.  Instead, define the appropriate symbols and include
69702         "at-func.c".
69703         * lib/mkdirat.c (mkdirat): Likewise.
69704         * lib/fchmodat.c (fchmodat): Likewise.
69705         (ENOSYS): Remove definition.
69706         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69707         it.  Don't include "unistd--.h" -- it wasn't ever used.
69708
69709         2006-01-17  Jim Meyering  <jim@meyering.net>
69710
69711         Rewrite fts.c not to change the current working directory,
69712         by using openat, fstatat, fdopendir, etc..
69713
69714         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69715         (HAVE_OPENAT_SUPPORT): Define.
69716         [_LIBC] (fchdir): Don't undef or define; no longer used.
69717         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69718         Now, this `function' always succeeds, and consumes its file descriptor
69719         parameter -- so callers must not close such FDs.  Update callers.
69720         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69721         (diropen): Add parameter, SP.  Adjust all callers.
69722         Implement using diropen_fd, rather than open.
69723         (fts_open): Initialize new member, fts_cwd_fd.
69724         Remove fts_rft-setting code.
69725         (fts_close): Close fts_cwd_fd, if necessary.
69726         (__opendir2): Define in terms of opendir or opendirat,
69727         depending on whether the FST_NOCHDIR flag is set.
69728         (fts_build): Since fts_safe_changedir consumes its FD, and since
69729         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69730         and close the dup'd file descriptor upon failure.
69731         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69732         (fts_safe_changedir): Tweak semantics to reflect that this function
69733         now calls cwd_advance_fd and hence consumes its FD argument.
69734         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69735         [struct FTS] (fts_rft): Remove now-unused member.
69736         [struct FTS] (fts_cycle.state): Improve comment.
69737
69738         * lib/openat.c (openat_needs_fchdir): New function.
69739         * lib/openat.h (openat_needs_fchdir): Declare it.
69740
69741 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69742
69743         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69744         Problem and fix reported by Pádraig Brady in
69745         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69746
69747 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69748
69749         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69750
69751 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69752
69753         * lib/memcoll.c (memcoll): Optimize for the common case where the
69754         arguments are bytewise equal.
69755
69756 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69757
69758         * doc/regexprops-generic.texi: Add a copyright notice.
69759
69760 2006-08-15  Bruno Haible  <bruno@clisp.org>
69761
69762         * modules/tmpdir (License): Change to LGPL.
69763
69764 2006-08-15  Bruno Haible  <bruno@clisp.org>
69765
69766         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69767         module.
69768
69769 2006-08-14  Simon Josefsson  <jas@extundo.com>
69770
69771         * config/srclist.txt: Add gnupload.
69772
69773 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69774
69775         Change copyright notice from LGPL 2 to GPL 2, since that's the
69776         standard form used in the gnulib repository.
69777         * tests/test-lock.c: Likewise.
69778         * tests/test-stdint.c: Likewise.
69779         * tests/test-tls.c: Likewise.
69780
69781         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69782         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69783         Add copyright notice.
69784
69785         * check-module: Add copyright notice.  Output a copyright
69786         notice if "--version" is specified.
69787         * modules/COPYING: New file.
69788         * tests/test-getaddrinfo.c: Add copyright notice.
69789         * tests/test-verify.c: Likewise.
69790
69791 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69792
69793         Change copyright notice from LGPL 2 to GPL 2, since that's the
69794         standard form used in the gnulib repository.
69795         * lib/lock.c: LGPL -> GPL.
69796         * lib/lock.h: Likewise.
69797         * lib/strnlen1.c: Likewise.
69798         * lib/strnlen1.h: Likewise.
69799         * lib/tls.c: Likewise.
69800         * lib/tls.h: Likewise.
69801         * lib/tmpdir.c: Likewise.
69802
69803         * lib/TODO: Remove; this belongs only in coreutils.
69804
69805 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69806
69807         Add copyright notices to long-enough files that lack them, since
69808         otherwise the files aren't clearly free.  Use the same notice that
69809         getdate.texi already uses.
69810         * doc/alloca-opt.texi: Add copyright notice.
69811         * doc/alloca.texi: Likewise.
69812         * doc/ctime.texi: Likewise.
69813         * doc/functions.texi: Likewise.
69814         * doc/gcd.texi: Likewise.
69815         * doc/gnulib-tool.texi: Likewise.
69816         * doc/inet_ntoa.texi: Likewise.
69817         * doc/visibility.texi: Likewise.
69818
69819         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69820         * doc/quote.texi: Add copyright notice.
69821
69822         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69823         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69824         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69825         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69826         is now obsolete, and give a pointer to the Sun list.
69827         Add copyright notice.
69828
69829 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69830
69831         * config/srclistvars.sh: Add copyright notice.
69832
69833 2006-08-14  Eric Blake  <ebb9@byu.net>
69834
69835         Import the following change from libc:
69836
69837         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69838
69839         Upstream bug 2997.
69840         * lib/misc/error.c: Add space between program name and message if file
69841         name is missing.
69842
69843 2006-08-12  Karl Berry  <karl@gnu.org>
69844
69845         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69846         remove, these originate in gnulib now.
69847
69848 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69849
69850         * doc/Makefile (standards.info standards.html standards.dvi):
69851         Also depend on make-stds.texi.
69852
69853 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69854
69855         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69856         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69857
69858         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69859         in wchar_t.  Problem reported by Eric Blake.
69860
69861         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69862         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69863         Also, help the compiler to keep LEN in a register.
69864
69865 2006-08-11  Eric Blake  <ebb9@byu.net>
69866
69867         * users.txt: Sort.  Add tar.
69868
69869 2006-08-11  Bruno Haible  <bruno@clisp.org>
69870
69871         * users.txt: New file.
69872
69873 2006-08-11  Bruno Haible  <bruno@clisp.org>
69874
69875         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69876         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69877
69878 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69879
69880         * modules/snprintf (Depends-on): Remove minmax.
69881         (Maintainer): Add self and Bruno.
69882
69883 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69884
69885         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69886         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69887         (EOVERFLOW): Define if the system does not.
69888         Do not include "minmax.h"; it wasn't used.
69889         (snprintf): Don't assume size_t promotes to an unsigned type.
69890         Fix bug when generated string was too long for the buffer: the
69891         buffer's contents are supposed to be the initial prefix of the
69892         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69893         exceeds INT_MAX; do the check ourselves.
69894
69895         Import the following changes from libc:
69896
69897         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69898
69899         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69900         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69901         set wc to the byte which couldn't be converted.
69902         (re_string_reconstruct): Don't clear valid_raw_len before calling
69903         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69904         tip_context using re_string_context_at.
69905
69906         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69907
69908         * lib/posix/regex.h: g++ still cannot handled [restrict].
69909
69910         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69911
69912         * lib/posix/regex.h: Remove special handling for VMS.
69913
69914 2006-08-10  Jim Meyering  <jim@meyering.net>
69915
69916         * modules/same-inode: New module.
69917         * modules/dev-ino: New module.
69918         * modules/cycle-check: Depend on these modules, rather than simply
69919         including their .h files.
69920         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69921         required via m4/cycle-check.m4.
69922         * modules/same: Depend on new same-inode module, rather than
69923         including same-inode.h.
69924         * modules/chdir-safer: New file.
69925
69926         * modules/chown (Depends-on): Add stat-macros.
69927
69928 2006-08-10  Jim Meyering  <jim@meyering.net>
69929
69930         * m4/cycle-check.m4: New file.
69931         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69932         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69933
69934 2006-08-10  Eric Blake  <ebb9@byu.net>
69935
69936         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69937         in from original proposal.
69938
69939 2006-08-10  Eric Blake  <ebb9@byu.net>
69940         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69941
69942         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69943         namespace.
69944
69945 2006-08-10  Bruno Haible  <bruno@clisp.org>
69946
69947         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69948         as well.
69949
69950 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69951
69952         Sync from coreutils.
69953
69954         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69955
69956         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69957         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69958
69959 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69960
69961         * modules/restrict: Remove; no longer needed now that we assume
69962         Autoconf 2.59 or later.
69963         * MODULES.html.sh: Remove 'restrict'.
69964         * modules/argp (Depends-on): Remove 'restrict'.
69965         * modules/base64 (Depends-on): Likewise.
69966         * modules/gc (Depends-on): Likewise.
69967         * modules/getaddrinfo (Depends-on): Likewise.
69968         * modules/glob (Depends-on): Likewise.
69969         * modules/inet_ntop (Depends-on): Likewise.
69970         * modules/inet_pton (Depends-on): Likewise.
69971         * modules/memxor (Depends-on): Likewise.
69972         * modules/regex (Depends-on): Likewise.
69973         * modules/strtok_r (Depends-on): Likewise.
69974         * modules/time_r (Depends-on): Likewise.
69975
69976 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69977
69978         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69979         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69980         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69981         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69982         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69983         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69984         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69985         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69986
69987         Merge from coreutils.
69988         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69989         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69990         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69991         * m4/time_r.m4 (gl_TIME_R): Likewise.
69992
69993 2006-08-09  Karl Berry  <karl@gnu.org>
69994
69995         * config/srclist.txt: no more gettext-tools, per Bruno.
69996
69997 2006-08-08  Eric Blake  <ebb9@byu.net>
69998
69999         * modules/verror: New module.
70000         * MODULES.html.sh: Document it.
70001
70002 2006-08-08  Eric Blake  <ebb9@byu.net>
70003
70004         * lib/verror.h, lib/verror.c: New files.
70005
70006 2006-08-08  Eric Blake  <ebb9@byu.net>
70007
70008         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70009         verror_at_line output complies with GNU Coding Standards even when
70010         file is NULL.
70011
70012 2006-08-07  Bruno Haible  <bruno@clisp.org>
70013
70014         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70015         versions of AIX.
70016         Reported by Ralf Wildenhues.
70017
70018 2006-08-07  Bruno Haible  <bruno@clisp.org>
70019
70020         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70021         in an AC_DEFUN. Needed so that the autoconf snippets can use
70022         AC_REQUIRE.
70023
70024 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70025
70026         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70027         Initialize pkgdata_DATA.
70028         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70029         overriding it.
70030
70031 2006-08-06  Eric Blake  <ebb9@byu.net>
70032
70033         * lib/error.h: Fold in some upstream changes from glibc.
70034         * lib/error.c: Likewise.
70035
70036 2006-08-04  Bruno Haible  <bruno@clisp.org>
70037
70038         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70039         Make the mostlyclean-local rule depend on mostlyclean-generic.
70040         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70041
70042 2006-07-31  Bruno Haible  <bruno@clisp.org>
70043
70044         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70045         <stdlib.h>, <string.h>.
70046
70047 2006-07-30  Bruno Haible  <bruno@clisp.org>
70048
70049         * modules/readlink (License): Change to LGPL.
70050
70051 2006-07-30  Bruno Haible  <bruno@clisp.org>
70052
70053         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70054         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70055         set PKGDATADIR to point to it.
70056
70057 2006-07-30  Bruno Haible  <bruno@clisp.org>
70058
70059         * modules/csharpexec (configure.ac): Comment out macro invocation.
70060         * modules/javaexec (configure.ac): Likewise.
70061         * modules/javacomp-script (configure.ac): Likewise.
70062
70063         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70064
70065 2006-07-30  Bruno Haible  <bruno@clisp.org>
70066
70067         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70068         linked-list.
70069
70070 2006-07-30  Bruno Haible  <bruno@clisp.org>
70071
70072         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70073
70074 2006-07-30  Bruno Haible  <bruno@clisp.org>
70075
70076         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70077         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70078         get removed.
70079
70080 2006-07-29  Bruno Haible  <bruno@clisp.org>
70081
70082         Make it possible for gnulib-tool to work with locally modified or
70083         augmented gnulib repositories.
70084         * gnulib-tool (func_usage): Document --local-dir option.
70085         (local_gnulib_dir): New variable.
70086         Handle --local-dir option.
70087         (func_lookup_file): New function.
70088         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70089         (func_get_description, func_get_filelist, func_get_description,
70090         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70091         func_get_automake_snippet, func_get_include_directive,
70092         func_get_license, func_get_maintainer): Use func_lookup_file.
70093         (func_import, func_create_testdir): Use func_lookup_file.
70094
70095 2006-07-29  Bruno Haible  <bruno@clisp.org>
70096
70097         * modules/setenv (Depends-on): Add unistd.
70098
70099 2006-07-29  Bruno Haible  <bruno@clisp.org>
70100
70101         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70102
70103 2006-07-29  Bruno Haible  <bruno@clisp.org>
70104
70105         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70106
70107 2006-07-29  Bruno Haible  <bruno@clisp.org>
70108
70109         * gnulib-tool (import, update): If there is no Makefile.am, look at
70110         aclocal.m4, instead of bailing out.
70111
70112 2006-07-29  Bruno Haible  <bruno@clisp.org>
70113
70114         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70115         Categorize the options by when they are useful.
70116
70117 2006-07-29  Bruno Haible  <bruno@clisp.org>
70118
70119         * gnulib-tool (func_usage): Document option --no-libtool.
70120         Handle option --no-libtool.
70121         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70122         for changed semantics of $libtool variable.
70123         (func_import): Likewise. If libtool is not used, show this through
70124         an option --no-libtool.
70125         (func_create_testdir): Update.
70126
70127 2006-07-29  Bruno Haible  <bruno@clisp.org>
70128
70129         * gnulib-tool (func_import): Extend error message about missing
70130         --doc-base.
70131
70132 2006-07-29  Bruno Haible  <bruno@clisp.org>
70133
70134         * gnulib-tool (func_import): Don't create the $docbase directory if
70135         there is no file to store there.
70136
70137 2006-07-29  Bruno Haible  <bruno@clisp.org>
70138
70139         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70140         relevant, look for configure.ac there, not in the current directory.
70141         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70142
70143 2006-07-29  Bruno Haible  <bruno@clisp.org>
70144
70145         * gnulib-tool (SORT): New variable.
70146         (func_usage): Undocument --assume-autoconf option.
70147         Remove --assume-autoconf option handling.
70148         (autoconf_minversion): Determine from the contents of configure.ac.
70149         (func_import): Remove autoconf_minversion handling.
70150         Suggested by Eric Blake.
70151
70152 2006-07-29  Bruno Haible  <bruno@clisp.org>
70153
70154         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70155
70156 2006-07-29  Bruno Haible  <bruno@clisp.org>
70157
70158         * config/srclist.txt (*setenv.[ch]): Remove rules.
70159
70160 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70161
70162         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70163
70164 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70165
70166         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70167         arpa/inet.h.
70168
70169 2006-07-28  Simon Josefsson  <jas@extundo.com>
70170
70171         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70172         * modules/inet_pton (Depends-on): Likewise.
70173
70174 2006-07-28  Simon Josefsson  <jas@extundo.com>
70175
70176         * m4/netinet_in_h.m4: New file.
70177
70178 2006-07-28  Simon Josefsson  <jas@extundo.com>
70179
70180         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70181         #include's.
70182
70183 2006-07-28  Simon Josefsson  <jas@extundo.com>
70184
70185         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70186         #include's.
70187
70188 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70189
70190         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70191         setgid on directories only if they set these bits.
70192         * lib/modechange.h: Remove obsolete comment about masks.
70193
70194 2006-07-28  Eric Blake  <ebb9@byu.net>
70195
70196         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70197         macro expansion.
70198
70199 2006-07-28  Bruno Haible  <bruno@clisp.org>
70200
70201         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70202
70203 2006-07-28  Bruno Haible  <bruno@clisp.org>
70204
70205         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70206
70207 2006-07-28  Bruno Haible  <bruno@clisp.org>
70208
70209         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70210         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70211         Define fallbacks.
70212         Avoids link error on FreeBSD 4.x.
70213         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70214
70215         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70216         encoding.
70217         * lib/mbswidth.c (iswcntrl): Likewise.
70218
70219 2006-07-27  Bruno Haible  <bruno@clisp.org>
70220
70221         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70222         test.
70223
70224 2006-07-27  Bruno Haible  <bruno@clisp.org>
70225
70226         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70227         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70228         defined.
70229
70230 2006-07-26  Eric Blake  <ebb9@byu.net>
70231
70232         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70233
70234 2006-07-26  Eric Blake  <ebb9@byu.net>
70235
70236         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70237         like mingw that lack mkstemp.
70238         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70239         avoid compilation warning on mingw.
70240
70241 2006-07-26  Bruno Haible  <bruno@clisp.org>
70242
70243         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70244         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70245         INT_FAST*_MIN, INTPTR_MIN.
70246
70247 2006-07-25  Bruno Haible  <bruno@clisp.org>
70248
70249         * modules/version-etc (Depends-on): Add stdarg.
70250
70251 2006-07-25  Bruno Haible  <bruno@clisp.org>
70252
70253         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70254         complex commands.
70255
70256 2006-07-25  Bruno Haible  <bruno@clisp.org>
70257
70258         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70259         defined in <stdarg.h> or config.h.
70260
70261 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70262
70263         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70264         (gl_STDIO_SAFER): Remove.
70265
70266 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70267
70268         * MODULES.html.sh (File stream based Input/Output):
70269         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70270         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70271         * modules/fopen-safer, modules/tmpfile-safer: New files.
70272         * modules/stdio-safer: Remove.
70273
70274 2006-07-24  Bruno Haible  <bruno@clisp.org>
70275
70276         * modules/tmpdir: New file.
70277         * MODULES.html.sh (File system functions): Add it.
70278
70279 2006-07-24  Bruno Haible  <bruno@clisp.org>
70280
70281         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70282         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70283
70284 2006-07-24  Bruno Haible  <bruno@clisp.org>
70285
70286         * modules/clean-temp: New file.
70287
70288 2006-07-24  Bruno Haible  <bruno@clisp.org>
70289
70290         * m4/tmpdir.m4: New file, from GNU gettext.
70291
70292 2006-07-24  Bruno Haible  <bruno@clisp.org>
70293
70294         * lib/tmpdir.h: New file, from GNU gettext.
70295         * lib/tmpdir.c: New file, from GNU gettext.
70296
70297 2006-07-24  Bruno Haible  <bruno@clisp.org>
70298
70299         * lib/clean-temp.h: New file, from GNU gettext.
70300         * lib/clean-temp.c: New file, from GNU gettext.
70301
70302 2006-07-23  Eric Blake  <ebb9@byu.net>
70303
70304         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70305         (Depends-on): Add binary-io.
70306
70307 2006-07-23  Eric Blake  <ebb9@byu.net>
70308
70309         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70310
70311 2006-07-23  Eric Blake  <ebb9@byu.net>
70312
70313         * lib/tmpfile-safer.c: New file.
70314         * lib/stdio-safer.h (fopen_safer): Add prototype.
70315         * lib/stdio--.h (tmpfile): Make safer.
70316
70317 2006-07-23  Bruno Haible  <bruno@clisp.org>
70318
70319         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70320         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70321         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70322         gl_linked_remove_at): Use it.
70323
70324 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70325         and Simon Josefsson <jas@extundo.com>
70326
70327         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70328
70329         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70330
70331 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70332
70333         * modules/close-stream: New file.
70334         * modules/closeout (Description): Make it clear that it exits
70335         with a diagnostic on error.
70336         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70337         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70338
70339 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70340
70341         * m4/close-stream.m4: New file.
70342
70343 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70344
70345         * lib/close-stream.c, lib/close-stream.h: New files.
70346
70347 2006-07-22  Bruno Haible  <bruno@clisp.org>
70348
70349         Merge from GNU gettext 0.15.
70350
70351         2006-05-01  Bruno Haible  <bruno@clisp.org>
70352
70353                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70354
70355         2006-07-22  Bruno Haible  <bruno@clisp.org>
70356
70357                 * modules/javaversion: New file.
70358                 * MODULES.html.sh (Java): Add javaversion.
70359
70360         2006-03-12  Bruno Haible  <bruno@clisp.org>
70361
70362                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70363
70364         2005-12-04  Bruno Haible  <bruno@clisp.org>
70365
70366                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70367                 (untested).
70368
70369         2006-06-21  Bruno Haible  <bruno@clisp.org>
70370
70371                 Avoid warnings from recent versions of mcs.
70372                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70373                 -o, -L, -r any more. Use options documented since mcs-1.0
70374                 instead. Similarly for -g.
70375
70376         2005-12-04  Bruno Haible  <bruno@clisp.org>
70377
70378                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70379                 .resources, not .resource.
70380
70381         2005-07-09  Bruno Haible  <bruno@clisp.org>
70382
70383                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70384                 add a .dll suffix.
70385                 Reported by Mark Junker <mjscod@gmx.de>.
70386
70387         2006-07-22  Bruno Haible  <bruno@clisp.org>
70388
70389                 * modules/gettext: Upgrade to gettext-0.15.
70390                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70391                 m4/visibility.m4.
70392                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70393
70394 2006-07-22  Bruno Haible  <bruno@clisp.org>
70395
70396         Merge from GNU gettext 0.15.
70397
70398         2006-03-25  Bruno Haible  <bruno@clisp.org>
70399
70400                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70401
70402         2006-07-21  Bruno Haible  <bruno@clisp.org>
70403
70404                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70405                 "1.1".
70406
70407         2006-05-09  Bruno Haible  <bruno@clisp.org>
70408
70409                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70410                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70411                 for the conftestver execution.
70412
70413         2006-05-01  Bruno Haible  <bruno@clisp.org>
70414
70415                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70416                 optional target-version argument. Verify that the compiler
70417                 groks source of the specified source-version, or add -source
70418                 option as necessary. Verify that the compiler produces
70419                 bytecode in the specified target-version, or add -target and
70420                 -source options as necessary. Make the result of the test
70421                 available as variable CONF_JAVAC. Also log error output in
70422                 config.log.
70423
70424         2006-03-11  Bruno Haible  <bruno@clisp.org>
70425
70426                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70427
70428         2006-05-09  Bruno Haible  <bruno@clisp.org>
70429
70430                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70431                 CLASSPATH_SEPARATOR to a semicolon.
70432
70433         2006-03-12  Bruno Haible  <bruno@clisp.org>
70434
70435                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70436                 available as variable CONF_JAVA, for subsequent autoconf
70437                 tests. Also log error output in config.log.
70438
70439         2006-07-19  Bruno Haible  <bruno@clisp.org>
70440
70441                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70442                 that getline works on glibc2 systems. Needed to avoid trouble
70443                 in relocatable.c.
70444                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70445
70446         2005-12-04  Bruno Haible  <bruno@clisp.org>
70447
70448                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70449                 launcher (untested).
70450
70451         2005-12-04  Bruno Haible  <bruno@clisp.org>
70452
70453                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70454
70455         2006-07-22  Bruno Haible  <bruno@clisp.org>
70456
70457                 * gettext.m4: Update from GNU gettext-0.15.
70458                 * nls.m4: Likewise.
70459                 * po.m4: Likewise.
70460                 * inttypes-pri.m4: Likewise.
70461                 * inttypes-h.m4: Renamed from inttypes.m4.
70462                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70463
70464 2006-07-22  Bruno Haible  <bruno@clisp.org>
70465
70466         Merge from GNU gettext 0.15.
70467
70468         2005-07-05  Bruno Haible  <bruno@clisp.org>
70469
70470                 * printf-args.c (printf_fetchargs): Work around broken
70471                 definition of wint_t on mingw.
70472
70473         2005-02-12  Bruno Haible  <bruno@clisp.org>
70474
70475                 * xallocsa.h: Add extern "C" for C++.
70476
70477         2006-05-17  Bruno Haible  <bruno@clisp.org>
70478
70479                 Cygwin portability.
70480                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70481
70482         2006-04-30  Bruno Haible  <bruno@clisp.org>
70483
70484                 * progreloc.c: Include <mach-o/dyld.h> if available.
70485                 (find_executable): Use _NSGetExecutablePath when possible.
70486
70487         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70488
70489                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70490                 function.
70491
70492         2005-12-29  Bruno Haible  <bruno@clisp.org>
70493
70494                 * progreloc.c (set_program_name_and_installdir): Fix
70495                 compilation error.
70496
70497         2005-12-04  Bruno Haible  <bruno@clisp.org>
70498
70499                 Cygwin portability.
70500                 * progreloc.c: Include <windows.h> also on Cygwin.
70501                 (find_executable): Add support for Cygwin.
70502                 (set_program_name_and_installdir): Handle also platforms with
70503                 nonempty EXEEXT.
70504
70505         2006-07-11  Bruno Haible  <bruno@clisp.org>
70506
70507                 * javacomp.c: Fix a comment.
70508                 Reported by Jim Meyering.
70509
70510         2006-04-30  Bruno Haible  <bruno@clisp.org>
70511
70512                 * javacomp.h (compile_java_class): Add source_version,
70513                 target_version arguments.
70514                 * javacomp.c: Rewritten to choose only a compiler that
70515                 respects the specified source_version and target_version.
70516
70517         2006-06-27  Bruno Haible  <bruno@clisp.org>
70518
70519                 Assume correct S_ISDIR macro.
70520                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70521
70522         2006-07-22  Bruno Haible  <bruno@clisp.org>
70523
70524                 * javaversion.h: New file, from GNU gettext.
70525                 * javaversion.c: New file, from GNU gettext.
70526                 * javaversion.java: New file, from GNU gettext.
70527                 * javaversion.class: New file, from GNU gettext.
70528
70529         2006-05-17  Bruno Haible  <bruno@clisp.org>
70530
70531                 Cygwin portability.
70532                 * javaexec.c (execute_java_class): Test for jview program
70533                 also on Cygwin.
70534
70535         2006-04-09  Bruno Haible  <bruno@clisp.org>
70536
70537                 * fatal-signal.c: Don't include string.h.
70538                 (at_fatal_signal): Use a copying loop instead of memcpy.
70539
70540         2005-12-04  Bruno Haible  <bruno@clisp.org>
70541
70542                 * csharpexec.c: Add support for 'clix' launcher (untested).
70543                 (execute_csharp_using_sscli): New function.
70544                 (execute_csharp_program): Call it.
70545
70546         2006-06-21  Bruno Haible  <bruno@clisp.org>
70547
70548                 Avoid warnings from recent versions of mcs.
70549                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70550                 -o, -L, -r any more. Use options documented since mcs-1.0
70551                 instead. Similarly for -g.
70552
70553         2005-07-09  Bruno Haible  <bruno@clisp.org>
70554
70555                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70556                 add a .dll suffix.
70557                 Reported by Mark Junker <mjscod@gmx.de>.
70558
70559         2006-06-17  Bruno Haible  <bruno@clisp.org>
70560
70561                 * config.charset: Update for NetBSD 3.0.
70562
70563         2006-05-17  Bruno Haible  <bruno@clisp.org>
70564
70565                 Cygwin portability.
70566                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70567
70568         2006-05-16  Bruno Haible  <bruno@clisp.org>
70569
70570                 * localcharset.c [CYGWIN]: Include <windows.h>.
70571                 (get_charset_aliases): For Cygwin, return the same CPxxx
70572                 aliases list as under WIN32.
70573                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70574                 the environment variables. Fall back to GetACP().
70575
70576         2006-04-05  Bruno Haible  <bruno@clisp.org>
70577
70578                 * config.charset: Update Juan Manuel Guerrero's address.
70579
70580         2005-02-12  Bruno Haible  <bruno@clisp.org>
70581
70582                 * allocsa.h: Add extern "C" for C++.
70583
70584         2005-02-10  Bruno Haible  <bruno@clisp.org>
70585
70586                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70587                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70588
70589         2006-07-22  Bruno Haible  <bruno@clisp.org>
70590
70591                 * gettext.h: Update to GNU gettext-0.15.
70592
70593 2006-07-22  Bruno Haible  <bruno@clisp.org>
70594
70595         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70596         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70597         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70598
70599 2006-07-21  Eric Blake  <ebb9@byu.net>
70600
70601         * modules/stdlib-safer: New file.
70602         * MODULES.html.sh (File stream based Input/Output): Add
70603         stdlib-safer.
70604
70605 2006-07-21  Eric Blake  <ebb9@byu.net>
70606
70607         * lib/stdlib-safer.h: New file from coreutils, required by
70608         stdlib--.h.
70609
70610 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70611
70612         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70613
70614 2006-07-20  Bruno Haible  <bruno@clisp.org>
70615
70616         * gnulib-tool: Recognize new option --assume-autoconf.
70617         (autoconf_minversion): New variable.
70618         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70619
70620 2006-07-20  Bruno Haible  <bruno@clisp.org>
70621
70622         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70623
70624 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70625
70626         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70627         Reindent and repaginate.
70628
70629 2006-07-19  Derek Price  <derek@ximbiot.com>
70630
70631         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70632         Correct grammar.
70633
70634 2006-07-17  Bruno Haible  <bruno@clisp.org>
70635
70636         * modules/list: New file.
70637         * modules/array-list: New file.
70638         * modules/carray-list, modules/carray-list-tests: New files.
70639         * modules/linked-list, modules/linked-list-tests: New files.
70640         * modules/avltree-list, modules/avltree-list-tests: New files.
70641         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70642         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70643         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70644         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70645         * modules/oset: New file.
70646         * modules/array-oset: New file.
70647         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70648         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70649         * tests/test-carray_list.c: New file.
70650         * tests/test-linked_list.c: New file.
70651         * tests/test-avltree_list.c: New file.
70652         * tests/test-rbtree_list.c: New file.
70653         * tests/test-linkedhash_list.c: New file.
70654         * tests/test-avltreehash_list.c: New file.
70655         * tests/test-rbtreehash_list.c: New file.
70656         * tests/test-avltree_oset.c: New file.
70657         * tests/test-rbtree_oset.c: New file.
70658         * MODULES.html.sh (Container data structures): New section.
70659
70660 2006-07-17  Bruno Haible  <bruno@clisp.org>
70661
70662         * m4/gl_list.m4: New file.
70663
70664 2006-07-17  Bruno Haible  <bruno@clisp.org>
70665
70666         * lib/gl_list.h: New file.
70667         * lib/gl_list.c: New file.
70668         * lib/gl_array_list.h: New file.
70669         * lib/gl_array_list.c: New file.
70670         * lib/gl_carray_list.h: New file.
70671         * lib/gl_carray_list.c: New file.
70672         * lib/gl_linked_list.h: New file.
70673         * lib/gl_linked_list.c: New file.
70674         * lib/gl_anylinked_list1.h: New file.
70675         * lib/gl_anylinked_list2.h: New file.
70676         * lib/gl_avltree_list.h: New file.
70677         * lib/gl_avltree_list.c: New file.
70678         * lib/gl_anyavltree_list1.h: New file.
70679         * lib/gl_anyavltree_list2.h: New file.
70680         * lib/gl_rbtree_list.h: New file.
70681         * lib/gl_rbtree_list.c: New file.
70682         * lib/gl_anyrbtree_list1.h: New file.
70683         * lib/gl_anyrbtree_list2.h: New file.
70684         * lib/gl_anytree_list1.h: New file.
70685         * lib/gl_anytree_list2.h: New file.
70686         * lib/gl_linkedhash_list.h: New file.
70687         * lib/gl_linkedhash_list.c: New file.
70688         * lib/gl_anyhash_list1.h: New file.
70689         * lib/gl_anyhash_list2.h: New file.
70690         * lib/gl_avltreehash_list.h: New file.
70691         * lib/gl_avltreehash_list.c: New file.
70692         * lib/gl_rbtreehash_list.h: New file.
70693         * lib/gl_rbtreehash_list.c: New file.
70694         * lib/gl_anytreehash_list1.h: New file.
70695         * lib/gl_anytreehash_list2.h: New file.
70696
70697         * lib/gl_oset.h: New file.
70698         * lib/gl_oset.c: New file.
70699         * lib/gl_array_oset.h: New file.
70700         * lib/gl_array_oset.c: New file.
70701         * lib/gl_avltree_oset.h: New file.
70702         * lib/gl_avltree_oset.c: New file.
70703         * lib/gl_rbtree_oset.h: New file.
70704         * lib/gl_rbtree_oset.c: New file.
70705         * lib/gl_anytree_oset.h: New file.
70706
70707 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70708
70709         * m4/mkancesdirs.m4: New file.
70710         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70711         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70712         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70713         it.
70714
70715 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70716
70717         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70718         * lib/mkancesdirs.h: New files.
70719         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70720         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70721         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70722         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70723         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70724         callers changed.  Revamp internals significantly, by not
70725         attempting to create directories that are temporarily more
70726         permissive than the final results.  Do not attempt to use
70727         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70728         This removes some race conditions, fixes some bugs, and simplifies
70729         things.  Use new dirchownmod function to do owner and mode changes.
70730         * lib/mkdir-p.h: Likewise.
70731         * lib/modechange.c (octal_to_mode): New function.
70732         (struct mode_change): New member mentioned.
70733         (make_node_op_equals): New arg mentioned.  All callers changed.
70734         (mode_compile): Keep track of which mode bits the user has explicitly
70735         mentioned.
70736         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70737         New arg PMODE_BITS, to keep track of which mode bits the user
70738         mentioned; it treats S_ISUID and S_ISGID speciall.
70739         All callers changed.
70740         * lib/modechange.h: Likewise.
70741
70742 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70743
70744         * MODULES.html.sh: Add mkancestors.
70745         * modules/mkancesdirs: New module.
70746         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70747         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70748         The chdir-safer and afs files are now orphans; I'll remove them
70749         unless someone speaks up.
70750         Add lib/dirchownmod.c, lib/dirchownmod.h.
70751         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70752         Add lchown, mkancesdirs.
70753         (Maintainer): Add self.
70754
70755 2006-07-15  Karl Berry  <karl@gnu.org>
70756
70757         * gnulib-tool: help message wording/arrangement.
70758
70759 2006-07-14  Simon Josefsson  <jas@extundo.com>
70760
70761         * doc/gnulib.texi (Libtool and Windows): New section.
70762
70763 2006-07-12  Simon Josefsson  <jas@extundo.com>
70764
70765         * modules/gendocs (License): Fix license, approved by Karl.
70766
70767 2006-07-12  Eric Blake  <ebb9@byu.net>
70768
70769         * MODULES.html.sh: Add gendocs.
70770
70771 2006-07-11  Eric Blake  <ebb9@byu.net>
70772
70773         * modules/fdl: New module, to install doc/fdl.texi.
70774         * MODULES.html.sh: Add new section for documentation modules.
70775         * gnulib-tool: Avoid space-tab.
70776         (--doc-base): New option, to manage files from doc.
70777
70778 2006-07-11  Eric Blake  <ebb9@byu.net>
70779
70780         * m4/absolute-header.m4: Fix comments to match recent change.
70781
70782 2006-07-11  Eric Blake  <ebb9@byu.net>
70783
70784         * gnulib-tool: List --doc-base before --tests-base.
70785
70786 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70787
70788         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70789
70790 2006-07-11  Bruno Haible  <bruno@clisp.org>
70791
70792         * README: Mention where to put documentation.
70793
70794 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70795
70796         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70797
70798 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70799
70800         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70801         to stdint.m4.
70802
70803 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70804
70805         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70806         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70807         "no/such/file/stdint.h" when there is no such file, so that
70808         the resulting C code can be parsed by dodgy compilers.
70809         Problems reported by Bob Proulx.
70810
70811 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70812
70813         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70814         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70815         macros into the GNU _D_EXACT_NAMLEN.
70816         * lib/savedir.c:  Likewise.
70817         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70818
70819 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70820         and Paul Eggert  <eggert@cs.ucla.edu>
70821
70822         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70823         * m4/savedir.m4:
70824         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70825         macros into the GNU _D_EXACT_NAMLEN.
70826
70827 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70828
70829         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70830         around the absolute name, to work around a problem with the HP-UX
70831         11.23 native C compiler, reported by Bob Proulx.
70832
70833 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70834
70835         * doc/maintain.texi, make-stds.texi: Sync from
70836         <http://savannah.gnu.org/projects/gnustandards>.
70837
70838 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70839
70840         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70841
70842 2006-07-09  Jim Meyering  <jim@meyering.net>
70843
70844         * m4/glob.m4: Remove a doubled word in a comment.
70845
70846 2006-07-09  Jim Meyering  <jim@meyering.net>
70847
70848         * lib/argp-pv.c: Remove a doubled word in a comment.
70849         * lib/check-version.c (check_version): Likewise.
70850         * lib/javacomp.c (compile_java_class): Likewise.
70851
70852 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70853
70854         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70855         for the benefit of people using Autoconf 2.60.  If you want to
70856         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70857         (or m4/onceonly.m4, if pre-2.57) manually.
70858
70859 2006-07-08  Jim Meyering  <jim@meyering.net>
70860
70861         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70862         comment.
70863         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70864         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70865         comment.
70866
70867 2006-07-08  Jim Meyering  <jim@meyering.net>
70868
70869         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70870
70871 2006-07-07  Simon Josefsson  <jas@extundo.com>
70872
70873         * tests/test-crc.c: Change expected crc value, the test vector
70874         were probably computed using the old broken crc.c?
70875
70876 2006-07-06  Simon Josefsson  <jas@extundo.com>
70877
70878         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70879         now the canonical place for the M4 file).
70880
70881         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70882         from the sys_socket dependency now.
70883
70884         * modules/inet_pton (Files): Ditto.
70885
70886         * modules/inet_ntop (Files): Ditto.
70887
70888 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70889
70890         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70891         not gl_PREREQ_GETUSERSHELL.
70892
70893 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70894
70895         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70896         with only one argument, for Autoconf 2.60.
70897         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70898         expand to nothing, so add a shell command to avoid syntax error.
70899         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70900
70901 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70902
70903         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70904
70905 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70906
70907         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70908         no longer needed.  Check for isblank decl.
70909         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70910         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70911         of existence.
70912
70913 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70914
70915         * lib/getloadavg.c: Use __VMS, not VMS.
70916         * lib/getopt.c: Likewise.
70917         * lib/getpagesize.h: Likewise.
70918         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70919         and probably does not work.
70920
70921 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70922
70923         * lib/.cppi-disable: Add wcwidth.
70924         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70925         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70926         (ISGRAPH): Remove.  All uses changed to isgraph.
70927         (FOLD) [!defined _LIBC]: Remove special case.
70928         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70929         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70930         HAVE_ISBLANK.
70931         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70932         case.
70933
70934 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70935
70936         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70937         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70938         brackets.  Other minor changes to suppress some compiler
70939         warnings.
70940
70941 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70942         and Paul Eggert  <eggert@cs.ucla.edu>
70943
70944         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70945         of invoking obsolescent AC_HEADER_DIRENT macro.
70946         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70947         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70948         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70949         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70950         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70951         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70952         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70953         * m4/readdir.m4: Remove; no longer needed.
70954
70955 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70956         and Paul Eggert  <eggert@cs.ucla.edu>
70957
70958         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70959         Don't worry about this obsolete case any more.
70960         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70961         directories.
70962         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70963         worry about this obsolete case any more.
70964         * lib/fts.c: Likewise.
70965         * lib/getcwd.c: Likewise.
70966         * lib/glob.h: Likewise.
70967         * lib/savedir.c: Likewise.
70968
70969 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70970
70971         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70972         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70973         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70974         needed.
70975         All uses removed.
70976         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70977         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70978         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70979         needed.
70980         * m4/getdate.m4 (gl_GETDATE): Likewise.
70981         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70982         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70983         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70984         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70985         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70986         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70987         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70988         needed.
70989
70990 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70991
70992         * lib/memcasecmp.c: Include <limits.h>.
70993         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70994         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70995         Don't assume isdigit succeeds only on '0' through '9'.
70996
70997 2006-07-05  Eric Blake  <ebb9@byu.net>
70998
70999         * modules/getaddrinfo (Depends-on): Add snprintf.
71000
71001 2006-07-05  Eric Blake  <ebb9@byu.net>
71002
71003         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71004         to avoid 'header present but could not be compiled' on cygwin.
71005
71006 2006-07-05  Eric Blake  <ebb9@byu.net>
71007
71008         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71009         missing from netdb.h.
71010         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71011
71012 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71013
71014         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71015         no longer needed.
71016         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71017         * m4/getdate.m4 (gl_GETDATE): Likewise.
71018         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71019         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71020         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71021         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71022         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71023
71024 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71025
71026         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71027         All uses of is_space replaced by isspace.
71028         * lib/exit.h: Don't talk about STDC_HEADERS.
71029         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71030         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71031         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71032         replaced by isprint etc.
71033         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71034         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71035         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71036         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71037         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71038         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71039
71040 2006-07-05  Bruno Haible  <bruno@clisp.org>
71041
71042         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71043         the function exists, before testing against AIX.
71044         Reported by Martin Lambers <marlam@marlam.de>.
71045
71046 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71047
71048         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71049         From Mark D. Baushke.
71050
71051 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71052
71053         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71054         to the absolute name, not just one, to bypass Sun C 5.8's
71055         "warning: #include of /usr/include/... may be non-portable".
71056
71057 2006-07-04  Eric Blake  <ebb9@byu.net>
71058
71059         * modules/dirname-tests: New test module.
71060         * tests/test-dirname.c: New file, replacing dirname.c
71061         TEST_DIRNAME section that was recently deleted.
71062
71063 2006-07-04  Bruno Haible  <bruno@clisp.org>
71064
71065         Assume ANSI C header files and <ctype.h> functions.
71066         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71067         (mbsnwidth): Use isprint, iscntrl instead.
71068
71069 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71070
71071         Merge from coreutils.
71072         * MODULES.html.sh: Add xstrtold.
71073         * modules/xstrtold: New file.
71074         * modules/cycle-check (Files): Add lib/same-inode.h.
71075         * modules/dirname (Files): Add m4/double-slash-root.m4.
71076         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71077         * modules/mkdir-p (Files): Add lib/same-inode.h.
71078         * modules/same (Files): Add lib/same-inode.h.
71079
71080 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71081
71082         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71083         This is to keep the terminology clean; POSIX talks about
71084         "absolute pathnames", not "full pathnames", but the GNU
71085         Coding Standards say to use "path" for something else;
71086         so use "absolute" to keep both sides happy.
71087         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71088         Set gl_absolute_header, not gl_full_header_path.
71089         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71090         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71091         All uses changed.
71092
71093         Merge from coreutils.
71094
71095         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71096
71097         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71098         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71099         want to require the building of c-strtod.o.
71100         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71101         needs -lm directly.
71102         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71103
71104         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71105
71106         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71107         --as-needed option if available.  Problem reported by Albert Chin in
71108         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71109         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71110         cc merely issues a bunch of annoying warnings for --as-needed
71111         (this problem was reported by Bob Proulx).  Also, try linking with
71112         -lm to detect a bug in binutils 2.16 (this problem was reported
71113         by Ralf Wildenhues).
71114
71115         2006-06-18  Jim Meyering  <jim@meyering.net>
71116
71117         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71118         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71119         macro.
71120         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71121         also check for glibc-2.4's abort-inducing bug.
71122
71123         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71124         Low-probability clean-up should be to use rmdir to get rid of
71125         the just-created directory, not unlink.
71126
71127         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71128         configure fail, and request a bug report to inform us about it.
71129         Add a comment that, barring reports to the contrary, in 2007 we'll
71130         assume ftruncate is universally available.
71131
71132         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71133
71134         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71135
71136         2006-03-12  Jim Meyering  <jim@meyering.net>
71137
71138         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71139         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71140         * m4/same.m4 (gl_SAME): Likewise.
71141         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71142
71143         2006-03-11  Eric Blake  <ebb9@byu.net>
71144
71145         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71146         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71147         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71148         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71149
71150 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71151
71152         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71153         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71154         reported by Mark D. Baushke, one in
71155         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71156
71157         Merge from coreutils.
71158
71159         * lib/.cppi-disable: Add stdint_.h.
71160         * lib/.cvsignore: Add stdint.h.
71161
71162         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71163
71164         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71165         both double and long double versions.
71166         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71167         * lib/xstrtold.c: New file.
71168         * lib/xstrtod.h (xstrtold): New decl.
71169
71170         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71171
71172         * lib/filemode.c (setst): Remove.
71173         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71174         (arguably) clearer, and the generated code is a bit smaller on my
71175         Debian GNU/Linux stable x86 host.
71176
71177         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71178
71179         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71180         Assume that filemode.h includes sys/types.h and sys/stat.h.
71181         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71182         (ftypelet): Reorder to put common cases first, for efficiency.
71183         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71184         to do 'M'.
71185         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71186         of 10, for compatibility with FreeBSD.  All callers changed.
71187         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71188         types that can't be deduced solely from st_mode.  First arg is now a
71189         const pointer.
71190         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71191         (strmode): Renamed from mode_string.
71192         (filemodestring): New decl.
71193         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71194         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71195         needed.
71196         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71197
71198         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71199
71200         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71201         fsusage.h now does that.  Include fsusage.h first, to test interface.
71202         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71203         at most one method (the old code could have generated decls that
71204         didn't conform to C89, not that this was ever exercised).
71205         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71206
71207         2006-03-19  Jim Meyering  <jim@meyering.net>
71208
71209         Work even in a chroot where d_ino values for entries in "/"
71210         don't match the stat.st_ino values for the same names.
71211         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71212         number, iterate through all entries again, using lstat instead.
71213         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71214         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71215
71216         * lib/getcwd.c (__getcwd): Clarify a comment.
71217         Use memcpy in place of a call to strcpy.
71218
71219         2006-03-12  Jim Meyering  <jim@meyering.net>
71220
71221         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71222         matches that of the current directory (which we're about to chdir ".."
71223         out of), then save the dev-ino of the parent, instead.
71224
71225         * lib/same-inode.h (SAME_INODE): New file/macro.
71226         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71227         Include "same-inode.h", instead.
71228         * lib/same.c: Likewise.
71229         * lib/cycle-check.h: Include "same-inode.h".
71230         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71231         * lib/cycle-check.c (SAME_INODE): Remove definition.
71232         * lib/root-dev-ino.h: Include "same-inode.h".
71233
71234         2006-03-11  Eric Blake  <ebb9@byu.net>
71235
71236         * lib/same.c (same_name): s/base_name/last_component/
71237         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71238         * lib/filenamecat.c (file_name_concat): Likewise.
71239
71240         2006-03-11  Eric Blake  <ebb9@byu.net>,
71241                     Paul Eggert  <eggert@cs.ucla.edu>
71242
71243         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71244         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71245         drive prefix.
71246         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71247         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71248         (last_component): New method.
71249         * lib/dirname.c (dir_len): Determine when drive letters need a
71250         subsequent slash.  Preserve // when it is special.
71251         (dir_name): Don't append dot when drive letter is absolute.
71252         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71253         * lib/basename.c (base_name): New semantics - malloc the result.
71254         Preserve // when it is special.  Preserve relative files that look
71255         like drive letters.
71256         (base_len): Preserve // when it is special.
71257         (last_component): New method, similar to old base_name semantics.
71258         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71259         base_name.  Strip redundant slashes from ///.
71260
71261 2006-07-03  Jim Meyering  <jim@meyering.net>
71262
71263         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71264         macro is used before the first cycle_check call.
71265
71266 2006-07-03  Eric Blake  <ebb9@byu.net>
71267
71268         * modules/dirname (Depends-on): Add xstrndup.
71269
71270 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71271
71272         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71273         test cases, so that config.log is a bit easier to follow.
71274
71275 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71276
71277         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71278         both are 64 bits, since this seems to be the tradition, and this
71279         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71280         we ever run into a host that prefers long long to long in this
71281         case, we'll need another configure-time test.  Problem reported by
71282         Jim Meyering.
71283
71284 2006-07-02  Eric Blake  <ebb9@byu.net>
71285
71286         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71287
71288 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71289
71290         * modules/inttypes (Depends-on): No longer depends on stdint.
71291         * modules/stdint (Description): Say more about assumptions.
71292         Say that the fast types might differ.  Say macros are used.
71293         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71294         (Makefile.am): Revise list of substituted symbols to match
71295         new stdint.m4.
71296         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71297         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71298         * tests/test-stdint.c (verify_same_types)
71299         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71300         the code conforms to C99/C89.
71301         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71302         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71303
71304 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71305
71306         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71307         but fix a bug, by requiring at least 64 bits.
71308         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71309         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71310         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71311         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71312
71313         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71314         changes.  Make 2.59 a prerequisite.  Check and substitute for
71315         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71316         inttypes.h.  Do not use special include files; just use the
71317         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71318         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71319         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71320         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71321         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71322         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71323         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71324         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71325         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71326         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71327         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71328         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71329         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71330         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71331         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71332         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71333         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71334         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71335         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71336         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71337         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71338         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71339         not check for things that C99 does not require, e.g., int8_t.  If
71340         a test isn't needed unless <stdint.h> isn't working, and is
71341         unlikely to be needed for any other reason, then don't do it
71342         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71343         size_t, since we assume C89 freestanding at least.  Do not check
71344         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71345         the right thing even if the types are not defined.  Instead use:
71346         (gl_STDINT_TYPE_PROPERTIES): New macro.
71347         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71348         testing whether <sys/types.h> clashes, as Autoconf does this for
71349         us now.  All uses removed.
71350         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71351         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71352         (gl_CHECK_TYPE_SAME):
71353         Remove; no longer needed.
71354         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71355         exists, since we'll return 0 anyway in that case.
71356         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71357
71358 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71359
71360         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71361         possible collision with system files.
71362         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71363         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71364         WCHAR_MIN and WCHAR_MAX in this case.
71365         (<stddef.h>): Do not include; no longer needed.
71366         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71367         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71368         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71369         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71370         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71371         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71372         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71373         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71374         !defined(__c99))]: Include in this case too, since it's harmless
71375         now.
71376         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71377         dangerous to do so.
71378         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71379         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71380         (_STDINT_MIN, _STDINT_MAX): New macros.
71381         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71382         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71383         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71384         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71385         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71386         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71387         macros, not typedefs; this simplifies things quite a bit.
71388         Use long int for all types narrower than int64_t.
71389         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71390         Define in terms of long long int or int64_t or long int,
71391         not int64_t or int32_t.  This saves some compile-time testing.
71392         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71393         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71394         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71395         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71396         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71397         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71398         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71399         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71400         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71401         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71402         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71403         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71404         undef any previous version and define our own version, for
71405         simplicity and consistency with the new macros for types.
71406         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71407         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71408         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71409         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71410         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71411         @WINT_T_SUFFIX@ to keep things simple here.
71412         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71413         Simplify by assuming typical 8/16/32/64 host, since we're
71414         already doing that elsewhere anyway.
71415         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71416         and assume long long int is 64 bits if available.  This
71417         speeds up 'configure'.
71418
71419 2006-07-01  Eric Blake  <ebb9@byu.net>
71420
71421         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71422         Reported by Andreas Buening.
71423
71424 2006-07-01  Eric Blake  <ebb9@byu.net>
71425
71426         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71427
71428 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71429
71430         * lib/getaddrinfo.c: fixed typo
71431
71432 2006-06-29  Jim Meyering  <jim@meyering.net>
71433
71434         * modules/strftime (Maintainer): Add my name, since with the
71435         FPRINTFTIME changes strftime.c has forked from glibc.
71436
71437 2006-06-29  Eric Blake  <ebb9@byu.net>
71438
71439         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71440
71441 2006-06-29  Eric Blake  <ebb9@byu.net>
71442
71443         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71444
71445 2006-06-29  Eric Blake  <ebb9@byu.net>
71446
71447         * lib/stat_.h: New file.
71448
71449 2006-06-29  Eric Blake  <ebb9@byu.net>
71450
71451         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71452         unused static function.
71453
71454 2006-06-29  Eric Blake  <ebb9@byu.net>
71455
71456         * doc/functions.texi (Function Portability): Document missing lstat
71457         on mingw.
71458
71459 2006-06-29  Eric Blake  <ebb9@byu.net>
71460
71461         * MODULES.html.sh: Add sys_stat.
71462         * modules/sys_stat: New module.
71463         * modules/mkstemp (Depends-on): Add sys_stat.
71464
71465 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71466
71467         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71468
71469 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71470
71471         * m4/c-bs-a.m4: Removed.
71472
71473 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71474
71475         * lib/strftime.c: Assume strftime() exists.
71476
71477 2006-06-29  Derek Price  <derek@ximbiot.com>
71478
71479         * modules/c-bs-a: Removed - \a is C89.
71480         * MODULES.html.sh: Remove c-bs-a.
71481
71482 2006-06-29  Bruno Haible  <bruno@clisp.org>
71483
71484         * modules/wcwidth (License): Change to LGPL.
71485
71486 2006-06-28  Simon Josefsson  <jas@extundo.com>
71487
71488         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71489         on _WIN32.
71490
71491         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71492         getnameinfo.
71493
71494 2006-06-28  Simon Josefsson  <jas@extundo.com>
71495
71496         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71497
71498 2006-06-28  Simon Josefsson  <jas@extundo.com>
71499
71500         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71501         functions there.  It will succeed on Windows XP, but on Windows
71502         2000 and (presumably) earlier, it will fail, and use the internal
71503         re-implementation.
71504         (use_win32_p): New function.
71505         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71506         Support AI_NUMERICSERV to disable getservbyname.
71507         (getnameinfo): New function, only supports
71508         NI_NUMERICHOST|NI_NUMERICSERV for now.
71509
71510         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71511         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71512         getnameinfo.
71513
71514 2006-06-28  Eric Blake  <ebb9@byu.net>
71515
71516         * modules/wcwidth: New file.
71517         * modules/mbchar (Depends-on): Add wcwidth.
71518         * modules/mbswidth (Depends-on): Add wcwidth.
71519         * MODULES.html.sh: Add wcwidth.
71520
71521 2006-06-28  Eric Blake  <ebb9@byu.net>
71522
71523         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71524         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71525
71526 2006-06-28  Eric Blake  <ebb9@byu.net>
71527
71528         * lib/xvasprintf.h: Fix comments.
71529
71530 2006-06-28  Eric Blake  <ebb9@byu.net>
71531
71532         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71533         * lib/mbswidth.c (wcwidth): Move from here...
71534         * lib/wcwidth.h: ...to this new file.
71535
71536 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71537
71538         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71539
71540         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71541         it's obsolete.
71542         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71543
71544 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71545
71546         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71547         Autoconf 2.60 says this stuff was obsolete.
71548
71549 2006-06-28  Bruno Haible  <bruno@clisp.org>
71550
71551         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71552
71553 2006-06-28  Bruno Haible  <bruno@clisp.org>
71554
71555         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71556         gt_TYPE_WCHAR_T.
71557
71558 2006-06-28  Bruno Haible  <bruno@clisp.org>
71559
71560         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71561         declaration for wcwidth.
71562         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71563
71564 2006-06-28  Bruno Haible  <bruno@clisp.org>
71565
71566         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71567         (mkdir): Define using _mkdir.
71568
71569 2006-06-28  Bruno Haible  <bruno@clisp.org>
71570
71571         * lib/getaddrinfo.h: Fix POSIX URL.
71572         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71573         _WIN32.
71574         (use_win32_p): Make static.
71575         (getaddrinfo): Reject service name if it is empty or does not consist
71576         solely of decimal digits, or if its value is > 65535.
71577         (getnameinfo): Remove useless casts.
71578
71579 2006-06-27  Simon Josefsson  <jas@extundo.com>
71580
71581         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71582         Eggert and Martin Lambers.
71583
71584 2006-06-27  Simon Josefsson  <jas@extundo.com>
71585
71586         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71587         Eggert and Martin Lambers.
71588
71589 2006-06-27  Bruno Haible  <bruno@clisp.org>
71590
71591         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71592         result to 0, not to empty.
71593         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71594
71595 2006-06-27  Bruno Haible  <bruno@clisp.org>
71596
71597         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71598
71599 2006-06-26  Simon Josefsson  <jas@extundo.com>
71600
71601         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71602         present.
71603
71604 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71605
71606         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71607         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71608         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71609
71610 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71611
71612         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71613
71614 2006-06-26  Bruno Haible  <bruno@clisp.org>
71615
71616         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71617
71618 2006-06-26  Bruno Haible  <bruno@clisp.org>
71619
71620         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71621
71622 2006-06-26  Bruno Haible  <bruno@clisp.org>
71623
71624         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71625         SGI C compiler in pre-C99 mode.
71626         Suggested by Mark D. Baushke and Larry Jones.
71627
71628 2006-06-26  Bruno Haible  <bruno@clisp.org>
71629
71630         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71631         WCHAR_MAX.
71632         Reported by Mark D. Baushke and Larry Jones.
71633
71634 2006-06-26  Bruno Haible  <bruno@clisp.org>
71635
71636         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71637         in pre-C99 mode.
71638         Suggested by Mark D. Baushke and Larry Jones.
71639
71640 2006-06-23  Simon Josefsson  <jas@extundo.com>
71641             Bruno Haible  <bruno@clisp.org>
71642
71643         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71644         Emit mostlyclean-local rule.
71645         (func_emit_tests_Makefile_am): Likewise.
71646         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71647
71648 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71649
71650         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71651
71652 2006-06-23  Bruno Haible  <bruno@clisp.org>
71653
71654         * tests/test-stdint.c: Update to match ISO C 99 Technical
71655         Corrigendum 1.
71656
71657 2006-06-23  Bruno Haible  <bruno@clisp.org>
71658
71659         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71660
71661 2006-06-23  Bruno Haible  <bruno@clisp.org>
71662
71663         * lib/stdint_.h: Treat IRIX like OpenBSD.
71664
71665 2006-06-23  Bruno Haible  <bruno@clisp.org>
71666
71667         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71668         ISO C 99 Technical Corrigendum 1.
71669
71670 2006-06-22  Simon Josefsson  <jas@extundo.com>
71671
71672         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71673         MinGW.
71674
71675 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71676
71677         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71678         needed.  Some compiler complained about some of them.  Problem reported
71679         by Larry Jones in
71680         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71681
71682 2006-06-21  Simon Josefsson  <jas@extundo.com>
71683
71684         * tests/test-getaddrinfo.c: New file.
71685
71686         * modules/getaddrinfo-tests: New file.
71687
71688         * MODULES.html.sh: Add inet_pton.
71689
71690         * modules/inet_pton: New file.
71691
71692 2006-06-21  Simon Josefsson  <jas@extundo.com>
71693
71694         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71695         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71696         of using the (limited) gnulib implementation on Windows XP.
71697
71698         * m4/inet_pton.m4: New file.
71699
71700 2006-06-21  Simon Josefsson  <jas@extundo.com>
71701
71702         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71703         variable.
71704
71705         * lib/socket_.h: Don't define WINVER.
71706
71707         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71708         slightly modified to work in gnulib.
71709
71710 2006-06-21  Simon Josefsson  <jas@extundo.com>
71711
71712         * doc/gnulib.texi (Windows sockets): Add.
71713
71714 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71715
71716         * lib/read-file.c (fread_file): Start with buffer allocation of
71717         0 bytes rather than 1 byte; this simplifies the code.
71718         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71719         code to free buffer and save/restore errno.
71720         (internal_read_file): Remove unused local.
71721
71722 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71723
71724         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71725         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71726         Problem reported by Denis Excoffier in
71727         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71728
71729 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71730
71731         * modules/sys_socket, modules/socklen: Include sys/types since
71732         FreeBSD 4.x's sys/socket.h needs it.
71733
71734 2006-06-19  Simon Josefsson  <jas@extundo.com>
71735
71736         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71737
71738 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71739
71740         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71741
71742 2006-06-19  Bruno Haible  <bruno@clisp.org>
71743
71744         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71745         and FULL_PATH_INTTYPES_H in angle brackets.
71746         Reported by Mark D. Baushke <mdb@gnu.org>.
71747
71748 2006-06-17  Eric Blake  <ebb9@byu.net>
71749
71750         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71751         errno.
71752
71753 2006-06-17  Bruno Haible  <bruno@clisp.org>
71754
71755         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71756         <sys/inttypes.h>.
71757
71758 2006-06-17  Bruno Haible  <bruno@clisp.org>
71759
71760         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71761         whether errno is declared. Assume <errno.h> declares errno.
71762
71763 2006-06-17  Bruno Haible  <bruno@clisp.org>
71764
71765         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71766
71767 2006-06-17  Bruno Haible  <bruno@clisp.org>
71768
71769         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71770         problem on Solaris 2.5.1.
71771
71772 2006-06-16  Eric Blake  <ebb9@byu.net>
71773
71774         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71775         * lib/unicodeio.c [!defined errno]: Likewise.
71776         * lib/strtol.c [!defined errno]: Likewise.
71777         * lib/strtod.c [!defined errno]: Likewise.
71778
71779 2006-06-15  Eric Blake  <ebb9@byu.net>
71780
71781         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71782
71783 2006-06-15  Eric Blake  <ebb9@byu.net>
71784
71785         * config/srclist.txt (ssize_t.m4): Lose sync.
71786
71787 2006-06-15  Bruno Haible  <bruno@clisp.org>
71788
71789         * modules/stdint (Files): Include m4/full-header-path.m4,
71790         m4/size_max.m4, m4/wchar_t.m4.
71791         (Makefile.am): Many more substitutions.
71792         * modules/stdint-tests: New file.
71793         * tests/test-stdint.c: New file.
71794
71795 2006-06-15  Bruno Haible  <bruno@clisp.org>
71796
71797         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71798         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71799         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71800         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71801         gl_CHECK_TYPE_SAME): New macros.
71802
71803 2006-06-15  Bruno Haible  <bruno@clisp.org>
71804
71805         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71806
71807 2006-06-15  Bruno Haible  <bruno@clisp.org>
71808
71809         * lib/stdint_.h: Rewritten to be fully auto-configured.
71810         Fixes bug on HP-UX/IA64.
71811
71812 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71813
71814         * lib/getdate.y (__attribute__): Don't define if already defined.
71815         Problem reported by Larry Jones.
71816         * lib/utimens.c (__attribute__): Likewise.
71817
71818 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71819
71820         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71821         reported by Andreas Schwab.
71822
71823 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71824             Bruno Haible  <bruno@clisp.org>
71825
71826         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71827         check for the declaration of strnlen and a run test that exposes the
71828         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71829         rpl_strndup.
71830
71831 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71832             Bruno Haible  <bruno@clisp.org>
71833
71834         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71835
71836 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71837
71838         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71839         compile test, for Tru64 4.0D.
71840
71841 2006-05-28  Karl Berry  <karl@gnu.org>
71842
71843         * config/srclist.txt (printf-args.c): lose sync.
71844
71845 2006-05-26  Martin Lambers  <marlam@marlam.de>
71846
71847         * lib/getpass.c: Updates the test for the native W32 API, and adds
71848         missing includes, thus fixing compilation warnings.
71849
71850 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71851
71852         * lib/exclude.c (exclude_fnmatch): New function.
71853         (excluded_file_name): Call exclude_fnmatch.
71854         * lib/exclude.h (excluded_file_name): New prototype
71855
71856 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71857
71858         * lib/tempname.c (small_open, large_open): New macros.
71859         (__open, __open64) [!_LIBC]: Remove.
71860         (__gen_tempname): Use small_open and large_open instead of __open
71861         and __open64.  This fixes a portability bug on HP-UX 11.11i
71862         reported by Simon Wing-Tang in
71863         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71864
71865 2006-05-24  Bruno Haible  <bruno@clisp.org>
71866
71867         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71868         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71869         Reported by Thorsten Maerz <torte@netztorte.de> via
71870         Aaron Stone <aaron@serendipity.cx>.
71871
71872 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71873
71874         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71875         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71876         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71877         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71878         not really conditional on the cache.
71879         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71880
71881 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71882
71883         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71884         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71885         (my_usleep): Don't mishandle maximum value.
71886
71887 2006-05-19  Jim Meyering  <jim@meyering.net>
71888
71889         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71890
71891 2006-05-17  Bruno Haible  <bruno@clisp.org>
71892
71893         Cygwin portability.
71894         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71895
71896 2006-05-17  Bruno Haible  <bruno@clisp.org>
71897
71898         * lib/stdint_.h: Fix recognition of Cygwin.
71899
71900 2006-05-15  Bruno Haible  <bruno@clisp.org>
71901
71902         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71903         on libtool patch by Ralf Wildenhues.
71904
71905 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71906
71907         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71908         test for C99 conformance; (bool) 0.5 is an integer constant
71909         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71910         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71911
71912 2006-05-11  Simon Josefsson  <jas@extundo.com>
71913
71914         * m4/xvasprintf.m4: Fix obvious typo.
71915
71916 2006-05-11  Jim Meyering  <jim@meyering.net>
71917
71918         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71919         James Lemley.
71920
71921 2006-05-10  Simon Josefsson  <jas@extundo.com>
71922
71923         * lib/md4.c: Typo fix, update copyright years.
71924         (K1, K2): Don't use L because it turn computations into 64-bit on
71925         64-bit platforms.
71926
71927 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71928
71929         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71930         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71931         unwanted sign propagation, e.g., on hosts with 64-bit int.
71932         There still are some problems with reeelly weird theoretical hosts
71933         (e.g., 33-bit int) but it's not worth worrying about now.
71934         * lib/sha1.c (rol): Likewise.
71935         (K1, K2, K3, K4): Remove unnecessary L suffix.
71936
71937 2006-05-10  Bruno Haible  <bruno@clisp.org>
71938
71939         * lib/des.c: Cast to avoid warnings.
71940
71941 2006-05-09  Bruno Haible  <bruno@clisp.org>
71942
71943         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71944         (Depends-on): Depend also on xsize, stdarg.
71945         (configure.ac): Add gl_XVASPRINTF.
71946
71947 2006-05-09  Bruno Haible  <bruno@clisp.org>
71948
71949         * m4/xvasprintf.m4: New file.
71950
71951 2006-05-09  Bruno Haible  <bruno@clisp.org>
71952
71953         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71954         (EOVERFLOW): Define fallback value.
71955         (xstrcat): New function.
71956         (xvasprintf): Recognize the special case of a string concatenation.
71957
71958 2006-05-08  Eric Blake  <ebb9@byu.net>
71959
71960         * gnulib-tool (func_version): Base copyright year on CVS date.
71961         (func_emit_copyright_notice): New function.
71962         (func_emit_lib_Makefile_am): Use it.
71963         (func_emit_tests_Makefile_am): Likewise.
71964         (func_import): Likewise.
71965
71966 2006-05-08  Bruno Haible  <bruno@clisp.org>
71967
71968         * modules/stdarg: New file.
71969         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71970
71971 2006-05-08  Bruno Haible  <bruno@clisp.org>
71972
71973         * m4/stdarg.m4: New file, from GNU gettext.
71974
71975 2006-05-08  Bruno Haible  <bruno@clisp.org>
71976
71977         * config/srclist.txt (build-aux/config.rpath): different from latest
71978         release.
71979
71980 2006-05-08  Bruno Haible  <bruno@clisp.org>
71981
71982         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71983
71984 2006-05-05  Jim Meyering  <jim@meyering.net>
71985
71986         * m4/warning.m4: New file, derived from bison's file by the same name.
71987
71988 2006-05-03  Bruno Haible  <bruno@clisp.org>
71989
71990         * lib/stdint_.h: Shorter URL.
71991         * lib/inttypes.h: Likewise.
71992
71993 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71994
71995         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71996
71997 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71998
71999         * lib/verify.h: Document the internals better.  Most of this change
72000         was written by Bruno Haible.
72001
72002 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72003
72004         * doc/verify.texi: New file, partly based on a proposal by
72005         Bruno Haible.
72006
72007 2006-05-02  Bruno Haible  <bruno@clisp.org>
72008
72009         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72010         test from here...
72011         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72012
72013 2006-04-29  Bruno Haible  <bruno@clisp.org>
72014
72015         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72016         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72017
72018 2006-04-29  Bruno Haible  <bruno@clisp.org>
72019
72020         * gnulib-tool: Make --update option actually work.
72021
72022 2006-04-29  Bruno Haible  <bruno@clisp.org>
72023
72024         * doc/gcd.texi: New file.
72025         * doc/gnulib.texi: Include it.
72026
72027 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72028
72029         * lib/getdate.y (get_date): When adding relative date, start with the
72030         initial time, not with the result of the first mktime call.
72031
72032 2006-04-25  Bruno Haible  <bruno@clisp.org>
72033
72034         * gnulib-tool (func_import): Output the include directives in three
72035         blocks, sorted separately.
72036         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72037
72038 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72039
72040         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72041         to define main with arguments, for C++.  Reported by Eric Blake.
72042         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72043         Prefer 'int main ()' to 'int main (void)', for C++.
72044         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72045         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72046         for 'main', for C99 and C++.
72047
72048 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72049
72050         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72051         Don't assume that exit status -1 is valid.
72052         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72053         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72054         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72055         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72056         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72057         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72058         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72059         functions can be used without declaring them, or that you can
72060         exit with status -1.
72061         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72062
72063 2006-04-24  Karl Berry  <karl@gnu.org>
72064
72065         * config/srclist.txt (longdouble.m4): sync lost.
72066
72067 2006-04-24  Eric Blake  <ebb9@byu.net>
72068
72069         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72070
72071 2006-04-24  Bruno Haible  <bruno@clisp.org>
72072
72073         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72074         poll() implementation in AIX.
72075         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72076
72077 2006-04-24  Bruno Haible  <bruno@clisp.org>
72078
72079         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72080         assigned exactly once.
72081
72082 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72083             Bruno Haible  <bruno@clisp.org>
72084
72085         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72086         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72087         for AM_CPPFLAGS.
72088
72089 2006-04-23  Bruno Haible  <bruno@clisp.org>
72090
72091         * modules/copy-file: Depend on unistd.
72092         * modules/execute: Likewise.
72093         * modules/fatal-signal: Likewise.
72094         * modules/findprog: Likewise.
72095         * modules/mkdtemp : Likewise.
72096         * modules/pipe: Likewise.
72097         * modules/wait-process: Likewise.
72098
72099 2006-04-23  Bruno Haible  <bruno@clisp.org>
72100
72101         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72102         condition was already detected.
72103         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72104
72105 2006-04-23  Bruno Haible  <bruno@clisp.org>
72106
72107         * lib/copy-file.c: Include <unistd.h> unconditionally.
72108         * lib/execute.c: Likewise.
72109         * lib/fatal-signal.c: Likewise.
72110         * lib/findprog.c: Likewise.
72111         * lib/mkdtemp.c: Likewise.
72112         * lib/pipe.h: Likewise.
72113         * lib/pipe.c: Likewise.
72114         * lib/wait-process.h: Likewise.
72115
72116 2006-04-23  Bruno Haible  <bruno@clisp.org>
72117
72118         * gnulib-tool (func_usage): Fix --import description. Document
72119         --update.
72120         (func_import): Create temporary file in a temporary directory, if
72121         --dry-run is specified. Silence errors from 'grep' when there are no
72122         m4 files in $m4dir.
72123         (func_create_testdir): Silence errors from 'grep' when there are no
72124         m4 files in $m4dir.
72125         Reported by Karl Berry <karl@freefriends.org>.
72126
72127 2006-04-20  Bruno Haible  <bruno@clisp.org>
72128
72129         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72130         one argument, so that the code will be portable to Autoconf 2.60.
72131         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72132         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72133         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72134
72135 2006-04-19  Derek Price  <derek@ximbiot.com>
72136             Eric Blake  <ebb9@byu.net>
72137
72138         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72139         rather than "/full/path.h".  Update comment to match.  Shorten &
72140         generalize m4_translit call via AS_TR_CPP.
72141
72142 2006-04-19  Derek Price  <derek@ximbiot.com>
72143             Eric Blake  <ebb9@byu.net>
72144
72145         * lib/inttypes.h: Correct grammar in comment.
72146
72147 2006-04-18  Derek Price  <derek@ximbiot.com>
72148             Paul Eggert  <eggert@cs.ucla.edu>
72149
72150         * modules/inttypes: New file.
72151         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72152
72153 2006-04-18  Derek Price  <derek@ximbiot.com>
72154             Paul Eggert  <eggert@cs.ucla.edu>
72155
72156         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72157         New files.
72158
72159 2006-04-18  Derek Price  <derek@ximbiot.com>
72160             Paul Eggert  <eggert@cs.ucla.edu>
72161
72162         * lib/inttypes.h: New file.
72163         * lib/strtoimax.c: Assume <inttypes.h>.
72164
72165 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72166
72167         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72168         isn't mounted.  Problem reported by Kir Kolyshkin.
72169
72170 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72171
72172         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72173         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72174         Derek R. Price.
72175         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72176         implementation.
72177
72178 2006-04-12  Eric Blake  <ebb9@byu.net>
72179
72180         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72181         is now done automatically by the corresponding Autoconf macro.
72182
72183 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72184
72185         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72186         time_r.h.
72187
72188 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72189
72190         Merge regex changes from libc, removing some of our
72191         POSIX-conformance changes that were rejected and redoing them in a
72192         less-intrusive way.
72193
72194         * lib/regcomp.c (re_compile_internal, init_dfa):
72195         Length arg is now size_t, not Idx.  All uses changed.
72196         (peek_token): Forward decl now says internal_function.
72197         (__re_error_msgid, __re_error_msgid_idx):
72198         Now static rather than extern with attribute_hidden.
72199         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72200         For some reason libc prefers K&R style defns for external functions.
72201         (regerror) [!defined _LIBC]: Likewise.
72202         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72203         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72204         (build_range_exp, build_collating_symbol):
72205         Use K&R-style defn.
72206         (re_compile_fastmap): Use '\0' to memset, not 0.
72207         (utf8_sb_map): Make the calculations more obvious.
72208         (init_dfa, parse_bracket_exp, build_charclass_op):
72209         Call calloc and cast result, as glibc does.
72210         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72211         (build_range_exp, build_collating_symbol):
72212         Now internal functions.
72213
72214         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72215
72216         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72217         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72218         Don't depend on VMS; depend on __VMS instead, for POSIX
72219         namespace cleanness.
72220         (regoff_t): Define to ssize_t, not long int.
72221
72222         Remove the REG_ macros named below.  Instead, make the old names
72223         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72224         __USE_GNU_REGEX.
72225         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72226         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72227         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72228         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72229         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72230         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72231         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72232         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72233         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72234         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72235         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72236         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72237         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72238         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72239         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72240         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72241         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72242         (REG_NREGS):
72243         Remove.  All uses replaced by the old RE_* names.
72244         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72245         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72246         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72247         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72248         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72249         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72250         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72251         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72252         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72253         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72254         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72255         Don't bother having these macros be independent of each others'
72256         values, since they no longer exist in the POSIX name space.
72257
72258         Rename the following member names back to their old names,
72259         unless !__USE_GNU_REGEX.  All uses changed back.
72260         (buffer): Renamed from re_buffer.
72261         (allocated): Renamed from re_allocated.
72262         (used): Renamed from re_used.
72263         (syntax): Renamed from re_syntax.
72264         (fastmap): Renamed from re_fastmap.
72265         (translate): Renamed from re_translate.
72266         (can_be_null): Renamed from re_can_be_null.
72267         (regs_allocated): Renamed from re_regs_allocated.
72268         (fastmap_accurate): Renamed from re_fastmap_accurate.
72269         (no_sub): Renamed from re_no_sub.
72270         (not_bol): Renamed from re_not_bol.
72271         (not_eol): Renamed from re_not_eol.
72272         (newline_anchor): Renamed from re_newline_anchor.
72273         (num_regs): Renamed from rm_num_regs.
72274         (start): Renamed from rm_start.
72275         (end): Renamed from rm_end.
72276
72277         (free_state): Move up a bit.
72278
72279         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72280         #define to be empty.
72281         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72282         when that is what is intended.
72283         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72284         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72285         (MAX): New macro.
72286         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72287         All uses changed back to re_malloc, etc.  It's now the caller's
72288         responsibility to check for overflow; all callers changed.
72289         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72290         (re_x2nrealloc): Remove.
72291         (free_state): Remove decl.
72292
72293         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72294         (re_set_registers, re_exec):
72295         Use K&R-style defn.
72296
72297         2006-01-31  Roland McGrath  <roland@redhat.com>
72298
72299         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72300         Reported by Mike Frysinger <vapier@gentoo.org>.
72301
72302         2006-01-15  Andreas Jaeger  <aj@suse.de>
72303
72304         [BZ #1950]
72305         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72306         build_wcs_upper_buffer change.
72307         (build_wcs_upper_buffer): Change return type.
72308
72309         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72310
72311         * lib/regex_internal.h: Include <stdint.h> if available.
72312
72313         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72314
72315         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72316
72317         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72318
72319         * lib/regcomp.c: Adjust for changed secondary hash function.
72320
72321         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72322
72323         * lib/regex.h: Pretty printing.
72324         Clean up namespace a bit.
72325
72326         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72327
72328         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72329         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72330
72331         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72332                     Ulrich Drepper  <drepper@redhat.com>
72333
72334         [BZ #1302]
72335         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72336         changed.
72337         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72338
72339         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72340
72341         [BZ #281]
72342         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72343         * lib/regcomp.c: Remove unnecessary uses of
72344         unsigned RE_TRANSLATE_TYPE.
72345         * lib/regex_internal.h: Likewise.
72346         * lib/regex_internal.c: Likewise.
72347         * lib/regexec.c: Likewise.
72348         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72349
72350         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72351
72352         * lib/regexec.c (find_recover_state): Remove unnecessary
72353         initialization.
72354         (transit_state_bkref): Make DFA a const pointer.
72355         (get_subexp): Likewise.
72356         (check_arrival): Likewise.
72357         (update_cur_sifted_state): Likewise.
72358         (re_search_internal): Likewise.
72359         (prune_impossible_nodes): Likewise.
72360         (acquire_init_state_context): Likewise.
72361         (proceed_next_node): Likewise.
72362         (set_regs): Likewise.
72363         (free_fail_stack_return): Likewise.
72364         (check_arrival_expand_ecl): Mark DFA parameter as const.
72365         (check_arrival_expand_ecl_sub): Likewise.
72366         (check_subexp_limits): Likewise.
72367         (sub_epsilon_src_nodes):  Likewise.
72368         (add_epsilon_src_nodes):  Likewise.
72369         (merge_state_array): Likewise.
72370         (update_regs): Likewise.
72371         (build_trtable): Likewise.
72372         (sift_states_backward): Mark MCTX parameter as const.
72373         (build_sifted_states): Likewise.
72374         (update_cur_sifted_state): Likewise.
72375         (sift_states_mkref): Likewise.
72376         (check_arrival_expand_ecl): Mark eclosure as const.
72377         (check_dst_limits_calc_pos_1): Likewise.
72378         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72379         pointer.
72380
72381         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72382
72383         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72384         (transit_state_sb): Likewise.
72385         (transit_state_mb): Likewise.
72386         (sift_states_iter_mb): Likewise.
72387         (check_arrival_add_next_nodes): Likewise.
72388         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72389         [_LIBC] (re_search_2_stub): Use mempcpy.
72390
72391         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72392         mbrtowc for very simple UTF-8 case.
72393
72394         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72395         a pointer-to-const.
72396         (re_acquire_state_context): Likewise.
72397         * lib/regex_internal.h: Adjust prototypes.
72398
72399         * lib/regex.c: Prevent using C++ compilers.
72400
72401         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72402         (re_acquire_state_context): Likewise.
72403
72404 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72405
72406         * modules/regex (Depends-on): Add ssize_t.
72407
72408 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72409
72410         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72411         translation table.
72412
72413 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72414
72415         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72416
72417 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72418             Bruno Haible  <bruno@clisp.org>
72419
72420         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72421         <sys/types.h> and <inttypes.h>.
72422
72423 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72424
72425         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72426         `__error_t_defined', so argp.h will not typedef the former.
72427
72428 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72429
72430         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72431         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72432         glibc names.  Even if glibc is changed to conform to POSIX, the
72433         traditional names will be available anyway, since regex depends on
72434         the extensions module.  Also, fix a longstanding typo in the
72435         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72436         reported by Emanuele Giaquinta.  Also, change sense of cached
72437         variable, so that the message makes sense.
72438
72439 2006-03-24  Simon Josefsson  <jas@extundo.com>
72440
72441         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72442         including some doc fixes.
72443         (base64_encode_alloc): Fix +1 bug on allocation failures.
72444
72445 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72446
72447         * lib/base64.c (base64_encode): Do not read past end of array with
72448         unsanitized input on systems with CHAR_BIT > 8.
72449
72450 2006-03-24  Eric Blake  <ebb9@byu.net>
72451
72452         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72453
72454 2006-03-22  Karl Berry  <karl@gnu.org>
72455
72456         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72457         * config/srclistvars.sh (COREUTILS): new var.
72458
72459 2006-03-17  Jim Meyering  <jim@meyering.net>
72460
72461         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72462         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72463
72464 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72465
72466         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72467         no longer needs it.  Instead, check that regoff_t is as least
72468         as wide as ptrdiff_t.
72469
72470         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72471         so that our regex.h stays compatible with the installed regex.
72472         This is helpful for installers who configure --without-included-regex.
72473         Problem reported by Emanuele Giaquinta.
72474
72475 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72476
72477         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72478         Typedef to long int, not to off_, as POSIX will likely change
72479         in that direction.
72480
72481 2006-03-15  Eric Blake  <ebb9@byu.net>
72482
72483         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72484
72485 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72486
72487         * lib/argp-help.c (validate_uparams): Fix typo
72488         * lib/argp-parse.c (argp_default_options): Consistently begin help
72489         messages with a lowercase letter.
72490
72491 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72492
72493         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72494         overrun buffers and shouldn't be used (much as gets shouldn't be
72495         used).
72496         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72497
72498 2006-03-08  Simon Josefsson  <jas@extundo.com>
72499
72500         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72501         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72502
72503 2006-03-08  Simon Josefsson  <jas@extundo.com>
72504
72505         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72506         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72507
72508 2006-03-08  Simon Josefsson  <jas@extundo.com>
72509
72510         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72511         signal that configure disabled the device.
72512
72513 2006-03-08  Simon Josefsson  <jas@extundo.com>
72514
72515         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72516         languages.
72517
72518 2006-03-07  Simon Josefsson  <jas@extundo.com>
72519
72520         * modules/getopt (Depends-on): Add unistd.
72521
72522         * modules/unistd: New file.
72523
72524 2006-03-07  Simon Josefsson  <jas@extundo.com>
72525
72526         * modules/gc-random: New file.
72527
72528 2006-03-07  Simon Josefsson  <jas@extundo.com>
72529
72530         * m4/unistd_h.m4: New file.
72531
72532 2006-03-07  Simon Josefsson  <jas@extundo.com>
72533
72534         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72535         test to be side-effect free by storing the result in the cache
72536         variable gl_cv_lib_readline, and moving the assignment of
72537         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72538         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72539
72540 2006-03-07  Simon Josefsson  <jas@extundo.com>
72541
72542         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72543         error on missing devices (the functions will return an error).
72544
72545         * m4/gc.m4: Move random stuff to gc-random.m4
72546
72547 2006-03-07  Simon Josefsson  <jas@extundo.com>
72548
72549         * lib/unistd_.h: New file.
72550
72551 2006-03-07  Simon Josefsson  <jas@extundo.com>
72552
72553         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72554
72555 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72556
72557         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72558         Problem reported by Juan Manuel Guerrero.
72559
72560 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72561
72562         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72563         the unistd module.
72564         * lib/getlogin_r.c: Likewise.
72565         * lib/getlogin_r.h: Likewise.
72566         * lib/glob.c: Likewise.
72567         * lib/pagealign_alloc.c: Likewise.
72568         * lib/unistd_.h: Remove; no longer needed.
72569
72570 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72571
72572         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72573         Add unistd.
72574         * modules/c-stack (Depends-on): Add unistd.
72575         * modules/getlogin_r: Likewise.
72576         * modules/glob: Likewise.
72577         * modules/pagealign_alloc: Likewise.
72578         * modules/unistd (Files): Remove lib/unistd_.h.
72579         (EXTRA_DIST): Remove.
72580         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72581         need unistd_.h.
72582         (MOSTLYCLEANFILES): Remove unistd.h-t.
72583
72584 2006-03-03  Simon Josefsson  <jas@extundo.com>
72585
72586         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72587
72588 2006-03-03  Simon Josefsson  <jas@extundo.com>
72589
72590         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72591         libidn and bison.
72592
72593 2006-03-03  Simon Josefsson  <jas@extundo.com>
72594
72595         * build-aux/maint.mk: Add indent target.
72596
72597 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72598
72599         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72600         our replacement poll.h in any case, to avoid a differing
72601         declaration from a system header.  Seen on AIX.
72602
72603 2006-03-01  Simon Josefsson  <jas@extundo.com>
72604
72605         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72606         <kasal@ucw.cz>.
72607
72608 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72609
72610         * modules/gettime (Depends-on): Add extensions module.
72611         * modules/nanosleep (Depends-on): Likewise.
72612         * modules/settime (Depends-on): Likewise.
72613
72614 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72615
72616         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72617         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72618         pedantically.
72619         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72620         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72621
72622         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72623         not "==".  Reported by Ralf Wildenhues.
72624
72625 2006-03-01  Karl Berry  <karl@gnu.org>
72626
72627         * doc/Copyright/request-*: new files, synced from gnuorg.
72628
72629 2006-03-01  Karl Berry  <karl@gnu.org>
72630
72631         * config/srclist.txt (Copyright/*): new entries.
72632
72633 2006-02-28  Simon Josefsson  <jas@extundo.com>
72634
72635         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72636
72637 2006-02-27  Simon Josefsson  <jas@extundo.com>
72638
72639         * lib/base64.h: Indent #define's.  From Jim Meyering
72640         <jim@meyering.net>.
72641
72642 2006-02-27  Jim Meyering  <jim@meyering.net>
72643
72644         Revert the change of 2006-02-24, so these files can continue
72645         to be sync'd from gettext.
72646         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72647         of `config.h'.
72648
72649 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72650
72651         * modules/intprops: New file.
72652         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72653         Add intprops.
72654         * modules/getloadavg (Files): Remove lib/intprops.h.
72655         (Depends-on): Add intprops.
72656         * modules/human: Likewise.
72657         * modules/inttostr: Likewise.
72658         * modules/openat: Likewise.
72659         * modules/sig2str: Likewise.
72660         * modules/userspec: Likewise.
72661         * modules/utimecmp: Likewise.
72662         * modules/xnanosleep: Likewise.
72663         * modules/xstrtol: Likewise.
72664
72665 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72666
72667         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72668         * modules/lock-tests (TESTS): Use $(EXEEXT).
72669         * modules/tls-tests: Likewise.
72670         * modules/argp-tests: Likewise.
72671         (check_PROGRAMS): New var, replacing...
72672         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72673
72674 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72675
72676         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72677         `config.h'.
72678
72679 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72680
72681         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72682
72683 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72684
72685         Sync from coreutils.
72686         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72687         gl_CHDIR_SAFER.
72688
72689 2006-02-22  Jim Meyering  <jim@meyering.net>
72690
72691         Sync from coreutils.
72692         * m4/chdir-safer.m4: New file.
72693
72694 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72695
72696         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72697         AT_FDCWD exceeds INT_MAX.
72698         * lib/openat.h (AT_FDCWD): Likewise.
72699
72700 2006-02-17  Eric Blake  <address@hidden>
72701
72702         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72703
72704 2006-02-16  Simon Josefsson  <jas@extundo.com>
72705
72706         * modules/getaddrinfo (Depends-on): Add sys_socket.
72707
72708 2006-02-15  Simon Josefsson  <jas@extundo.com>
72709
72710         * build-aux/maint.mk: Add dsyntax-check rule.
72711
72712 2006-02-15  Eric Blake  <ebb9@byu.net>
72713
72714         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72715         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72716         'present but cannot compile' warnings on cygwin.
72717         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72718         use ws2tcpip.h if sys/socket.h works.
72719         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72720         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72721
72722 2006-02-14  Simon Josefsson  <jas@extundo.com>
72723
72724         * modules/maintainer-makefile (Files): Rename.
72725
72726         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72727         and (the local) Makefile.cfg to maint-cfg.mk.
72728
72729         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72730         to the latter.
72731
72732         * modules/maintainer-makefile: New module.
72733
72734         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72735         severaly stripped to make it possible to build it up from scratch
72736         with reliable tests.
72737
72738         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72739         fixes to permit overriding the default actions when configure and
72740         makefile are not available.
72741
72742 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72743
72744         Sync from coreutils.
72745         * modules/lstat (Depends-on): Don't depend on xalloc.
72746         (License): Change from GPL to LGPL, since this is now simply a
72747         replacement for a libc function.
72748
72749 2006-02-14  Jim Meyering  <jim@meyering.net>
72750
72751         Sync from coreutils.
72752
72753         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72754         failure on deficient systems, and simplify gnulib lgpl dependencies.
72755         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72756         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72757
72758         * lib/xalloc-die.c: Remove unused definition of N_.
72759
72760 2006-02-14  Jim Meyering  <jim@meyering.net>
72761
72762         Sync from coreutils.
72763         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72764         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72765         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72766         double-quote uses of that variable, to accommodate the rare case in
72767         which getmntent is available in none of the libraries checked.  This
72768         happens at least on FreeBSD 5.0.
72769
72770 2006-02-13  Simon Josefsson  <jas@extundo.com>
72771
72772         * gnulib-tool (Usage): Fix --import, from
72773         karl@freefriends.org (Karl Berry).
72774
72775 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72776
72777         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72778
72779 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72780
72781         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72782         "autoupdate" on 2005-12-12.
72783
72784 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72785
72786         * modules/closeout (Depends-on): Remove atexit.
72787
72788 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72789
72790         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72791         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72792
72793 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72794
72795         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72796         __EXTENSIONS__ if this causes compilation to fail.  Problem
72797         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72798         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72799
72800 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72801
72802         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72803         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72804         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72805         All uses changed.
72806
72807 2006-01-26  Simon Josefsson  <jas@extundo.com>
72808
72809         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72810         prototype is visible on mingw32.
72811
72812         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72813         for mingw32.
72814
72815         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72816         mingw32).
72817
72818 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72819
72820         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72821         attempt to open for write; this always fails, at least on POSIX
72822         hosts.  This reinstates the 2006-01-09 change, which was
72823         inadvertently removed.
72824
72825 2006-01-26  Bruno Haible  <bruno@clisp.org>
72826
72827         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72828         Reported by Paul Eggert.
72829
72830 2006-01-26  Bruno Haible  <bruno@clisp.org>
72831             Paul Eggert  <eggert@cs.ucla.edu>
72832
72833         * lib/stdbool_.h (_Bool)
72834         [(! (defined __cplusplus || defined __BEOS__)
72835           && !defined __GNUC__
72836           && !(defined __HP_cc || defined __xlc__
72837                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72838                || defined __sgi))]:
72839         #define to signed char in these cases too; this simplifies
72840         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72841         etc., separately) and makes it more conservative.
72842
72843 2006-01-25  Simon Josefsson  <jas@extundo.com>
72844
72845         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72846         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72847         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72848
72849 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72850
72851         * lib/argp-namefrob.h: Bugfix. Remove stray #
72852
72853 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72854
72855         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72856         so that we test the test.
72857         Check for yet another HP-UX cc bug involving *bool |= bool.
72858
72859 2006-01-25  Karl Berry  <karl@gnu.org>
72860
72861         * config/srclist.txt (vasnprintf.c): sync lost.
72862
72863 2006-01-25  Jim Meyering  <jim@meyering.net>
72864
72865         Sync from the stable (b5) branch of coreutils:
72866
72867         * lib/fts.c (fts_children): Don't let close() clobber errno from
72868         failed fchdir().
72869
72870         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72871         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72872         a dangling symlink.  That can also happen at least for ELOOP.
72873         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72874         FYI, this bug predates the inclusion of fts.c in coreutils.
72875
72876         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72877         in their own block, so pre-c99 compilers don't object.
72878
72879         Avoid the double-free (first in fts_read, second in fts_close) that
72880         would occur when an `active' directory is made inaccessible (e.g.,
72881         via chmod a-x) during a traversal.
72882         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72883         before returning.  Reproduce this failure by
72884         mkdir -p a/b; cd a; chmod a-x . b
72885         Reported by Stavros Passas.
72886
72887 2006-01-25  Jim Meyering  <jim@meyering.net>
72888
72889         * lib/fileblocks.c: Remove more useless parentheses.
72890         * lib/readutmp.h: Likewise.
72891
72892 2006-01-25  Bruno Haible  <bruno@clisp.org>
72893
72894         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72895         warnings.
72896         Reported by Paul Eggert.
72897
72898 2006-01-25  Bruno Haible  <bruno@clisp.org>
72899
72900         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72901         rid of a trap command. For Solaris sh.
72902         Reported by Mark D. Baushke <mdb@gnu.org>.
72903
72904 2006-01-24  Simon Josefsson  <jas@extundo.com>
72905
72906         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72907         Bruno.
72908
72909 2006-01-24  Karl Berry  <karl@gnu.org>
72910
72911         * config/srclist.txt (argp-namefrob.h): sync lost.
72912
72913 2006-01-24  Jim Meyering  <jim@meyering.net>
72914
72915         * modules/openat (Files): Add lib/intprops.h.
72916         From Mark D. Baushke.
72917
72918 2006-01-24  Jim Meyering  <jim@meyering.net>
72919
72920         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72921         Reported by Mark D. Baushke.
72922
72923 2006-01-24  Jim Meyering  <jim@meyering.net>
72924
72925         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72926
72927 2006-01-24  Bruno Haible  <bruno@clisp.org>
72928
72929         * modules/strnlen (Maintainer): Change from glibc to all.
72930
72931 2006-01-24  Bruno Haible  <bruno@clisp.org>
72932
72933         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72934         Patch by Paul Eggert.
72935
72936 2006-01-24  Bruno Haible  <bruno@clisp.org>
72937
72938         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72939         already has it.
72940         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72941         2005-11-26.
72942
72943         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72944         'signed char' to avoid problems with the built-in _Bool type.
72945         Reported by Paul Eggert on 2005-11-26.
72946
72947 2006-01-24  Bruno Haible  <bruno@clisp.org>
72948
72949         * gnulib-tool (func_import): Avoid constructing complicated sed
72950         expressions inside backquote.
72951         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72952
72953 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72954
72955         These changes imported from libc.
72956         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72957         test and two separate function calls.
72958         * lib/strndup.c (__strndup): Add libc_hidden_def.
72959
72960 2006-01-23  Simon Josefsson  <jas@extundo.com>
72961
72962         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72963         Remove the test_*_SOURCES variable: automake infers it by default.
72964         * modules/tls-tests: Likewise.
72965
72966 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72967
72968         Work around porting bugs reported by Dieter in
72969         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72970         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72971         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72972         Include "getopt.h" first, to check interface.
72973         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72974         !HAVE_DECL_GETENV.
72975         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72976         (__strndup): Revert to K&R-style function dfns, the glibc style.
72977         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72978         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72979         Include strnlen.h first, to get prototype properly.
72980         (strnlen): Renamed from __strnlen.
72981         Remove weak alias.
72982
72983 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72984
72985         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72986
72987 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72988
72989         * config/srclist.txt: Adjust to reflect glibc reorganization.
72990         This affects only comments.
72991
72992 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72993
72994          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72995          Reported by Bruce Korb <bkorb@gnu.org>.
72996
72997 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72998
72999         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73000         to pacify gcc -Wswitch-default.
73001
73002 2006-01-22  Bruno Haible  <bruno@clisp.org>
73003
73004         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73005         temporary buffer for sprintf, take into account the precision also
73006         for 'd', 'i', 'u', 'o', 'x', 'X'.
73007
73008 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73009
73010         * modules/argp-tests: New module
73011         * tests/test-argp.c: New file
73012         * tests/test-argp-2.sh: New file
73013
73014 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73015
73016         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73017         (__argp_base_name): Removed
73018         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73019         typo.
73020         (__argp_base_name): Provide macro definition or extern declaration
73021         depending on the configuration
73022
73023 2006-01-20  Simon Josefsson  <jas@extundo.com>
73024
73025         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73026
73027 2006-01-20  Simon Josefsson  <jas@extundo.com>
73028
73029         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73030
73031 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73032
73033         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73034         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73035         Suggested by Bruno Haible.
73036
73037 2006-01-20  Karl Berry  <karl@gnu.org>
73038
73039         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73040         until changes propagate, I guess.
73041
73042 2006-01-19  Simon Josefsson  <jas@extundo.com>
73043
73044         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73045
73046 2006-01-19  Simon Josefsson  <jas@extundo.com>
73047
73048         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73049
73050 2006-01-19  Simon Josefsson  <jas@extundo.com>
73051
73052         * gnulib-tool: Set check_PROGRAMS.
73053
73054         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73055         modules/des-tests, modules/gc-arcfour-tests,
73056         modules/gc-arctwo-tests, modules/gc-des-tests,
73057         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73058         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73059         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73060         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73061         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73062         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73063         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73064         test_*_SOURCES.
73065
73066 2006-01-18  Simon Josefsson  <jas@extundo.com>
73067
73068         * modules/socklen (Depends-on): Depend on sys_socket.
73069
73070 2006-01-18  Simon Josefsson  <jas@extundo.com>
73071
73072         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73073         modules/des-tests, modules/gc-arcfour-tests,
73074         modules/gc-arctwo-tests, modules/gc-des-tests,
73075         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73076         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73077         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73078         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73079         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73080         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73081         $(EXEEXT) to automake TESTS variable, for mingw32.
73082
73083 2006-01-17  Simon Josefsson  <jas@extundo.com>
73084
73085         * modules/socklen (Include): Need sys/socket.h.
73086
73087 2006-01-17  Bruno Haible  <bruno@clisp.org>
73088
73089         * modules/ssize_t (Include): Add <sys/types.h>.
73090
73091 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73092
73093         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73094         it's not portable and it doesn't work with cross-compiles.
73095         Problem reported by Bruno Haible.  Fix missing-$ typo in
73096         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73097         -zignore from being used with Sun's C compiler.
73098
73099 2006-01-12  Simon Josefsson  <jas@extundo.com>
73100
73101         * lib/base64.c: Fix warning, reported by Bruno Haible
73102         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73103
73104 2006-01-12  Bruno Haible  <bruno@clisp.org>
73105
73106         * modules/ldd: New file.
73107         * build-aux/ldd.sh.in: New file.
73108         * MODULES.html.sh (Support for building libraries and executables): Add
73109         ldd.
73110
73111 2006-01-12  Bruno Haible  <bruno@clisp.org>
73112
73113         * m4/ldd.m4: New file.
73114
73115 2006-01-12  Bruno Haible  <bruno@clisp.org>
73116
73117         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73118         endless loop while replacing $auxdir with build-aux.
73119
73120 2006-01-11  Simon Josefsson  <jas@extundo.com>
73121
73122         * lib/stdint_.h (SIZE_MAX): Add missing (.
73123
73124 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73125
73126         Sync from coreutils.
73127         * lib/md5.c: Fix commentary typos.
73128         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73129         * lib/md5.h (__attribute__): Remove; unused.
73130         * lib/sha1.c: Fix commentary to match md5 better.
73131         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73132         so that we don't need to worry about alignment.  All uses changed.
73133         This merges the 2005-10-28 md5 change into sha1.
73134
73135 2006-01-11  Jim Meyering  <jim@meyering.net>
73136
73137         Sync from coreutils.
73138         * lib/md5.c (OP): Fix spacing.
73139
73140 2006-01-11  Bruno Haible  <bruno@clisp.org>
73141
73142         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73143         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73144         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73145
73146 2006-01-11  Bruno Haible  <bruno@clisp.org>
73147
73148         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73149         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73150         the "early" section as well.
73151
73152 2006-01-11  Bruno Haible  <bruno@clisp.org>
73153
73154         Avoid "ar: no archive members specified" error on MacOS X.
73155         * gnulib-tool (func_modules_add_dummy): New function.
73156         (func_import, func_create_testdir): Invoke it.
73157
73158 2006-01-11  Bruno Haible  <bruno@clisp.org>
73159
73160         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73161         with $auxdir in AC_CONFIG_FILES statements.
73162
73163 2006-01-11  Bruno Haible  <bruno@clisp.org>
73164
73165         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73166         Initialize also noinst_HEADERS to empty.
73167
73168 2006-01-11  Bruno Haible  <bruno@clisp.org>
73169
73170         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73171         variables.
73172         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73173         autoreconf.
73174
73175 2006-01-11  Bruno Haible  <bruno@clisp.org>
73176
73177         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73178         overridable by the user.
73179         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73180
73181 2006-01-10  Simon Josefsson  <jas@extundo.com>
73182
73183         * modules/sys_socket: New file.
73184
73185 2006-01-10  Simon Josefsson  <jas@extundo.com>
73186
73187         * m4/sys_socket_h.m4: New file.
73188
73189 2006-01-10  Simon Josefsson  <jas@extundo.com>
73190
73191         * lib/socket_.h: New file.
73192
73193 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73194
73195         * modules/readutmp (Maintainer): Add myself.
73196
73197 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73198
73199         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73200         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73201         People who are still concerned with buggy memcmp implementations
73202         can invoke gl_FUNC_MEMCMP themselves.
73203
73204 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73205
73206         * lib/regex_internal.h (BITSET_WORD_BITS):
73207         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73208         preprocessor mishandles large unsigned values as if they were signed.
73209         Problem reported by Claudio Fontana in
73210         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73211
73212 2006-01-10  Jim Meyering  <jim@meyering.net>
73213
73214         Avoid the double-free (first in fts_read, second in fts_close) that
73215         would occur when an `active' directory is made inaccessible (e.g.,
73216         via chmod a-x) during a traversal.
73217         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73218         before returning.  Reproduce this failure by
73219         mkdir -p a/b; cd a; chmod a-x . b
73220         Reported by Stavros Passas.
73221
73222         Sync from coreutils.
73223         * lib/sha1.c: Tweak grammar in a comment.
73224
73225 2006-01-10  Jim Meyering  <jim@meyering.net>
73226
73227         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73228         Patch by Joerg Sonnenberger.
73229
73230 2006-01-10  Bruno Haible  <bruno@clisp.org>
73231
73232         * modules/readutmp: Depend on module free.
73233         * modules/strtok_r: Depend on module restrict.
73234
73235 2006-01-10  Bruno Haible  <bruno@clisp.org>
73236
73237         * modules/gettext (configure.ac): Add an invocation of
73238         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73239
73240 2006-01-10  Bruno Haible  <bruno@clisp.org>
73241
73242         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73243         Reported by Werner Lemberg <wl@gnu.org>.
73244
73245 2006-01-10  Bruno Haible  <bruno@clisp.org>
73246
73247         * lib/localcharset.c: Update from GNU gettext.
73248
73249 2006-01-10  Bruno Haible  <bruno@clisp.org>
73250
73251         * lib/argp.h (__const): Remove macro. Use const instead.
73252         * lib/argp-fmtstream.h (__const): Likewise.
73253         * lib/glob_.h (__const): Remove macro.
73254         * lib/glob-libc.h: Use const instead of __const.
73255
73256 2006-01-10  Bruno Haible  <bruno@clisp.org>
73257
73258         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73259         variable.
73260         Needed to avoid an automake error regarding the 'gettext' module.
73261
73262 2006-01-09  Simon Josefsson  <jas@extundo.com>
73263
73264         * modules/inet_ntop (Depends-on): Add restrict.
73265
73266 2006-01-09  Simon Josefsson  <jas@extundo.com>
73267
73268         * modules/gc-rijndael-tests (License): Put under LGPL.
73269
73270         * modules/gc-des-tests (License): Likewise.
73271
73272         * modules/gc-arcfour-tests (License): Likewise.
73273
73274         * modules/gc-arctwo-tests (License): Likewise.
73275
73276         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73277
73278         * modules/gc-hmac-sha1-tests (Files): Likewise.
73279
73280         * modules/gc-hmac-md5-tests (License): Likewise.
73281
73282         * modules/gc-sha1-tests (License): Likewise.
73283
73284         * modules/gc-md5-tests (License): Likewise.
73285
73286         * modules/gc-md4-tests (License): Likewise.
73287
73288         * modules/gc-md2-tests (License): Likewise.
73289
73290         * modules/gc-tests (License): Likewise.
73291
73292         * modules/des-tests (License): Likewise.
73293
73294         * modules/md4-tests (License): Likewise.
73295
73296         * modules/md2-tests (License): Likewise.
73297
73298 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73299
73300         Sync from coreutils:
73301
73302         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73303         * modules/lib-ignore: New file.
73304         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73305         chdir-safer.m4, lchmod.m4.
73306         * modules/openat: Add mkdirat.c, openat-priv.h.
73307
73308 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73309
73310         Sync from coreutils.
73311         * m4/lib-ignore.m4: New file.
73312         * m4/lchmod.m4: New file.
73313
73314 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73315
73316         Sync from coreutils.
73317         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73318         for write access: POSIX says that must fail.
73319         * lib/fts.c (diropen): Likewise.
73320         * lib/save-cwd.c (save_cwd): Likewise.
73321         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73322         well, for minor improvements on hosts that lack O_DIRECTORY.
73323         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73324         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73325         Fall back on chown if open failed with EACCES.
73326
73327         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73328         Report an error at compile-time if only a 1-second nominal clock
73329         resolution is found.
73330
73331         * lib/lchmod.h: New file.
73332         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73333         (make_dir_parents): Use lchown rather than chown, and
73334         lchmod rather than chmod.
73335
73336         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73337         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73338         "proc" reported by n0dalus.
73339
73340         * lib/mountlist.c: Include <limits.h>.
73341         (dev_from_mount_options)
73342         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73343         New function.  It no longer assumes "dev=" has the System V meaning
73344         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73345         (read_file_system_list)
73346         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73347         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73348         dev= in that case.
73349
73350         * lib/posixtm.h (PDS_PRE_2000): New macro.
73351         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73352         allow_century.  All usages changed.  Reject dates outside the range
73353         1969-1999 if PDS_PRE_2000 is used.
73354
73355 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73356
73357         Sync from coreutils.
73358         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73359         (Time of day items): Mention the possibility of leap seconds.
73360         Problem reported by Dr. David Alan Gilbert.
73361
73362 2006-01-09  Jim Meyering  <jim@meyering.net>
73363
73364         Sync from coreutils.
73365
73366         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73367
73368         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73369
73370         * lib/modechange.c (mode_compile): Reject an invalid mode string
73371         that starts with an octal digit.  From Andreas Gruenbacher.
73372
73373         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73374         and dup to open_safer and dup_safer, respectively.
73375         (openat_permissive): Fix typo in comment.
73376
73377         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73378         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73379         (_): Remove; no longer needed.
73380         (openat): Renamed from rpl_openat; no need for rpl_openat
73381         since openat.h renames openat for us.
73382         Replace most of the body with a call to openat_permissive,
73383         to avoid duplicate code.
73384         Port to (probably hypothetical) environments were mode_t is
73385         wider than int.
73386         (openat_permissive): Require mode arg, so that we can check
73387         types better.  Put it just after flags.  Change cwd failure
73388         indicator from pointer-to-bool to pointer-to-errno-value.
73389         All callers changed.
73390         Invoke openat_save_fail and/or openat_restore_fail if
73391         cwd_errno is null, so that openat can call us.
73392         (openat_permissive, fdopendir, fstatat, unlinkat):
73393         Simplify errno handling to avoid some duplicate code,
73394         as it's OK to set errno on success.
73395         * lib/openat.h: Revamp code so that function macros depend on
73396         __OPENAT_PREFIX only, not also on AT_FDCWD.
73397         (openat_ro): Remove.  Caller changed to use openat_permissive.
73398         (openat_permissive): Now a macro, if not a function.
73399         (openat_restore_fail, openat_save_fail): Now always functions,
73400         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73401
73402         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73403         and openat.c.
73404         * lib/mkdirat.c: Include openat-priv.h.
73405         Remove definitions of macros defined therein.
73406         * lib/openat.c: Likewise.
73407
73408         * lib/mkdirat.c (mkdirat): New file and function.
73409         * lib/openat.h (mkdirat): Declare.
73410
73411         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73412
73413         * lib/openat.h (openat_permissive): Declare.
73414         (openat_ro): Define.
73415
73416         * lib/openat.c (EXPECTED_ERRNO): New macro.
73417         (openat_permissive): New function -- used in remove.c rewrite.
73418         (all functions): Set errno just before returning, only if there
73419         was an actual failure.
73420         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73421
73422         Emulate openat-family functions using Linux's procfs, if possible.
73423         Idea and some code based on Ulrich Drepper's glibc changes.
73424
73425         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73426         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73427         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73428         before falling back on save_cwd and restore_cwd.
73429         (fdopendir, fstatat, unlinkat): Likewise.
73430
73431         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73432         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73433
73434         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73435         as second argument to va_arg.  Otherwise, some versions of gcc
73436         warn that `if this code is reached, the program will abort'.
73437
73438 2006-01-09  Jim Meyering  <jim@meyering.net>
73439
73440         Sync from coreutils.
73441         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73442         Require openat-priv.h.
73443
73444 2006-01-09  Bruno Haible  <bruno@clisp.org>
73445
73446         * modules/strnlen (Include): Use strnlen.h.
73447
73448 2006-01-09  Bruno Haible  <bruno@clisp.org>
73449
73450         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73451
73452 2006-01-09  Bruno Haible  <bruno@clisp.org>
73453
73454         * lib/sysexit_.h (EX_OK): New macro.
73455         Suggested by Martin Lambers <marlam@marlam.de>.
73456
73457 2006-01-09  Bruno Haible  <bruno@clisp.org>
73458
73459         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73460         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73461
73462 2006-01-09  Bruno Haible  <bruno@clisp.org>
73463
73464         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73465         numbers.
73466
73467 2006-01-09  Bruno Haible  <bruno@clisp.org>
73468
73469         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73470         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73471         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73472         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73473
73474 2006-01-09  Bruno Haible  <bruno@clisp.org>
73475
73476         * build-aux/javacomp.sh.in: New file, moved from lib/.
73477         * modules/javacomp-script (Files): Update.
73478         (configure.ac): Add AC_CONFIG_FILES invocation.
73479         (EXTRA_DIST): Remove variable.
73480
73481         * build-aux/javaexec.sh.in: New file, moved from lib/.
73482         * modules/javaexec (Files): Update.
73483         (configure.ac): Add AC_CONFIG_FILES invocation.
73484         (EXTRA_DIST): Remove javaexec.sh.in.
73485
73486         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73487         * modules/csharpcomp-script (Files): Update.
73488         (configure.ac): Add AC_CONFIG_FILES invocation.
73489         (EXTRA_DIST): Remove variable.
73490
73491         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73492         * modules/csharpexec (Files): Update.
73493         (configure.ac): Add AC_CONFIG_FILES invocation.
73494         (EXTRA_DIST): Remove csharpexec.sh.in.
73495
73496 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73497
73498         Sync from coreutils.
73499
73500         Add POSIX ACL support
73501         * lib/acl.h (copy_acl, set_acl): Add declarations.
73502         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73503         systems other than Linux.
73504         (chmod_or_fchmod): New function: use fchmod when possible,
73505         and chmod otherwise.
73506         (file_has_acl): Add a POSIX ACL implementation, with a
73507         Linux-specific subcase.
73508         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73509         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73510         acls are unsupported.
73511         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73512         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73513         are unsupported.
73514
73515 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73516
73517         Sync from coreutils.
73518         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73519
73520 2006-01-07  Bruno Haible  <bruno@clisp.org>
73521
73522         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73523         gl_EARLY.
73524
73525 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73526
73527         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73528         Problem reported for Mingw by Mark Junker.
73529
73530 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73531
73532         * README: Gnulib normally doesn't generate a tarball.
73533
73534 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73535
73536         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73537         long int, not int, for nanosecond counts, so that people who are
73538         used to POSIX struct timespec won't be surprised.  Reported by Jim
73539         Meyering.
73540
73541 2005-12-28  Bruno Haible  <bruno@clisp.org>
73542
73543         * build-aux/config.rpath: Update from GNU gettext.
73544
73545 2005-12-16  Jim Meyering  <jim@meyering.net>
73546
73547         * modules/fprintftime: New module.
73548         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73549
73550 2005-12-16  Jim Meyering  <jim@meyering.net>
73551
73552         * m4/fprintftime.m4: New file.
73553
73554 2005-12-16  Jim Meyering  <jim@meyering.net>
73555
73556         * lib/fprintftime.c, lib/fprintftime.h: New files.
73557
73558 2005-12-15  Simon Josefsson  <jas@extundo.com>
73559
73560         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73561         new m4/socklen.m4.
73562
73563 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73564
73565         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73566         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73567
73568 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73569
73570         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73571         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73572         struct uparams is valid. Fall back to the default values if it is
73573         not.
73574
73575 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73576
73577         * modules/argp (Files): Add argp-pin.c
73578         (Depends-on): dirname
73579         (lib_SOURCES): Add argp-pin.c
73580
73581 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73582
73583         * m4/argp.m4:  Check if program_invocation_name and
73584         program_invocation_short_name are declared and define appropriate
73585         macros if they are not.
73586
73587 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73588
73589         * lib/argp-help.c (__argp_base_name): New function
73590         (__argp_short_program_name): Rewrite using __argp_base_name
73591         * lib/argp-namefrob.h: Define program_invocation_name and
73592         program_invocation_short_name if requested
73593         (__argp_base_name): Add prototype
73594         * lib/argp-parse.c (argp_def): Use gettext wrappers
73595         (argp_default_parser): Use __argp_base_name
73596         * lib/argp-pin.c: New file. Defines program_invocation_name and
73597         program_invocation_short_name on systems that lack them.
73598
73599 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73600
73601         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73602         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73603         porting problem reported by Georg Schwarz in
73604         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73605
73606 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73607
73608         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73609         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73610         porting problem reported by Georg Schwarz in
73611         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73612
73613 2005-12-05  Bruno Haible  <bruno@clisp.org>
73614
73615         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73616         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73617         Reported by Mark Junker <mjscod@gmx.de>.
73618
73619 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73620
73621         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73622         Use implementation from Albert Chin, with some
73623         comments/corrections by Stepan Kasal and myself.
73624
73625 2005-12-02  Bruno Haible  <bruno@clisp.org>
73626
73627         * gnulib-tool (func_import): Accept GPLed build tool modules when
73628         --lgpl is given.
73629         * modules/csharpcomp-script: New file.
73630         * modules/csharpcomp: Depend on it.
73631         * modules/javacomp-script: New file.
73632         * modules/javacomp: Depend on it.
73633         Suggested by Simon Josefsson.
73634
73635 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73636
73637         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73638         statement, to work around an HP-UX 10.20 compiler bug reported by
73639         Peter O'Gorman.
73640
73641 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73642
73643         * modules/savedir (Depends-on): Add openat.
73644
73645 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73646
73647         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73648         (uintmax_t) [defined uintmax_t]: Do not declare.
73649         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73650         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73651         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73652         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73653         sake of portability to weird hosts that C allows (though we don't
73654         know of any practical examples).
73655
73656         * lib/savedir.h (fdsavedir): New decl.
73657         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73658         contains most of the former guts of savedir.
73659         (savedir): Use savedirstream.
73660         Include "openat.h".
73661
73662 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73663
73664         * modules/obstack (Files): Add m4/ulonglong.m4.
73665         Problem reported by Davide Angelocola.
73666
73667 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73668
73669         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73670         coreutils no longer futzes with rounding modes.
73671
73672 2005-11-14  Jim Meyering  <jim@meyering.net>
73673
73674         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73675         replacement of mkstemp.
73676
73677 2005-11-10  Simon Josefsson  <jas@extundo.com>
73678
73679         * lib/readline.c: Remove EOL.
73680
73681 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73682
73683         * modules/gethrxtime (Depends-on): Add gettime.
73684
73685 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73686
73687         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73688         or gettimeofday; no longer needed.
73689
73690 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73691
73692         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73693         time business.
73694         (gethrxtime) [! (HAVE_NANOUPTIME
73695         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73696         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73697         our own approximation.
73698
73699 2005-11-08  Eric Blake  <ebb9@byu.net>
73700
73701         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73702
73703 2005-11-08  Eric Blake  <ebb9@byu.net>
73704
73705         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73706
73707 2005-11-04  Bruno Haible  <bruno@clisp.org>
73708
73709         * gnulib-tool: Implement --update mode.
73710
73711 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73712
73713         Fix porting problem reported by Theodoros V. Kalamatianos.
73714         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73715         Don't assume that futimes failing means we must fail.
73716
73717 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73718
73719         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73720         variables to suggest the intended function of the PATH_MAX check.
73721
73722 2005-10-30  Kean Johnston  <jkj@sco.com>
73723
73724         Trivial changes to support SCO systems.
73725         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73726         as PATH_MAX.
73727         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73728         where __ptr is null when no I/O is pending.
73729
73730 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73731
73732         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73733         leave errno alone.  Problem reported by Dmitry V. Levin.
73734
73735 2005-10-28  Simon Josefsson  <jas@extundo.com>
73736
73737         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73738         Test more.
73739
73740         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73741
73742         * modules/md2, modules/md2-tests: New files.
73743
73744 2005-10-28  Simon Josefsson  <jas@extundo.com>
73745
73746         * m4/inet_ntop.m4: More tests.
73747
73748         * m4/gc-md2.m4, md2.m4: New file.
73749
73750 2005-10-28  Simon Josefsson  <jas@extundo.com>
73751
73752         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73753         "restrict" keywords, as per POSIX.  Protect the function
73754         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73755         Don't use K&R prototypes.  Check the sprintf return values.
73756         Re-define EAFNOSUPPORT if not present.  Indent.
73757
73758         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73759         suggested by Bruno Haible <bruno@clisp.org>.
73760
73761         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73762
73763         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73764
73765         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73766         libgcrypt).
73767
73768         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73769
73770         * lib/md2.h, lib/md2.c: New files.
73771
73772 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73773
73774         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73775         errno alone.  Problem reported by Frederic Jolliton.
73776
73777 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73778
73779         * modules/verify (License): Change from GPL to LGPL.  This is a
73780         tiny module and there are apparently near-equivalents that are
73781         under the BSD license.
73782
73783 2005-10-24  Simon Josefsson  <jas@extundo.com>
73784
73785         * modules/sha1: Relicense to LGPL.
73786
73787 2005-10-24  Simon Josefsson  <jas@extundo.com>
73788
73789         * lib/md4.h: Shrink buffer size, now that we changed the type.
73790
73791 2005-10-23  Simon Josefsson  <jas@extundo.com>
73792
73793         * gnulib-tool (func_import): Fix --tests-base.
73794
73795 2005-10-22  Simon Josefsson  <jas@extundo.com>
73796
73797         * modules/arcfour (Depends-on): Need stdint.
73798
73799 2005-10-22  Simon Josefsson  <jas@extundo.com>
73800
73801         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73802         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73803
73804 2005-10-22  Simon Josefsson  <jas@extundo.com>
73805
73806         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73807         suggested by Bruno Haible <bruno@clisp.org>.
73808
73809 2005-10-22  Simon Josefsson  <jas@extundo.com>
73810
73811         * lib/crc.h: Include stddef.h, for size_t.
73812
73813 2005-10-22  Simon Josefsson  <jas@extundo.com>
73814
73815         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73816         arcfour_context struct (simplify test vector testing in GNU
73817         Shishi).
73818
73819 2005-10-21  Simon Josefsson  <jas@extundo.com>
73820
73821         * modules/des, modules/des-tests: New files.
73822
73823         * modules/gc-des, modules/gc-des-tests: New files.
73824
73825         * tests/test-des.c, tests/test-gc-des.c: New file.
73826
73827 2005-10-21  Simon Josefsson  <jas@extundo.com>
73828
73829         * modules/arctwo, modules/arctwo-tests: New files.
73830
73831         * tests/test-arctwo.c: New file.
73832
73833         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73834
73835         * tests/test-gc-arctwo.c: New file.
73836
73837 2005-10-21  Simon Josefsson  <jas@extundo.com>
73838
73839         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73840         Bruno Haible <bruno@clisp.org>.
73841
73842         * m4/gc-des.m4: New file.
73843
73844 2005-10-21  Simon Josefsson  <jas@extundo.com>
73845
73846         * m4/arctwo.m4: New file.
73847
73848         * m4/gc-arctwo.m4: New file.
73849
73850 2005-10-21  Simon Josefsson  <jas@extundo.com>
73851
73852         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73853         block.
73854
73855 2005-10-21  Simon Josefsson  <jas@extundo.com>
73856
73857         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73858         <bruno@clisp.org>.
73859
73860         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73861
73862         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73863         Bruno Haible <bruno@clisp.org>.
73864
73865         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73866         <bruno@clisp.org>.
73867
73868 2005-10-21  Simon Josefsson  <jas@extundo.com>
73869
73870         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73871
73872 2005-10-21  Simon Josefsson  <jas@extundo.com>
73873
73874         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73875
73876 2005-10-21  Simon Josefsson  <jas@extundo.com>
73877
73878         * lib/des.h, lib/des.c: New files.
73879
73880         * lib/gc-gnulib.c: Support DES.c
73881
73882 2005-10-21  Simon Josefsson  <jas@extundo.com>
73883
73884         * lib/arctwo.h, lib/arctwo.c: New files.
73885
73886         * lib/gc-gnulib.c: Support ARCTWO.
73887
73888 2005-10-21  Simon Josefsson  <jas@extundo.com>
73889
73890         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73891         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73892
73893 2005-10-21  Simon Josefsson  <jas@extundo.com>
73894
73895         * gnulib-tool (func_import, func_create_testdir): Define automake
73896         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73897         Makefile.am snippet),
73898         suggested by Bruno Haible <bruno@clisp.org>.
73899
73900         * modules/gc (Makefile.am): Use it.
73901
73902 2005-10-21  Bruno Haible  <bruno@clisp.org>
73903
73904         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73905         patch.
73906
73907 2005-10-19  Simon Josefsson  <jas@extundo.com>
73908
73909         * tests/test-gc-rijndael.c: New file.
73910
73911         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73912
73913 2005-10-19  Simon Josefsson  <jas@extundo.com>
73914
73915         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73916         interface too.
73917
73918 2005-10-19  Simon Josefsson  <jas@extundo.com>
73919
73920         * tests/test-gc-arcfour.c: New file.
73921
73922         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73923
73924 2005-10-19  Simon Josefsson  <jas@extundo.com>
73925
73926         * modules/gc-md4, modules/gc-md4-tests: New file.
73927
73928         * tests/test-gc-md4.c: New file.
73929
73930 2005-10-19  Simon Josefsson  <jas@extundo.com>
73931
73932         * m4/gc-md4.m4: New file.
73933
73934 2005-10-19  Simon Josefsson  <jas@extundo.com>
73935
73936         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73937         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73938         <kasal@ucw.cz>.
73939
73940 2005-10-19  Simon Josefsson  <jas@extundo.com>
73941
73942         * m4/gc-arcfour.m4: New file.
73943
73944         * m4/gc-rijndael.m4: New file.
73945
73946 2005-10-19  Simon Josefsson  <jas@extundo.com>
73947
73948         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73949
73950 2005-10-19  Simon Josefsson  <jas@extundo.com>
73951
73952         * lib/gc-gnulib.c: Support ARCFOUR.
73953
73954 2005-10-19  Simon Josefsson  <jas@extundo.com>
73955
73956         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73957         support.
73958
73959         * lib/gc.h: Add ECB enum type.
73960
73961         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73962
73963 2005-10-18  Simon Josefsson  <jas@extundo.com>
73964
73965         * tests/test-md5.c: New file.
73966
73967         * modules/md5-tests: New file.
73968
73969 2005-10-18  Simon Josefsson  <jas@extundo.com>
73970
73971         * tests/test-md4.c: New file.
73972
73973         * modules/md4, modules/md4-tests: New files.
73974
73975 2005-10-18  Simon Josefsson  <jas@extundo.com>
73976
73977         * m4/md4.m4: New file.
73978
73979 2005-10-18  Simon Josefsson  <jas@extundo.com>
73980
73981         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73982
73983 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73984
73985         * gnulib-tool (func_create_testdir): Omit the second check whether
73986         BUILT_SOURCES in nonempty.
73987
73988 2005-10-17  Simon Josefsson  <jas@extundo.com>
73989
73990         * tests/test-rijndael.c: New file.
73991
73992 2005-10-17  Simon Josefsson  <jas@extundo.com>
73993
73994         * modules/sha1: Depend on stdint instead of md5.
73995
73996         * modules/md5: Depend on stdint, remove uint32_t.
73997
73998 2005-10-17  Simon Josefsson  <jas@extundo.com>
73999
74000         * modules/gc-sha1-tests: New file.
74001
74002         * tests/test-gc-sha1.c: New file.
74003
74004 2005-10-17  Simon Josefsson  <jas@extundo.com>
74005
74006         * m4/md5.m4: Remove call to uint32_t.m4.
74007
74008 2005-10-17  Simon Josefsson  <jas@extundo.com>
74009
74010         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74011
74012         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74013         md5.h.
74014
74015         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74016
74017         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74018
74019 2005-10-17  Simon Josefsson  <jas@extundo.com>
74020
74021         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74022
74023 2005-10-17  Simon Josefsson  <jas@extundo.com>
74024
74025         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74026
74027 2005-10-17  Simon Josefsson  <jas@extundo.com>
74028
74029         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74030
74031         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74032
74033 2005-10-17  Bruno Haible  <bruno@clisp.org>
74034
74035         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74036         that it can also be used in a test.
74037
74038 2005-10-16  Bruno Haible  <bruno@clisp.org>
74039
74040         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74041         TESTS_ENVIRONMENT, so that individual tests can augment it.
74042
74043         * gnulib-tool (func_create_testdir): Use an intermediate target for
74044         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74045         macros, like $(ALLOCA_H), which cannot be passed through the command
74046         line.
74047
74048 2005-10-15  Simon Josefsson  <jas@extundo.com>
74049
74050         * modules/rijndael-tests: New file.
74051
74052         * modules/rijndael: New file.
74053
74054 2005-10-15  Simon Josefsson  <jas@extundo.com>
74055
74056         * m4/rijndael.m4: New file.
74057
74058 2005-10-15  Simon Josefsson  <jas@extundo.com>
74059
74060         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74061
74062         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74063
74064 2005-10-14  Simon Josefsson  <jas@extundo.com>
74065
74066         * tests/test-arcfour.c: New file.
74067
74068         * modules/arcfour, modules/arcfour-tests: New files.
74069
74070 2005-10-14  Simon Josefsson  <jas@extundo.com>
74071
74072         * m4/arcfour.m4: New file.
74073
74074 2005-10-14  Simon Josefsson  <jas@extundo.com>
74075
74076         * lib/arcfour.h, lib/arcfour.c: New files.
74077
74078 2005-10-14  Roland McGrath  <roland@redhat.com>
74079
74080         Import from libc.  [BZ #1331]
74081         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74082         macro argument.
74083         Reported by Matej Vela <vela@debian.org>.
74084
74085 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74086
74087         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74088         include <wchar.h>; no longer needed.
74089
74090 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74091
74092         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74093
74094 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74095         and  Ulrich Drepper  <drepper@redhat.com>
74096
74097         Import from libc.
74098         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74099         instead of inline stream orientation test and two separate
74100         function calls.  Pay no attention to USE_IN_LIBIO.
74101
74102 2005-10-13  Simon Josefsson  <jas@extundo.com>
74103
74104         * modules/gc-hmac-md5-tests: New file.
74105
74106         * tests/test-gc-hmac-sha1.c: New file.
74107
74108         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74109
74110         * modules/gc-hmac-md5-tests: New file.
74111
74112         * tests/test-gc-md5.c: New file.
74113
74114         * modules/gc-md5-tests: New file.
74115
74116 2005-10-13  Simon Josefsson  <jas@extundo.com>
74117
74118         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74119         Move memory allocation outside of loop.
74120
74121 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74122
74123         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74124         intermediate directory is in a read-only file system.  Problem
74125         reported by Eric Blake.
74126
74127 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74128
74129         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74130
74131 2005-10-12  Simon Josefsson  <jas@extundo.com>
74132
74133         * tests/test-hmac-sha1.c: New file.
74134
74135         * modules/hmac-sha1-tests: New file.
74136
74137         * modules/hmac-sha1: New file.
74138
74139 2005-10-12  Simon Josefsson  <jas@extundo.com>
74140
74141         * modules/gc-sha1: New file.
74142
74143 2005-10-12  Simon Josefsson  <jas@extundo.com>
74144
74145         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74146
74147         * tests/test-gc-pbkdf2-sha1.c: New file.
74148
74149 2005-10-12  Simon Josefsson  <jas@extundo.com>
74150
74151         * modules/gc-md5, modules/gc-hmac-md5: New files.
74152
74153         * modules/gc (Files): Remove md5, memxor and hmac files.
74154
74155 2005-10-12  Simon Josefsson  <jas@extundo.com>
74156
74157         * m4/gc-pbkdf2-sha1.m4: New file.
74158
74159         * m4/gc-hmac-sha1.m4: New file.
74160
74161         * m4/gc-sha1: New file.
74162
74163         * m4/hmac-sha1.m4: New file.
74164
74165 2005-10-12  Simon Josefsson  <jas@extundo.com>
74166
74167         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74168
74169         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74170
74171 2005-10-12  Simon Josefsson  <jas@extundo.com>
74172
74173         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74174         suggested by Bruno Haible <bruno@clisp.org>.
74175
74176 2005-10-12  Simon Josefsson  <jas@extundo.com>
74177
74178         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74179
74180 2005-10-12  Simon Josefsson  <jas@extundo.com>
74181
74182         * lib/gc-pbkdf2-sha1.c: New file.
74183
74184         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74185
74186 2005-10-12  Simon Josefsson  <jas@extundo.com>
74187
74188         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74189
74190         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74191
74192 2005-10-12  Simon Josefsson  <jas@extundo.com>
74193
74194         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74195         GC_USE_HMAC_MD5, respectively.
74196
74197         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74198         (gc_md5): Fix typo.
74199
74200         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74201
74202         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74203
74204         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74205
74206 2005-10-12  Bruno Haible  <bruno@clisp.org>
74207
74208         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74209         Reported by Stepan Kasal <kasal@ucw.cz>.
74210
74211 2005-10-11  Simon Josefsson  <jas@extundo.com>
74212
74213         * tests/test-crc.c: New file.
74214
74215         * modules/crc, modules/crc-tests: New files.
74216
74217 2005-10-11  Simon Josefsson  <jas@extundo.com>
74218
74219         * m4/crc.m4: New file.
74220
74221 2005-10-11  Simon Josefsson  <jas@extundo.com>
74222
74223         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74224
74225         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74226
74227         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74228
74229 2005-10-11  Simon Josefsson  <jas@extundo.com>
74230
74231         * lib/crc.h, lib/crc.c: New files.
74232
74233         * lib/gc.h (gc_hash_buffer): Add doc.
74234
74235 2005-10-11  Bruno Haible  <bruno@clisp.org>
74236
74237         * modules/c-strcasestr: New file.
74238         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74239
74240 2005-10-11  Bruno Haible  <bruno@clisp.org>
74241
74242         * modules/c-strcase: New file.
74243         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74244
74245 2005-10-11  Bruno Haible  <bruno@clisp.org>
74246
74247         * lib/strcasecmp.c: Include limits.h.
74248         (strcasecmp): Avoid integer overflow on exotic platforms.
74249         * lib/strncasecmp.c: Include limits.h.
74250         (strncasecmp): Avoid integer overflow on exotic platforms.
74251         Reported by Paul Eggert.
74252
74253 2005-10-11  Bruno Haible  <bruno@clisp.org>
74254
74255         * lib/c-strcasestr.h: New file, from GNU gettext.
74256         * lib/c-strcasestr.c: New file, from GNU gettext.
74257
74258 2005-10-11  Bruno Haible  <bruno@clisp.org>
74259
74260         * lib/c-strcase.h: New file, from GNU gettext.
74261         * lib/c-strcasecmp.c: New file, from GNU gettext.
74262         * lib/c-strncasecmp.c: New file, from GNU gettext.
74263
74264 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74265
74266         * modules/mempcpy (License): GPL -> LGPL.
74267         * modules/strchrnul (License): Likewise.
74268         * modules/sysexits (License): Likewise.
74269
74270 2005-10-08  Simon Josefsson  <jas@extundo.com>
74271
74272         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74273
74274 2005-10-07  Simon Josefsson  <jas@extundo.com>
74275
74276         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74277
74278 2005-10-06  Simon Josefsson  <jas@extundo.com>
74279
74280         * tests/test-hmac-md5.c: New file.
74281
74282         * modules/hmac-md5-tests: New file.
74283
74284         * modules/hmac-md5: New file.
74285
74286 2005-10-06  Simon Josefsson  <jas@extundo.com>
74287
74288         * m4/hmac-md5.m4: New file.
74289
74290         * m4/memxor.m4: Require gl_C_RESTRICT.
74291
74292 2005-10-06  Simon Josefsson  <jas@extundo.com>
74293
74294         * lib/memxor.c (memxor): Avoid casts and warnings.
74295
74296 2005-10-06  Simon Josefsson  <jas@extundo.com>
74297
74298         * lib/hmac-md5.c: New file.
74299
74300         * lib/hmac.h: New file.
74301
74302 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74303
74304         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74305         promotes to int, not unsigned int, to catch the AIX 5.3
74306         compiler bug.
74307
74308 2005-10-05  Simon Josefsson  <jas@extundo.com>
74309
74310         * modules/memxor: New file.
74311
74312         * modules/iconv (Files): Move config.rpath to havelib, it is used
74313         there.
74314
74315         * modules/havelib (Files): Add config.rpath.
74316
74317 2005-10-05  Simon Josefsson  <jas@extundo.com>
74318
74319         * m4/memxor.m4: New file.
74320
74321 2005-10-05  Simon Josefsson  <jas@extundo.com>
74322
74323         * lib/memxor.c (memxor): Fix compiler error.
74324
74325         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74326         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74327
74328         * lib/memxor.h, lib/memxor.c: New files.
74329
74330         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74331         we assume all systems have it, suggested by Jim Meyering
74332         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74333         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74334         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74335         same reasons.
74336
74337 2005-10-05  Simon Josefsson  <jas@extundo.com>
74338
74339         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74340
74341 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74342
74343         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74344         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74345         needed, since the source code now assumes these .h files.
74346
74347 2005-10-05  Derek Price  <derek@ximbiot.com>
74348
74349         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74350
74351 2005-10-05  Bruno Haible  <bruno@clisp.org>
74352
74353         * modules/stdint (License): Change to LGPL.
74354
74355 2005-10-04  Simon Josefsson  <jas@extundo.com>
74356
74357         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74358         D. Baushke" <mdb@gnu.org>.
74359
74360 2005-10-04  Bruno Haible  <bruno@clisp.org>
74361
74362         * lib/verify.h (verify_true): Provide alternative definition for C++.
74363
74364 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74365
74366         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74367         (SSIZE_MAX): New macro, if not already defined.
74368         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74369         than 2 GiB.
74370
74371 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74372
74373         Sync from coreutils.
74374         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74375         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74376         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74377         ULLONG_MAX doesn't work with 2.7.2.1.
74378
74379 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74380
74381         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74382         From Ben Pfaff.
74383
74384         * modules/exclude (Depends-on): Depend on verify.
74385         * modules/strtoimax (Depends-on): Likewise.
74386         * modules/utimecmp (Depends-on): Likewise.
74387
74388 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74389
74390         * lib/exclude.c: Include verify.h.
74391         (verify): Remove.  All callers changed to use verify.h's version.
74392         * lib/strtoimax.c: Likewise.
74393         * lib/utimecmp.c: Likewis.e
74394
74395         Sync from coreutils.
74396         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74397         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74398         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74399         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74400         bother returning ENOSYS if settimeofday or stime fails; just let
74401         them return whatever errno they want to return.
74402         * lib/utimens.c: Include unistd.h, for dup2.
74403         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74404         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74405
74406 2005-10-02  Jim Meyering  <jim@meyering.net>
74407
74408         Sync from coreutils.
74409         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74410         from glibc-2.2.5 that fails for read-only files.
74411
74412 2005-10-02  Jim Meyering  <jim@meyering.net>
74413
74414         Sync from coreutils.
74415         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74416         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74417         `#if HAVE_CONFIG_H'.
74418         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74419         Remove AT_FDCWD test.
74420         Do not consume the fd unless successful.
74421         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74422         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74423         block, so that we don't even try to compile it if settimeofday is
74424         available.  This works around a compilation failure on OSF1 V5.1,
74425         due to stime requiring a `long int*' while tv_sec is `int'.
74426
74427 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74428
74429         Sync from coreutils.
74430         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74431         against `yes', rather than just testing for nonempty.
74432
74433 2005-10-01  Simon Josefsson  <jas@extundo.com>
74434
74435         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74436         and Darwin.
74437
74438         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74439         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74440         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74441         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74442         Check if struct addrinfo is declared.
74443
74444 2005-10-01  Simon Josefsson  <jas@extundo.com>
74445
74446         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74447         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74448         AI_* and EAI_* definitions.  Protect function declarations.
74449
74450 2005-10-01  Jim Meyering  <jim@meyering.net>
74451
74452         Sync from coreutils.
74453
74454         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74455         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74456         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74457         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74458         in the inet and nsl libraries.  Required on Solaris 5.7.
74459
74460 2005-10-01  Jim Meyering  <jim@meyering.net>
74461
74462         Sync from coreutils.
74463         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74464         in the inet and nsl libraries.  Required on Solaris 5.7.
74465
74466 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74467
74468         * lib/getdelim.c (getdelim): Remove unused variables.
74469
74470 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74471
74472         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74473         so that the code works even with ancient cpp.  Portability problem
74474         with GCC 2.7.2.1 reported by Thomas M.Ott.
74475
74476 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74477
74478         * modules/regex (Depends-on): Add strcase.
74479
74480         * modules/gethostname (Licence): Change from GPL to LGPL, since
74481         gethostname.c is a trivial implementation of a standard library
74482         function.
74483         * modules/poll (License): Change from GPL to LGPL, since it's
74484         derived from LGPL code.
74485
74486 2005-09-27  Jim Meyering  <jim@meyering.net>
74487
74488         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74489         HAVE_CONFIG_H.
74490
74491         * lib/intprops.h (signed_type_or_expr__): Define.
74492         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74493         for unsigned types.
74494
74495 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74496
74497         * lib/verify.h (verify_expr): Remove, replacing with:
74498         (verify_true): New macro that returns true instead of void.
74499         (verify_type__): Remove.
74500         (verify): Use verify_true rather than verify_type__.
74501
74502 2005-09-26  Bruno Haible  <bruno@clisp.org>
74503
74504         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74505         is necessary.
74506         (lib_SOURCES): Remove mbchar.c.
74507         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74508         (Files): Add m4/mbrtowc.m4.
74509         * modules/mbiter: Likewise.
74510         * modules/mbuiter: Likewise.
74511
74512 2005-09-26  Bruno Haible  <bruno@clisp.org>
74513
74514         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74515         compile mbchar.c if they are not both present.
74516         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74517         * m4/mbiter.m4 (gl_MBITER): Likewise.
74518         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74519         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74520         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74521
74522 2005-09-25  Jim Meyering  <jim@meyering.net>
74523
74524         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74525         also uses socklen_t.
74526
74527 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74528
74529         * lib/utimens.c (ENOSYS): Define if not already defined.
74530         (futimens): Support having a null PATH if the file descriptor
74531         is nonnegative.
74532
74533         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74534         Remove.
74535         (__attribute): Define to empty unless GCC 3.1 or later.
74536         This works around a core dump on OpenBSD 3.4, which has GCC
74537         2.95.3, which dumps core when given __attribute__(()).  It also
74538         simplifies other tests, since we really don't want to bother with
74539         worrying about which ancient version of GCC supported what.
74540         Original problem reported by Yoann Vandoorselaere, with part of
74541         the fix suggested by Derek Price.
74542
74543 2005-09-24  Jim Meyering  <jim@meyering.net>
74544
74545         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74546         so we can once again use a positive bitfield width of 1 -- now we
74547         don't have to explain why we were using a bitfield width of 2.
74548
74549 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74550
74551         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74552         and similarly for the other external symbols.  Problem reported
74553         by James Gallager.
74554
74555         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74556         bug reported by Jim Meyering.
74557
74558         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74559         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74560         not needed, since socklen is a prerequisite module.
74561
74562 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74563
74564         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74565         Problem reported by Eric Blake.
74566         (getaddrinfo): Initialize se so that it's not garbage.
74567         Redo internal storage allocation so that it doesn't make unportable
74568         assumptions about alignment.
74569         Fix a memory leak.
74570
74571         * lib/utimens.c (futimens): Use futimesat if available.
74572         Prefer it to futimes since it doesn't have the futimes bug.
74573
74574         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74575         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74576         Instead, declare a function that returns a pointer to an array,
74577         and use verify_type__ to declare the size of the array.
74578         Problem and germ of a solution reported by Bruno Haible.
74579         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74580         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74581
74582 2005-09-23  Jim Meyering  <jim@meyering.net>
74583
74584         Sync from coreutils.
74585         Correct build failure (socklen_t not defined) on at least
74586         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74587         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74588
74589 2005-09-23  Jim Meyering  <jim@meyering.net>
74590
74591         * modules/getaddrinfo (Depends-on): Add socklen.
74592
74593 2005-09-23  Bruno Haible  <bruno@clisp.org>
74594
74595         * tests/test-verify.c: New file.
74596
74597 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74598
74599         Sync from coreutils.
74600
74601         * modules/argmatch (Depends-on): Add verify.
74602         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74603         unistd-safer.
74604         * modules/save-cwd (Depends-on): Likewise.
74605
74606         * modules/openat (Files): Add lib/openat-die.c.
74607         (Depends-on): Remove error, exitfail.
74608         Add dirname.
74609
74610         * modules/verify: New file.
74611         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74612         with "verify" module.
74613
74614 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74615
74616         Sync from coreutils.
74617
74618         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74619         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74620         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74621         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74622         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74623         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74624         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74625         Don't bother checking for string.h, stdlib.h, unistd.h.
74626         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74627         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74628         module's job.
74629         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74630         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74631
74632         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74633         (gl_GETDATE): Use it.
74634
74635         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74636
74637 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74638
74639         Sync from coreutils.
74640
74641         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74642         stat-time.h.
74643         * lib/argmatch.h: Include verify.h
74644         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74645         (ARGMATCH_ASSERT): Remove; unused.
74646         * lib/canonicalize.c: Assume STDC_HEADERS.
74647         * lib/exclude.c: Include "strcase.h".
74648         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74649         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74650         and stdio-safer.h.
74651         (getusershell): Call fopen, not fopen_safer.
74652         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74653         Do not include unistd-safer.h.
74654         (save_cwd): Don't call fd_safer; no longer needed
74655         now that we include fcntl--.h.
74656
74657         * lib/getdate.y (relative_time): New type.
74658         (RELATIVE_TIME_0): New constant.
74659         (parser_control): Use relative_time instead of doing it ourselves.
74660         (%union): Add new relative_time rel member.
74661         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74662         Now typeless.
74663         (relunit, relunit_snumber): Now of type rel.
74664         (zone, rel, relunit, get_date): Adjust to above changes.
74665
74666         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74667         Do not include unistd-safer.h.
74668         (getloadavg): Don't call fd_safer; no longer needed
74669         now that we include fcntl--.h.
74670
74671         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74672         (make_dir_parents): Treat ENOSYS like EEXIST.
74673
74674         Improve quality of diagnostics on restore_cwd failure.
74675         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74676         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74677         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74678         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74679         each time through the loop.  Do not diagnose restore_cwd failure;
74680         that is the caller's job (and perhaps the caller does not care).
74681
74682         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74683         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74684         If the file already exists but is not a directory, don't bother
74685         to try to make its parents.
74686         Close potential file descriptor leak if we can't chdir("/") (!).
74687         Don't always return true if chdir($PWD) fails; return true only
74688         if the requested action was done successfully (except for the
74689         chdir($PWD)).
74690         Don't log final directory unless we actually made it.
74691         Refactor to avoid duplicate code to fix up permissions.
74692         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74693
74694         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74695         to make it a bit faster and (I hope) clearer.
74696         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74697         Fix bug in formats like %2N.
74698
74699         * lib/verify.h: New file.
74700
74701 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74702
74703         Sync from coreutils.
74704         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74705
74706 2005-09-22  Jim Meyering  <jim@meyering.net>
74707
74708         Sync from coreutils.
74709
74710         * m4/lstat.m4 (gl_FUNC_LSTAT):
74711         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74712         Remove obsolete comment.
74713         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74714         * m4/xstrtod.m4: Likewise.
74715
74716         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74717
74718 2005-09-22  Jim Meyering  <jim@meyering.net>
74719
74720         Sync from coreutils.
74721
74722         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74723
74724         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74725         the .tm_year member, since otherwise gcc-4.0 would now warn about
74726         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74727
74728         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74729         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74730
74731         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74732         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74733         when run in a time zone for which daylight savings time is in effect
74734         for the starting date.
74735
74736         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74737         stop us from restricting permissions of just-created absolute-named
74738         directories.
74739         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74740         to restore initial working directory.
74741         * lib/mkdir-p.c (make_dir_parents): New parameter:
74742         different_working_dir, to tell caller if/when we change the working
74743         directory and are unable to return to the initial one.
74744         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74745         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74746         `return false'.  This fixes a bug introduced on 2004-07-30.
74747
74748         * lib/openat.c (fdopendir): Be sure to close the supplied
74749         file descriptor before returning.  This makes our replacement
74750         implementation a little closer to Solaris's, where fdopendir
74751         ties the file descriptor to the returned DIR* pointer.
74752         * lib/openat.c (unlinkat): New function.
74753         * lib/openat.h (unlinkat): Add prototype.
74754         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74755         (openat_restore_fail): Rename from openat_restore_die.
74756         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74757
74758         Provide an alternative to exiting immediately upon save_cwd or
74759         restore_cwd failure.  Now, an application can arrange e.g.,
74760         to perform a longjump in that case.
74761         * lib/openat.c: Include dirname.h.
74762         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74763         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74764         and openat_restore_die rather than calling error directly.
74765         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74766
74767         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74768         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74769         define.
74770
74771         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74772         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74773                             int utc, int nanoseconds);
74774         Background:
74775         date should not have to allocate a megabyte of virtual memory to
74776         handle a format argument like +%1048575T.  When implemented with
74777         strftime, it must allocate such a buffer, use strftime to fill it
74778         in, print it, then free it.
74779         With fprintftime, it simply prints everything and exits.
74780         With no need for memory allocation, that's one fewer way to fail.
74781         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74782         optional field width, not before, so we accept %9:z, not %:9z.
74783         (my_strftime): Be sure to use L_('x') for literals.
74784
74785         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74786         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74787         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74788         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74789         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74790         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74791         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74792         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74793         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74794         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74795         * lib/xgethostname.c, lib/xreadlink.c:
74796         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74797
74798         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74799         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74800         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74801         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74802         and don't include <sys/file.h>).
74803
74804 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74805
74806         Sync from coreutils.
74807
74808         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74809         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74810         [!LDAV_DONE]: Avoid unused variable warning.
74811
74812 2005-09-21  Bruno Haible  <bruno@clisp.org>
74813
74814         * lib/unicodeio.h (unicode_to_mb): New declaration.
74815
74816 2005-09-20  Derek Price  <derek@ximbiot.com>
74817
74818         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74819         getaddrinfo.h.
74820
74821 2005-09-20  Bruno Haible  <bruno@clisp.org>
74822
74823         * gnulib-tool: Remove trailing slashes from the values specified for
74824         --source-base, --m4-base, --tests-base, --aux-dir.
74825         Suggested by Simon Josefsson <jas@extundo.com>.
74826
74827 2005-09-20  Bruno Haible  <bruno@clisp.org>
74828
74829         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74830         func_modules_to_filelist, func_import, func_create_testdir): Make all
74831         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74832         change when gnulib-tool is invoked in a different locale.
74833
74834 2005-09-19  Simon Josefsson  <jas@extundo.com>
74835
74836         * m4/socklen.m4: Fix typo.
74837
74838 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74839
74840         Use a consistent style for including <config.h>.
74841         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74842         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74843         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74844         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74845         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74846         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74847         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74848         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74849         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74850         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74851         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74852         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74853         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74854         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74855         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74856         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74857         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74858         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74859         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74860         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74861         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74862         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74863         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74864         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74865         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74866         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74867         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74868         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74869         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74870         lib/xstrtoumax.c, lib/yesno.c:
74871         Standardize inclusion of config.h.
74872         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74873         lib/inttostr.h:  Removed inclusion of config.h from header files.
74874         * lib/inttostr.c:  Adjusted in-tree users.
74875         * lib/timespec.h: Remove superfluous warning to include config.h.
74876         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74877         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74878         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74879         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74880         config.h with HAVE_CONFIG_H.
74881
74882 2005-09-19  Jim Meyering  <jim@meyering.net>
74883
74884         * modules/pathmax (License): Change to LGPL.
74885
74886 2005-09-19  Derek Price  <derek@ximbiot.com>
74887
74888         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74889
74890 2005-09-19  Bruno Haible  <bruno@clisp.org>
74891
74892         * gnulib-tool (import): Provide default for --tests-base.
74893
74894 2005-09-19  Bruno Haible  <bruno@clisp.org>
74895
74896         * doc/quote.texi: New file, extracted from gnulib.texi.
74897         * doc/ctime.texi: New file, extracted from gnulib.texi.
74898         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74899         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74900         * doc/gnulib.texi: Include them.
74901
74902 2005-09-18  Bruno Haible  <bruno@clisp.org>
74903
74904         Portability fix.
74905         * gnulib-tool (func_readlink): New function.
74906         (func_ln_if_changed): Use it.
74907
74908 2005-09-18  Bruno Haible  <bruno@clisp.org>
74909
74910         * gnulib-tool: Support --with-tests also with --import.
74911         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74912         (func_import): Use variables $testsbase and $inctests. Emit a
74913         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74914         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74915         SUBDIRS += $testsdir.
74916         (func_create_testdir): Update.
74917
74918 2005-09-18  Bruno Haible  <bruno@clisp.org>
74919
74920         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74921         instead of $dry_run.
74922         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74923         (func_ln_if_changed): Don't handle dry-run here.
74924         (func_import): In dry-run mode, detect more precisely which actions
74925         would be performed, and don't use "...ing" verbs.
74926
74927 2005-09-18  Bruno Haible  <bruno@clisp.org>
74928
74929         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74930         (func_import): Use join on two temporary files instead of three nested
74931         loops, in order to determine which files are new or old.
74932
74933 2005-09-18  Bruno Haible  <bruno@clisp.org>
74934
74935         * gnulib-tool (func_import): Comment out code that spits out the
74936         new files with --dry-run.
74937
74938 2005-09-18  Bruno Haible  <bruno@clisp.org>
74939
74940         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74941
74942 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74943
74944         * lib/stat-time.h: New file.
74945         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74946         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74947         in a different way.
74948         (timespec_cmp): New function.
74949         * lib/utimecmp.c: Include stat-time.h.
74950         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74951         members exist, not on the obsolescent ST_MTIM_NSEC.
74952         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74953
74954 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74955
74956         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74957
74958 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74959
74960         * MODULES.html.sh (File system functions): Add stat-time.
74961         * modules/stat-time: New file.
74962         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74963         is now done in a different way, by the stat-time module.
74964         * modules/utimecmp (Depends-on): Add stat-time.
74965
74966 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74967
74968         * m4/st_mtim.m4: Remove.  Superseded by...
74969         * m4/stat-time.m4: New file.
74970         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74971         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74972
74973 2005-09-15  Derek Price  <derek@ximbiot.com>
74974
74975         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74976
74977 2005-09-15  Derek Price  <derek@ximbiot.com>
74978
74979         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74980         * lib/regex_internal.c: Ditto, using this...
74981         (__GNUC_PREREQ): ...new macro.
74982         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74983         using...
74984         (__GNUC_PREREQ): ...this new macro.
74985
74986         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74987
74988 2005-09-15  Derek Price  <derek@ximbiot.com>
74989             Paul Eggert  <eggert@cs.ucla.edu>
74990
74991         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74992         changes, consolidating in...
74993         * lib/regex_internal.h: ...this file.
74994
74995 2005-09-13  Jim Meyering  <jim@meyering.net>
74996
74997         * lib/canon-host.c: Filter through gnu indent and reword comments
74998         slightly.
74999         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75000
75001 2005-09-13  Derek Price  <derek@ximbiot.com>
75002
75003         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75004         failure.
75005         Reported by Jim Meyering  <jim@meyering.net>.
75006
75007 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75008
75009         * lib/base64.c: Typo.
75010         (base64_encode): Put b64str in initialized data section.
75011
75012 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75013
75014         Merge glibc and coreutils changes into gnulib, plus a few
75015         extra fixes.
75016         * lib/md5.c: Use #error rather than a string.
75017         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75018         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75019         (__attribute__): Define to empty for non recent-GCC.
75020         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75021         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75022         Renamed from their non-__ counterparts, with new macros replacing
75023         them if not _LIBC.  Add __THROW attribute.
75024         (rol): Remove.
75025         (struct md5_ctx): Align buffer if using GCC.
75026         * lib/sha1.h (struct sha1_ctx): Likewise.
75027         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75028         The old name was backwards.
75029         (NOTSWAP): Remove; not used.
75030         (rol): New macro, moved here from md5.h.
75031         (sha1_process_block): Remove a FIXME that doesn't make sense.
75032
75033 2005-09-12  Derek Price  <derek@ximbiot.com>
75034
75035         Return usable errors from canon-host.
75036         * lib/canon-host.h: New file.
75037         * lib/canon-host.c (canon_host): Wrap...
75038         (canon_host_r): ...this new function, which now relies exclusively on
75039         getaddrinfo.
75040         (ch_strerror): New function.
75041         (last_cherror): New global.
75042         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75043         interface.
75044         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75045         void *.
75046         (freeaddrinfo): Free ai->ai_canonname when set.
75047
75048 2005-09-12  Derek Price  <derek@ximbiot.com>
75049
75050         Make canon-host require getaddrinfo.
75051         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75052         AC_LIBSOURCE canon-host.h.  Call...
75053         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75054         gl_GETADDRINFO.
75055         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75056
75057 2005-09-12  Derek Price  <derek@ximbiot.com>
75058
75059         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75060         LGPL.
75061         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75062
75063 2005-09-12  Derek Price  <derek@ximbiot.com>
75064
75065         * lib/gai_strerror.c: Include config.h when available.  Include
75066         getaddrinfo.h before other headers to test interface.
75067         Reported by Larry Jones <lawrence.jones@ugs.com>.
75068
75069 2005-09-12  Derek Price  <derek@ximbiot.com>
75070             Paul Eggert  <eggert@cs.ucla.edu>
75071
75072         * modules/glob (Files): Add glob-libc.h.
75073
75074 2005-09-12  Derek Price  <derek@ximbiot.com>
75075             Paul Eggert  <eggert@cs.ucla.edu>
75076
75077         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75078         glob_.h, glob-libc.h.
75079         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75080
75081 2005-09-12  Derek Price  <derek@ximbiot.com>
75082             Paul Eggert  <eggert@cs.ucla.edu>
75083
75084         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75085         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75086         protecting things that should be done only in gnulib contexts.
75087         * lib/glob_.h: New file, containing only the glob things needed for
75088         gnulib.
75089         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75090         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75091         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75092         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75093         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75094         and to respect the namespace rules better.
75095
75096 2005-09-08  Simon Josefsson  <jas@extundo.com>
75097
75098         * modules/socklen: New file.
75099
75100 2005-09-08  Simon Josefsson  <jas@extundo.com>
75101
75102         * m4/socklen.m4: New file.
75103
75104 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75105
75106         * modules/utimens (Files): Add m4/utimbuf.m4, since
75107         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75108         Reported by Sergey Poznyakoff.
75109
75110 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75111
75112         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75113         definitions, since that's the preferred style in glibc.
75114         Fix a minor spacing issue, and update copyright notice to match
75115         glibc's.
75116
75117 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75118
75119         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75120
75121 2005-09-06  Simon Josefsson  <jas@extundo.com>
75122
75123         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75124         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75125
75126 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75127
75128         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75129         warning.
75130
75131 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75132
75133         * config/srclist.txt: Add glibc bug 1302.
75134
75135 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75136
75137         Change bitset word type from unsigned int to unsigned long int,
75138         as this has better performance on typical 64-bit hosts.
75139         Port bitset code to hosts with unusual word sizes.
75140         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75141         (build_collating_symbol):
75142         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75143         argument is a bitset.  This is merely a style issue, but it makes
75144         it clearer that an entire array is expected.
75145         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75146         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75147         Port to the case where bitset_word is not the same as unsigned int.
75148         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75149         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75150         Likewise.
75151         * lib/regexec.c (check_dst_limits_calc_pos_1,
75152         check_subexp_matching_top):
75153         (build_trtable, group_nodes_into_DFAstates):
75154         Likewise.
75155         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75156         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75157         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75158         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75159         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75160         * lib/regcomp.c (optimize_subexps, lower_subexp):
75161         Work even if bitset_word has holes in its bitwise representation.
75162         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75163         * lib/regexec.c (check_dst_limits_calc_pos_1,
75164         check_subexp_matching_top):
75165         Likewise.
75166         * lib/regex_internal.c (re_string_reconstruct):
75167         Don't assume UCHAR_MAX == 255.
75168         * lib/regex_internal.h (bitset_set_all): Likewise.
75169         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75170         All uses changed.
75171         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75172         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75173         All uses changed.
75174         (BITSET_WORD_MAX): New macro.
75175         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75176         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75177         (bitset_empty, bitset_copy):
75178         Prefer sizeof (bitset) to multiplying it out ourselves.
75179         (bitset_not_merge): Remove; unused.
75180         (bitset_contain): Return bool, not unsigned int with one bit on.
75181         All callers changed.
75182         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75183         alignment than re_node_set; do this by defining a new internal
75184         type struct dests_alloc and using it to allocate memory.
75185
75186 2005-09-05  Bruno Haible  <bruno@clisp.org>
75187
75188         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75189         links.
75190
75191 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75192
75193         * modules/size_max (Makefile.am): Add size_max.h
75194
75195 2005-09-04  Derek Price  <derek@ximbiot.com>
75196
75197         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75198
75199 2005-09-03  Simon Josefsson  <jas@extundo.com>
75200
75201         * gnulib-tool: Fix typo.
75202
75203 2005-09-03  Simon Josefsson  <jas@extundo.com>
75204
75205         * config/srclist.txt: Add glibc bug 1293.
75206
75207 2005-09-03  Derek Price  <derek@ximbiot.com>
75208
75209         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75210         From Larry Jones <lawrence.jones@ugs.com>.
75211
75212 2005-09-02  Simon Josefsson  <jas@extundo.com>
75213
75214         * modules/socklen: New file.
75215
75216 2005-09-02  Simon Josefsson  <jas@extundo.com>
75217
75218         * modules/havelib: New module.
75219
75220         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75221         Use havelib.
75222
75223 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75224
75225         Check for arithmetic overflow when calculating sizes, to prevent
75226         some buffer-overflow issues.  These patches are conservative, in the
75227         sense that when I couldn't determine whether an overflow was possible,
75228         I inserted a run-time check.
75229         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75230         macros.
75231         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75232         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75233         (re_xnrealloc, re_x2nrealloc): New inline functions.
75234         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75235         parse_bracket_exp):
75236         (build_equiv_class, build_charclass): Check for arithmetic overflow
75237         in size expression calculations.
75238         * lib/regex_internal.c (re_string_realloc_buffers):
75239         (build_wcs_upper_buffer, re_node_set_add_intersect):
75240         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75241         (re_dfa_add_node, register_state): Likewise.
75242         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75243         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75244         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75245         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75246
75247 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75248
75249         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75250         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75251
75252 2005-09-02  Bruno Haible  <bruno@clisp.org>
75253
75254         Support for lib vs. lib64 distinction on biarch platforms.
75255         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75256         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75257         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75258
75259 2005-09-02  Bruno Haible  <bruno@clisp.org>
75260
75261         * gnulib-tool (import): In the other first-use case, provide defaults
75262         as well.
75263
75264 2005-09-02  Bruno Haible  <bruno@clisp.org>
75265
75266         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75267         patches not yet found in the latest gettext release.
75268
75269 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75270
75271         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75272         to avoid a collision with bits/local_lim.h in glibc.
75273         All uses changed.  Problem reported by Dmitry V. Levin in
75274         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75275
75276         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75277         bugs in int versus size_t comparisons.
75278         (re_string_context_at): Fix bug where the code assumed that
75279         Idx is signed.
75280
75281         Use bool where appropriate.
75282         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75283         All callers changed.
75284         (calc_eclosure_iter): Likewise, for ROOT arg.
75285         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75286         (build_charclass_op): Likewise, for NON_MATCH arg.
75287         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75288         (re_string_construct_common): Likewise, for ICASE arg.
75289         * lib/regexec.c (re_search_2_stub, re_search_stub):
75290         Likewise, for RET_LEN arg.
75291         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75292         (set_regs): Likewise, for FL_BACKTRACK arg.
75293         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75294         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75295         (calc_eclosure_iter, parse_bracket_exp):
75296         Use bool for internal variables that are booleans.
75297         * lib/regexec.c (re_search_internal, check_matching,
75298         proceed_next_node):
75299         (set_regs, build_sifted_states, sift_states_bkref):
75300         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75301         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75302         (find_collation_sequence_value):
75303         Likewise.
75304         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75305         (re_node_set_compare):
75306         Return bool, not int. All callers changed.
75307         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75308         (build_trtable, check_node_accept): Likewise.
75309         * lib/regex_internal.h: Include stdbool.h.
75310
75311         Fix bugs uncovered when converting to bool.
75312         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75313         failure instead of charging ahead blindly.
75314         * lib/regex_internal.c (register_state): Likewise.
75315         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75316         for freeing internal storage.
75317         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75318         bitset pieces used as boolean, to avoid undefined behavior
75319         on hosts that do int overflow checking.
75320
75321 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75322
75323         * config/srclist.txt: Add glibc bugs 1285-1287.
75324
75325 2005-09-01  Jim Meyering  <jim@meyering.net>
75326
75327         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75328         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75329         Require gl_STAT_MACROS, too.
75330
75331 2005-09-01  Bruno Haible  <bruno@clisp.org>
75332
75333         * gnulib-tool (import): In the first-use case, provide defaults.
75334
75335 2005-09-01  Bruno Haible  <bruno@clisp.org>
75336
75337         * gnulib-tool (func_import): Remove the .tmp files.
75338
75339 2005-09-01  Bruno Haible  <bruno@clisp.org>
75340
75341         * gnulib-tool (func_import): Fix handling of symbolic links.
75342
75343 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75344
75345         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75346         old glibc regex code mishandles strings longer than 2**31 bytes.
75347         This patch fixes this when the regex code is used in gnulib
75348         (i.e., outside glibc).
75349
75350         This patch should not affect the use of the regex code inside
75351         glibc.  No doubt this problem also needs to be handled for glibc
75352         as well, but the result will be an incompatible change to the
75353         glibc ABI, and the old ABI will have to be supported too.  That
75354         can be the the subject for another patch.
75355
75356         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75357         governing whether the rest of this patch is active.  By default,
75358         the macro is disabled and the patch has no effect.
75359         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75360         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75361         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75362         (re_match_2, re_set_registers): Use the new types.
75363         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75364         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75365         New macros.
75366         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75367         (re_string_context_at, bin_tree_t, re_dfastate_t):
75368         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75369         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75370         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75371         (re_string_char_size_at, re_string_wchar_at):
75372         (re_string_elem_size_at):
75373         Use the new types and macros to port to 64-bit hosts.
75374         Use unsigned types for internal values, so that the code
75375         mostly works even for arrays larger than SSIZE_MAX.
75376         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75377         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75378         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75379         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75380         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75381         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75382         (calc_inveclosure, parse_dup_op, build_range_exp):
75383         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75384         (fetch_number, create_token_tree, mark_opt_subexp):
75385         Likewise.
75386         * lib/regex_internal.c (re_string_construct_common,
75387         create_ci_newstate):
75388         (create_cd_newstate, re_string_allocate, re_string_construct):
75389         (re_string_realloc_buffers, build_wcs_upper_buffer):
75390         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75391         (re_string_reconstruct, re_string_peek_byte_case):
75392         (re_string_fetch_byte_case, re_string_context_at):
75393         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75394         (re_node_set_init_copy, re_node_set_add_intersect):
75395         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75396         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75397         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75398         (re_acquire_state, re_acquire_state_context, register_state):
75399         Likewise.
75400         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75401         search_cur_bkref_entry):
75402         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75403         (re_search_internal, re_search_2_stub, re_search_stub)
75404         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75405         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75406         (update_cur_sifted_state, check_dst_limits):
75407         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75408         (check_subexp_limits, sift_states_bkref, merge_state_array):
75409         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75410         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75411         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75412         (expand_bkref_cache, check_node_accept_bytes):
75413         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75414         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75415         (acquire_init_state_context, check_halt_node_context):
75416         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75417         (sift_states_backward, clean_state_log_if_needed):
75418         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75419         (find_recover_state, transit_state_sb, transit_state_mb):
75420         (transit_state_bkref, build_trtable, match_ctx_clean):
75421         Likewise.
75422         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75423         to work around an assumption that REG_MISSING is negative.
75424
75425         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75426         (seek_collating_symbol_entry) [defined _LIBC]:
75427         (lookup_collation_sequence_value) [defined _LIBC]:
75428         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75429         Use prototypes rather than old-style function definitions.
75430         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75431         (transit_state_sb) [0]:
75432         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75433
75434         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75435         rm_eo.
75436
75437         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75438         (optimize_subexps, lower_subexp):
75439         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75440         since the signed shift might overflow.  Use 1u<<31 instead.
75441         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75442         Likewise.
75443         * lib/regexec.c (check_dst_limits_calc_pos_1,
75444         check_subexp_matching_top): Likewise.
75445
75446         * lib/regcomp.c (optimize_subexps, lower_subexp):
75447         Use CHAR_BIT rather than 8, for clarity.
75448         * lib/regexec.c (check_dst_limits_calc_pos_1):
75449         (check_subexp_matching_top): Likewise.
75450         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75451         have to worry about portability issues when shifting it left.
75452         Remove no-longer-needed test for table_size > 0.
75453         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75454         in a word, as the resulting behavior is undefined.
75455         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75456         in one case, a <= should have been an <, and in another case the
75457         whole test was missing.
75458         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75459         the standard name CHAR_BIT.
75460         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75461         this is not true on one's complement and signed-magnitude hosts.
75462
75463         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75464         next_last_offset.
75465         (struct re_dfa_t): Remove unused member states_alloc.
75466         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75467
75468 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75469
75470         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75471         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75472         and large-file glibc and in 32-bit large-file Solaris.
75473
75474 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75475
75476         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75477         lengths fit in regoff_t; this isn't true if regoff_t is the same
75478         width as size_t.
75479         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75480         (= START + RANGE) instead of RANGE.  This avoids overflow
75481         problems when regoff_t is the same width as size_t.
75482         All callers changed.
75483         (re_search_2_stub): Check for overflow when adding the
75484         sizes of the two strings.
75485         (re_search_stub): Check for overflow when adding START
75486         to RANGE; if it occurs, substitute the extreme value.
75487
75488 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75489
75490         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75491
75492 2005-08-31  Jim Meyering  <jim@meyering.net>
75493
75494         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75495         a pointer-to-const.
75496         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75497         (register_state): Likewise.
75498         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75499         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75500         (group_nodes_into_DFAstates): Likewise.
75501
75502 2005-08-31  Jim Meyering  <jim@meyering.net>
75503
75504         * check-module: Add a FIXME comment.
75505
75506 2005-08-31  Eric Blake  <ebb9@byu.net>
75507
75508         * modules/unistd-safer (Files): Add unistd--.h.
75509         * modules/stdio-safer (Files): Add stdio--.h.
75510
75511 2005-08-31  Derek Price  <derek@ximbiot.com>
75512
75513         * lib/getdelim.c (getdelim): Return EOF on EOF.
75514         Reported by Larry Jones <lawrence.jones@ugs.com>.
75515
75516 2005-08-31  Bruno Haible  <bruno@clisp.org>
75517
75518         Avoid unnecessary diffs in the generated lib/Makefile.am.
75519         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75520         the generated files.
75521         (func_import): Don't set cmd.
75522
75523 2005-08-31  Bruno Haible  <bruno@clisp.org>
75524
75525         * lib/strstr.c: Include <stddef.h>, for NULL.
75526         * lib/strcasestr.c: Likewise.
75527         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75528
75529 2005-08-31  Bruno Haible  <bruno@clisp.org>
75530
75531         * gnulib-tool: New option --macro-prefix.
75532         (func_import): Use macro_prefix.
75533         (import): Handle option --macro-prefix.
75534
75535 2005-08-31  Bruno Haible  <bruno@clisp.org>
75536
75537         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75538         Also use new variables cached_lgpl, cached_libtool.
75539
75540 2005-08-31  Bruno Haible  <bruno@clisp.org>
75541
75542         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75543         always instantiating them.
75544
75545 2005-08-31  Bruno Haible  <bruno@clisp.org>
75546
75547         * gnulib-tool (func_import): Read the previous cached settings
75548         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75549         earlier added by gnulib but are now dropped. Warn when a gnulib file
75550         overwrites a non-gnulib file.
75551
75552 2005-08-31  Bruno Haible  <bruno@clisp.org>
75553
75554         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75555         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75556         projects that don't keep autogenerated files in CVS. Put into
75557         actioncmd only the specified modules, not the transitive closure.
75558
75559 2005-08-31  Bruno Haible  <bruno@clisp.org>
75560
75561         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75562         Create directories that shall be filled.
75563         (import): Don't look for gl_* macros in configure.ac. Recurse across
75564         all directories containing a gnulib-cache.m4 files, if meaningful.
75565
75566 2005-08-31  Bruno Haible  <bruno@clisp.org>
75567
75568         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75569         (import): Set seen_libtool when we see gl_LIBTOOL.
75570
75571 2005-08-31  Bruno Haible  <bruno@clisp.org>
75572
75573         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75574         declaration macro definitions from generated gnulib.m4.
75575
75576 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75577
75578         * lib/iconvme.h: Add prototype for iconv_alloc.
75579
75580 2005-08-29  Simon Josefsson  <jas@extundo.com>
75581
75582         * lib/iconvme.c: Fix errno.
75583
75584 2005-08-29  Bruno Haible  <bruno@clisp.org>
75585
75586         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75587         that it works when the directory contains spaces.
75588
75589 2005-08-29  Bruno Haible  <bruno@clisp.org>
75590
75591         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75592
75593 2005-08-29  Bruno Haible  <bruno@clisp.org>
75594
75595         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75596         Emit more advice.
75597
75598 2005-08-29  Bruno Haible  <bruno@clisp.org>
75599         and Stepan Kasal  <kasal@ucw.cz>
75600
75601         * check-module: If more parameters are given, check each of them
75602         separately; add more exceptions, as noted by Jim Meyering.
75603         (check_module): New procedure.
75604         (%exempt_header): Now contains all exceptions.
75605
75606 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75607
75608         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75609
75610 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75611
75612         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75613
75614 2005-08-28  Bruno Haible  <bruno@clisp.org>
75615
75616         * m4/gnulib-tool.m4: New file.
75617
75618 2005-08-27  Jim Meyering  <jim@meyering.net>
75619
75620         * modules/unistd-safer (Files): Add pipe-safer.c.
75621         * modules/fcntl-safer (Files): Add creat-safer.c.
75622
75623 2005-08-27  Jim Meyering  <jim@meyering.net>
75624
75625         * m4/stdlib-safer.m4: New file.  From coreutils.
75626         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75627         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75628         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75629         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75630         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75631
75632 2005-08-27  Jim Meyering  <jim@meyering.net>
75633
75634         * lib/fopen-safer.c: Merge minor changes from coreutils.
75635         * lib/dup-safer.c: Likewise.
75636         * lib/fd-safer.c: Likewise.
75637
75638         Merge from coreutils.
75639         * lib/stdio--.h: New file.
75640         * lib/stdlib--.h: New file.
75641         * lib/mkstemp-safer.c: New file.
75642
75643         GNU tar needs these.
75644         * lib/pipe-safer.c: New file.
75645         * lib/creat-safer.c: New file.
75646         * lib/fcntl--.h (creat): Define to creat_safer.
75647         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75648         * lib/unistd--.h (pipe): Define to pipe_safer.
75649         * lib/unistd-safer.h: Declare pipe_safer.
75650
75651 2005-08-26  Simon Josefsson  <jas@extundo.com>
75652
75653         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75654         Haible <bruno@clisp.org>.
75655
75656 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75657
75658         * lib/regex_internal.h: Remove all references to
75659         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75660         or better.
75661         (bitset_not, bitset_merge, bitset_not_merge):
75662         (bitset_mask, re_string_allocate, re_string_construct):
75663         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75664         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75665         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75666         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75667         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75668         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75669         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75670         (re_acquire_state_context):
75671         Remove unnecessary forward decls.
75672         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75673         Put __attribute at function definition,
75674         now that the function decl has been removed.
75675         * lib/regex_internal.c (re_string_peek_byte_case):
75676         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75677         Likewise.
75678
75679 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75680
75681         * m4/regex.m4: Add AC_PREREQ(2.50).
75682         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75683
75684 2005-08-25  Simon Josefsson  <jas@extundo.com>
75685
75686         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75687         __fsetlocking.
75688
75689 2005-08-25  Simon Josefsson  <jas@extundo.com>
75690
75691         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75692         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75693         GLIBC specific code.
75694
75695 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75696
75697         Make regex safe for g++.  This fixes one real bug (an "err"
75698         that should have been "*err").  g++ problem reported by
75699         Sam Steingold.
75700         * lib/regex_internal.h (re_calloc): New macro, consistent with
75701         re_malloc etc.  All callers of calloc changed to use re_calloc.
75702         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75703         not int.  All callers changed.
75704         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75705         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75706         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75707         (find_recover_state): Change "err" to "*err"; this fixes what
75708         appears to be a real bug.
75709         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75710         versus int.
75711
75712 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75713
75714         * modules/regex (Depends-on): Add malloc, since the code
75715         assumes that !malloc(0) means failure.
75716
75717 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75718
75719         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75720
75721         alloca modernization/simplification for regex.
75722         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75723         needs to be at the start of the file, and can be moved into
75724         regex_internal.h and simplified.
75725         * lib/regex_internal.h: Include <alloca.h>.
75726         (__libc_use_alloca) [!defined _LIBC]: New macro.
75727         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75728         now works outside glibc.
75729
75730 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75731
75732         * config/srclist.txt: Add glibc bugs 1241, 1245.
75733
75734 2005-08-25  Jim Meyering  <jim@meyering.net>
75735
75736         * lib/open-safer.c: Include <config.h>.
75737         Otherwise, we'd lose LARGEFILE support in any file using
75738         e.g. "fcntl--.h"
75739
75740 2005-08-25  Bruno Haible  <bruno@clisp.org>
75741
75742         * m4/minmax.m4: Require autoconf 2.52.
75743         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75744         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75745         alternatives of translit over the alphabet.
75746         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75747
75748 2005-08-24  Simon Josefsson  <jas@extundo.com>
75749
75750         * tests/test-getpass.c: New file.
75751
75752 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75753
75754         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75755         for GNU regex features.
75756
75757 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75758
75759         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75760         * lib/regex.h (regerror): Likewise.
75761
75762         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75763         requires this.  (The code never needed it.)
75764
75765         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75766         All uses of recently-renamed identifiers changed to use the new,
75767         POSIX-compliant names.  The code will build and run just fine
75768         without these changes, but it's better to eat our own dog food
75769         and use the standard-conforming names.
75770
75771         * lib/regex.h: Fix a multitude of POSIX name space violations.
75772         These changes have an effect only for programs that define
75773         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75774         do not change anything for programs compiled in the normal way.
75775         Also, there is no effect on the ABI.
75776
75777         (_REGEX_SOURCE): New macro.
75778         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75779         defined and _GNU_SOURCE is not; this fixes a name space violation.
75780
75781         Rename the following macros to obey POSIX requirements.
75782         The old names are still visible as macros if _REGEX_SOURCE is defined.
75783         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75784         RE_BACKSLASH_ESCAPE_IN_LISTS.
75785         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75786         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75787         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75788         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75789         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75790         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75791         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75792         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75793         (REG_INTERVALS): renamed from RE_INTERVALS.
75794         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75795         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75796         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75797         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75798         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75799         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75800         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75801         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75802         RE_UNMATCHED_RIGHT_PAREN_ORD.
75803         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75804         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75805         (REG_DEBUG): renamed from RE_DEBUG.
75806         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75807         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75808         unusual, since we can't clash with the POSIX REG_ICASE.
75809         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75810         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75811         (REG_NO_SUB): renamed from RE_NO_SUB.
75812         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75813         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75814         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75815         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75816         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75817         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75818         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75819         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75820         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75821         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75822         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75823         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75824         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75825         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75826         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75827         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75828         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75829         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75830         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75831         (REG_FIXED): Renamed from REGS_FIXED.
75832         (REG_NREGS): Renamed from RE_NREGS.
75833
75834         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75835         of other REG_* macros, since POSIX says the user is allowed to
75836         #undef these macros selectively.
75837
75838         (reg_errcode_t): Update comment stating what other tables need
75839         to be consistent.
75840
75841         Rename the following enum values to obey POSIX requirements.
75842         The old names are still visible as macros.
75843         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75844         is not defined, since GNU is supposed to be a superset of POSIX as
75845         much as possible, and since we want reg_errcode_t to be a signed
75846         type for implementation consistency.
75847         (_REG_NOERROR): Renamed from REG_NOERROR.
75848         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75849         (_REG_BADPAT): Renamed from REG_BADPAT.
75850         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75851         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75852         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75853         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75854         (_REG_EBRACK): Renamed from REG_EBRACK.
75855         (_REG_EPAREN): Renamed from REG_EPAREN.
75856         (_REG_EBRACE): Renamed from REG_EBRACE.
75857         (_REG_BADBR): Renamed from REG_BADBR.
75858         (_REG_ERANGE): Renamed from REG_ERANGE.
75859         (_REG_ESPACE): Renamed from REG_ESPACE.
75860         (_REG_BADRPT): Renamed from REG_BADRPT.
75861         (_REG_EEND): Renamed from REG_EEND.
75862         (_REG_ESIZE): Renamed from REG_ESIZE.
75863         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75864         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75865         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75866         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75867         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75868
75869         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75870         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75871         changed.  But support the old name if the new one is not defined
75872         and if _REGEX_SOURCE.
75873
75874         Change the following member names in struct re_pattern_buffer.
75875         The old names are still supported if !_REGEX_SOURCE.
75876         The new names are always supported, regardless of _REGEX_SOURCE.
75877         (re_buffer): Renamed from buffer.
75878         (re_allocated): Renamed from allocated.
75879         (re_used): Renamed from used.
75880         (re_syntax): Renamed from syntax.
75881         (re_fastmap): Renamed from fastmap.
75882         (re_translate): Renamed from translate.
75883         (re_can_be_null): Renamed from can_be_null.
75884         (re_regs_allocated): Renamed from regs_allocated.
75885         (re_fastmap_accurate): Renamed from fastmap_accurate.
75886         (re_no_sub): Renamed from no_sub.
75887         (re_not_bol): Renamed from not_bol.
75888         (re_not_eol): Renamed from not_eol.
75889         (re_newline_anchor): Renamed from newline_anchor.
75890
75891         Change the following member names in struct re_registers.
75892         The old names are still supported if !_REGEX_SOURCE.
75893         The new names are always supported, regardless of _REGEX_SOURCE.
75894         (rm_num_regs): Renamed from num_regs.
75895         (rm_start): Renamed from start.
75896         (rm_end): Renamed from end.
75897
75898         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75899         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75900         Prepend __ to parameter names.
75901
75902         Undo yesterday's changes.
75903
75904 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75905
75906         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75907         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75908         lib/regex.c.
75909
75910 2005-08-24  Jim Meyering  <jim@meyering.net>
75911
75912         Sync from coreutils.
75913         * m4/fcntl-safer.m4: New file.
75914
75915         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75916         and object files for this module.
75917
75918 2005-08-24  Jim Meyering  <jim@meyering.net>
75919
75920         Sync from coreutils.
75921         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75922
75923 2005-08-24  Jim Meyering  <jim@meyering.net>
75924
75925         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75926         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75927
75928 2005-08-24  Jim Meyering  <jim@meyering.net>
75929
75930         * modules/fcntl-safer: New module.
75931         * modules/fts (Depends-on): Add fcntl-safer.
75932         * MODULES.html.sh (File descriptor based Input/Output):
75933         Add fcntl-safer.
75934
75935 2005-08-24  Bruno Haible  <bruno@clisp.org>
75936
75937         Support for unit test modules.
75938         * modules/README: Mention tests modules.
75939         * modules/TEMPLATE-TESTS: New file.
75940         * gnulib-tool: New options --extract-tests-module, --with-tests and
75941         --tests-base (unused for the moment).
75942         (testsbase, inctests): New variables.
75943         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75944         (func_verify_module): Exclude TEMPLATE-TESTS.
75945         (func_verify_nontests_module, func_verify_tests_module): New functions.
75946         (func_get_dependencies): Add implicit dependency for tests modules.
75947         (func_get_tests_module): New function.
75948         (func_modules_transitive_closure): When --with-tests was specified,
75949         include the unit tests as well, unless explicitly avoided.
75950         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75951         (func_emit_tests_Makefile_am): New function.
75952         (func_create_testdir): When --with-tests was specified, emit a
75953         tests/ directory.
75954         * MODULES.html.sh (Future developments): Update.
75955
75956 2005-08-24  Bruno Haible  <bruno@clisp.org>
75957
75958         * modules/tls-tests: New file.
75959         * tests/test-tls.c: New file, from GNU gettext.
75960
75961 2005-08-24  Bruno Haible  <bruno@clisp.org>
75962
75963         * modules/lock-tests: New file.
75964         * tests/test-lock.c: New file, from GNU gettext.
75965
75966 2005-08-24  Bruno Haible  <bruno@clisp.org>
75967
75968         * lib/lock.h: Add multiple inclusion guard.
75969         * lib/tls.h: Add multiple inclusion guard.
75970
75971 2005-08-24  Bruno Haible  <bruno@clisp.org>
75972
75973         * gnulib-tool: Add support for the --aux-dir option to
75974         --create-testdir, --create-megatestdir, --test, --megatest.
75975         (func_create_testdir, func_create_megatestdir): Optionally emit a
75976         AC_CONFIG_AUX_DIR directive.
75977         (create-testdir, create-megatestdir, test, megatest): Provide a
75978         default value for $auxdir.
75979
75980 2005-08-24  Bruno Haible  <bruno@clisp.org>
75981
75982         * gnulib-tool (import): Use compound statement instead of subshell
75983         where possible.
75984
75985 2005-08-24  Bruno Haible  <bruno@clisp.org>
75986
75987         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75988
75989 2005-08-24  Bruno Haible  <bruno@clisp.org>
75990
75991         * gnulib-tool (func_version): Update.
75992
75993 2005-08-24  Bruno Haible  <bruno@clisp.org>
75994
75995         * gnulib-tool (func_import, func_create_testdir,
75996         func_create_megatestdir): Quote all autoconf macro arguments.
75997
75998 2005-08-24  Bruno Haible  <bruno@clisp.org>
75999
76000         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76001         option --force, because --force causes the aclocal.m4 of each
76002         subdirectory to be newer than the corresponding config.h.in.
76003
76004 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76005
76006         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76007         All contents moved to gl_REGEX.
76008         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76009         assume that it does.
76010
76011 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76012
76013         * lib/regex.h (REG_NOSYS)
76014         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76015         Define, since POSIX requires it as of 2001.
76016         (_REG_ENOSYS)
76017         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76018         New private symbol, used to keep the enum signed in all cases.
76019         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76020         Youngman in
76021         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76022
76023         * lib/regex_internal.c (re_string_skip_chars, register_state):
76024         (calc_state_hash):
76025         Remove forward decls; no longer needed now that we use prototypes.
76026         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76027         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76028         (clean_state_log_if_needed): Likewise.
76029
76030 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76031
76032         * config/srclist.txt: Add glibc bugs 1231-1233.
76033
76034 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76035
76036         Fix problems reported by Sam Steingold in
76037         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76038         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76039         assumed that reg_errcode_t is a signed type, which is not
76040         necessarily true if _XOPEN_SOURCE is not defined.
76041         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76042         since some compilers warn about it otherwise.
76043
76044 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76045
76046         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76047         (init_word_char, create_initial_state, duplicate_node_closure):
76048         (fetch_token, peek_token_bracket, build_range_exp):
76049         (build_collating_symbol): Remove forward decls; no longer needed
76050         now that we use prototypes.
76051
76052         * lib/regcomp.c:
76053         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76054         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76055         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76056         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76057         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76058         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76059         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76060         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76061         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76062         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76063         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76064         (build_charclass, build_charclass_op, fetch_number, create_tree):
76065         (create_token_tree, mark_opt_subexp, duplicate_tree):
76066         Use prototypes rather than old-style definitions.
76067
76068         * lib/regex_internal.c:
76069         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76070         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76071         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76072         (re_string_reconstruct, re_string_peek_byte_case):
76073         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76074         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76075         (re_node_set_init_copy, re_node_set_add_intersect):
76076         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76077         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76078         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76079         (re_acquire_state, re_acquire_state_context, register_state):
76080         (create_ci_newstate, create_cd_newstate, free_state):
76081         Likewise.
76082         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76083         re_search_2):
76084         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76085         (re_search_internal, prune_impossible_nodes):
76086         (acquire_init_state_context, check_matching, static):
76087         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76088         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76089         (update_regs, sift_states_backward, build_sifted_states):
76090         (clean_state_log_if_needed, merge_state_array):
76091         (update_cur_sifted_state, add_epsilon_src_nodes):
76092         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76093         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76094         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76095         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76096         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76097         (check_arrival, check_arrival_add_next_nodes):
76098         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76099         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76100         (check_node_accept_bytes, check_node_accept, extend_buffers):
76101         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76102         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76103         (sift_ctx_init):
76104         Likewise.
76105
76106         * lib/regex_internal.h:
76107         (re_string_allocate, re_string_construct, re_string_reconstruct):
76108         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76109         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76110         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76111         (re_string_context_at, re_string_peek_byte_case):
76112         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76113         is defined, since we now use prototypes always.
76114
76115         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76116         C89 or better.  All uses removed.
76117
76118 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76119
76120         * config/srclist.txt: Add glibc bugs 1220-1227.
76121
76122 2005-08-20  Jim Meyering  <jim@meyering.net>
76123
76124         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76125         of unused local, dfa.
76126
76127 2005-08-20  Bruno Haible  <bruno@clisp.org>
76128
76129         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76130
76131 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76132
76133         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76134         (re_node_set_insert_last, re_dfa_add_node):
76135         Rename local variables to avoid GCC shadowing warnings.
76136
76137 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76138
76139         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76140         [defined lint]: Suppress bogus uninitialized-variable warnings.
76141
76142         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76143         and let the caller return REG_ESPACE if out of space.  This
76144         removes an uninitialied-variable warning with GCC 4.0.1, and also
76145         avoids taking the address of a local variable.  All callers
76146         changed.
76147
76148 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76149
76150         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76151         $LIBCSRC/posix/regexec.c.
76152         Add glibc bug 1217 for regcomp.c.
76153
76154 2005-08-19  Jim Meyering  <jim@meyering.net>
76155
76156         * lib/regexec.c (proceed_next_node): Redo local variables to
76157         avoid GCC shadowing warnings.
76158
76159 2005-08-18  Bruno Haible  <bruno@clisp.org>
76160
76161         * lib/strstr.c (strstr): Fix return value in multibyte case.
76162         * lib/strcasestr.c (strcasestr): Likewise.
76163
76164 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76165
76166         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76167
76168 2005-08-17  Jim Meyering  <jim@meyering.net>
76169
76170         Make the %s format (seconds since the epoch) work for a negative
76171         number and when used with a zero-padded field width, e.g. %015s.
76172
76173         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76174         label so that it precedes the code to set `digits'.  Otherwise,
76175         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76176         print `00-22'.  Now, it prints `-0022', as it should.
76177
76178 2005-08-17  Bruno Haible  <bruno@clisp.org>
76179
76180         * modules/strstr (Files): Add m4/mbrtowc.m4.
76181         (Depends-on): Add mbuiter.
76182
76183 2005-08-17  Bruno Haible  <bruno@clisp.org>
76184
76185         * modules/strcasestr: New file.
76186         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76187         strcasestr.
76188
76189 2005-08-17  Bruno Haible  <bruno@clisp.org>
76190
76191         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76192
76193 2005-08-17  Bruno Haible  <bruno@clisp.org>
76194
76195         * modules/mbuiter: New file.
76196         * MODULES.html.sh (Extended multibyte and wide character utilities):
76197         Add mbuiter.
76198
76199 2005-08-17  Bruno Haible  <bruno@clisp.org>
76200
76201         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76202         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76203
76204 2005-08-17  Bruno Haible  <bruno@clisp.org>
76205
76206         * m4/strcasestr.m4: New file.
76207
76208 2005-08-17  Bruno Haible  <bruno@clisp.org>
76209
76210         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76211         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76212
76213 2005-08-17  Bruno Haible  <bruno@clisp.org>
76214
76215         * lib/strcasestr.h: New file.
76216         * lib/strcasestr.c: New file.
76217
76218 2005-08-17  Bruno Haible  <bruno@clisp.org>
76219
76220         * lib/strcasecmp.c: Use mbuiter.h.
76221
76222 2005-08-17  Bruno Haible  <bruno@clisp.org>
76223
76224         * lib/mbuiter.h: New file.
76225
76226 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76227
76228         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76229         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76230         and gl_GETOPT are both invoked via different paths (as happens
76231         with GNU tar CVS because it uses both argp and getopt), the former
76232         wins.
76233
76234 2005-08-16  Bruno Haible  <bruno@clisp.org>
76235
76236         * modules/tls: New file.
76237         * MODULES.html.sh (Multithreading): Add tls.
76238
76239 2005-08-16  Bruno Haible  <bruno@clisp.org>
76240
76241         * modules/strnlen1: New file.
76242         * MODULES.html.sh (String handling): Add strnlen1.
76243
76244 2005-08-16  Bruno Haible  <bruno@clisp.org>
76245
76246         * modules/strcase (Files): Add m4/mbrtowc.m4.
76247         (Depends-on): Add strnlen1, mbchar.
76248
76249 2005-08-16  Bruno Haible  <bruno@clisp.org>
76250
76251         * modules/mbiter: New file.
76252         * MODULES.html.sh (Extended multibyte and wide character utilities):
76253         Add mbiter.
76254
76255 2005-08-16  Bruno Haible  <bruno@clisp.org>
76256
76257         * modules/mbfile: New file.
76258         * MODULES.html.sh (Extended multibyte and wide character utilities):
76259         Add mbfile.
76260
76261 2005-08-16  Bruno Haible  <bruno@clisp.org>
76262
76263         * modules/mbchar: New file.
76264         * MODULES.html.sh (Extended multibyte and wide character utilities):
76265         New section.
76266
76267 2005-08-16  Bruno Haible  <bruno@clisp.org>
76268
76269         * m4/tls.m4: New file, from GNU gettext.
76270
76271 2005-08-16  Bruno Haible  <bruno@clisp.org>
76272
76273         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76274         always.
76275         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76276
76277 2005-08-16  Bruno Haible  <bruno@clisp.org>
76278
76279         * m4/mbiter.m4: New file.
76280
76281 2005-08-16  Bruno Haible  <bruno@clisp.org>
76282
76283         * m4/mbfile.m4: New file.
76284
76285 2005-08-16  Bruno Haible  <bruno@clisp.org>
76286
76287         * m4/mbchar.m4: New file.
76288
76289 2005-08-16  Bruno Haible  <bruno@clisp.org>
76290
76291         * lib/tls.h: New file, from GNU gettext.
76292         * lib/tls.c: New file, from GNU gettext.
76293
76294 2005-08-16  Bruno Haible  <bruno@clisp.org>
76295
76296         * lib/strnlen1.h: New file.
76297         * lib/strnlen1.c: New file.
76298
76299 2005-08-16  Bruno Haible  <bruno@clisp.org>
76300
76301         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76302         (mbi_init): Update.
76303         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76304         NUL byte, not after it.
76305
76306 2005-08-16  Bruno Haible  <bruno@clisp.org>
76307
76308         * lib/strcase.h (strcasecmp): Add note in comments.
76309         * lib/strncasecmp.c: Use code from strcasecmp.c.
76310         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76311         (strcasecmp): Work correctly in multibyte locales.
76312
76313 2005-08-16  Bruno Haible  <bruno@clisp.org>
76314
76315         * lib/mbiter.h: New file.
76316
76317 2005-08-16  Bruno Haible  <bruno@clisp.org>
76318
76319         * lib/mbfile.h: New file.
76320
76321 2005-08-16  Bruno Haible  <bruno@clisp.org>
76322
76323         * lib/mbchar.h: New file.
76324         * lib/mbchar.c: New file.
76325
76326 2005-08-16  Bruno Haible  <bruno@clisp.org>
76327
76328         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76329         the valid ones. Makes the comparison operations transitive:
76330         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76331         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76332
76333 2005-08-15  Simon Josefsson  <jas@extundo.com>
76334
76335         * modules/ssize_t (License): Change to 'unlimited'.
76336
76337         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76338
76339 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76340
76341         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76342         Add comments for each pending glibc patch.
76343
76344 2005-08-15  Bruno Haible  <bruno@clisp.org>
76345
76346         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76347         __cplusplus is defined.
76348
76349 2005-08-14  Jim Meyering  <jim@meyering.net>
76350
76351         Sync from coreutils.
76352
76353         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76354         Use the hash-table-based cycle-detection code not just when
76355         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76356         Reported by James Youngman in
76357         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76358         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76359         FTS_TIGHT_CYCLE_CHECK.
76360         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76361         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76362         once again.
76363         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76364         * lib/fts.c (fd_safer): Remove decl.
76365         Include fcntl--.h rather than unistd-safer.h
76366         (fts_safe_changedir): Don't call fd_safer; no longer needed
76367         now that we include fcntl--.h.
76368
76369 2005-08-12  Simon Josefsson  <jas@extundo.com>
76370
76371         * modules/getndelim2: Use ssize_t module.
76372         * modules/getnline: Likewise.
76373         * modules/safe-read: Likewise.
76374         * modules/xreadlink: Likewise.
76375
76376         * modules/ssize_t: New file.
76377
76378 2005-08-12  Simon Josefsson  <jas@extundo.com>
76379
76380         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76381
76382 2005-08-12  Simon Josefsson  <jas@extundo.com>
76383
76384         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76385         ssize_t.
76386
76387 2005-08-12  Simon Josefsson  <jas@extundo.com>
76388
76389         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76390         readline, getdelim and check_version.
76391         (Support for systems lacking ISO C 99: Sizes of integer types):
76392         Add size_max.
76393
76394 2005-08-12  Bruno Haible  <bruno@clisp.org>
76395
76396         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76397
76398 2005-08-11  Simon Josefsson  <jas@extundo.com>
76399
76400         * modules/readline: New file.
76401
76402         * modules/strnlen (Files): Add strnlen.h.
76403
76404 2005-08-11  Simon Josefsson  <jas@extundo.com>
76405
76406         * m4/readline.m4: New file.
76407
76408 2005-08-11  Simon Josefsson  <jas@extundo.com>
76409
76410         * lib/readline.h, readline.c: New file.
76411
76412 2005-08-11  Simon Josefsson  <jas@extundo.com>
76413
76414         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76415         gl_AVOID.
76416
76417 2005-08-11  Bruno Haible  <bruno@clisp.org>
76418
76419         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76420
76421 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76422
76423         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76424
76425 2005-08-10  Simon Josefsson  <jas@extundo.com>
76426
76427         * tests/test-iconvme.c: New file.
76428
76429 2005-08-10  Simon Josefsson  <jas@extundo.com>
76430
76431         * m4/strnlen.m4: New file.
76432
76433         * m4/strndup.m4: Don't check for strnlen declaration, done in
76434         strnlen.m4.
76435
76436 2005-08-10  Simon Josefsson  <jas@extundo.com>
76437
76438         * lib/strndup.c: Use strnlen.h.
76439
76440         * lib/strnlen.h: New file.
76441
76442 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76443
76444         * README: Typos.
76445
76446 2005-08-02  Simon Josefsson  <jas@extundo.com>
76447
76448         * modules/readline: New file.
76449
76450 2005-08-02  Simon Josefsson  <jas@extundo.com>
76451
76452         * modules/getdelim: New file.
76453
76454         * modules/getline: Rewrite, don't use getndelim2.
76455
76456 2005-08-02  Simon Josefsson  <jas@extundo.com>
76457
76458         * m4/getline.m4: Separate out getdelim stuff into separate module.
76459
76460         * m4/getdelim.m4: New file.
76461
76462 2005-08-02  Simon Josefsson  <jas@extundo.com>
76463
76464         * lib/getline.h, getline.c: Rewrite.
76465
76466         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76467
76468 2005-07-31  Bruno Haible  <bruno@clisp.org>
76469
76470         * lib/lock.h (gl_lock_initializer): New macro.
76471         (gl_lock_define_initialized): Use it.
76472         (gl_rwlock_initializer): New macro.
76473         (gl_rwlock_define_initialized): Use it.
76474         (gl_recursive_lock_initializer): New macro.
76475         (gl_recursive_lock_define_initialized): Use it.
76476
76477 2005-07-30  Karl Berry  <karl@gnu.org>
76478
76479         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76480         Report from Ben Pfaff, regarding getopt.
76481
76482 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76483
76484         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76485         normal way.
76486         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76487         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76488         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76489         (gl_GETOPT): Use the new macros.  Most of the implementation
76490         is moved to the new macros.  This is for programs like Emacs
76491         that don't want all the functionality of gl_GETOPT.
76492
76493 2005-07-26  Bruno Haible  <bruno@clisp.org>
76494
76495         * m4/lock.m4: Update from GNU gettext.
76496
76497 2005-07-26  Bruno Haible  <bruno@clisp.org>
76498
76499         * lib/lock.h: Update from GNU gettext.
76500         * lib/lock.c: Update from GNU gettext.
76501
76502 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76503
76504         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76505         obsolescent AC_TRY_RUN.  Include the default includes files, for
76506         'exit'.
76507
76508 2005-07-24  Bruno Haible  <bruno@clisp.org>
76509
76510         * modules/visibility: New file.
76511         * MODULES.html.sh (Misc): Add visibility.
76512
76513 2005-07-24  Bruno Haible  <bruno@clisp.org>
76514
76515         * m4/visibility.m4: New file.
76516
76517 2005-07-24  Bruno Haible  <bruno@clisp.org>
76518
76519         * doc/visibility.texi: New file.
76520
76521 2005-07-22  Bruno Haible  <bruno@clisp.org>
76522
76523         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76524         $(ALLOCA_H), redundant through BUILT_SOURCES.
76525         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76526         redundant through BUILT_SOURCES.
76527         * modules/byteswap (Makefile.am): Remove explicit dependency on
76528         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76529         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76530         $(FNMATCH_H), redundant through BUILT_SOURCES.
76531         * modules/getopt (Makefile.am): Remove explicit dependency on
76532         $(GETOPT_H), redundant through BUILT_SOURCES.
76533         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76534         redundant through BUILT_SOURCES.
76535         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76536         redundant through BUILT_SOURCES.
76537         * modules/stdbool (Makefile.am): Remove explicit dependency on
76538         $(STDBOOL_H), redundant through BUILT_SOURCES.
76539         * modules/stdint (Makefile.am): Remove explicit dependency on
76540         $(STDINT_H), redundant through BUILT_SOURCES.
76541         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76542         Remove explicit dependency on $(SYSEXITS_H).
76543         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76544
76545 2005-07-18  Simon Josefsson  <jas@extundo.com>
76546
76547         * lib/check-version.c (check_version): Accept identical versions too.
76548
76549 2005-07-18  Bruno Haible  <bruno@clisp.org>
76550
76551         * modules/lock: New file.
76552         * MODULES.html.sh (Multithreading): New section.
76553
76554 2005-07-18  Bruno Haible  <bruno@clisp.org>
76555
76556         * m4/lock.m4: New file, from GNU gettext.
76557
76558 2005-07-18  Bruno Haible  <bruno@clisp.org>
76559
76560         * lib/lock.h: New file, from GNU gettext.
76561         * lib/lock.c: New file, from GNU gettext.
76562
76563 2005-07-18  Bruno Haible  <bruno@clisp.org>
76564
76565         * lib/lock.h (gl_once_t): New type.
76566         (gl_once_define, gl_once): New macros.
76567         * lib/lock.c (fresh_once): New variable.
76568         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76569         functions.
76570
76571 2005-07-16  Simon Josefsson  <jas@extundo.com>
76572
76573         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76574         workaround, suggested by Bruno.
76575
76576 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76577
76578         * modules/xalloc (Depends-on): Add xalloc-die.
76579         * modules/xvasprintf (Depends-on): Add xalloc-die.
76580
76581 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76582
76583         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76584         with a minor change.
76585
76586 2005-07-15  Bruno Haible  <bruno@clisp.org>
76587
76588         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76589         When using lib/poll.c, define poll as rpl_poll.
76590
76591 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76592
76593         * modules/argp (Depends-on): Remove unlocked-io.
76594
76595 2005-07-14  Derek Price  <derek@ximbiot.com>
76596
76597         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76598         for glob symlink bug.
76599
76600 2005-07-14  Bruno Haible  <bruno@clisp.org>
76601
76602         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76603         Instead, test for *_unlocked function declarations directly.
76604
76605 2005-07-11  Simon Josefsson  <jas@extundo.com>
76606
76607         * modules/size_max: New file.
76608
76609         * modules/xsize: Depend on size_max module for size_max.m4.
76610
76611 2005-07-11  Simon Josefsson  <jas@extundo.com>
76612
76613         * lib/size_max.h: New file.
76614
76615 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76616
76617         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76618         copyright symbol and the year.
76619         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76620         (version_etc_va): Use parameterized copyright notice.
76621         Reword to conform to the current GNU coding standards.
76622
76623 2005-07-11  Karl Berry  <karl@gnu.org>
76624
76625         * doc/gnulib.texi (Quoting): new node.
76626         (Initial import): more info, from Patrice.
76627
76628 2005-07-11  Bruno Haible  <bruno@clisp.org>
76629
76630         * gnulib-tool (func_usage): Document option --avoid.
76631         (Command line options): Handle --avoid.
76632         (func_acceptable): New function.
76633         (func_modules_transitive_closure): Use it.
76634
76635 2005-07-11  Bruno Haible  <bruno@clisp.org>
76636
76637         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76638         Reported by Jim Meyering.
76639
76640 2005-07-10  Bruno Haible  <bruno@clisp.org>
76641
76642         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76643         Needed when size_t is smaller than 'unsigned int'.
76644         Reported by Paul Eggert.
76645
76646 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76647
76648         * modules/argp (Depends-on): Add unlocked-io
76649
76650 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76651
76652         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76653         block of defines.
76654
76655 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76656
76657         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76658         fix now.
76659
76660 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76661         and Paul Eggert  <eggert@cs.ucla.edu>
76662
76663         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76664         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76665
76666 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76667
76668         * modules/regex (Files): Add lib/regex_internal.c,
76669         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76670         (Depends-on): Add extensions.
76671         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76672
76673 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76674
76675         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76676         pathconf.
76677         * m4/same.m4 (gl_SAME): Likewise.
76678         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76679
76680         * m4/regex.m4: Adjust to new libc regex implementation.
76681         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76682         all the .c and .h parts of (the new) regex.
76683         Quote the m4 stuff better.
76684         Check for RE_ICASE bug of old gnulib.
76685         Check for REG_STARTEND of recent libc.
76686         Rename local variables from jm_* to gl_*.
76687         Quote operand of "test -f".
76688         Say "recent enough" version of libc, not "version 2".
76689         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76690         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76691         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76692         Remove check for btowc, isascii.
76693         Require AM_LANGINFO_CODESET.
76694
76695 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76696
76697         * lib/regex.c, regex.h: Sync from libc.
76698         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76699         * lib/regexec.c:
76700         New files, synced from libc, except that regex_internal.h
76701         currently has a small porting fix.
76702
76703 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76704
76705         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76706         regex_internal.c, regexec.c.
76707         Add regex_internal.h too, but as a comment, since the libc version
76708         is currently broken in gnulib mode.
76709
76710 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76711
76712         Support programs like Emacs that use gnulib but not gettext.
76713         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76714         * modules/gettext-h: New file.
76715         * modules/gettext (Files): Remove lib/gettext.h.
76716         (Depends-on): Add gettext-h.
76717         (Makefile.am): Remove lib_SOURCES.
76718         * modules/argmatch, modules/c-stack, modules/closeout:
76719         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76720         * modules/execute, modules/file-type, modules/getaddrinfo:
76721         * modules/getopt, modules/human, modules/javacomp:
76722         * modules/javaexec, modules/mkdir-p, modules/obstack:
76723         * modules/openat, modules/pagealign_alloc, modules/pipe:
76724         * modules/quotearg, modules/regex, modules/rpmatch:
76725         * modules/unicodeio, modules/userspec, modules/version-etc:
76726         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76727         * modules/xsetenv:
76728         Depend on gettext-h, not gettext.
76729
76730 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76731
76732         * gnulib-tool (func_import): Add support for 'public domain' license.
76733         * modules/alloca, modules/atexit, modules/memmove:
76734         Now public domain, not GPL.
76735         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76736         * modules/realloc, modules/strerror, modules/strtod:
76737         Now LGPL, not GPL.
76738
76739 2005-07-05  Bruno Haible  <bruno@clisp.org>
76740
76741         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76742         autoconf CVS. Needed for mingw.
76743
76744 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76745
76746         Remove the dependency of the strftime module on the tzset module.
76747         * modules/strftime (Depends-on): Remove dependency on tzset.
76748
76749 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76750
76751         Remove the dependency of the strftime module on the tzset module.
76752         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76753         gl_FUNC_TZSET_CLOBBER.
76754
76755 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76756
76757         Remove the dependency of the strftime module on the tzset module.
76758         * lib/strftime.c (my_strftime)
76759         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76760         Copy the input structure, to work around some of the bug with
76761         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76762         Solaris releases, you should also use the tzset module, but we won't
76763         require it as a dependency any more since we don't want LGPLed code
76764         to depend on GPLed code.
76765
76766 2005-07-02  Jim Meyering  <jim@meyering.net>
76767
76768         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76769         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76770         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76771         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76772
76773 2005-07-02  Jim Meyering  <jim@meyering.net>
76774
76775         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76776
76777 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76778
76779         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76780         declares only 'struct timespec;' (!).
76781
76782 2005-07-01  Jim Meyering  <jim@meyering.net>
76783
76784         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76785         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76786         * lib/save-cwd.c, tempname.c:
76787         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76788         and don't include <sys/file.h>).
76789
76790 2005-06-29  Jim Meyering  <jim@meyering.net>
76791
76792         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76793         type name.  Use the variable name instead.
76794         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76795         Likewise.
76796
76797 2005-06-28  Simon Josefsson  <jas@extundo.com>
76798
76799         * modules/check-version (Files): Add check-version.m4.
76800
76801 2005-06-28  Simon Josefsson  <jas@extundo.com>
76802
76803         * m4/check-version.m4: New file, suggested by Jim Meyering
76804         <jim@meyering.net>.
76805
76806 2005-06-28  Simon Josefsson  <jas@extundo.com>
76807
76808         * lib/check-version.h, lib/check-version.c: New files.
76809
76810 2005-06-28  Simon Josefsson  <jas@extundo.com>
76811
76812         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76813         collision with global variable.  Better indentation.  Don't
76814         increment buffer pointer beyond buffer end.  Based on comments
76815         from Paul Eggert <eggert@cs.ucla.edu>.
76816
76817         * lib/base64.h: Indent.
76818
76819 2005-06-28  Simon Josefsson  <jas@extundo.com>
76820
76821         * doc/gnulib.texi (Library version handling): New section.
76822
76823 2005-06-28  Jim Meyering  <jim@meyering.net>
76824
76825         * check-module (find_included_lib_files): Hard-code another
76826         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76827         but modules/fts-lgpl (correctly) does not list those files.
76828
76829         * modules/canonicalize (Files): Add lib/pathmax.h.
76830
76831 2005-06-25  Simon Josefsson  <jas@extundo.com>
76832
76833         * modules/check-version: New file.
76834
76835 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76836
76837         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76838         initializer of struct addrinfo, as an indication that we don't
76839         care how many members the structure has.
76840
76841 2005-06-24  Derek Price  <derek@ximbiot.com>
76842         and Bruno Haible  <bruno@clisp.org>
76843
76844         Remove stat module & update lstat.
76845         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76846         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76847         * m4/stat.m4: Remove this file.
76848
76849 2005-06-24  Derek Price  <derek@ximbiot.com>
76850         and Bruno Haible  <bruno@clisp.org>
76851
76852         Remove stat module & update lstat.
76853         * lib/stat.c: Remove this file...
76854         (slash_aware_lstat): ...moving this content and its support...
76855         * lib/lstat.c (rpl_lstat): ...into here.
76856         * lib/lstat.h: New file.
76857
76858 2005-06-24  Derek Price  <derek@ximbiot.com>
76859         and Bruno Haible  <bruno@clisp.org>
76860
76861         Remove stat module & update lstat.
76862         * config/srclist.txt (libc sources): Remove stat.
76863
76864 2005-06-24  Derek Price  <derek@ximbiot.com>
76865         and Bruno Haible  <bruno@clisp.org>
76866
76867         Remove stat module & update lstat.
76868         * MODULES.html.sh (stat): Remove.
76869         * MODULES.html: Regenerated.
76870         * modules/lstat (Description): Correct function name.
76871         (Files): Add "lstat.h".
76872         (Depends-on): Remove stat, add xalloc, stat-macros.
76873         * modules/stat: Remove this file.
76874         (Include): Add "lstat.h", remove <sys/stat.h>.
76875
76876 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76877
76878         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76879         (ranged_convert): Don't save conversion in a temporary struct.
76880         This causes a warning with GCC 4.0.0, and anyway in the typical
76881         case it's not worth the extra 100 bytes or so of code.
76882         (ranged_convert, __mktime_internal): When calling a function via a
76883         pointer P, use P () rather than (*P) (), as we now assume C89 or
76884         better.
76885
76886 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76887
76888         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76889         "who -r" failed to give output.  Problem reported by Tim Waugh.
76890
76891         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76892         (xcalloc): Use it to avoid needless tests.
76893         Problem reported by Jim Meyering.
76894
76895 2005-06-20  Derek Price  <derek@ximbiot.com>
76896
76897         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76898         unnecessary for Autoconfs > 2.59c.
76899
76900 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76901
76902         * lib/argp.h (__option_is_short): Check upper limit of
76903         __key. Isprint() requires its argument to have the value
76904         of an unsigned char or EOF.
76905
76906 2005-06-16  Jim Meyering  <jim@meyering.net>
76907
76908         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76909         when either N or S is zero.
76910
76911 2005-06-16  Derek Price  <derek@ximbiot.com>
76912
76913         * m4/bison.m4: Declare YACC & YFLAGS precious.
76914
76915 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76916
76917         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76918         multibyte string or pattern, fall back on unibyte matching.
76919         Problem reported by James Youngman.
76920
76921 2005-06-08  Bruno Haible  <bruno@clisp.org>
76922
76923         * modules/csharpcomp: New file.
76924         * MODULES.html.sh (C#): Add csharpcomp.
76925
76926 2005-06-08  Bruno Haible  <bruno@clisp.org>
76927
76928         * m4/csharpcomp.m4: New file, from GNU gettext.
76929
76930 2005-06-08  Bruno Haible  <bruno@clisp.org>
76931
76932         * lib/csharpcomp.h: New file, from GNU gettext.
76933         * lib/csharpcomp.c: New file, from GNU gettext.
76934         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76935
76936 2005-06-08  Bruno Haible  <bruno@clisp.org>
76937
76938         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76939         warning on mingw.
76940
76941 2005-06-07  Derek Price  <derek@ximbiot.com>
76942
76943         Sync from CVS.
76944         * lib/glob_.h: Indent nested #ifdef.
76945
76946 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76947
76948         Sync from coreutils.
76949         Use "file name" when talking about file names, instead of "filename"
76950         or "path", as per the GNU coding standards.
76951         * lib/mkdir-p.c: Renamed from makepath.c.
76952         (make_dir_parents): Renamed from make_path.  All callers changed.
76953         * lib/mkdir-p.h: Likewise.  All includers changed.
76954         * lib/filenamecat.c: Renamed from path-concat.c.
76955         (file_name_concat): Renamed from path_concat.  All callers changed.
76956         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76957         * lib/filenamecat.h: Likewise.  All includers changed.
76958         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76959         in comments or local variable names.
76960         * lib/basename.c: Likewise.
76961         * lib/canonicalize.c, canonicalize.h: Likewise.
76962         * lib/dirname.c, dirname.h: Likewise.
76963         * lib/euidaccess.c: Likewise.
76964         * lib/exclude.c: Likewise
76965         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76966         * lib/fsusage.c, fsuage.h: Likewise.
76967         * lib/fts.c, fts_.h: Likewise.
76968         * lib/getcwd.c: Likewise.
76969         * lib/getloadavg.c: Likewise.
76970         * lib/mkstemp.c: Likewise.
76971         * lib/mountlist.c, mountlist.h: Likewise.
76972         * lib/openat.c, openat.h: Likewise.
76973         * lib/readlink-stub.c: Likewise.
76974         * lib/readutmp.c, readutmp.h: Likewise.
76975         * lib/rename.c: Likewise.
76976         * lib/rmdir.c: Likewise.
76977         * lib/same.c: Likewise.
76978         * lib/savedir.c: Likewise.
76979         * lib/stripslash.c: Likewise.
76980         * lib/tempname.c: Likewise.
76981         * lib/xreadlink.c: Likewise.
76982         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76983         All uses changed.
76984         * lib/exclude.h: Likewise.
76985
76986         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76987         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76988         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76989         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76990         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76991         files have been getting away with it for years (MORE/BSD 4.3
76992         is extinct now).
76993         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76994         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76995
76996         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76997         Define to 256, not 255, as per modern POSIX.
76998
76999 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77000
77001         Sync from coreutils.
77002         Use "file name" when talking about file names, instead of "filename"
77003         or "path", as per the GNU coding standards.
77004         * MODULES.html.sh: mkdir-p renamed from makepath.
77005         filenamecat renamed from path-concat.
77006         * modules/filenamecat: Renamed from modules/path-concat.
77007         (Files): filenamecat.h and filenamecat.c renamed from
77008         path-concat.h and path-concat.c.
77009         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77010         (Include): filenamecat.h, not path-concat.h.
77011         * modules/mkdir-p: Renamed from modules/makepath.
77012         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77013         makepath.c.
77014         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77015         (Include): mkdir-p.h, not makepath.h.
77016
77017 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77018
77019         Sync from coreutils.
77020         * m4/mkdir-p.m4: Renamed from makepath.m4.
77021         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77022         Rename files from makepath.c to mkdir-p.c, and from
77023         makepath.h to mkdir-p.h.
77024         * m4/filenamecat.m4: Renamed from path-concat.m4.
77025         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77026         Rename files from path-concat.c to filenamecat.c,
77027         and from path-concat.h to filenamecat.h.
77028         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77029         "file name" in local variables or comments.
77030         * m4/rename.m4: Likewise.
77031
77032 2005-06-01  Bruno Haible  <bruno@clisp.org>
77033
77034         * modules/csharpexec: New file.
77035         * MODULES.html.sh (C#): New section.
77036
77037 2005-06-01  Bruno Haible  <bruno@clisp.org>
77038
77039         * m4/csharp.m4: New file, from GNU gettext.
77040         * m4/csharpexec.m4: New file, from GNU gettext.
77041
77042 2005-06-01  Bruno Haible  <bruno@clisp.org>
77043
77044         * lib/csharpexec.h: New file, from GNU gettext.
77045         * lib/csharpexec.c: New file, from GNU gettext.
77046         * lib/csharpexec.sh.in: New file, from GNU gettext.
77047
77048 2005-05-31  Derek Price  <derek@ximbiot.com>
77049             Paul Eggert  <eggert@cs.ucla.edu>
77050
77051         Sync from cvs.
77052         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77053
77054 2005-05-31  Derek Price  <derek@ximbiot.com>
77055             Paul Eggert  <eggert@cs.ucla.edu>
77056
77057         Sync from cvs.
77058         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77059
77060 2005-05-29  Derek Price  <derek@ximbiot.com>
77061
77062         * config/srclist.txt (glob_.h, glob.c): Add these files.
77063
77064 2005-05-29  Derek Price  <derek@ximbiot.com>
77065
77066         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77067         * modules/glob: New file.
77068         * modules/getlogin_r: Add link to POSIX spec in description.
77069
77070 2005-05-29  Derek Price  <derek@ximbiot.com>
77071             Paul Eggert  <eggert@cs.ucla.edu>
77072
77073         * m4/glob.m4: New file.
77074
77075 2005-05-29  Derek Price  <derek@ximbiot.com>
77076             Paul Eggert  <eggert@cs.ucla.edu>
77077
77078         * lib/glob_.h, lib/glob.c: New files.
77079
77080 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77081
77082         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77083         * modules/fts-lgpl (Depends-on): Remove gettext.
77084
77085 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77086
77087         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77088         and don't require gt_INTTYPES_PRI.
77089
77090 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77091
77092         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77093
77094         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77095         the configuration hassle isn't worth it.
77096         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77097         (LONGEST_MODIFIER, PRIuMAX): Remove.
77098
77099 2005-05-27  Bruno Haible  <bruno@clisp.org>
77100
77101         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77102
77103 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77104
77105         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77106         _POSIX_PTHREAD_SEMANTICS for Solaris.
77107
77108 2005-05-25  Derek Price  <derek@ximbiot.com>
77109
77110         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77111
77112 2005-05-25  Derek Price  <derek@ximbiot.com>
77113             Paul Eggert  <eggert@cs.ucla.edu>
77114
77115         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77116         * lib/getlogin_r.c, getlogin_r.h: New files.
77117
77118 2005-05-25  Bruno Haible  <bruno@clisp.org>
77119             Derek Price  <derek@ximbiot.com>
77120
77121         * lib/getlogin_r.h: Simplify API documentation.
77122
77123 2005-05-23  Derek Price  <derek@ximbiot.com>
77124
77125         * modules/minmax (Files): Add m4/minmax.m4.
77126         (configure.ac): Add gl_MINMAX.
77127
77128 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77129
77130         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77131         so that unistd-safer.h (GPL'ed code) need not be included.
77132
77133 2005-05-22  Bruno Haible  <bruno@clisp.org>
77134
77135         * m4/minmax.m4: New file.
77136         Based on a patch by Derek Price <derek@ximbiot.com>.
77137
77138 2005-05-22  Bruno Haible  <bruno@clisp.org>
77139
77140         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77141         (INT64_MIN): Fix definition.
77142         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77143
77144         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77145         NEED_SIGNED_INT_TYPES.
77146
77147         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77148         HAVE_SYSTEM_INTTYPES.
77149
77150 2005-05-22  Bruno Haible  <bruno@clisp.org>
77151
77152         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77153         Also include <sys/param.h> if it defines MIN, MAX.
77154         Based on a patch by Derek Price <derek@ximbiot.com>.
77155
77156 2005-05-21  Jim Meyering  <jim@meyering.net>
77157
77158         * modules/fts (Files): Add m4/inttypes-pri.m4.
77159         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77160
77161 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77162
77163         New fts module.
77164         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77165         (setup_dir, free_dir): New functions.
77166         (enter_dir, leave_dir): Define trivial
77167         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77168         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77169         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77170         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77171         Move to fts-cycle.c.
77172         (fts_open): Use setup_dir.
77173         (fts_close): Use free_dir.
77174         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77175         This adds a label and some gotos, but the alternatives were messier.
77176         Check for memory allocation failure when entering a dir.
77177         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77178         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77179         (FTS): New member fts_cycle, that is a union that contains the
77180         old active_dir_ht and cycle_state.  All uses changed to mention
77181         fts_cycle.ht and fts_cycle.state.
77182         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77183         fts.c, with the following changes:
77184         (setup_dir, free_dir): New functions.
77185         (enter_dir): Now returns bool.  Return true if successful, false
77186         if memory exhausted.  All callers changed.
77187         Do not bother partly cleaning up on
77188         memory allocation failure; that is free_dir's job.
77189         However, free ad if hash_insert fails, to avoid memory leak.
77190         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77191         fts->fts_options to see which union member to use.
77192
77193 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77194
77195         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77196         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77197
77198 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77199
77200         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77201
77202 2005-05-20  Jim Meyering  <jim@meyering.net>
77203
77204         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77205         Now a macro, to pacify GCC.
77206
77207 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77208
77209         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77210         of -1.
77211
77212 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77213
77214         * lib/chown.c (rpl_chown): Return -1 on failure.
77215
77216 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77217
77218         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77219         Don't check for stddef.h.
77220         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77221         don't use its results.
77222         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77223         since we include them unconditionally.  Don't require
77224         AM_STDBOOL_H, since stdbool is a prerequisite.
77225         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77226         since we assume C89 or better.
77227         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77228         as we don't use their results.
77229         Don't check for fchdir, memmove, memset, strrchr, as we use
77230         them unconditionally.
77231         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77232         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77233
77234 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77235
77236         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77237         Include <stddef.h> unconditionally, since we assume C89 now.
77238         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77239         * lib/fts.c: Include fts_.h first, to check interface.
77240         Do not include intprops.h; no longer needed.
77241         Include cycle-check.h and hash.h, since fts_.h no longer does.
77242         Remove unnecessary casts of closedir to void.
77243         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77244         decide whether to decrement nlinks.
77245         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77246         (FTS): Use struct hash_table * instead of Hash_table, so that
77247         we no longer need to include hash.h here.
77248
77249 2005-05-18  Jim Meyering  <jim@meyering.net>
77250
77251         * modules/dirfd (License): Change to LGPL.  Most of the code
77252         is already in the public domain.
77253
77254 2005-05-18  Jim Meyering  <jim@meyering.net>
77255
77256         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77257         Reported by Yoann Vandoorselaere.
77258
77259 2005-05-17  Jim Meyering  <jim@meyering.net>
77260
77261         * m4/fts.m4: New file, from coreutils.
77262
77263 2005-05-17  Jim Meyering  <jim@meyering.net>
77264
77265         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77266
77267 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77268
77269         Sync from coreutils.
77270         * m4/unlinkdir.m4: New file.
77271
77272 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77273
77274         Sync from coreutils.
77275         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77276         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77277         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77278         White space changes only.
77279         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77280         special.
77281         * lib/yesno.c: Include getline.h, not ctype.h.
77282         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77283         Use getline to remove arbitrary restriction on response length.
77284
77285 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77286
77287         * config/srclist-update: Spell out "Street" in FSF postal
77288         mail address; this is the style the FSF seems to prefer.
77289
77290         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77291         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77292         this updates FSF postal mail address.
77293
77294         Sync from coreutils.
77295         * modules/unlinkdir: New file.
77296         * modules/yesno (Depends-on): Add getline.
77297         * MODULES.html.sh (File system functions): Add unlinkdir.
77298
77299 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77300
77301         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77302         lib/strsep.h:
77303         Change the initial comment to refer to GPL, not LGPL.
77304         gnulib-tool will change it to LGPL as needed.
77305
77306         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77307         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77308         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77309         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77310         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77311         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77312         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77313         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77314         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77315         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77316         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77317         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77318         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77319         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77320         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77321         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77322         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77323         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77324         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77325         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77326         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77327         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77328         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77329         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77330         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77331         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77332         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77333         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77334         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77335         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77336         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77337         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77338         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77339         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77340         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77341         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77342         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77343         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77344         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77345         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77346         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77347         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77348         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77349         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77350         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77351         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77352         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77353         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77354         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77355         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77356         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77357         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77358         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77359         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77360         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77361         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77362         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77363         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77364         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77365         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77366         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77367         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77368         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77369         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77370         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77371         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77372         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77373         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77374         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77375         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77376         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77377         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77378         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77379         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77380         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77381         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77382         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77383         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77384         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77385         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77386         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77387         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77388         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77389         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77390         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77391         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77392         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77393         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77394         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77395         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77396         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77397         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77398         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77399         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77400         lib/yesno.c, lib/yesno.h:
77401         Update FSF postal mail address.
77402
77403 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77404
77405         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77406         tests/test-memmem.c, tests/test-stpncpy.c:
77407         Update FSF postal mail address.
77408
77409 2005-05-13  Bruno Haible  <bruno@clisp.org>
77410
77411         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77412         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77413         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77414         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77415         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77416         Add support for 64-bit integers in the MSVC compiler.
77417
77418 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77419
77420         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77421
77422 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77423
77424         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77425
77426 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77427
77428         * doc/getdate.texi (General date syntax): Don't say that date
77429         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77430         Problem reported by Nic Ferrier.
77431
77432 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77433
77434         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77435         specified in ai_socktype. Fix invalid ai_protocol
77436         check. ai_protocol is usually set to 0 or depending on
77437         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77438         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77439         ai_socktype / ai_protocol in the returned addrinfo structure.
77440
77441 2005-05-10  Simon Josefsson  <jas@extundo.com>
77442
77443         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77444         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77445
77446 2005-05-10  Karl Berry  <karl@gnu.org>
77447
77448         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77449         (from http://www.gnu.org/licenses).
77450         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77451         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77452         fdl.texi suffices.
77453
77454 2005-05-10  Karl Berry  <karl@gnu.org>
77455
77456         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77457         (COPYING.DOC): remove.
77458
77459         * config/srclist-update: new FSF address.
77460
77461 2005-05-10  Derek Price  <derek@ximbiot.com>
77462
77463         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77464         possible.
77465
77466 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77467             Bruno Haible  <bruno@clisp.org>
77468
77469         * modules/inet_ntop: New file.
77470         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77471         inet_ntop.
77472
77473 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77474             Bruno Haible  <bruno@clisp.org>
77475
77476         * m4/inet_ntop.m4: New file.
77477
77478 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77479             Bruno Haible  <bruno@clisp.org>
77480
77481         * lib/inet_ntop.h: New file.
77482         * lib/inet_ntop.c: New file, from glibc with modifications.
77483
77484 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77485
77486         * modules/time_r (License): Change to LGPL.
77487         * modules/extensions (License): Change to LGPL.  Actually,
77488         the license is more permissive than that, but currently gnulib-tool
77489         doesn't know how to handle more-permissive licenses.
77490
77491         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77492         Problem reported by Dave Love.
77493
77494 2005-05-08  Jim Meyering  <jim@meyering.net>
77495
77496         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77497         blank.
77498
77499 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77500
77501         * modules/argmatch (Depends-on): Add stdbool.
77502         * modules/backupfile (Depends-on): Likewise.
77503         * modules/chdir-long (Depends-on): Likewise.
77504         * modules/closeout (Depends-on): Likewise.
77505         * modules/cycle-check (Depends-on): Likewise.
77506         * modules/dirname (Depends-on): Likewise.
77507         * modules/fnmatch (Depends-on): Likewise.
77508         * modules/fsusage (Depends-on): Likewise.
77509         * modules/fwriteerror (Depends-on): Likewise.
77510         * modules/getcwd (Depends-on): Likewise.
77511         * modules/getloadavg (Depends-on): Likewise.
77512         * modules/hard-locale (Depends-on): Likewise.
77513         * modules/makepath (Depends-on): Likewise.
77514         * modules/mountlist (Depends-on): Likewise.
77515         * modules/nanosleep (Depends-on): Likewise.
77516         * modules/posixtm (Depends-on): Likewise.
77517         * modules/quotearg (Depends-on): Likewise.
77518         * modules/readtokens (Depends-on): Likewise.
77519         * modules/readtokens0 (Depends-on): Likewise.
77520         * modules/readutmp (Depends-on): Likewise.
77521         * modules/save-cwd (Depends-on): Likewise.
77522         * modules/strftime (Depends-on): Likewise.
77523         * modules/userspec (Depends-on): Likewise.
77524         * modules/utimecmp (Depends-on): Likewise.
77525         * modules/xgetcwd (Depends-on): Likewise.
77526         * modules/xnanosleep (Depends-on): Likewise.
77527         * modules/xstrtod (Depends-on): Likewise.
77528         * modules/yesno (Depends-on): Likewise.
77529
77530 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77531
77532         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77533         needless checks.
77534
77535 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77536
77537         Merge from coreutils.  Among other things,
77538         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77539         * lib/fd-safer.c: New file.
77540         * lib/fcntl-safer.h, open-safer.c: Remove.
77541         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77542         * lib/dup-safer.c: Include unistd-safer.h first.
77543         Don't include errno.h.
77544         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77545         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77546         * lib/file-type.c: Rely on file-type.h change.
77547         * lib/getloadavg.c: Include unistd-safer.h.
77548         (getloadavg): Use safer open.
77549         * lib/getusershell.c: Include "stdio-safer.h".
77550         (getusershell): Use safer fopen.
77551         * lib/long-options.c (long_options): Use NULL rather than 0.
77552         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77553         'free'.
77554         * lib/modechange.c: Likewise.
77555         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77556         (MODE_DONE): New constant.
77557         (struct mode_change): Remove 'next' member.
77558         (make_node_op_equals): New function; like the old one of the
77559         same name, except it allocates an array.
77560         (mode_compile, mode_create_from_ref): Use it.
77561         (mode_compile): Allocate result as an array, not a linked list.
77562         Parse octal string ourself, so that we catch mistakes like "+0".
77563         (mode_adjust): Arg is an array, not a linked list.
77564         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77565         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77566         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77567         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77568         Remove.  This is now stat-macros.h's job.
77569         (talloc): Remove.  All callers replaced by xalloc, so that
77570         our invokers don't have to worry about reporting memory failures.
77571         (make_node_op_equals): Remove.
77572         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77573         New constants.
77574         (struct mode_change): Moved here from modechange.h.
77575         (mode_append_entry): Remove.
77576         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77577         apps to have incorrect behavior.  Use simpler algorithm for head
77578         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77579         Detect more invalid usages rather than having somewhat-random behavior.
77580         Don't insert an "a=" action, as that leads to incorrect behavior.
77581         (mode_compile, mode_create_from_ref): Return NULL on error instead
77582         of an enum, since now there's only one way to have an error.  All
77583         callers changed.
77584         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77585         at the correct time.  Simplify calculation of "+u" and its ilk.
77586         Don't mishandle "+X".
77587         (mode_free): Remove "register" and localize decls.
77588         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77589         (struct mode_change): Move to modechange.c; callers don't
77590         need to see this stuff.
77591         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77592         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77593         (mode_change, mode_adjust): Reflect the new signatures noted above.
77594         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77595         that might redefine system include files.
77596         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77597         (my_usleep): Use NULL rather than (void *) 0.
77598         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77599         Use siginterrupt to specify that system calls should be interrupted.
77600         (rpl_nanosleep): Move initialization of suspended closer to call of
77601         my_usleep.
77602         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77603         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77604         (desirable_utmp_entry): New function.
77605         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77606         using x2nrealloc, to simplify logic.
77607         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77608         size calculation.  Do not assume utmp file is a regular file.
77609         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77610         (READ_UTMP_CHECK_PIDS): New constant.
77611         * lib/save-cwd.c: Include unistd-safer.h.
77612         (save_cwd): Use fd_safer.
77613         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77614         [!_LIBC] Include "stat-macros.h" instead.
77615         * lib/unistd-safer.h (fd_safer): New decl.
77616
77617 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77618
77619         * modules/getloadavg (Depends-on): Add unistd-safer.
77620         * modules/getusershell (Depends-on): Add stdio-safer.
77621         * modules/lstat (Depends-on): Remove xalloc.
77622         * modules/mkstemp (Depends-on): Add stat-macros.
77623         * modules/modechange (Depends-on): Remove xstrtol.
77624         Add stat-macros, xalloc.
77625         * modules/save-cwd (Depends-on): Add unistd-safer.
77626         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77627         * modules/unistd-safer (Files): Add lib/fd-safer.c
77628         (Makefile.am): Remove lib_SOURCES.
77629
77630         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77631         Remove fcntl-safer; unistd-safer supersedes it.
77632
77633 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77634
77635         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77636         AC_HEADER_STAT.
77637         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77638         (gl_PREREQ_CHOWN): Remove.
77639         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77640         it.  Don't require AC_HEADER_STAT.
77641         (gl_PREREQ_LSTAT): Remove.
77642         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77643         Don't require AC_HEADER_STAT.
77644         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77645         (gl_PREREQ_RMDIR): Remove.
77646         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77647         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77648         the stat-macros module a prerequisite.
77649         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77650         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77651         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77652         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77653         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77654         variable names.
77655         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77656         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77657         variable prefixes.
77658         * m4/fcntl-safer.m4: Remove.
77659         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77660         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77661         Invoke gl_PREREQ_FD_SAFER.
77662         (gl_PREREQ_FD_SAFER): New macro.
77663         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77664         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77665         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77666         Remove duplicate call to AC_LIBOBJ(readutmp).
77667         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77668
77669         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77670         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77671
77672 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77673
77674         * MODULES.html.sh (Misc): Add byteswap.
77675
77676 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77677
77678         * modules/getcwd (Depends-on): Add extensions.
77679         * modules/openat (Depends-on): Likewise.
77680
77681 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77682
77683         * modules/byteswap: New file.
77684
77685 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77686
77687         * m4/byteswap.m4: New file.
77688
77689 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77690
77691         * lib/byteswap_.h: New file.
77692
77693 2005-04-25  Karl Berry  <karl@gnu.org>
77694
77695         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77696
77697 2005-04-25  Albert Chin  <china@thewrittenword.com>
77698
77699         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77700         Toolkit C bug.
77701
77702 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77703
77704         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77705         (func_ln_if_changed): Remove forcibly for no error message
77706         in case file does not exist.
77707
77708 2005-04-19  Simon Josefsson  <jas@extundo.com>
77709
77710         * gnulib-tool (Options): Make --symlink mean --symbolic.
77711
77712 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77713
77714         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77715
77716 2005-04-16  Simon Josefsson  <jas@extundo.com>
77717
77718         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77719
77720 2005-04-15  Simon Josefsson  <jas@extundo.com>
77721
77722         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77723
77724 2005-04-15  Simon Josefsson  <jas@extundo.com>
77725
77726         * gnulib-tool: Rename --symlink to --symbolic.
77727
77728 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77729
77730         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77731         symbolic links to files instead of copying/moving.  Add --aux-dir,
77732         specifying directory relative --dir where auxiliary build tools
77733         are placed.
77734
77735 2005-04-14  Bruno Haible  <bruno@clisp.org>
77736
77737         * modules/allocsa (License): Change to LGPL.
77738         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77739
77740 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77741
77742         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77743         that "UTC +1 second" continues to work.  Problem reported
77744         by Dmitry V. Levin.
77745         (relunit_snumber): New rule.
77746         (relunit): Use it.
77747
77748 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77749
77750         * lib/getdate.y (universal_time_zone_table): New constant.
77751         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77752         universal_time_zone_table.
77753         (lookup_zone): Prefer universal_time_zone_table to
77754         local_time_zone_table, so that "GMT" time stamps are allowed in
77755         London during the summer.  Problem reported by Ian Abbott.
77756
77757 2005-04-12  Jim Meyering  <jim@meyering.net>
77758
77759         * lib/human.c (humblock): Set *options even when returning due to
77760         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77761         warning from gcc-4.
77762
77763 2005-04-09  Jim Meyering  <jim@meyering.net>
77764
77765         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77766         -Wuninitialized: initialize tm0.tm_year.
77767
77768 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77769
77770         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77771         count, since there's no maximum.  All uses changed.
77772         Add member dsts_seen.
77773         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77774         not being INT_MAX.
77775         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77776         Use pc_rels_seen to decide whther a date is absolute.
77777
77778         * lib/getdate.y (number): Don't overwrite year.
77779         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77780         check.
77781
77782 2005-04-02  Simon Josefsson  <jas@extundo.com>
77783
77784         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77785         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77786
77787 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77788
77789         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77790         where no absolute path name can be longer than PATH_MAX.
77791
77792 2005-03-27  Jim Meyering  <jim@meyering.net>
77793
77794         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77795
77796 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77797
77798         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77799         "one's complement" -> "ones' complement" in comment, as per Knuth.
77800         "value of type" -> "type or expression" in comment.
77801         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77802
77803 2005-03-26  Jim Meyering  <jim@meyering.net>
77804
77805         Comment nits.
77806         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77807         Correct typos: s/or/of/.
77808
77809 2005-03-26  Jim Meyering  <jim@meyering.net>
77810
77811         * modules/check-include-files: Move to ../ and rename to...
77812         * check-module: ...this.
77813
77814 2005-03-25  Jim Meyering  <jim@meyering.net>
77815
77816         * modules/xvasprintf (Files): Add xalloc.h.
77817
77818 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77819
77820         * modules/gettext (Files): config/config.rpath ->
77821         build-aux/config.rpath
77822         * modules/iconv (Files): Likewise.
77823         Problem reported by Oskar Liljeblad.
77824
77825 2005-03-23  Jim Meyering  <jim@meyering.net>
77826
77827         * modules/check-include-files: New script to check for
77828         missing dependencies, multiple includes, etc.
77829
77830         * modules/c-strtold (Depends-on): Add xalloc.
77831         * modules/c-strtod (Depends-on): Add xalloc.
77832         * modules/hash (Depends-on): Add xalloc.
77833         (Files): Remove lib/xalloc.h.
77834
77835         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77836         * modules/userspec (Files): Add lib/inttostr.h.
77837
77838 2005-03-23  Jim Meyering  <jim@meyering.net>
77839
77840         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77841
77842 2005-03-22  Jim Meyering  <jim@meyering.net>
77843
77844         * modules/stat-macros: New module.
77845         * modules/canonicalize, modules/euidaccess, modules/file-type,
77846         * modules/filemode, modules/lchown, modules/makepath,
77847         * modules/rmdir, modules/stat: Depend on new stat-macros module
77848         rather than listing lib/stat-macros.h manually.
77849         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77850
77851 2005-03-22  Jim Meyering  <jim@meyering.net>
77852
77853         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77854
77855 2005-03-22  Bruno Haible  <bruno@clisp.org>
77856
77857         * config/srclist.txt: Replace target directory 'config' with
77858         'build-aux'.
77859         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77860         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77861         ../build-aux/.
77862
77863 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77864
77865         * modules/chdir-long (Depends-on): Add mempcpy.
77866
77867         * modules/acl, modules/backupfile, modules/c-strtod,
77868         modules/c-strtold, modules/canon-host, modules/canonicalize,
77869         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77870         modules/exclude, modules/exitfail, modules/file-type,
77871         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77872         modules/getdate, modules/getline, modules/getpagesize,
77873         modules/getpass, modules/getugroups, modules/group-member,
77874         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77875         modules/inttostr, modules/long-options, modules/makepath,
77876         modules/md5, modules/memcasecmp, modules/memcoll,
77877         modules/modechange, modules/mountlist, modules/path-concat,
77878         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77879         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77880         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77881         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77882         modules/strftime, modules/strndup, modules/strverscmp,
77883         modules/timespec, modules/unlocked-io, modules/userspec,
77884         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77885         modules/yesno:
77886         Remove lib_SOURCES line from Makefile.am section, as this is now
77887         done automatically by the corresponding Autoconf macro.
77888
77889 2005-03-21  Jim Meyering  <jim@meyering.net>
77890
77891         Changes imported from coreutils.
77892
77893         * lib/cycle-check.c: Don't include xalloc.h.
77894
77895         * lib/path-concat.c: Don't include assert.h.
77896         (path_concat): Remove assertion that would have triggered
77897         for ABASE starting with more than one slash.
77898         Reported by Andreas Schwab.
77899
77900         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77901         properly when ABASE is an absolute file name.
77902         Correct the description of this function.
77903         Include <assert.h>.
77904         Add an assertion and a test driver.
77905         This fixes a bug introduced on 2004-07-02.
77906         Andreas Schwab reported the resulting failure of cp --parents:
77907         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77908
77909 2005-03-21  Jim Meyering  <jim@meyering.net>
77910
77911         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77912         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77913
77914 2005-03-21  Jim Meyering  <jim@meyering.net>
77915         and  Paul Eggert  <eggert@cs.ucla.edu>
77916
77917         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77918         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77919         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77920         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77921         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77922         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77923         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77924         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77925         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77926         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77927         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77928         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77929         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77930         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77931         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77932         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77933         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77934         for these modules.
77935
77936 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77937
77938         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77939         (which shouldn't happen), generate nothing instead of returning 0
77940         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77941
77942 2005-03-16  Bruno Haible  <bruno@clisp.org>
77943
77944         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77945         HAVE_LONGLONG_64BIT.
77946
77947 2005-03-16  Bruno Haible  <bruno@clisp.org>
77948
77949         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77950         HAVE_LONGLONG_64BIT.
77951
77952 2005-03-16  Bruno Haible  <bruno@clisp.org>
77953
77954         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77955         HAVE_LONGLONG_64BIT.
77956
77957 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77958
77959         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77960         reliably distinguish strftime failure from empty output on POSIX
77961         hosts.
77962
77963 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77964
77965         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77966         (iconv_string): Don't guess a size-zero buffer, as that might cause
77967         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77968         result would be 'too large', where 'too large' is (heuristically)
77969         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77970         overflow concerns.  This will prevent some unwanted malloc failures
77971         when the inputs are very large.
77972
77973 2005-03-15  Karl Berry  <karl@gnu.org>
77974
77975         * config/srclist.txt (config.rpath): from gettext.
77976         * config/config.rpath: update.
77977
77978 2005-03-15  Bruno Haible  <bruno@clisp.org>
77979
77980         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77981         to 'negate'.
77982
77983         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77984         variable.
77985
77986         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77987         results.
77988
77989 2005-03-14  Simon Josefsson  <jas@extundo.com>
77990
77991         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77992         <fx@gnu.org>.
77993
77994 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77995
77996         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77997         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77998         intprops.h.
77999         * lib/strtol.c: Likewise.
78000
78001 2005-03-14  Jim Meyering  <jim@meyering.net>
78002
78003         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78004         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78005         to be nonzero so that we (and caller) can detect the difference
78006         between a valid zero-length expansion and an error return, even
78007         when the underlying strftime fails before writing anything into
78008         that location.
78009
78010 2005-03-14  Bruno Haible  <bruno@clisp.org>
78011
78012         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78013         Update from GNU gettext 0.14.3.
78014
78015 2005-03-10  Jim Meyering  <jim@meyering.net>
78016
78017         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78018
78019 2005-03-10  Jim Meyering  <jim@meyering.net>
78020
78021         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78022         so that this module works on systems without fchdir.
78023
78024 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78025
78026         Factor int-properties macros into a single file, except for
78027         glibc-related files.
78028         * lib/intprops.h: New file.
78029         * lib/getloadavg.c: Include it instead of limits.h.
78030         (INT_STRLEN_BOUND): Remove.
78031         * lib/human.c: Include intprops.h.
78032         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78033         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78034         302/1000.
78035         * lib/inttostr.h: Include intprops.h instead of limits.h.
78036         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78037         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78038         for consistency with intprops.h.
78039         (time_t_is_integer, twos_complement_arithmetic): Use them.
78040         * lib/sig2str.h: Include <signal.h>, intprops.h.
78041         (INT_STRLEN_BOUND): Remove.
78042         * lib/strftime.c (TYPE_SIGNED): Remove.
78043         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78044         * lib/strtol.c: Adjust comments to match intprops.h.
78045         * lib/userspec.c: Include intprops.h.
78046         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78047         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78048         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78049         instead of rolling our own expressions.
78050         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78051
78052         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78053         instead of int.
78054         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78055         the right thing even if adding 1900 would overflow.  Similarly
78056         for tm_mon + 1 and tm_yday + 1.
78057         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78058         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78059         (DO_SIGNED_NUMBER): New macro.
78060         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78061
78062 2005-03-07  Bruno Haible  <bruno@clisp.org>
78063
78064         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78065
78066 2005-03-07  Bruno Haible  <bruno@clisp.org>
78067
78068         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78069
78070 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78071
78072         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78073         (func_import): Only replace files via --import when they have actually
78074         changed.
78075
78076 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78077
78078         * m4/mmap-anon.m4: New file.
78079         * m4/pagealign_alloc.m4: New file.
78080
78081 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78082             Bruno Haible  <bruno@clisp.org>
78083
78084         * modules/pagealign_alloc: New file.
78085         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78086
78087 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78088             Bruno Haible  <bruno@clisp.org>
78089
78090         * lib/pagealign_alloc.h: New file.
78091         * lib/pagealign_alloc.c: New file.
78092
78093 2005-03-03  Bruno Haible  <bruno@clisp.org>
78094
78095         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78096         Use an all-permissive copyright notice, recommended by RMS.
78097
78098 2005-03-02  Bruno Haible  <bruno@clisp.org>
78099
78100         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78101         of AIX, the replacement has to be done only after <string.h> is
78102         included, therefore not in config.h. stpncpy.h does the replacement,
78103         and stpncpy.c uses it.
78104
78105 2005-03-02  Bruno Haible  <bruno@clisp.org>
78106
78107         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78108         stpncpy.c uses it.
78109
78110 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78111
78112         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78113         The workaround isn't strictly needed for POSIX conformance, and
78114         it's too much of a pain to configure and maintain.  We'll ask
78115         people to fix their kernels instead.
78116         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78117         (NANOSLEEP_BUG_WORKAROUND): Remove.
78118         (xnanosleep): Remove the workaround.
78119
78120 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78121
78122         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78123         Reported by Derek Price.
78124         (Include): Add "timespec.h".
78125
78126         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78127
78128 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78129
78130         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78131         to detect nanosleep bug.
78132
78133 2005-03-01  Bruno Haible  <bruno@clisp.org>
78134
78135         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78136
78137 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78138
78139         * modules/gethrxtime: New file.
78140         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78141         (Depends-on): Add gethrxtime.
78142         (configure.ac): Add gl_XNANOSLEEP.
78143         (Makefile.am): Remove lib_SOURCES line.
78144
78145 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78146
78147         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78148         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78149
78150 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78151
78152         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78153         * lib/timespec.h (gettime): Return void, since it always
78154         succeeds now.  All uses changed.
78155         * lib/gettime.c (gettime): Likewise.
78156         [HAVE_NANOTIME]: Prefer nanotime.
78157         Assume gettimeofday succeeds, as POSIX requires.
78158         Assime time () succeeds, since other code already does.
78159         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78160         (timespec_subtract): Remove.
78161         (NANOSLEEP_BUG_WORKAROUND): New constant.
78162         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78163         things considerably.  Use it only on GNU/Linux hosts, since the
78164         workaround shouldn't be needed elsewhere.
78165
78166 2005-02-24  Bruno Haible  <bruno@clisp.org>
78167
78168         * modules/gettext (Files): Add m4/glibc2.m4.
78169
78170 2005-02-24  Bruno Haible  <bruno@clisp.org>
78171
78172         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78173         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78174         * m4/progtest.m4:
78175         Update from GNU gettext 0.14.2.
78176         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78177
78178 2005-02-24  Bruno Haible  <bruno@clisp.org>
78179
78180         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78181         * lib/config.charset: Update from GNU gettext 0.14.2.
78182
78183 2005-02-24  Bruno Haible  <bruno@clisp.org>
78184
78185         * lib/gettext.h: Update from GNU gettext 0.14.2.
78186
78187 2005-02-23  Simon Josefsson  <jas@extundo.com>
78188
78189         * m4/iconvme.m4: New file.
78190
78191 2005-02-23  Jim Meyering  <jim@meyering.net>
78192
78193         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78194         change.
78195         Thanks to Bruno Haible for catching it.
78196
78197 2005-02-22  Simon Josefsson  <jas@extundo.com>
78198
78199         * modules/iconvme: New file.
78200
78201         * MODULES.html.sh: Add iconvme.
78202
78203 2005-02-22  Simon Josefsson  <jas@extundo.com>
78204
78205         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78206
78207 2005-02-22  Simon Josefsson  <jas@extundo.com>
78208
78209         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78210
78211 2005-02-22  Jim Meyering  <jim@meyering.net>
78212
78213         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78214         s/ifndef/ifdef/.
78215
78216 2005-02-20  Neil Conway  <neilc@samurai.com>
78217
78218         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78219         returned by OSX/Darwin if the specified buffer is not large
78220         enough for the hostname.
78221
78222 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78223
78224         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78225         pass it to _help, otherwise the latter coredumps trying to
78226         dereference state.root_argp.
78227
78228 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78229
78230         * modules/chdir-long (Depends-on): Add memrchr.
78231         * modules/memrchr (Files): Add lib/memrchr.h.
78232         (Include): "memrchr.h".
78233
78234 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78235
78236         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78237
78238 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78239
78240         * lib/memrchr.h: New file.
78241         * lib/chdir-long.c: Include it.
78242         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78243         Don't bother including stddef.h.
78244
78245 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78246
78247         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78248         inclusion.
78249         Include <sys/types.h>, for dev_t.
78250         (ME_DUMMY, ME_REMOTE): Move from here....
78251         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78252         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78253         Dmitry V. Levin.
78254         Include mountlist.h first, to test the interface.
78255
78256 2005-01-29  Bruno Haible  <bruno@clisp.org>
78257
78258         * lib/progname.c (program_name): Initialize.
78259         Needed when linking statically on MacOS X.
78260
78261 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78262
78263         Sync from coreutils.
78264         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78265         (Depends-on): Add c-strtod.
78266         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78267
78268 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78269
78270         Sync from coreutils.
78271         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78272
78273         Remove files that are specific to coreutils.
78274         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78275
78276 2005-01-28  Bruno Haible  <bruno@clisp.org>
78277
78278         * modules/javacomp: New file.
78279         * MODULES.html.sh (Java): Add javacomp.
78280
78281 2005-01-28  Bruno Haible  <bruno@clisp.org>
78282
78283         * m4/javacomp.m4: New file, from GNU gettext.
78284
78285 2005-01-28  Bruno Haible  <bruno@clisp.org>
78286
78287         * lib/javacomp.sh.in: New file, from GNU gettext.
78288         * lib/javacomp.h: New file, from GNU gettext.
78289         * lib/javacomp.c: New file, from GNU gettext.
78290
78291 2005-01-26  Simon Josefsson  <jas@extundo.com>
78292
78293         * lib/gai_strerror.c: Use GPL in header.
78294
78295 2005-01-26  Bruno Haible  <bruno@clisp.org>
78296
78297         * modules/javaexec: New file.
78298         * MODULES.html.sh (Java): Add javaexec.
78299
78300 2005-01-26  Bruno Haible  <bruno@clisp.org>
78301
78302         * m4/javaexec.m4: New file, from GNU gettext.
78303
78304 2005-01-26  Bruno Haible  <bruno@clisp.org>
78305
78306         * lib/javaexec.sh.in: New file, from GNU gettext.
78307         * lib/javaexec.h: New file, from GNU gettext.
78308         * lib/javaexec.c: New file, from GNU gettext.
78309
78310 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78311
78312         * modules/lchown (Depends-on): Remove lchown.h
78313
78314 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78315
78316         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78317         must be defined if the header file was not found, in order
78318         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78319
78320 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78321
78322         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78323         initializers for struct pentry_state.
78324         (__argp_error): Check return value of __asprintf
78325         (__argp_failure): Translate error message
78326
78327         * lib/argp-parse.c: Removed braces around the expansion of N_()
78328
78329 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78330
78331         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78332         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78333         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78334         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78335         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78336         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78337         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78338         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78339         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78340         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78341         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78342         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78343         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78344         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78345         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78346         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78347         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78348         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78349         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78350         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78351         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78352         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78353         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78354         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78355         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78356         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78357         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78358         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78359         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78360         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78361         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78362         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78363         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78364         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78365         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78366         Use an all-permissive copyright notice, recommended by RMS.
78367
78368 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78369
78370         * modules/chdir-long (Depends-on): Remove mempcpy.
78371
78372 2005-01-21  Jim Meyering  <jim@meyering.net>
78373
78374         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78375         same value as for Solaris 9.
78376
78377         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78378         component length.  This included changing the parameter to be
78379         of type `char *' rather than `char const *'.
78380         * lib/chdir-long.h (chdir_long): Update prototype.
78381
78382         * lib/openat.c (fdopendir, fstatat): New functions.
78383         * lib/openat.h: Include headers required for use of DIR and struct
78384         stat.
78385         [AT_SYMLINK_NOFOLLOW]: Define.
78386         (fdopendir, fstatat): Add prototypes.
78387
78388 2005-01-21  Bruno Haible  <bruno@clisp.org>
78389
78390         * modules/classpath: New file.
78391         * MODULES.html.sh (Java): Add classpath.
78392
78393 2005-01-21  Bruno Haible  <bruno@clisp.org>
78394
78395         * lib/classpath.h: New file, from GNU gettext.
78396         * lib/classpath.c: New file, from GNU gettext.
78397
78398 2005-01-20  Simon Josefsson  <jas@extundo.com>
78399
78400         * modules/version-etc-fsf: New file.
78401
78402 2005-01-20  Simon Josefsson  <jas@extundo.com>
78403
78404         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78405         * lib/version-etc.c: Remove version_etc_copyright.
78406         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78407         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78408
78409 2005-01-20  Simon Josefsson  <jas@extundo.com>
78410
78411         * lib/base64.h (isbase64): Add.
78412
78413         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78414         using a unsigned prototype, don't inline.
78415         (base64_decode): Use it.
78416
78417 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78418
78419         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78420         it.
78421
78422 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78423
78424         * lib/save-cwd.c (save_cwd): Remove code to support the case
78425         where fchdir is missing or flaky.
78426
78427 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78428
78429         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78430
78431 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78432
78433         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78434         AC_LIBSOURCES now does this.
78435         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78436         with new ullong_max module.
78437
78438 2005-01-19  Bruno Haible  <bruno@clisp.org>
78439
78440         * modules/sh-quote: New file.
78441         * MODULES.html.sh (Executing programs): Add sh-quote.
78442
78443 2005-01-19  Bruno Haible  <bruno@clisp.org>
78444
78445         * lib/sh-quote.h: New file, from GNU gettext.
78446         * lib/sh-quote.c: New file, from GNU gettext.
78447
78448 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78449
78450         Merge from coreutils.
78451         * m4/ullong_max.m4: New file.
78452         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78453         (gl_MACROS): Assume localeconv exists.
78454
78455 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78456
78457         Merge changes from coreutils, as described below in several
78458         changelogs dated today.
78459
78460         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78461         (O_DIRECTORY): Remove; not needed here, since "." must be
78462         a directory.  All uses removed.
78463         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78464         universal on Suns, and we also need to test for IRIX.
78465         Revamp code to use 'if' rather than '#if'.
78466         Avoid unnecessary comparison of cwd->desc to 0.
78467
78468         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78469         for known valid error numbers rather than observed invalid ones.
78470
78471 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78472
78473         * modules/ullong_max: New file.
78474
78475         * modules/chdir-long, modules/openat: New files.
78476         * modules/save-cwd (Depends-on): Depend on chdir-long.
78477         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78478
78479 2005-01-18  Jim Meyering  <jim@meyering.net>
78480
78481         Merge from coreutils.
78482         * m4/chdir-long.m4, m4/openat.m4: New files.
78483         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78484         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78485         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78486         is sane and DOES follow symlinks.  Besides, testing 20 different
78487         systems found no broken chown implementations.
78488         Prompted by a change in rsync's copy of this macro.
78489         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78490
78491         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78492
78493         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78494         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78495         NULL-means-set-to-current-time semantics.
78496         Remove temporary file immediately, rather than waiting
78497         for configure's at-exit trap code to do it.
78498
78499 2005-01-18  Jim Meyering  <jim@meyering.net>
78500
78501         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78502
78503         * lib/utimens.c (futimens): Account for the fact that futimes
78504         can also fail with errno == ENOSYS or errno == ENOENT.
78505         Patch from Dmitry V. Levin.
78506
78507         Change the name of the robust chdir function from chdir to chdir_long.
78508         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78509         (restore_cwd): Use chdir_long, not chdir.
78510         * lib/chdir-long.c: Renamed from chdir.c.
78511         * lib/chdir-long.h: Renamed from chdir.h.
78512         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78513         Hurd.
78514
78515 2005-01-18  Bruno Haible  <bruno@clisp.org>
78516
78517         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78518         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78519         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78520         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78521         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78522         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78523         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78524         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78525         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78526         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78527         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78528         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78529         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78530         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78531         Use an all-permissive copyright notice, recommended by RMS.
78532
78533 2005-01-18  Bob Proulx  <bob@proulx.com>
78534
78535         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78536         simplify offsetof() macro construct to avoid compile failure with
78537         native HP-UX 11.0 ANSI C compiler.
78538
78539 2005-01-17  Bruno Haible  <bruno@clisp.org>
78540
78541         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78542         redundant because stpncpy.m4 takes care of it.
78543
78544 2005-01-17  Bruno Haible  <bruno@clisp.org>
78545
78546         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78547
78548 2005-01-17  Bruno Haible  <bruno@clisp.org>
78549
78550         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78551         used.
78552
78553 2005-01-17  Bruno Haible  <bruno@clisp.org>
78554
78555         * lib/fwriteerror.h (fwriteerror): Change specification to include
78556         fclose.
78557         * lib/fwriteerror.c: Include <stdbool.h>.
78558         (fwriteerror): At the end, close the file stream. Record whether
78559         stdout was already closed.
78560
78561 2005-01-17  Bruno Haible  <bruno@clisp.org>
78562
78563         * lib/execute.c (environ): Declare if needed.
78564         * lib/pipe.c (environ): Likewise.
78565         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78566
78567 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78568
78569         * modules/argp: Depend on vsnprintf
78570
78571 2005-01-10  Jim Meyering  <jim@meyering.net>
78572
78573         * modules/closeout (Depends-on): Add atexit.
78574
78575 2005-01-06  Bruno Haible  <bruno@clisp.org>
78576
78577         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78578
78579 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78580
78581         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78582         definitions to be after all include files, to avoid collisions.
78583         Problem reported by Bob Proulx.
78584
78585 2005-01-04  Jim Meyering  <jim@meyering.net>
78586
78587         Changes imported from coreutils.
78588         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78589         as the mkstemp template, use a temporary directory and an
78590         8.3-friendly template to avoid trouble on systems like DJGPP.
78591         Reported by Juan M. Guerrero via Stepan Kasal.
78592         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78593         close. Remove the temporary directory right away, rather than waiting
78594         for configure's at-exit trap code to do it.
78595         Suggestion from Stepan Kasal.
78596
78597 2005-01-01  Simon Josefsson  <jas@extundo.com>
78598
78599         * gnulib-tool: Print #include directives when --import'ing.
78600
78601 2004-12-28  Simon Josefsson  <jas@extundo.com>
78602
78603         * tests/test-base64.c: Include required header files.  Remove
78604         unused variables.
78605
78606 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78607
78608         * modules/error (Depends-on): Remove gettext.
78609
78610 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78611
78612         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78613         not needed.  This removes a dependency on the gettext module.
78614         [defined _LIBC]: Do not include <libintl.h>; not needed.
78615
78616 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78617
78618         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78619         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78620
78621 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78622
78623         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78624         HAVE_DECL_STRTOLD.
78625
78626 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78627
78628         * modules/getdate (Depends-on): Remove alloca-opt.
78629
78630 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78631
78632         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78633
78634 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78635
78636         * lib/argp-parse.c: Include <stddef.h>.
78637         (alignof, alignto): New macros.
78638         (parser_init): Don't assume that void * is aligned sufficiently
78639         for struct option.
78640
78641         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78642         need to extend the stack.
78643         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78644         large.
78645
78646 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78647
78648         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78649
78650 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78651
78652         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78653         (2004-10-24) change.  Apparently this was a false alarm.
78654
78655         * modules/getdate: Depend on alloca-opt, not alloca.
78656
78657 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78658
78659         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78660         Remove now-obsolete comment about AIX.
78661         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78662         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78663         (YYMAXDEPTH): New macro.
78664
78665 2004-12-18  Simon Josefsson  <jas@extundo.com>
78666
78667         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78668
78669 2004-12-18  Bruno Haible  <bruno@clisp.org>
78670
78671         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78672
78673 2004-12-18  Bruno Haible  <bruno@clisp.org>
78674
78675         * lib/fatal-signal.c (fatal_signals): Make non-const.
78676         (init_fatal_signals): New function.
78677         (uninstall_handlers, install_handlers): Ignore signals that were set to
78678         SIG_IGN.
78679         (at_fatal_signal): Call init_fatal_signals.
78680         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78681         SIG_IGN.
78682         Reported by Paul Eggert.
78683
78684 2004-12-18  Bruno Haible  <bruno@clisp.org>
78685
78686         * doc/alloca.texi: New file.
78687         * doc/alloca-opt.texi: New file.
78688
78689 2004-12-17  Jim Meyering  <jim@meyering.net>
78690
78691         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78692         Otherwise, install-sh could exit with improper exit status when
78693         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78694
78695 2004-12-16  Simon Josefsson  <jas@extundo.com>
78696
78697         * tests/test-base64.c: Add license.
78698
78699 2004-12-15  Stepan Kasal  <address@hidden>
78700
78701         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78702
78703 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78704
78705         * modules/getcwd (Files): Add m4/d-ino.m4.
78706         Suggested by Mark D. Baushke.
78707
78708 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78709
78710         * lib/getdate.y (textint): New member "negative".
78711         (time_zone_hhmm): New function.
78712         Expect 14 shift-reduce conflicts, not 13.
78713         (o_colon_minutes): New rule.
78714         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78715         (yylex): Set the "negative" member of signed numbers.
78716
78717 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78718
78719         * doc/getdate.texi (Time of day items, Time zone items):
78720         Describe new formats +00:00, UTC+00:00.
78721
78722 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78723
78724         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78725         spurious "-l"s.  Problem reported by Stepan Kasal.
78726
78727 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78728
78729         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78730         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78731
78732 2004-12-04  Simon Josefsson  <jas@extundo.com>
78733
78734         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78735         Vandoorselaere <yoann@prelude-ids.org>.
78736
78737 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78738
78739         Changes imported from coreutils.
78740         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78741         exist.
78742         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78743
78744 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78745
78746         Changes imported from coreutils.
78747         * lib/hard-locale.c: Assume <locale.h> exists.
78748         Include "strdup.h".
78749         (GLIBC_VERSION): New macro.
78750         (hard_locale): Assume setlocale exists.
78751         Rewrite to avoid #ifdef.
78752         Use strdup rather than malloc + strcpy.
78753         * lib/human.c: Assume <locale.h> exists.
78754         (human_readable): Assume localeconv exists.
78755
78756 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78757
78758         * modules/hard-locale (Depends-on): Add strdup.
78759
78760 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78761
78762         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78763         convert T2, not T.  (Imported from libc.)
78764
78765 2004-11-30  Simon Josefsson  <jas@extundo.com>
78766
78767         * modules/restrict (License): Change to LGPL.
78768
78769 2004-11-30  Simon Josefsson  <jas@extundo.com>
78770
78771         * m4/restrict.m4: Add copyright and copying conditions.
78772
78773 2004-11-30  Simon Josefsson  <jas@extundo.com>
78774
78775         * m4/base64.m4: New file.
78776
78777 2004-11-30  Simon Josefsson  <jas@extundo.com>
78778
78779         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78780         base64.
78781
78782         * tests/test-base64.c: New file.
78783
78784         * modules/base64: New file.
78785
78786 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78787
78788         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78789         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78790
78791         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78792
78793 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78794
78795         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78796         (__getcwd.c): Don't restore errno; glibc doesn't.
78797         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78798         first, falling back to our code only if its results look suspicious.
78799         Ensure that the resulting buffer is only as large as necessary.
78800
78801         * lib/readutmp.c: Include readutmp.h first.
78802         Include <errno.h>, since readutmp.h no longer does that.
78803         * lib/readutmp.h: Don't include <errno.h>,
78804         <sys/param.h>, <time.h>; not needed to establish interface.
78805         (errno): Remove decl.
78806         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78807         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78808         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78809
78810 2004-11-28  Simon Josefsson  <jas@extundo.com>
78811
78812         * lib/base64.h, base64.c: New file.
78813
78814 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78815
78816         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78817
78818 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78819
78820         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78821         (Depends-on): Remove pathmax, same.  Add mempcpy.
78822         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78823         (Makefile.am): Append getcwd.h to lib_SOURCES.
78824         (Include): Add getcwd.h.
78825         (Maintainer): Change from Jim Meyering to "all, glibc",
78826         since getdate now uses intended-for-glibc code.
78827         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78828         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78829
78830 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78831
78832         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78833         HP's ANSI C compiler.
78834         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78835         Declaring int functions causes warnings on some modern systems and
78836         shouldn't be needed to compile on ancient ones.
78837         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78838         defined.
78839
78840         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78841         with the following changes.
78842         (__set_errno): Parenthesize properly.
78843         Include <stdbool.h>.
78844         (MIN, MAX, MATCHING_INO): New macros.
78845         (__getcwd): Define with prototype, not K&R form.
78846         Use heuristics to allocate default buffer on stack if possible.
78847         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78848         behavior, and to avoid the PATH_MAX limit when computing
78849         ../../../../...
78850         Use MATCHING_INO to compare inode number to file.
78851         Check for arithmetic overflow in size calculations.
78852         Fix bug in reallocation of dot array that caused getcwd to fail
78853         on directories nested deeper than 75.
78854         Be more careful about saving errno on error.
78855         Do not use realloc; use only free+malloc, as this is a bit
78856         more flexible and avoids a needless copy operation.
78857         Do not inspect st_dev and st_ino for symbolic links; POSIX
78858         doesn't specify the latter.
78859         Check for closedir errors.
78860         Avoid needless casts.
78861         Use "#ifdef weak_alias" around weak_alias, to be like other
78862         glibc code.
78863         The following changes to getcwd.c have effect only when used in
78864         gnulib; they have no effect inside glibc proper.
78865         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78866         as alloca isn't used.
78867         (alloca, __alloca): Likewise.
78868         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78869         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78870         unconditionally, as gnulib assumes C89 or better.
78871         Do not include <sys/param.h>.
78872         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78873         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78874         better.
78875         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78876         Include <dirent.h> in a way that is compatible with modern Autoconf.
78877         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78878         New macros, if not already defined.
78879         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78880         Use "_LIBC", not "defined _LIBC", for consistency.
78881         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78882         a mempcpy module.
78883         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78884         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78885         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78886         credit only to Jim Meyering and adjust the copyright dates.
78887         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78888         <stdlib.h>, <unistd.h>, "pathmax.h".
78889         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78890         (INITIAL_BUFFER_SIZE): Remove.
78891         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78892
78893 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78894
78895         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78896         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78897         Use the _ONCE methods, for efficiency.
78898         Check for fcntl.h.  In test program, include <errno.h>
78899         and <fcntl.h> if available.  Remove old K&R cruft from
78900         test program.  Check for common errors in GNU/Linux,
78901         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78902         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78903         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78904         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78905         name accordingly.
78906         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78907         accommodate new getcwd.c.
78908         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78909         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78910         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78911         that's all we need now.
78912
78913 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78914
78915         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78916         argp-parse.c depends on getopt internals, that means we should
78917         always use our getopt, to be on the safe side.
78918         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78919         order not to spoil the result of an eventual previous invocation
78920         of gl_GETOPT_SUBSTITUTE.
78921
78922 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78923
78924         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78925         redefinition warnings. To avoid them, include the defines
78926         in `#if !defined __need_getopt ... #endif'. The only place
78927         where __getopt_argv_const is used is in definitions
78928         of getopt_long and getopt_long_only below, which are as well
78929         protected by `#ifndef __need_getopt'.
78930         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78931         __need_getopt after including <stdio.h> and <unistd.h> These
78932         headers might have defined it.
78933
78934 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78935
78936         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78937
78938 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78939
78940         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78941         (futimens): New function, which uses futimes if available.
78942         (futimens, utimens): Support timespec==NULL, with same semantics
78943         as utime and utimens.
78944         * lib/utimens.h (futimens): New decl.
78945
78946 2004-11-23  Jim Meyering  <jim@meyering.net>
78947
78948         * lib/getopt_.h: Remove trailing blanks.
78949
78950 2004-11-23  Jim Meyering  <jim@meyering.net>
78951
78952         * lib/__fpending.c: Add comment.
78953
78954 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78955
78956         * modules/canonicalize (Depends-on): Add xreadlink.
78957         Problem reported by James Youngman.
78958
78959 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78960
78961         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78962         New macros.
78963         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78964         optopt): Use them instead of invoking ## directly; otherwise, the
78965         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78966
78967 2004-11-19  Bruno Haible  <bruno@clisp.org>
78968
78969         * lib/strtok_r.c: Move comments from here...
78970         * lib/strtok_r.h: ... to here.
78971
78972 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78973
78974         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78975         implementations that mishandle size_t overflow.
78976
78977 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78978
78979         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78980         might fail.  Problem reported by Yoann Vandoorselaere.
78981         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78982         implementations that mishandle size_t overflow.
78983
78984 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78985
78986         * modules/canon-host (Depends-on): Add strdup.
78987
78988 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78989
78990         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78991
78992 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78993
78994         * lib/canon-host.c: Include "strdup.h".
78995         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78996         Use strdup instead of malloc/strcpy to duplicate strings.
78997
78998         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78999         (human_space_before_unit): New constant.
79000         * lib/human.c (human_readable): Support it.
79001
79002         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79003         (xgetcwd): Set errno correctly when failing.
79004         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79005         the failure is actually due to a PATH_MAX problem.
79006
79007         Further getopt changes to make it more likely that glibc will
79008         buy the changes back.
79009         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79010         (getopt): Use it, so to preserve glibc semantic
79011         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79012         when compiling for libc.
79013         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79014         (getopt_long, getopt_long_only): Use it.
79015
79016         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79017         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79018         (getopt): Argv is now char * const *, as per standard.
79019         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79020         not char *__getopt_argv_const *.
79021         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79022         _getopt_long_only_r): Likewise.
79023         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79024         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79025         _getopt_long_r, _getopt_long_only_r): Likewise.
79026         * lib/getopt_.h (__getopt_argv_const): Remove.
79027         (getopt): Argv is now char * const *, as per standard.
79028
79029         * lib/getdate.y (tORDINAL): New token.
79030         (day, relunit): Allow it for relative times.
79031         (relative_time_table): Use tORDINAL for ordinals.
79032
79033 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79034
79035         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79036         Document that "second" isn't allowed as an ordinal number.
79037
79038 2004-11-16  Jim Meyering  <jim@meyering.net>
79039
79040         * modules/closeout (Depends-on): Add fpending.
79041
79042 2004-11-15  Jim Meyering  <jim@meyering.net>
79043
79044         * lib/closeout.c: Include "__fpending.h" once again.
79045         Include <stdbool.h>.
79046         (close_stdout): Don't fail just because stdout was closed initially,
79047         since some programs don't write to stdout in the normal course of
79048         operation (other than --version and --help), and we don't want this
79049         function to make e.g. `touch file >&-' fail.
79050         But do fail if it was closed and someone has tried to write to it.
79051         E.g., `printf foo >&-' must fail.
79052
79053 2004-11-13  Jim Meyering  <jim@meyering.net>
79054
79055         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79056
79057 2004-11-12  Simon Josefsson  <jas@extundo.com>
79058
79059         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79060         small doc fix is still pending.
79061
79062 2004-11-11  Simon Josefsson  <jas@extundo.com>
79063
79064         * modules/strtok_r: New file.
79065
79066         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79067         strtok_r.
79068
79069 2004-11-11  Simon Josefsson  <jas@extundo.com>
79070
79071         * m4/strtok_r.m4: New file.
79072
79073         * m4/getopt.m4: Replace opterr.
79074
79075 2004-11-11  Simon Josefsson  <jas@extundo.com>
79076
79077         * lib/strtok_r.h, strtok_r.c: New file.
79078
79079 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79080
79081         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79082         of replacing opterr, getopt, etc.  This should handle the
79083         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79084
79085 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79086
79087         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79088         we can stop lying to compilers about the constness of argv when we
79089         are compiled outside glibc.
79090         (getopt, getopt_long, getopt_long_only): Use it.
79091         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79092         _getopt_internal, getopt): Likewise.
79093         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79094         _getopt_long_only_r): Likewise.
79095         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79096         _getopt_long_r, _getopt_long_only_r): Likewise.
79097
79098         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79099         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79100         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79101         the other external symbols.
79102         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79103         declaration, since the above renaming now works around collisions.
79104
79105 2004-11-11  Jim Meyering  <jim@meyering.net>
79106
79107         * lib/linebreak.c: Remove trailing blanks.
79108         * lib/alloca_.h: Likewise.
79109         * lib/acosl.c: Likewise.
79110         * lib/euidaccess.c: Likewise.
79111         * lib/allocsa.h: Likewise.
79112
79113 2004-11-10  Simon Josefsson  <jas@extundo.com>
79114
79115         * m4/getaddrinfo.m4: New file.
79116
79117 2004-11-10  Simon Josefsson  <jas@extundo.com>
79118
79119         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79120
79121 2004-11-10  Simon Josefsson  <jas@extundo.com>
79122
79123         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79124         getaddrinfo.
79125
79126         * modules/getaddrinfo: New file.
79127
79128 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79129
79130         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79131
79132 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79133
79134         * lib/mktime.c (SHR): New macro, which is a portable
79135         substitute for >> that should work even on Crays.
79136         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79137         Problem reported by Mark D. Baushke in
79138         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79139         * lib/getdate.y (SHR): Likewise.
79140         (tm_diff): Use it.
79141         * lib/strftime.c (SHR): Likewise.
79142         (tm_diff): Use it.
79143         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79144         quote_these_too, so that right shifts are well defined.  All uses
79145         changed.
79146
79147 2004-11-10  Jim Meyering  <jim@meyering.net>
79148
79149         Ensure that no close failure goes unreported.
79150         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79151         return early when it seems there's nothing to flush.
79152         Don't include __fpending.h.
79153
79154 2004-11-10  Jim Meyering  <jim@meyering.net>
79155
79156         * modules/closeout (Depends-on): Remove fpending.
79157
79158 2004-11-10  Jim Meyering  <jim@meyering.net>
79159
79160         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79161
79162 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79163
79164         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79165         gl_FUNC_STRFTIME.
79166         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79167         and AC_REQUIRE when possible, to avoid duplicate checks.
79168         Check for <wchar.h>.
79169
79170 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79171
79172         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79173
79174 2004-11-09  Bruno Haible  <bruno@clisp.org>
79175
79176         * m4/sockpfaf.m4: New file.
79177
79178 2004-11-05  Bruno Haible  <bruno@clisp.org>
79179
79180         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79181         Reported by Mark D. Baushke <mdb@cvshome.org>.
79182
79183 2004-11-04  Bruno Haible  <bruno@clisp.org>
79184
79185         2004-09-11  Bruno Haible  <bruno@clisp.org>
79186                 * allocsa.valgrind: New file.
79187         2004-02-06  Bruno Haible  <bruno@clisp.org>
79188                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79189                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79190                 Reported by Christopher Seip <chris.seip@hp.com>.
79191
79192 2004-11-04  Bruno Haible  <bruno@clisp.org>
79193
79194         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79195         (Makefile.am): Distribute it.
79196
79197 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79198
79199         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79200         with errno == ERANGE if the buffer is too small.
79201         Problem reported by Mark D. Baushke.
79202
79203 2004-11-03  Albert Chin  <china@thewrittenword.com>
79204             Paul Eggert  <eggert@cs.ucla.edu>
79205
79206         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79207         equivalent, substitute $ac_type for equivalent type rather than
79208         blindly using uint32_t *always* which won't work if uint32_t is not
79209         available.  Define _UINT32_T to work around typedef of uint32_t if
79210         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79211         2.5.1.
79212
79213 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79214
79215         * m4/jm-macros.m4: Sync from coreutils.
79216         (gl_MACROS): Check for mbrlen, for pathchk.
79217         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79218
79219 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79220
79221         * lib/xreadlink.c (MAXSIZE): New macro.
79222         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79223         size does not exceed MAXSIZE.  Avoid cast.
79224         As suggested by Mark D. Baushke in
79225         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79226         if readlink fails with buffer size just under MAXSIZE, try again
79227         with MAXSIZE.
79228
79229 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79230
79231         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79232
79233 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79234         and  Paul Eggert  <eggert@cs.ucla.edu>
79235
79236         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79237         (get_date): Overparenthesize to avoid GCC warning.
79238
79239 2004-11-02  Bruno Haible  <bruno@clisp.org>
79240
79241         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79242         returns void.
79243
79244 2004-11-02  Bruno Haible  <bruno@clisp.org>
79245
79246         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79247         function returns void.
79248
79249 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79250
79251         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79252         fflush_unlocked, flockfile, funlockfile, funlockfile,
79253         fputs_unlocked, putc_unlocked.
79254
79255 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79256
79257         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79258         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79259         already declared.
79260
79261 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79262
79263         * modules/getdate (Files): Add doc/getdate.texi.
79264         (Depends-on): Add setenv, xalloc.
79265
79266 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79267
79268         * lib/getdate.y: Add support for TZ="foo" within a date string.
79269         Fix some bugs near time_t boundaries.  Reject dates with
79270         out-of-range components, e.g., "Sept 31".
79271         Include <stdlib.h>, "setenv.h", "xalloc.h".
79272         (ISDIGIT_LOCALE): Remove; unused.
79273         Note that the TZ and time functions used here are not reentrant.
79274         (mktime_ok, get_tz): New functions.
79275         (TZBUFSIZE): New constant.
79276         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79277         This requires that we sometimes generate our own TZ="XXX..." setting.
79278
79279 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79280
79281         * doc/getdate.texi: New file, from coreutils with modifications for
79282         the new TZ parsing.
79283
79284 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79285
79286         * lib/mktime.c (not_equal_tm): Remove redundant check.
79287
79288 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79289
79290         * modules/regex (lib_SOURCES): Add regex.c.
79291         Reported by James Youngman in
79292         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79293
79294 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79295
79296         * lib/getdate.y: Use Bison 1.875 features, and some minor
79297         code cleanups.  This change does not affect semantics.
79298         Don't include <stdlib.h>; no longer needed.
79299         Don't include unlocked-io.h; only the "#if TEST" code uses
79300         stdio, and performance isn't crucial there.
79301         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79302         Bison 1.875 features as described below.
79303         All uses of "PC." replaced by "pc->".
79304         (YYSTYPE): Add a forward declaration.
79305         (yylex, yyerror): Use full prototypes in forward decls.
79306         Use "%pure-parser" rather than obsolescent "%pure_parser".
79307         Use %parse-param and %lex-param instead of obsolescent
79308         YYPARSE_PARAM and YYLEX_PARAM.
79309         (meridian_table, month_and_day_table, time_units_table,
79310         relative_time_table, time_zone_table, military_table,
79311         lookup_zone, lookup_word, get_date):
79312         Use NULL instead of 0 where appropriate.
79313         (to_hour): Avoid abort (), to avoid a dependency on
79314         stdlib.h.
79315         (yyerror, yylex): Now accepts parser_control * arg.
79316         (main) [TEST]: Use '\0' rather than 0 for char.
79317
79318 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79319
79320         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79321
79322 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79323
79324         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79325         It's now the caller's responsibility to handle the case where
79326         !HAVE_GETPAGESIZE && !defined getpagesize.
79327
79328         * lib/mktime.c (leapyear): Arg is long int, not int.
79329
79330 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79331
79332         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79333
79334 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79335
79336         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79337         missing.  Problem reported by James Youngman.
79338
79339 2004-10-16  Simon Josefsson  <jas@extundo.com>
79340
79341         * gnulib-tool: Fix comments.  Fix parse problem.
79342         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79343
79344 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79345
79346         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79347         implementation of getopt_long.  Problem reported by Alexander Taler in:
79348         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79349
79350 2004-10-15  Bruno Haible  <bruno@clisp.org>
79351
79352         * gnulib-tool: Untabify. Initialize supplied_libname.
79353         (func_usage): More homogenous output.
79354         (func_modules_transitive_closure, func_modules_to_filelist,
79355         func_emit_lib_Makefile_am): New functions.
79356         (func_import): New function, extracted from big case statement. Use
79357         func_get_license, func_modules_transitive_closure,
79358         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79359         opt_lgpl. Don't use test -a, as it's not portable.
79360         (func_create_testdir): Use func_modules_transitive_closure,
79361         func_modules_to_filelist, func_emit_lib_Makefile_am.
79362
79363 2004-10-15  Bruno Haible  <bruno@clisp.org>
79364
79365         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79366
79367 2004-10-15  Bruno Haible  <bruno@clisp.org>
79368
79369         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79370         the portions belonging to each module.
79371         Suggested by Derek Robert Price <derek@ximbiot.com>.
79372
79373 2004-10-12  Simon Josefsson  <jas@extundo.com>
79374
79375         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79376         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79377         to real functions.
79378
79379 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79380
79381         * modules/vsnprintf: New file.
79382
79383 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79384
79385         * m4/vsnprintf.m4: New file.
79386
79387 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79388
79389         * lib/vsnprintf.h: New file.
79390         * lib/vsnprintf.c: New file.
79391
79392 2004-10-11  Bruno Haible  <bruno@clisp.org>
79393
79394         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79395         vsnprintf.
79396
79397 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79398
79399         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79400
79401 2004-10-07  Bruno Haible  <bruno@clisp.org>
79402
79403         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79404         fits into the provided buffer.
79405
79406 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79407
79408         * lib/diacrit.c, diacrit.h: Add GPL notice.
79409
79410         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79411         notice.
79412         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79413         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79414         This avoids a potential constant-folding bug.
79415
79416 2004-10-05  Bruno Haible  <bruno@clisp.org>
79417
79418         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79419         for the declaration of strsep.
79420
79421 2004-10-05  Bruno Haible  <bruno@clisp.org>
79422
79423         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79424
79425 2004-10-04  Simon Josefsson  <jas@extundo.com>
79426
79427         * modules/memmem: New file.
79428         * tests/test-memmem.c: New file.
79429         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79430
79431 2004-10-04  Simon Josefsson  <jas@extundo.com>
79432
79433         * m4/memmem.m4: New file.
79434
79435 2004-10-04  Simon Josefsson  <jas@extundo.com>
79436
79437         * lib/memmem.h: New file.
79438         * lib/memmem.c: New file, taken from glibc.
79439
79440 2004-10-04  Simon Josefsson  <jas@extundo.com>
79441
79442         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79443         '#ifdef USE_UNLOCKED_IO'.
79444
79445 2004-10-04  Simon Josefsson  <jas@extundo.com>
79446
79447         * config/srclist.txt: Add memmem from glibc.
79448
79449 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79450
79451         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79452
79453         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79454         modules/exclude, modules/getdate, modules/getline,
79455         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79456         modules/getusershell, modules/linebuffer, modules/md5,
79457         modules/mountlist, modules/posixtm, modules/readtokens,
79458         modules/readutmp, modules/regex, modules/sha1,
79459         modules/version-etc, modules/yesno:
79460         Remove dependency on unlocked-io.
79461
79462 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79463
79464         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79465
79466         * m4/unlocked-io.m4: Add copyright notice.
79467         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79468
79469 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79470
79471         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79472         * lib/xmalloc.c (xmemdup): Likewise.
79473         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79474         XFREE): Remove these long-obsolescent macros.
79475         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79476         * lib/xstrdup.c: Remove.
79477
79478         * lib/regex.c (re_comp): Cast gettext return value to char *,
79479         Problem reported by Martin Neitzel via Mark D. Baushke.
79480
79481 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79482
79483         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79484         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79485         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79486         regex.c, sha1.c, version-etc.c, yesno.c:
79487         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79488         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79489         the includer's responsibility.
79490
79491         Sync from coreutils.
79492
79493         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79494         points to the start of a string, as the C Standard says the
79495         resulting behavior is undefined.
79496
79497         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79498         simple -> simple_backups, numbered_existing ->
79499         numbered_existing_backups, numbered -> numbered_backups
79500         to avoid shadowing problems.  All uses changed.
79501         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79502         * lib/backupfile.c (check_extension, numbered_backup):
79503         Rename locals to avoid shadowing 'basename'.
79504         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79505         once.
79506
79507         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79508         * lib/.cvsignore: Add getopt.h.
79509
79510 2004-10-04  Bruno Haible  <bruno@clisp.org>
79511
79512         * modules/README: New file.
79513         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79514         not a module.
79515
79516 2004-10-02  Jim Meyering  <jim@meyering.net>
79517
79518         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79519
79520 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79521
79522         * modules/strsep: New file.
79523
79524 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79525
79526         * m4/strsep.m4: New file.
79527
79528 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79529
79530         * lib/strsep.h: New file.
79531         * lib/strsep.c: New file.
79532
79533 2004-10-01  Simon Josefsson  <jas@extundo.com>
79534
79535         * lib/snprintf.c (snprintf): Handle size==0.
79536
79537 2004-10-01  Simon Josefsson  <jas@extundo.com>
79538             Bruno Haible  <bruno@clisp.org>
79539
79540         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79541         (snprintf): Declare 'args'.
79542
79543 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79544
79545         * lib/snprintf.c: Remove comments as to why each header is needed.
79546
79547 2004-10-01  Bruno Haible  <bruno@clisp.org>
79548
79549         * MODULES.html.sh: Add strsep.
79550
79551 2004-09-30  Simon Josefsson  <jas@extundo.com>
79552
79553         * modules/snprintf: New file.
79554
79555 2004-09-30  Simon Josefsson  <jas@extundo.com>
79556
79557         * m4/snprintf.m4: New file.
79558
79559 2004-09-30  Simon Josefsson  <jas@extundo.com>
79560
79561         * lib/snprintf.h, lib/snprintf.c: New files.
79562
79563 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79564
79565         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79566         (hol_entry_help): Never translate an empty string.
79567         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79568         * lib/argp.h (OPTION_NO_TRANS): New option.
79569
79570 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79571
79572         * modules/argp (Maintainer): Replace Simon Josefsson
79573         by Sergey Poznyakoff.
79574
79575 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79576
79577         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79578         changes merged back into glibc.
79579
79580 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79581
79582         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79583
79584 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79585
79586         * lib/xvasprintf.c: Include xalloc.h.
79587         (xvasprintf): Use xalloc_die, not xmalloc_die.
79588
79589 2004-09-29  Bruno Haible  <bruno@clisp.org>
79590
79591         * modules/alloca-opt: New file, derived from modules/alloca.
79592         * modules/allocsa: Depend on alloca-opt instead of alloca.
79593         * modules/setenv: Likewise.
79594         * modules/vasnprintf: Likewise.
79595         * MODULES.html.sh: Add alloca-opt.
79596
79597 2004-09-28  Simon Josefsson  <jas@extundo.com>
79598
79599         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79600         LGPL, and to replace license template from GPL to LGPL.
79601
79602 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79603
79604         * modules/dummy: Change license to LGPL.
79605
79606 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79607
79608         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79609
79610 2004-09-24  Simon Josefsson  <jas@extundo.com>
79611
79612         * modules/minmax (License): Change from GPL to LGPL.
79613
79614 2004-09-23  Simon Josefsson  <jas@extundo.com>
79615
79616         * gnulib-tool (--import): Typo.
79617
79618 2004-09-23  Simon Josefsson  <jas@extundo.com>
79619
79620         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79621
79622 2004-09-22  Bruno Haible  <bruno@clisp.org>
79623
79624         * modules/*: Add 'License' field.
79625         * gnulib-tool: Accept --extract-license option.
79626         (func_get_license): New function.
79627
79628 2004-09-21  Bruno Haible  <bruno@clisp.org>
79629
79630         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79631         Reported by Simon Josefsson.
79632
79633 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79634
79635         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79636         gl_AC_TYPE_LONG_LONG.
79637
79638 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79639
79640         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79641
79642 2004-09-18  Simon Josefsson  <jas@extundo.com>
79643         and  Paul Eggert  <eggert@cs.ucla.edu>
79644
79645         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79646         calls with autoreconf.  Define GL_LIB.
79647
79648 2004-09-14  Karl Berry  <karl@gnu.org>
79649
79650         * config/srclist.txt: unsync setenv.c, sigh.
79651
79652 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79653
79654         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79655         Problem reported by Bruno Haible in:
79656         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79657
79658 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79659
79660         * config/srclist.txt: Comment out argp-pvh.c.
79661
79662 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79663
79664         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79665         in case some system header has #define'd it.  Problem reported by
79666         Soeren D. Schulze in
79667         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79668
79669 2004-09-09  Karl Berry  <karl@gnu.org>
79670
79671         * regex.[ch]: delete from the root.  These were supposed to be
79672                 synced with emacs cvs, but this has not happened for about
79673                 a year, and anyway nothing else uses emacs regex.[ch].
79674                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79675                 lib/regex[.ch] is untouched.
79676
79677 2004-09-09  Bruno Haible  <bruno@clisp.org>
79678
79679         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79680
79681 2004-09-09  Bruno Haible  <bruno@clisp.org>
79682
79683         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79684         modifications.
79685         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79686
79687 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79688
79689         * modules/xvasprintf: New file.
79690         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79691
79692 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79693
79694         * lib/xvasprintf.h: New file.
79695         * lib/xvasprintf.c: New file.
79696         * lib/xasprintf.c: New file.
79697
79698 2004-09-08  Bruno Haible  <bruno@clisp.org>
79699
79700         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79701
79702 2004-09-08  Bruno Haible  <bruno@clisp.org>
79703
79704         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79705         length is > INT_MAX.
79706         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79707         more.
79708
79709 2004-09-08  Bruno Haible  <bruno@clisp.org>
79710
79711         * lib/stdint_.h: New file, taken from GNU clisp.
79712
79713 2004-09-08  Bruno Haible  <bruno@clisp.org>
79714             Oskar Liljeblad  <oskar@osk.mine.nu>
79715
79716         * modules/stdint: New file.
79717         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79718
79719 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79720
79721         Import from coreutils.
79722         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79723         strings on unbounded length.  alloca's performance benefits aren't
79724         that important here.
79725         (V_STRDUP): Remove.
79726         (parse_with_separator): New function, with most of the internals
79727         of the old parse_user_spec.  Allow user to omit both user and group,
79728         for compatibility with FreeBSD.
79729         Clone only the user name, not the entire spec.
79730         Do not set *uid, *gid unless entirely successful.
79731         Avoid memory leak in some failing cases.
79732         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79733         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79734         (parse_user_spec): Rewrite to use parse_with_separator.
79735
79736 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79737
79738         * modules/userspec: Don't depend on alloca.
79739
79740 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79741
79742         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79743
79744 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79745
79746         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79747         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79748         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79749
79750 2004-08-16  Simon Josefsson  <jas@extundo.com>
79751
79752         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79753         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79754         Add --dry-run for --import.
79755         Let user provided command line parameters override configure.ac
79756         settings.
79757
79758 2004-08-12  Simon Josefsson  <jas@extundo.com>
79759
79760         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79761         as discussed with Paul Eggert in threads rooted at
79762         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79763         and
79764         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79765         Before, the test was empty, and relied on ELIDE_CODE in source
79766         code.)
79767         (gl_PREREQ_GETOPT): New macro.
79768         (gl_GETOPT): Use them.
79769
79770 2004-08-12  Simon Josefsson  <jas@extundo.com>
79771
79772         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79773         * lib/getopt_.h: Renamed from getopt.h.
79774
79775 2004-08-12  Simon Josefsson  <jas@extundo.com>
79776
79777         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79778         Change default library name from libfoo to libgnu.
79779         Now, if you have a configure.ac that says:
79780                 gl_SOURCE_BASE(gl)
79781                 gl_M4_BASE(gl/m4)
79782                 gl_MODULES(error getopt etcetera)
79783                 gl_INIT
79784         you can import all you need by running:
79785                 ../gnulib/gnulib-tool --import
79786
79787         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79788         (Makefile.am): Rewrite, use logic from argz.
79789         (Include): Use <getopt.h> instead of "getopt.h".
79790
79791 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79792
79793         * modules/argp (Files): Add m4/unlocked-io.m4.
79794         (Depends-on): Add extensions.
79795
79796 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79797
79798         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79799         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79800         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79801         Check for program_invocation_name, program_invocation_short_name,
79802         flockfile, funlockfile, features.h, _getopt_long_only_r.
79803
79804 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79805
79806         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79807         its complicated substitute.
79808         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79809         and program_invocation_name.
79810         (__argp_basename) [!_LIBC]: Remove; the only use was
79811         replaced by its body.
79812         (__argp_short_program_name): Change condition from
79813         !defined __argp_short_program_name to
79814         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79815         to match argp-namefrob.h.
79816         (__argp_failure): Don't assume strerror_r returns char *.
79817         * lib/argp-parse.c (N_): Define unconditionally.
79818         (argp_default_options): Fill out initializers with 0 to avoid
79819         gcc warnings.
79820
79821 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79822
79823         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79824         getopt1.c.
79825
79826 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79827
79828         Merge from coreutils.
79829
79830         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79831
79832         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79833         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79834
79835 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79836
79837         Merge from coreutils.
79838
79839         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79840         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79841         for Reliant Unix 5.43.
79842
79843         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79844         (union fooround): Use uintmax_t, not long int.
79845         The rest is a merge from libc:
79846         [defined _LIBC]: Include <shlib-compat.h>.
79847         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79848
79849         * lib/settime.c (settime): Recode to avoid warning with
79850         Sun Forte C 6U2.
79851
79852         * lib/strverscmp.c: Convert to UTF-8.
79853
79854 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79855
79856         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79857         m4/uintmax_t.m4.
79858
79859 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79860
79861         * modules/xalloc-die: New file.
79862         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79863
79864         * modules/md5 (Files): Add m4/uint32_t.m4.
79865         * modules/sha1: Renamed from modules/sha.
79866         (Files):
79867         Rename lib/sha.h to lib/sha1.h.
79868         Rename lib/sha.c to lib/sha1.c.
79869         Rename m4/sha.m4 to m4/sha1.m4.
79870         (lib_SOURCES): Likewise.
79871         (configure.ac): Rename gl_SHA to gl_SHA1.
79872         (Include): sha.h -> sha1.h.
79873
79874 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79875
79876         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79877         * m4/sha1.m4: Renamed from sha.m4.
79878         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79879
79880 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79881
79882         * lib/obstack.h (obstack_empty_p):
79883         Don't assume that chunk->contents is suitably aligned.
79884         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79885         Likewise. Problem reported by Benno in
79886         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79887
79888         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79889         readable.  This could be improved further but it'd take some work.
79890
79891 2004-08-08  Simon Josefsson  <jas@extundo.com>
79892
79893         * modules/xgethostname (Depends-on): Remove exit and error (not
79894         used).
79895
79896         * modules/getpass-gnu: Add getpass.h.
79897         (Depends-on): Add stdbool.
79898         * modules/getpass: Add getpass.h.
79899
79900 2004-08-08  Simon Josefsson  <jas@extundo.com>
79901
79902         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79903         Check getpass declaration.
79904
79905 2004-08-08  Simon Josefsson  <jas@extundo.com>
79906
79907         * lib/xgethostname.c: Don't include error.h (not used).
79908
79909         * lib/getpass.h: Add.
79910         * lib/getpass.c: Include getpass.h first.
79911
79912 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79913
79914         * lib/xalloc-die.c: New file.
79915         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79916         All uses removed.
79917         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79918         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79919         xalloc-die.c.
79920         (_, N_, xalloc_die): Move to xalloc-die.c.
79921         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79922         so that we needn't mess with xalloc_msg_memory_exhausted.
79923
79924         * lib/sha1.h: Renamed from sha.h.
79925         (SHA1_H): Renamed from _SHA_H.
79926         (sha1_ctx): Renamed from sha_ctx.
79927         (sha1_init_ctx): Renamed from sha_init_ctx.
79928         (sha1_process_block): Renamed from sha_process_block.
79929         (sha1_process_bytes): Renamed from sha_process_bytes.
79930         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79931         (sha1_read_ctx): Renamed from sha_read_ctx.
79932         (sha1_stream): Renamed from sha_stream.
79933         (sha1_buffer): Renamed from sha_buffer.
79934         * lib/sha1.c: Likewise; renamed from sha.c.
79935         Do not include <sys/types.h>.
79936         Include <stddef.h> rather than <stdlib.h>.
79937
79938 2004-08-08  Bruno Haible  <bruno@clisp.org>
79939
79940         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79941         FILESYSTEM_PREFIX_LEN.
79942         * lib/progreloc.c: Likewise.
79943         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79944
79945 2004-08-06  Simon Josefsson  <jas@extundo.com>
79946
79947         * modules/progname (Depends-on): Don't depend on stdbool.
79948
79949 2004-08-06  Simon Josefsson  <jas@extundo.com>
79950
79951         * modules/getsubopt: New file.
79952         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79953         getsubopt.
79954
79955 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79956
79957         More merge from coreutils.
79958
79959         * m4/utimens.m4, m4/utimecmp.m4: New files.
79960         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79961         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79962         prereq.m4, sha.m4: Import changes from coreutils.
79963
79964 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79965
79966         More merge from coreutils.
79967         * modules/raise, modules/readtokens0, modules/utimens:
79968         * modules/utimecmp, module/xnanosleep: New files.
79969         * modules/strftime: Add lib/strftime.h.
79970         Change include from <time.h> to "strftime.h".
79971         * modules/yesno: Add lib/yesno.h.
79972         * modules/backupfile: Remove lib/addext.c.
79973         * modules/euidaccess: Add stat-macros.h.
79974         * modules/canonicalize, modules/euidaccess,
79975         modules/filemode, modules/lchown, modules/makepath,
79976         modules/rmdir, modules/stat: Likewise.
79977
79978 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79979
79980         Merge from tar.
79981         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79982         SIZE_MAX is a valid preprocessor constant.
79983         (__argp_basename): Change from "#ifndef _LIBC"
79984         to "#ifndef __argp_short_program_name", so that
79985         we don't compile these functions for tar.
79986
79987         More merges from coreutils.
79988         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79989         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79990         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79991         * lib/addext.c: Remove; no longer needed.
79992         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79993         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79994         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79995         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79996         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79997         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79998         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79999         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80000         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80001         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80002         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80003         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80004         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80005         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80006         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80007         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80008         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80009         Import changes from coreutils.
80010
80011 2004-08-05  Simon Josefsson  <jas@extundo.com>
80012
80013         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80014
80015 2004-08-05  Simon Josefsson  <jas@extundo.com>
80016
80017         * m4/getsubopt.m4: New file.
80018
80019 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80020
80021         Merge from coreutils.
80022
80023         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80024         * m4/getcwd-path-max.m4: New files.
80025
80026         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80027         FILESYSTEM_PREFIX_LEN ->
80028         FILE_SYSTEM_PREFIX_LEN.
80029         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80030         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80031         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80032         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80033
80034         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80035         prerequisite modules now handle the DOS stuff.
80036         Don't check for unistd.h.
80037
80038 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80039
80040         Merge from coreutils.
80041
80042         * lib/.gdb-history: Remove; this doesn't belong here.
80043
80044         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80045         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80046         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80047         * lib/getcwd.c: New files.
80048
80049         * lib/dirname.h: Include <stdbool.h>.
80050         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80051         for consistency with POSIX terminology.  All uses changed.
80052         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80053         (strip_trailing_slashes): Use bool for booleans.
80054         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80055
80056         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80057         sometimes returns a positive errno value even when it succeeds.
80058         (print_errno_message) [!LIBC]: Fall back on strerror if
80059         __strerror_r fails.
80060
80061         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80062         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80063         (longest_relative_suffix): New function.
80064         (path_concat): Use it.  Assume first argument is not NULL.
80065         Port to DOS.  Omit redundant separators.
80066         Report an error instead of returning NULL.
80067         Use mempcpy instead of memcpy.
80068         (xpath_concat): Remove: not declared or used.
80069
80070         * lib/same.h: Include <stdbool.h>
80071         (same_name): Return bool, not int.
80072         * lib/same.c (same_name): Likewise.
80073         (errno): Don't declare; we assume C89 or better now.
80074
80075         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80076         if not already defined.
80077
80078         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80079         * lib/dup-safer.c (errno): Likewise.
80080
80081 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80082
80083         Merge from coreutils.
80084         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80085         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80086         * modules/path-concat: Don't depend on strdup.
80087
80088 2004-08-03  Simon Josefsson  <jas@extundo.com>
80089
80090         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80091         * lib/progname.h: Don't include stdbool.h.
80092
80093 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80094
80095         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80096         * MODULES.html.sh (func_all_modules): Remove fatal.
80097
80098 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80099
80100         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80101
80102 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80103
80104         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80105         working.
80106
80107 2004-08-02  Simon Josefsson  <jas@extundo.com>
80108
80109         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80110         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80111         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80112
80113 2004-08-01  Simon Josefsson  <jas@extundo.com>
80114
80115         * lib/xgetdomainname.c: Include stdlib.h, for free().
80116
80117 2004-07-19  Bruno Haible  <bruno@clisp.org>
80118
80119         * MODULES.html.sh (func_all_modules): Add dummy.
80120
80121 2004-07-16  Simon Josefsson  <jas@extundo.com>
80122
80123         * modules/dummy: New file.
80124
80125 2004-07-16  Simon Josefsson  <jas@extundo.com>
80126
80127         * lib/dummy.c: New file.
80128
80129 2004-07-16  Bruno Haible  <bruno@clisp.org>
80130
80131         * lib/backupfile.h: Add extern "C" for C++.
80132         * lib/closeout.h: Likewise.
80133         * lib/copy-file.h: Likewise.
80134         * lib/findprog.h: Likewise.
80135         * lib/full-write.h: Likewise.
80136         * lib/pathname.h: Likewise.
80137         * lib/progname.h: Likewise.
80138         * lib/stpcpy.h: Likewise.
80139         * lib/stpncpy.h: Likewise.
80140         * lib/strcase.h: Likewise.
80141         * lib/strstr.h: Likewise.
80142         * lib/xalloc.h: Likewise.
80143
80144         * lib/mbswidth.h: Add extern "C" for C++.
80145         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80146
80147 2004-07-13  Robert Millan  <robertmh@gnu.org>
80148
80149         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80150
80151 2004-07-09  Simon Josefsson  <jas@extundo.com>
80152
80153         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80154         failed without this.)
80155
80156 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80157
80158         * modules/chown (Files): Add lib/fchown-stub.c, since
80159         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80160
80161 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80162
80163         * lib/fchown-stub.c: New file.
80164
80165 2004-06-24  Jim Meyering  <jim@meyering.net>
80166
80167         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80168
80169 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80170
80171         * modules/argz: Omit "#include".
80172
80173         * MODULES.html.sh (func_all_modules): Add calloc, to match
80174         2004-06-01 addition of calloc module.
80175
80176 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80177
80178         * m4/argz.m4: New file, which is autoupdated from libtool.
80179
80180 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80181
80182         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80183         libtool.
80184
80185 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80186
80187         * config/srclist-update: Don't insist on "USA." before the
80188         close-comment, as libtool omits the period and puts the */ on a
80189         separate line.
80190         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80191         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80192
80193 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80194
80195         * modules/argz: New file.
80196         * MODULES.html.sh (func_all_modules): Add argz.
80197
80198 2004-06-12  Jim Meyering  <jim@meyering.net>
80199         and  Paul Eggert  <eggert@cs.ucla.edu>
80200
80201         * modules/hash (Files): Add lib/xalloc.h.
80202         * modules/pipe (Depends-on): Add wait-process.
80203         * modules/stat (Depends-on): Add xalloc.
80204         * modules/userspec (Files): Add lib/userspec.h.
80205         * modules/xstrto
80206
80207         Upgrade from gettext-0.13.
80208         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80209         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80210         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80211
80212 2004-06-10  Jim Meyering  <jim@meyering.net>
80213
80214         * lib/calloc.c: New file.
80215
80216 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80217
80218         * lib/getdate.y (yylex): Allow space between sign and number.
80219         Problem reported by Dan Jacobson.
80220
80221 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80222
80223         Merge from coreutils CVS.
80224
80225         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80226         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80227         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80228         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80229         xstrtol.m4: Fix copyright date and/or serial number.
80230
80231         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80232         See if we need an fchown replacement.
80233         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80234         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80235         and use the replacement function if we detect either defect.
80236
80237         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80238         gl_UTIMECMP.
80239
80240 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80241         and  Jim Meyering  <jim@meyering.net>
80242
80243         Merge from coreutils CVS.
80244
80245         * lib/stat-macros.h: New file, with contents from file-type.h
80246         and coreutils' system.h.
80247         * lib/file-type.c: Include "stat-macros.h".
80248         * lib/file-type.h (file_type): Move all macro definitions to new file,
80249         stat-macros.h.
80250
80251         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80252         Wrap old code with this conditional.
80253         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80254         function that does not dereference symlinks.
80255         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80256
80257         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80258         dependency problems.
80259         (xreadlink): Accept new arg SIZE, for efficiency.
80260         All decls and uses changed.
80261         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80262
80263         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80264         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80265
80266         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80267         sysexits.h.
80268
80269 2004-06-01  Jim Meyering  <jim@meyering.net>
80270
80271         * m4/calloc.m4: New file.
80272
80273 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80274
80275         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80276         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80277         Also, fix a typo in a diagnostic.
80278
80279 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80280
80281         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80282         or AC_FUNC_REALLOC.
80283
80284 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80285
80286         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80287         macros to be defined.
80288         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80289         the allocator returns NULL because the requested size is zero.
80290
80291 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80292
80293         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80294         var.  Add comment explaining why libc still defines it.  This
80295         merges the following patch from glibc:
80296         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80297
80298 2004-05-20  Andreas Schwab  <schwab@suse.de>
80299
80300         * m4/free.m4: Replace free if it not known to work, not the other
80301         way round.
80302
80303 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80304
80305         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80306         present in glibc since revision 1.1 of this file.
80307         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80308         obstack_alignment_mask, obstack_alloc, obstack_base,
80309         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80310         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80311         obstack_grow0, obstack_init, obstack_int_grow,
80312         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80313         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80314         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80315         nonexistent functions.
80316
80317 2004-05-18  Karl Berry  <karl@gnu.org>
80318
80319         * config/srclist.txt: break link for vasnprintf.c.
80320
80321 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80322
80323         Port obstack to the AS/400, where pointers are 16 bytes wide and
80324         you cannot cast an integer to a valid pointer.  This patch is
80325         currently waiting to be integrated into glibc; see
80326         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80327
80328         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80329         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80330         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80331         (struct obstack): temp member is now a union of a pointer and
80332         an integer, instead of an integer.  All integer uses changed.
80333         This does not affect the physical layout of struct obstack,
80334         except on hosts (like the AS/400) where the size or alignment of
80335         void * is greater than that of ptrdiff_t.
80336         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80337         __STDC__)]: Store temporary in pointer member of union, not
80338         integer member.
80339         * lib/obstack.c: Include <stddef.h>, for offsetof.
80340         (struct fooalign): Remove; it doesn't need a name.
80341         (union fooround): Change double to long double, and add void *.
80342         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80343         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80344         not a macro.  Hence the values are always int; so remove all
80345         casts-to-int in uses.
80346
80347 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80348
80349         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80350         we can get this patch merged into glibc.
80351
80352 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80353             Paul Eggert  <eggert@cs.ucla.edu>
80354
80355         * m4/argp: Depend on alloca.
80356
80357 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80358             Paul Eggert  <eggert@cs.ucla.edu>
80359
80360         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80361         freecoding.
80362
80363 2004-05-17  Bruno Haible  <bruno@clisp.org>
80364
80365         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80366         precision that consists of a '.' followed by an empty digit string.
80367         Patch by Tor Lillqvist <tml@iki.fi>.
80368
80369 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80370
80371         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80372         for backward compatibility with older code.  We need our own
80373         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80374         it under some other name, and our alloca.h will define it.
80375
80376 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80377             Derek Price  <derek@ximbiot.com>
80378
80379         * lib/alloca.c: Include <alloca.h>, to get our interface.
80380         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80381         include <alloca.h> first.  Use C89 prototype for alloca; this
80382         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80383         Use #elif for simplicity, since we can assume C89 now.
80384         Don't try to source the system alloca.h since it will not be found
80385         and to prevent recursively including its replacement.
80386         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80387         * lib/regex.c: Likewise.
80388
80389 2004-05-16  Derek Price  <derek@ximbiot.com>
80390             Paul Eggert  <eggert@cs.ucla.edu>
80391
80392         getline cleanup.  This changes the getndelim2 API: both order of
80393         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80394         no delimiter).
80395
80396         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80397         interface does that.
80398         (getline): Always use getdelim, so that we don't have two
80399         copies of this code.
80400         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80401         if available.
80402         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80403         (GETNDELIM2_MAXIMUM): New macro.
80404         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80405         instead of the old practice of delim2==0.  All callers changed.
80406         Return -1 on overflow, instead of returning junk.
80407         Do not set *linesize unless allocation succeeds.
80408         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80409         that we include sys/types.h.
80410         * lib/getnline.h: Likewise.
80411         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80412         (getndelim2): Reorder arguments.
80413         * lib/getnline.c (getnline, getndelim):
80414         Don't discard the NMAX argument.
80415         (getnline): Invoke getndelim, to avoid code duplication.
80416         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80417         of (size_t) -1 by callers of the getnline family.
80418
80419 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80420
80421         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80422         Check for gettimeofday.
80423         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80424         Check for settimeofday, stime.
80425
80426 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80427
80428         * lib/nanosleep.c (suspended): Change its type from int to
80429         sig_atomic_t volatile.
80430         (first_call): Make it private to rpl_nanosleep, and have it
80431         be zero initially as that's a bit faster.
80432         (my_usleep): Round up fractional times instead of truncating them,
80433         as this is the usual meaning for 'sleep'.
80434
80435         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80436         doesn't work.
80437         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80438         (ENOSYS): Define if not defined.
80439         (settime): Fall back on stime if it exists and settimeofday fails.
80440         But don't bother with fallbacks if a method fails with errno == EPERM.
80441
80442 2004-05-11  Jim Meyering  <jim@meyering.net>
80443
80444         Prior to this change, the save_cwd caller required read access to the
80445         current directory on most systems (ones with the fchdir function).
80446
80447         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80448         fails, try write-only, and finally, resort to using xgetcwd.
80449
80450 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80451
80452         * lib/obstack.c, obstack.h: Import changes from libc.
80453
80454 2004-04-28  Bruno Haible  <bruno@clisp.org>
80455
80456         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80457         also implicitly appends .exe to executables.
80458         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80459         accepts Windows pathnames.
80460         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80461         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80462         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80463         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80464         Reported by Derek Robert Price <derek@ximbiot.com>.
80465
80466 2004-04-21  Karl Berry  <karl@gnu.org>
80467
80468         * config/srclist.txt (localcharset.c): break sync.
80469
80470 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80471
80472         * m4/host-os.m4: Add a copyright notice.
80473
80474 2004-04-20  Jim Meyering  <jim@meyering.net>
80475
80476         Change UTILS_ to gl_ in AC_DEFINE'd names.
80477         Change utils_- and jm_-prefixed variables, too.
80478         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80479         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80480         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80481
80482         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80483         Don't emit trailing blanks.
80484         Also rename jm_-prefixed variables to have gl_ prefix.
80485
80486         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80487         Also rename jm_-prefixed variables to have gl_ prefix.
80488
80489         * m4/jm-macros.m4: Reflect the renamings.
80490         * m4/prereq.m4: Likewise.
80491
80492 2004-04-20  Jim Meyering  <jim@meyering.net>
80493
80494         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80495         memory.
80496
80497 2004-04-20  Jim Meyering  <jim@meyering.net>
80498             Bruno Haible  <bruno@clisp.org>
80499
80500         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80501         memory when realloc fails.
80502
80503 2004-04-19  Jim Meyering  <jim@meyering.net>
80504
80505         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80506         now that readutmp.c may call `free (0)'.
80507
80508 2004-04-19  Bruno Haible  <bruno@clisp.org>
80509
80510         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80511         * m4/inttypes_h.m4: Likewise.
80512         * m4/stdint_h.m4: Likewise.
80513         * m4/intmax_t.m4: Likewise.
80514         * m4/uintmax_t.m4: Likewise.
80515
80516 2004-04-18  Jim Meyering  <jim@meyering.net>
80517
80518         * m4/prereq.m4: Don't forbid jm_ prefix.
80519
80520         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80521         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80522         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80523         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80524         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80525         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80526         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80527         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80528         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80529         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80530         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80531         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80532         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80533         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80534         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80535         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80536         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80537         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80538         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80539
80540 2004-04-18  Jim Meyering  <jim@meyering.net>
80541
80542         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80543         failure, don't leak memory and do call END_UTMP_ENT.
80544
80545 2004-04-16  Jim Meyering  <jim@meyering.net>
80546
80547         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80548         coreutils' stat program.
80549         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80550
80551 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80552
80553         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80554         C89.
80555         (CHAR_BIT): Remove, since we assume C89.
80556         Include <stdint.h> if available, as per current Autoconf CVS advice.
80557
80558 2004-03-31  Jim Meyering  <jim@meyering.net>
80559
80560         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80561         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80562         * m4/xalloc.m4: Likewise.
80563
80564 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80565
80566         Merge from coreutils.
80567
80568         * m4/inttostr.m4: New file.
80569         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80570         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80571         Require gl_CLOCK_TIME.
80572         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80573
80574 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80575
80576         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80577         not bool, to be more consistent with Unix conventions.
80578         Suggested by Bruno Haible.
80579
80580         Merge from coreutils.
80581
80582         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80583         * lib/umaxtostr.c: New files.
80584
80585         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80586         the usual <time.h> dance.
80587         (get_date): Change signature to support fractional time stamps.
80588         All callers changed.
80589         * lib/getdate.y: Include "getdate.h" first, as we can now
80590         assume C89 and don't need to worry about 'const'.
80591         Similarly, include "unlocked-io.h" near start, not in middle.
80592         Include <limits.h>.
80593         (textint.value): Use long int rather than int.
80594         (textint.digits): Use size_t rather than int.
80595         (BILLION, LOG10_BILLION): New constants.
80596         (parser_control): New member rel_ns.  Members day_ordinal,
80597         time_zone, month, day, hour, minutes, rel_year, rel_month,
80598         rel_day, rel_hour, rel_minutes, rel_seconds
80599         are now long int, not int.  Member seconds is now struct timespec,
80600         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80601         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80602         not int.
80603         (%union.intval): Now long int, not int.
80604         New member timespec.
80605         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80606         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80607         (spec): Now is a timespec or an item list.
80608         (timespec, items): New nonterminals.
80609         (time, rel, relunit, number, get_date):
80610         Add support for fractional seconds.
80611         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80612         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80613         (to_hour): First arg is now long int, not int.
80614         (to_year): Returns long int, not int.
80615         Don't treat year -70 like 70.
80616         (tm_diff): Returns long int, not int.
80617         (lookup_word): Use bool instead of int when appropriate.
80618         (yylex): Use size_t for count, not int.
80619         Detect overflow when parsing large integer constants.
80620         Add support for fractions.
80621         (get_date): Make pointers 'const' if possible.
80622         Use more-portable code to detect integer overflow.
80623         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80624         Don't use ctime; it's not reliable if the year has >4 digits.
80625
80626         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80627         This is for compatibility with BSD.
80628
80629         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80630         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80631         From coreutils' system.h.
80632
80633         * lib/userspec.c: Don't include "posixver.h".
80634         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80635         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80636         compatible extension.  Simplify code by removing a boolean int
80637         that was always nonzero if a string was nonnull.
80638
80639 2004-03-30  Jim Meyering  <jim@meyering.net>
80640
80641         Merge from coreutils.
80642
80643         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80644         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80645         on some systems one must include <grp.h> before it.
80646         Reported by Christian Krackowizer.
80647
80648 2004-03-30  Jim Meyering  <jim@meyering.net>
80649
80650         Merge from coreutils.
80651
80652         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80653
80654         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80655         an empty input stream.
80656
80657         * lib/readtokens.c: Include <stdbool.h>.
80658         (readtoken): Use `size_t' rather than int/long.
80659         All callers adjusted.
80660         Use `bool' rather than `int' where appropriate.
80661         Use memset rather than an explicit loop.
80662         Use x2nrealloc rather than xrealloc.
80663         Allow the use of `\0' as a delimiter.
80664         (readtokens): Likewise.
80665         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80666
80667 2004-03-30  Jim Meyering  <jim@meyering.net>
80668
80669         * m4/realloc.m4: Remove file, since now it does no more than
80670         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80671         the `configure.ac' section of module/realloc.
80672         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80673
80674 2004-03-30  Bruno Haible  <bruno@clisp.org>
80675
80676         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80677         nonnull.
80678
80679 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80680
80681         Merge changes to getloadavg.c from coreutils and Emacs.
80682
80683         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80684         Define to an expression, not to the empty string.
80685         Include cloexec.h and xalloc.h.
80686         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80687         Use set_cloexec_flag rather than rolling our own.
80688         * lib/cloexec.c, lib/cloexec.h: New files.
80689
80690 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80691
80692         * m4/cloexec.m4: New file.
80693
80694 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80695
80696         * lib/getopt.h: Sync with libc CVS.
80697
80698 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80699             Bruno Haible  <bruno@clisp.org>
80700
80701         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80702         mbswidth.
80703
80704 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80705             Bruno Haible  <bruno@clisp.org>
80706
80707         * lib/mbswidth.h: Include <wchar.h> only if
80708         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80709         <wchar.h>.
80710         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80711
80712 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80713
80714         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80715         Sync with libc CVS.
80716         * lib/getopt_int.h: New file, also synced from libc.
80717
80718 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80719
80720         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80721         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80722         Bring back getopt.c, getopt.h, getopt1.c.
80723
80724 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80725
80726         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80727         All uses changed.  Check for sa_sigaction member; this fixes
80728         a bug first reported by Jason Andrade in
80729         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80730
80731 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80732
80733         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80734         '#if' expressions.  Unlike the code it replaces, it does not
80735         depend on (defined _SC_PAGESIZE).  However, it does depend on
80736         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80737         first reported by Jason Andrade in
80738         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80739
80740 2004-02-25  Simon Josefsson  <jas@extundo.com>
80741
80742         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80743
80744 2004-02-25  Simon Josefsson  <jas@extundo.com>
80745
80746         * lib/strdup.h: New file.
80747         * lib/strdup.c: Include it.
80748         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80749         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80750
80751 2004-02-23  Karl Berry  <karl@gnu.org>
80752
80753         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80754         (from fencepost.gnu.org:/gd/gnuorg).
80755
80756 2004-02-23  Karl Berry  <karl@gnu.org>
80757
80758         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80759         * config/srclist.txt: add maintain/standards documents.
80760
80761 2004-02-18  Bruno Haible  <bruno@clisp.org>
80762
80763         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80764         Reported by Derek Robert Price <derek@ximbiot.com>.
80765
80766 2004-02-16  Karl Berry  <karl@gnu.org>
80767
80768         * config/mkinstalldirs, install-sh: update from automake.
80769
80770 2004-02-06  Karl Berry  <karl@gnu.org>
80771
80772         * m4/po.m4: update from gettext 0.14.1.
80773
80774 2004-02-06  Karl Berry  <karl@gnu.org>
80775
80776         * lib/config.charset: update from gettext 0.14.1.
80777
80778 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80779
80780         Add comments and code, prompted by suggestions from Bruno Haible
80781         for sh-quote.
80782         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80783         describing the enum quoting_style values.
80784         * lib/quotearg.c (quotearg_alloc): New function.
80785         (quotearg_buffer_restyled): Treat lone { and } as special.
80786         Treat = as special.  Work around bug with older shells
80787         that "see" a '\' that is really the 2nd byte of a multibyte char.
80788         Quote empty string with shell_quoting_style.
80789
80790 2004-02-03  Bruno Haible  <bruno@clisp.org>
80791
80792         * m4/pipe.m4: New file, from GNU gettext.
80793
80794 2004-02-03  Bruno Haible  <bruno@clisp.org>
80795
80796         * lib/pipe.h: New file, from GNU gettext.
80797         * lib/pipe.c: New file, from GNU gettext.
80798
80799 2004-01-27  Bruno Haible  <bruno@clisp.org>
80800
80801         * m4/execute.m4: New file, from GNU gettext.
80802
80803 2004-01-27  Bruno Haible  <bruno@clisp.org>
80804
80805         * lib/execute.h: New file, from GNU gettext.
80806         * lib/execute.c: New file, from GNU gettext.
80807         * lib/w32spawn.h: New file, from GNU gettext.
80808
80809 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80810
80811         Merge from diffutils.
80812
80813         * lib/file-type.c (file_type): Add typed memory objects.
80814         * lib/file-type.h (S_TYPEISTMO): New macro.
80815
80816         * lib/c-stack.h (c_stack_action): Remove argv argument.
80817         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80818         (die): Don't calculate message unless segv_action returns.
80819         (get_stack_location, min_address_from_argv, max_address_from_argv,
80820         volatile stack_base, volatile_stack_size): Remove.
80821         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80822         that every segmentation violation is a stack overflow.  (Ouch!)
80823         See Debian bug 136249 (still outstanding) for more info about why
80824         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80825
80826 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80827
80828         Exit-status fix from coreutils.
80829
80830         Use exit_failure consistently in place of EXIT_FAILURE,
80831         so that program exit statuses are consistent on failure.
80832
80833         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80834         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80835         * lib/argmatch.h: Comment fix to match the above.
80836         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80837         Now a macro referring to exit_failure, instead of a separate
80838         variable.  Include "exitfail.h" to get it.
80839         * lib/xstrtol.h: Include "exitfail.h".
80840         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80841
80842         * lib/long-options.c (parse_long_options): Use prototype
80843         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80844         for clarity.
80845
80846 2004-01-21  Jim Meyering  <jim@meyering.net>
80847
80848         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80849         so as not to conflict with a different-sized __mktime_internal
80850         function in GNU libc.
80851         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80852         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80853
80854 2004-01-20  Karl Berry  <karl@gnu.org>
80855
80856         * config/config.guess: update from config.
80857
80858         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80859
80860 2004-01-20  Bruno Haible  <bruno@clisp.org>
80861
80862         Safer stack allocation.
80863         * lib/setenv.c: Include allocsa.h.
80864         (alloca): Remove fallback definition.
80865         (freea): Remove macro.
80866         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80867         instead of freea.
80868
80869 2004-01-20  Bruno Haible  <bruno@clisp.org>
80870
80871         * m4/eealloc.m4: New file, from GNU gettext.
80872
80873 2004-01-20  Bruno Haible  <bruno@clisp.org>
80874
80875         * m4/allocsa.m4: New file, from GNU gettext.
80876
80877 2004-01-20  Bruno Haible  <bruno@clisp.org>
80878
80879         * lib/xallocsa.h: New file, from GNU gettext.
80880         * lib/xallocsa.c: New file, from GNU gettext.
80881
80882 2004-01-20  Bruno Haible  <bruno@clisp.org>
80883
80884         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80885
80886 2004-01-20  Bruno Haible  <bruno@clisp.org>
80887
80888         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80889         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80890         specially.
80891
80892 2004-01-20  Bruno Haible  <bruno@clisp.org>
80893
80894         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80895         patch.
80896
80897 2004-01-20  Bruno Haible  <bruno@clisp.org>
80898
80899         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80900
80901 2004-01-20  Bruno Haible  <bruno@clisp.org>
80902
80903         * lib/eealloc.h: New file.
80904
80905 2004-01-20  Bruno Haible  <bruno@clisp.org>
80906
80907         * lib/binary-io.h: Avoid warnings on Cygwin.
80908
80909 2004-01-20  Bruno Haible  <bruno@clisp.org>
80910
80911         * lib/allocsa.h: New file, from GNU gettext.
80912         * lib/allocsa.c: New file, from GNU gettext.
80913
80914 2004-01-18  Karl Berry  <karl@gnu.org>
80915
80916         * doc/gpl.texi, doc/lgpl.texi: new files.
80917
80918 2004-01-18  Karl Berry  <karl@gnu.org>
80919
80920         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80921         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80922
80923 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80924
80925         Merge from coreutils.
80926
80927         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80928         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80929         (gl_DEFAULT_POSIX2_VERSION): Move
80930         the documentation from 'configure' into 'config.hin',
80931         so that 'configure --help' isn't burdened by it and
80932         we don't have to worry about its formatting there.
80933         Reword the documentation so that it's more succinct
80934         and can be run together into a single paragraph.
80935         * m4/same.m4 (gl_SAME): Check for pathconf.
80936
80937 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80938
80939         Merge from coreutils.
80940
80941         * lib/posixver.c: Include posixver.h.
80942
80943         * lib/same.c: Include <stdbool.h>, <limits.h>.
80944         (_POSIX_NAME_MAX): Define if not defined.
80945         (MIN): New macro.
80946         (same_name): If file names are silently truncated, report
80947         that the file names are the same if they are the same after
80948         the silent truncation.
80949
80950         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80951         conversion function.
80952         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80953         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80954         longer needed.
80955
80956 2004-01-15  Jim Meyering  <jim@meyering.net>
80957
80958         Merge from coreutils.
80959
80960         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80961         if no library is required.
80962         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80963         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80964         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80965         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80966         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80967         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80968         value, $ac_cv_search_crypt, if it's "none required".
80969         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80970         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80971         not gl_FUNC_GETLOADAVG.
80972         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80973         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80974
80975 2004-01-15  Jim Meyering  <jim@meyering.net>
80976
80977         Merge from coreutils.
80978
80979         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80980         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80981         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80982
80983         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80984         optional configure-time default.
80985
80986         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80987
80988         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80989
80990 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80991
80992         Merge from coreutils.
80993
80994         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80995         value, $ac_cv_search_nanosleep, if it's "none required".
80996
80997 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80998
80999         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81000         with like-named macro in fnmatch.c.
81001         (EXT): Use an internal constant instead.
81002
81003         Merge fnmatch patches from glibc.
81004         * lib/fnmatch.c (mbsinit): Remove define.
81005         Add libc_hidden_ver (__fnmatch, fnmatch).
81006         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81007         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81008
81009 2004-01-14  Karl Berry  <karl@gnu.org>
81010
81011         * config/install-sh: update from automake.
81012
81013 2004-01-13  Karl Berry  <karl@gnu.org>
81014
81015         * config/install-sh: update from automake.
81016
81017 2004-01-09  Karl Berry  <karl@gnu.org>
81018
81019         * config/install-sh: update from automake.
81020
81021 2004-01-05  Karl Berry  <karl@gnu.org>
81022
81023         * config/config.{sub,guess}: update from config.
81024
81025 2003-12-31  Karl Berry  <karl@gnu.org>
81026
81027         * config/depcomp: update from automake.
81028
81029 2003-12-14  Karl Berry  <karl@gnu.org>
81030
81031         * lib/config.charset: update from gettext-runtime.
81032
81033 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81034
81035         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81036         Bug reported by Alfred M. Szmidt.
81037
81038 2003-12-03  Bruno Haible  <bruno@clisp.org>
81039
81040         * m4/gettext.m4: Upgrade from gettext-0.13.
81041         * m4/po.m4: Upgrade from gettext-0.13.
81042         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81043         * m4/intmax.m4: New file, from gettext-0.13.
81044         * m4/printf-posix.m4: New file, from gettext-0.13.
81045
81046 2003-11-29  Karl Berry  <karl@gnu.org>
81047
81048         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81049
81050 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81051             Bruno Haible  <bruno@clisp.org>
81052
81053         * lib/printf-parse.h: Don't include sys/types.h.
81054         (ARG_NONE): New macro.
81055         (char_directive): Change type of *arg_index fields to size_t.
81056         * lib/printf-parse.c: Don't include sys/types.h.
81057         (SSIZE_MAX): Remove macro.
81058         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81059         Remove unnecessary overflow check.
81060         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81061         fields.
81062
81063 2003-11-25  Bruno Haible  <bruno@clisp.org>
81064
81065         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81066
81067 2003-11-25  Bruno Haible  <bruno@clisp.org>
81068
81069         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81070         gt_TYPE_SSIZE_T.
81071
81072 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81073
81074         * modules/alloca: Remove dependency on xalloc.
81075
81076 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81077
81078         * lib/alloca.c: Remove dependency on xalloc module.
81079         (xalloc_die): Remove.
81080         (memory_full) [!defined emacs]: New macro.
81081         [!defined emacs]: Don't include xalloc.h.
81082         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81083         address arithmetic overflows.  Change datatypes a bit to avoid
81084         unnecessary casts.
81085
81086 2003-11-22  Jim Meyering  <jim@meyering.net>
81087
81088         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81089         s/size/size_t/.
81090
81091 2003-11-21  Karl Berry  <karl@gnu.org>
81092
81093         * config/config.{sub,guess}: update from config.
81094
81095 2003-11-18  Karl Berry  <karl@gnu.org>
81096
81097         * config/config.{sub,guess}: update from config.
81098
81099         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81100
81101 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81102
81103         * README: Mention that S+T cannot overflow if S is the size of
81104         an existing object and T is sufficiently small.
81105
81106 2003-11-17  Jim Meyering  <jim@meyering.net>
81107
81108         On systems without utime and without a utimes function capable of
81109         dealing with a NULL struct utimbuf* argument, this utime replacement
81110         could -- in unusual circumstances -- leak a file descriptor.
81111         * lib/utime.c: Include <unistd.h> and <errno.h>.
81112         (utime_null): Be sure to close `fd' and to preserve errno.
81113         Reported by Geoff Collyer via Arnold Robbins.
81114
81115 2003-11-17  Bruno Haible  <bruno@clisp.org>
81116
81117         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81118         (Depends-on): Add xsize.
81119
81120 2003-11-17  Bruno Haible  <bruno@clisp.org>
81121
81122         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81123
81124 2003-11-17  Bruno Haible  <bruno@clisp.org>
81125
81126         * lib/vasnprintf.c (alloca): Remove fallback definition.
81127         (freea): Remove definition.
81128         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81129         Reported by Paul Eggert.
81130
81131 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81132             Bruno Haible  <bruno@clisp.org>
81133
81134         Protect against address arithmetic overflow.
81135         * lib/printf-args.h: Include stddef.h.
81136         (arguments): Change type of field 'count' to size_t.
81137         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81138         'unsigned int' where appropriate.
81139         * lib/printf-parse.h: Include sys/types.h.
81140         (char_directive): Change type of *arg_index fields to ssize_t.
81141         (char_directives): Change type of fields 'count', max_*_length to
81142         size_t.
81143         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81144         (SSIZE_MAX): Define fallback value.
81145         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81146         instead of 'int' where appropriate. Check a_allocated, d_allocated
81147         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81148         * lib/vasnprintf.c: Include xsize.h.
81149         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81150         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81151         overflow. Avoid wraparound when converting a width or precision from
81152         decimal to binary.
81153
81154 2003-11-16  Bruno Haible  <bruno@clisp.org>
81155
81156         Update from GNU gettext.
81157         * lib/printf-parse.c: Generalize to it can be compiled for wide
81158         strings.
81159         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81160         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81161         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81162         SNPRINTF): New macros.
81163         Don't include <alloca.h> if the file is used inside libintl.
81164         (local_wcslen): New function, for Solaris 2.5.1.
81165         (VASNPRINTF): Use it instead of wcslen.
81166
81167 2003-11-16  Bruno Haible  <bruno@clisp.org>
81168
81169         * lib/xsize.h (xmax): New function.
81170         (xsum, xsum3, xsum4): Declare as "pure" functions.
81171
81172 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81173
81174         * modules/xalloc (Files): Undo latest change, since xalloc.h
81175         no longer needs SIZE_MAX or PTRDIFF_MAX.
81176
81177 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81178
81179         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81180         gl_PTRDIFF_MAX.
81181
81182 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81183
81184         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81185         "return", to pacify some unknown compiler.  Problem reported
81186         by Joerg Schilling.
81187
81188 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81189
81190         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81191         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81192         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81193         heuristic is just as accurate as far as we know, and it removes a
81194         dependency on size_max.m4 and ptrdiff_max.m4.
81195
81196 2003-11-11  Bruno Haible  <bruno@clisp.org>
81197
81198         * modules/xsize (Files): Add m4/size_max.m4.
81199         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81200
81201 2003-11-11  Bruno Haible  <bruno@clisp.org>
81202
81203         * m4/size_max.m4: New file.
81204         * m4/ptrdiff_max.m4: New file.
81205         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81206         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81207         (gl_XALLOC): Invoke it.
81208
81209 2003-11-11  Bruno Haible  <bruno@clisp.org>
81210
81211         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81212         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81213         defined.
81214
81215 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81216
81217         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81218         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81219         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81220         From Bruno Haible.
81221         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81222         not (size_t) -1, since it's defined here.
81223
81224 2003-11-09  Karl Berry  <karl@gnu.org>
81225
81226         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81227
81228 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81229
81230         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81231         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81232         Reject sizes of exactly SIZE_MAX bytes.
81233         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81234         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81235
81236 2003-11-05  Bruno Haible  <bruno@clisp.org>
81237
81238         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81239         SIZE_MAX defined in <limits.h> on Solaris.
81240
81241 2003-11-04  Jim Meyering  <jim@meyering.net>
81242
81243         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81244         variable names, rather than @VAR@.
81245         * modules/poll: Likewise.
81246
81247 2003-11-04  Bruno Haible  <bruno@clisp.org>
81248
81249         * modules/xsize: New file.
81250         * modules/linebreak: Depend on xsize.
81251         * MODULES.html.sh (func_all_modules): Add xsize.
81252
81253 2003-11-04  Bruno Haible  <bruno@clisp.org>
81254
81255         * m4/xsize.m4: New file.
81256
81257 2003-11-04  Bruno Haible  <bruno@clisp.org>
81258
81259         * lib/xsize.h: New file.
81260         * lib/linebreak.c: Include xsize.h.
81261         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81262         argument for overflow.
81263         Suggested by Paul Eggert.
81264
81265 2003-11-03  Karl Berry  <karl@gnu.org>
81266
81267         * config/config.{guess,sub}: update from config.
81268
81269 2003-11-03  Jim Meyering  <jim@meyering.net>
81270
81271         * modules/userspec (lib_SOURCES): Add userspec.h.
81272         (Include): Add "userspec.h".
81273         Improve description.
81274
81275 2003-11-03  Jim Meyering  <jim@meyering.net>
81276
81277         * lib/userspec.c: Include "userspec.h".
81278         * lib/userspec.h: New file.
81279
81280 2003-11-03  Bruno Haible  <bruno@clisp.org>
81281
81282         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81283
81284 2003-11-03  Bruno Haible  <bruno@clisp.org>
81285
81286         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81287         available, to avoid (extremely rare) race condition.
81288         Suggested by Paul Eggert.
81289
81290 2003-11-02  Karl Berry  <karl@gnu.org>
81291
81292         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81293
81294 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81295
81296         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81297         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81298         (read_filesystem_list): Set and use me_type_malloced.
81299         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81300         whatever the type happens to be), for brevity and consistency.
81301         Check for size calculation overflow on Alphas running OSF/1.
81302
81303 2003-10-31  Jim Meyering  <jim@meyering.net>
81304
81305         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81306
81307         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81308
81309 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81310             Bruno Haible  <bruno@clisp.org>
81311
81312         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81313         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81314
81315 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81316
81317         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81318         netbsd*-gnu*.  Suggested by Robert Millan.
81319
81320 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81321
81322         * modules/group-member: Depend on stdbool.
81323
81324 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81325
81326         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81327
81328 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81329
81330         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81331         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81332         after the 'gnu' in these cases.  This fixes some bugs in the
81333         previous change, and is based on suggestions by Robert Millan.
81334
81335 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81336
81337         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81338         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81339         no longer needed.
81340         * lib/quotearg.c (quotearg_n_options): Use it.
81341         * lib/group-member.c: Include <stdbool.h>.
81342         (free_group_info): Arg is now const *; don't free arg.
81343         (get_group_info): Now returns bool and accepts struct group_info *,
81344         rather than returning a malloc'ed struct group_info *.
81345         All uses changed.  Check for overflow in internal size calculation.
81346
81347         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81348         rather than xmalloc/xrealloc.
81349         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81350         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81351         conformance bug: the old code used a pointer after freeing the
81352         storage that it addressed.
81353         * lib/hash.c (hash_initialize): Simplify the code by using
81354         xalloc_oversized rather than doing it by hand.
81355         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81356         the buffer preserved.  Use free and xmalloc instead.
81357         * lib/quotearg.c (quotearg_n_options): Likewise.
81358         Use a simpler test for size overflow.  Don't use xalloc_oversized
81359         because unsigned int might be wider than size_t (!); this suggests
81360         that we should switch from unsigned int to size_t for slot numbers.
81361
81362 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81363
81364         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81365         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81366         NetBSD kernels.  Requested by Richard Stallman.
81367
81368 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81369
81370         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81371         to allocate the returned structure.  Do not allocate a subarray,
81372         as x2nrealloc will do that.
81373         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81374         instead of xnrealloc.
81375         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81376
81377 2003-10-27  Bruno Haible  <bruno@clisp.org>
81378
81379         * lib/stdbool_.h: Better support for BeOS.
81380
81381 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81382
81383         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81384         now uses inline.
81385
81386 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81387
81388         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81389         callers that want to do their own size-overflow checking.  Include
81390         <stdbool.h>, since xalloc_oversized returns bool.
81391         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81392         to use xalloc_oversized.
81393
81394         Add two functions x2realloc, x2nrealloc, for programs that grow
81395         arrays dynamically by doubling their sizes.
81396         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81397         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81398         New functions.
81399
81400         Port to C99 semantics for 'inline' of external functions.
81401         Bug reported by Bruno Haible.
81402         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81403         with the old contents of xnmalloc.
81404         (xnmalloc, xmalloc): Use it.
81405         (xnrealloc_inline): New static inline function,
81406         with the old contents of xnrealloc.
81407         (xnrealloc, xrealloc): Use it.
81408
81409         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81410         that.
81411
81412 2003-10-26  Karl Berry  <karl@gnu.org>
81413
81414         * config/srclist.txt (COPYING.DOC): no longer available from
81415         /gd/gnuorg; don't know where the ultimate source is.
81416
81417 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81418
81419         Fix several address-calculation bugs in the hash modules,
81420         plus some minor code cleanup.
81421
81422         * lib/hash.h: Include <stdbool.h>, for bool.
81423         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81424         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81425         hash_get_n_entries, hash_get_max_bucket_length,
81426         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81427         hash_rehash): Use size_t rather than unsigned.
81428         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81429         hash_get_n_buckets_used, hash_get_n_entries,
81430         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81431         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81432         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81433         Likewise.
81434         (SIZE_MAX): Define if not defined.
81435         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81436         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81437         hash_print):
81438         Use const * when possible.
81439         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81440         (check_tuning): Fix bug: if tuning parameters were very close to
81441         0 or 1, rounding errors could have caused subscript violations.
81442         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81443         (hash_initialize): Add 'fail:' label
81444         to free table and return NULL, and use it to simplify code.
81445         Use calloc rather than clearing the storage ourself.
81446         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81447         buffer size calculations.
81448         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81449         Include <stddef.h>, for size_t.
81450         * lib/hash-pjw.c (hash_pjw): Likewise.
81451         Switch to method described by Bruno Haible.
81452         Include <limits.h>, for CHAR_BIT.
81453         (SIZE_BITS): New macro.
81454
81455 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81456
81457         * m4/getline.m4 (AM_FUNC_GETLINE):
81458         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81459         hosts.  Problem reported by Derek Robert Price in
81460         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81461         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81462         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81463
81464 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81465
81466         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81467         ceiling the allocation at NMAX bytes rather than silently
81468         discarding input bytes before NMAX is reached.  This makes
81469         a difference only if NMAX exceeds SIZE_MAX / 2.
81470
81471         * lib/obstack.c: Merge from glibc.
81472         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81473         Add libc_hidden_def (_obstack_newchunk).
81474         (_obstack_free) [! defined _LIBC]: Remove.
81475         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81476         a clone of the function body.
81477         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81478         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81479
81480         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81481         glibc.
81482         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81483         arg to memcpy.
81484
81485         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81486         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81487         Don't use lvalue casts, as GCC plans to remove support for them
81488         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81489         was also present in the non-GCC version, indicating that this
81490         code had always been buggy and had never been widely used.
81491         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81492         Use the fast variant of each macro, rather than copying the
81493         definiens of the fast variant; that way, we'll be more likely to
81494         catch future bugs in the fast variants.
81495
81496 2003-10-20  Bruno Haible  <bruno@clisp.org>
81497
81498         * modules/wait-process: New file.
81499         * MODULES.html.sh (func_all_modules): Add wait-process.
81500
81501 2003-10-20  Bruno Haible  <bruno@clisp.org>
81502
81503         * m4/wait-process.m4: New file.
81504
81505 2003-10-20  Bruno Haible  <bruno@clisp.org>
81506
81507         * lib/wait-process.h: New file, from GNU gettext.
81508         * lib/wait-process.c: New file, from GNU gettext.
81509
81510 2003-10-19  Jim Meyering  <jim@meyering.net>
81511
81512         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81513         HPUX 10.20.
81514
81515 2003-10-18  Karl Berry  <karl@gnu.org>
81516
81517         * config/config.guess: update from config.
81518
81519 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81520
81521         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81522         (getgroups): First arg is int, not size_t.
81523         Don't let 'free' mangle errno.
81524
81525 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81526
81527         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81528
81529 2003-10-16  Karl Berry  <karl@gnu.org>
81530
81531         * config/config.{guess,sub}: update from config.
81532
81533 2003-10-16  Jim Meyering  <jim@meyering.net>
81534
81535         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81536         memcpy.
81537
81538 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81539
81540         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81541         (SIZE_MAX): Remove.
81542         (new_exclude, add_exclude_file): Initial size no longer needs to
81543         be a power of 2.
81544         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81545         our own address arithmetic overflow checking.
81546
81547         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81548         (fnmatch): Do not alloca more than 2000 wide characters;
81549         instead, use malloc for large buffers.
81550         Check for address arithmetic overflow, and return -1
81551         with errno set to ENOMEM in that case.
81552         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81553         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81554         instead, return -1.  Check for address arithmetic overflow.
81555
81556 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81557
81558         Handle invalid suffixes and overflow independently, so that
81559         callers can treat them independently as needed.  Fix some bugs in
81560         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81561         suffix for a human-readable blocksize.  The major caller-visible
81562         change is the addition of a new
81563         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81564         that both overflow and suffix chars were found.
81565
81566         * lib/human.c (humblock): Don't check separately for invalid suffix
81567         char; that is xstrtoumax's job (now that its bug is fixed).
81568         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81569         INTMAX_MAX]: New macros.
81570         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81571         TYPE_MAXIMUM): New macros.
81572         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81573         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81574         if overflow occurs, as it's what __strtol does and it's more useful
81575         in practice.
81576         (__xstrtol): If __strtol reports some error other than ERANGE,
81577         reflect it to the caller as LONGINT_INVALID.  If it reports
81578         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81579         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81580         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81581         value.
81582         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81583         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81584         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81585         [defined UINTMAX_MAX]: New macros.
81586
81587 2003-10-14  Bruno Haible  <bruno@clisp.org>
81588
81589         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81590
81591 2003-10-14  Bruno Haible  <bruno@clisp.org>
81592
81593         * m4/sig_atomic_t: New file, from GNU gettext.
81594         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81595
81596 2003-10-14  Bruno Haible  <bruno@clisp.org>
81597
81598         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81599         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81600         Also use volatile where needed.
81601
81602 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81603
81604         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81605         Change maintainer from Bruno Haible to 'all'.
81606
81607 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81608
81609         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81610
81611 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81612
81613         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81614         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81615         and define in terms of the other primitives.
81616         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81617         (SIZE_MAX): Define if not already defined.
81618         (array_size_overflow): New function.
81619         (xalloc_die): Abort instead of exiting if 'error' returns.
81620         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81621         (xmalloc, xrealloc): Use them.
81622         (xcalloc): Check for address arithmetic overflow.
81623         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81624         a bit faster than strcpy.
81625
81626 2003-10-10  Simon Josefsson  <jas@extundo.com>
81627
81628         * modules/argp (Depends-on): Add restrict and strcase.
81629
81630 2003-10-10  Simon Josefsson  <jas@extundo.com>
81631
81632         * m4/argp.m4: Add AC_C_INLINE.
81633
81634 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81635
81636         Merge getpass from libc, plus a few fixes.
81637
81638         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81639         Include <stdbool.h>.
81640         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81641         __fsetlocking to empty.
81642         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81643         do include <bits/libc-lock.h>.
81644         Do not include <fcntl.h>; not needed.
81645         [_LIBC]: Include <wchar.h>.
81646         (NOTCANCEL_MODE): New macro.
81647         (flockfile, funlockfile) [_LIBC]: New macros.
81648         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81649         [!_LIBC]: New macros.
81650         (call_fclose): New function.
81651         (getpass): Use it.  Save tty stream separately; this simplifies the
81652         code and makes it more reliable if stdin happens to equal stdout.
81653         Invoke __fsetlocking on tty.
81654         Handle thread cancellation if needed.
81655         Namespace cleanup (use __tcgetattr, __getline).
81656         Use bool for Booleans.
81657         [USE_IN_LIBIO]: Handle wide streams.
81658         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81659         stream might go where.
81660
81661         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81662         doesn't have to include <stdio.h> before us.
81663         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81664         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81665         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81666         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81667         if not declared, so that we can use getpass.c code from libc without
81668         rewriting it.
81669         (flockfile, ftrylockfile, funlockfile): New macros.
81670
81671 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81672
81673         * modules/getpass: Depend on stdbool.
81674
81675 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81676
81677         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81678
81679 2003-10-07  Karl Berry  <karl@gnu.org>
81680
81681         * config/config.{guess,sub}: update from config.
81682
81683 2003-10-06  Jim Meyering  <jim@meyering.net>
81684             Bruno Haible  <bruno@clisp.org>
81685
81686         This lets translators provide better translations for the
81687         "Written by ..." part of --version output.
81688         * lib/version-etc.h: Include stdarg.h.
81689         (version_etc_copyright): Declare as readonly.
81690         (version_etc): Make this function variadic with a NULL-terminated list
81691         of author name strings.
81692         (version_etc_va): New declaration.
81693         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81694         (version_etc_copyright): Declare as readonly.
81695         (version_etc_va): New function. Provide a different translatable string
81696         for each possible number of authors < 10. Abbreviate when there are 10
81697         authors or more.
81698         (version_etc): Make this function variadic. Call version_etc_va.
81699         Suggestion from Gary V. Vaughan.
81700
81701         * lib/long-options.h (parse_long_options): Change prototype: the
81702         authors string is moved to the end and becomes variadic.
81703         * lib/long-options.c: Include stdarg.h.
81704         (parse_long_options): Make this function variadic, too.
81705         Call version_etc_va, not version_etc.
81706
81707 2003-10-06  Bruno Haible  <bruno@clisp.org>
81708
81709         * modules/version-etc-2: Remove file.
81710         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81711
81712 2003-10-06  Bruno Haible  <bruno@clisp.org>
81713
81714         * modules/fatal-signal: New file.
81715         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81716
81717 2003-10-06  Bruno Haible  <bruno@clisp.org>
81718
81719         * m4/fatal-signal.m4: New file.
81720         * m4/signalblocking.m4: New file, from GNU gettext.
81721
81722 2003-10-06  Bruno Haible  <bruno@clisp.org>
81723
81724         * lib/version-etc-2.h: Remove file.
81725         * lib/version-etc-2.c: Remove file.
81726
81727 2003-10-06  Bruno Haible  <bruno@clisp.org>
81728
81729         * lib/fatal-signal.h: New file, from GNU gettext.
81730         * lib/fatal-signal.c: New file, from GNU gettext.
81731
81732 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81733
81734         * README: Rework advice for preventing empty .o files.
81735         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81736         not <sys/types.h>.
81737
81738 2003-10-04  Karl Berry  <karl@gnu.org>
81739
81740         * lib/argp*: update from libc.
81741
81742 2003-10-04  Karl Berry  <karl@gnu.org>
81743
81744         * config/config.{guess,sub}: update from config.
81745
81746 2003-10-02  Bruno Haible  <bruno@clisp.org>
81747
81748         * modules/lchown (Include): Add lchown.h.
81749         * modules/time_r (Include): Use "..." syntax.
81750         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81751
81752 2003-10-01  Simon Josefsson  <jas@extundo.com>
81753
81754         * MODULES.html.sh (func_all_modules): Move gethostname from section
81755         'based on' to section 'lacking' POSIX:2001.
81756
81757 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81758
81759         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81760         to output mode on the same stream.
81761
81762 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81763
81764         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81765         Fix arg typo in previous patch.
81766
81767 2003-09-28  Jim Meyering  <jim@meyering.net>
81768
81769         * lib/error.c: Correct cpp indentation.
81770
81771 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81772
81773         * modules/free: New file.
81774
81775 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81776
81777         * m4/free.m4: New file.
81778
81779 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81780
81781         * lib/minmax.h (MIN, MAX)
81782         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81783         Omit the special code that used __typeof__, since we worry that
81784         it could be more trouble than it's worth.  See:
81785         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81786         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81787
81788         * lib/free.c: New file.
81789
81790 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81791
81792         Trivial fixes to Makefile.am parts of module listings.
81793         * modules/strstr: Append strstr.h to lib_SOURCES.
81794         * modules/strcase: Likewise, for strcase.h.
81795
81796 2003-09-27  Karl Berry  <karl@gnu.org>
81797
81798         * config/mkinstalldirs: update from automake.
81799
81800 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81801
81802         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81803         (error_tail): Do not loop, reallocating temporary buffer, since
81804         the output cannot contain more wide characters than the input
81805         contains bytes, the size must be big enough already.  This avoids
81806         one potential size overflow calculation.  Check for size overflow
81807         when calculating temporary buffer size.  Free temporary buffer
81808         when done, if it was allocated with malloc; this plugs a memory
81809         leak.  Remove casts from void * to pointers, that are no longer
81810         needed now that we're assuming C89 or better.
81811
81812         Merge error changes from glibc.
81813
81814         * lib/error.c, error.h: Update copyright notice header to match glibc.
81815         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81816         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81817         Disable cancellation while printing error.
81818         * lib/error.h: Prepend __ to parameter names.
81819
81820 2003-09-26  Jim Meyering  <jim@meyering.net>
81821
81822         * lib/error.c (error_tail): Move some declarations
81823         into inner scope where the local variables are used.
81824
81825 2003-09-26  Bruno Haible  <bruno@clisp.org>
81826
81827         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81828         stpncpy().
81829         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81830
81831 2003-09-26  Bruno Haible  <bruno@clisp.org>
81832
81833         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81834         (stpncpy): Define as alias for gnu_stpncpy.
81835         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81836
81837 2003-09-25  Simon Josefsson  <jas@extundo.com>
81838
81839         * lib/xgetdomainname.h: New file.
81840         * lib/xgetdomainname.c: New file.
81841
81842 2003-09-25  Simon Josefsson  <jas@extundo.com>
81843             Bruno Haible  <bruno@clisp.org>
81844
81845         * modules/getdomainname: New file.
81846         * modules/xgetdomainname: New file.
81847         * MODULES.html.sh (func_all_modules): Add getdomainname,
81848         xgetdomainname.
81849
81850 2003-09-25  Simon Josefsson  <jas@extundo.com>
81851             Bruno Haible  <bruno@clisp.org>
81852
81853         * m4/getdomainname.m4: New file.
81854
81855 2003-09-25  Simon Josefsson  <jas@extundo.com>
81856             Bruno Haible  <bruno@clisp.org>
81857
81858         * lib/getdomainname.h: New file.
81859         * lib/getdomainname.c: New file.
81860
81861 2003-09-25  Karl Berry  <karl@gnu.org>
81862
81863         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81864
81865 2003-09-25  Karl Berry  <karl@gnu.org>
81866
81867         * config/install-sh: update from automake.
81868
81869 2003-09-25  Bruno Haible  <bruno@clisp.org>
81870
81871         * modules/version-etc-2: New file, from modules/version-etc with
81872         modifications.
81873         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81874
81875 2003-09-25  Bruno Haible  <bruno@clisp.org>
81876
81877         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81878         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81879
81880 2003-09-24  Simon Josefsson  <jas@extundo.com>
81881
81882         * modules/xgethostname: Add xgethostname.h.
81883
81884 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81885
81886         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81887         the buffer associated with the argument.  Bug reported by
81888         Simon Josefsson.
81889
81890 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81891
81892         * README: Document assumptions that 'int' is at least 32 bits
81893         wide, that integer arithmetic is 2's complement without overflow,
81894         that there are no holes in integer values, that adding sizes of
81895         two nonoverlapping objects can't overflow, and that all-bits-zero
81896         yields scalar zero.  Fix spelling and capitalization typos.
81897
81898 2003-09-19  Karl Berry  <karl@gnu.org>
81899
81900         * lib/argp.h: update from libc.
81901
81902 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81903
81904         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81905         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81906         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81907
81908 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81909
81910         * gnulib-tool: Use "test -h", not "test -L", for portability
81911         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81912         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81913         (sed_extract_prog): Issue s commands one-by-one, rather than
81914         using \| in one s command.
81915
81916 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81917
81918         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81919         input error, instead of returning NULL the next time we are called
81920         (and therefore losing track of errno).
81921
81922 2003-09-16  Bruno Haible  <bruno@clisp.org>
81923
81924         * gnulib-tool (func_create_testdir): Warn about duplicated
81925         dependencies.
81926
81927 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81928
81929         * modules/argmatch, modules/fatal, modules/obstack,
81930         modules/xalloc, modules/xgethostname: Sort dependencies by
81931         importance, not alphabetically.
81932
81933 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81934
81935         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81936         fails, so that the caller gets the proper errno.
81937
81938         * lib/readutmp.c (read_utmp): Likewise.
81939         Check for fstat error.  Close stream and free storage
81940         when failing.
81941
81942 2003-09-14  Karl Berry  <karl@gnu.org>
81943
81944         * config/srclist.txt (strdup.c): disable for c89 changes.
81945
81946 2003-09-14  Jim Meyering  <jim@meyering.net>
81947
81948         * lib/getloadavg.c: Correct cpp indentation.
81949         * lib/strdup.c: Likewise.
81950         * lib/vasnprintf.c: Likewise.
81951
81952 2003-09-14  Bruno Haible  <bruno@clisp.org>
81953
81954         * modules/fwriteerror: New file.
81955         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81956
81957 2003-09-14  Bruno Haible  <bruno@clisp.org>
81958
81959         * lib/fwriteerror.h: New file.
81960         * lib/fwriteerror.c: New file.
81961
81962 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81963
81964         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81965         modules/xgethostname, modules/xalloc: Depend on exit.
81966
81967 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81968
81969         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81970
81971         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81972         and AC_MINIX, too, so that their extensions are available.
81973
81974         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81975         This macro has been superseded by gl_BACKUPFILE.
81976
81977         More patches to assume C89 or better.
81978
81979         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81980
81981         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81982         unconditionally.
81983         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81984         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81985         Include <string.h>, <stdlib.h> unconditionally.
81986         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81987         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81988         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81989         headers or for string.h.
81990         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81991         or strtoul.
81992
81993         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81994         headers.
81995         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81996         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81997         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81998         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81999         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82000         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82001         memcpy, memset.
82002         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82003         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82004         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82005         strtol.
82006         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82007         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82008         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82009         strtoul.
82010
82011 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82012
82013         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82014         * lib/obstack.c [!defined _LIBC]: Likewise.
82015         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82016         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82017         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82018
82019         More changes to assume C89 or better.
82020
82021         * lib/error.c (error_tail): Assume vprintf.
82022
82023         * lib/argmatch.c (getenv): Remove decl.
82024         * lib/progreloc.c (get_full_program_name): Define via prototype.
82025         * lib/setenv.c (clearenv): Likewise.
82026         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82027         needed.
82028         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82029         (malloc, memcpy): Remove decls.
82030         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82031         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82032         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82033         (memcpy): Remove macro.
82034         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82035         (__P): Remove.  All uses removed.
82036         (PTR): Remove.  All uses changed to void *.
82037         (CHAR_BIT, NULL): Remove.
82038         (spaces, zeros, memset_space, memset_zero)
82039         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82040         Remove.
82041         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82042         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82043         Define with prototype.
82044         Remove now-unnecessary prototype decl.
82045         (extra_args_spec): Assume ANSI C.  All uses changed.
82046         (extra_args_spec_iso): Remove.
82047         (my_strftime, emacs_strftimeu): Define via prototype.
82048         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82049         unconditionally.
82050         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82051         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82052         (strtoul, strtol): Remove decls.
82053         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82054         LONG_MAX): Remove.
82055         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82056         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82057         (LOCALE_PARAM_PROTO): New macro.
82058         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82059         (INTERNAL (strtol), strtol): Define with a prototype.
82060         (PARAMS): Remove.  All uses removed.
82061         * lib/tempname.c: Include <string.h> unconditionally.
82062         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82063         * lib/xgethostname.c (main): Define with a prototype.
82064         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82065         Include <stdlib.h> unconditionally.
82066         (calloc, malloc, realloc, free): Remove decls.
82067         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82068         Include <stdlib.h> unconditionally.  Sort include file names.
82069         (strtod): Remove.
82070         (xstrtod): Define with a prototype.
82071         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82072         (strtol, strtoul): Remove decls.
82073
82074 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82075
82076         More patches to assume C89 or better.
82077         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82078         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82079         string.h, memchr, STDC_HEADERS.
82080
82081 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82082
82083         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82084         Include <stdlib.h>, <string.h> unconditionally.
82085         Remove now-unnecessary cast to char *.
82086         * lib/strnlen.c: Include <string.h> unconditionally.
82087         * lib/yesno.c (yesno): Define with a prototype.
82088
82089 2003-09-11  Bruno Haible  <bruno@clisp.org>
82090
82091         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82092
82093 2003-09-10  Jim Meyering  <jim@meyering.net>
82094
82095         * lib/error.c: Correct indentation of cpp directives.
82096
82097 2003-09-10  Bruno Haible  <bruno@clisp.org>
82098
82099         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82100         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82101         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82102         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82103         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82104         <stdlib.h> and <string.h> checks.
82105         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82106         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82107
82108 2003-09-10  Bruno Haible  <bruno@clisp.org>
82109
82110         * lib/strcspn.c: Include <string.h> unconditionally.
82111         * lib/strpbrk.c: Include <string.h> unconditionally.
82112         * lib/strstr.c: Include <string.h> unconditionally.
82113         * lib/unicodeio.c: Include <string.h> unconditionally.
82114         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82115         * lib/unsetenv.c: Likewise.
82116         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82117         * lib/yesno.c: Include <stdlib.h> unconditionally.
82118         (rpmatch): Add prototype.
82119
82120 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82121
82122         More patches to assume C89 or better.
82123         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82124         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82125         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82126         or for string.h.
82127         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82128         stdlib.h.
82129         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82130         C headers.
82131         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82132         string.h.
82133         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82134         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82135         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82136         or for string.h.
82137         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82138         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82139         C headers.
82140         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82141         memcpy.
82142         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82143         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82144         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82145         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82146         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82147         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82148         string.h, free.
82149         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82150         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82151         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82152         C headers, or for string.h.
82153         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82154         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82155         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82156         headers, memory.h, stdlib.h, string.h, strings.h.
82157         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82158         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82159         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82160         strchr.
82161         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82162         headers, memory.h, string.h.
82163         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82164         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82165         free.
82166         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82167         headers.
82168         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82169         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82170         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82171         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82172         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82173
82174 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82175
82176         More K&R removal.
82177
82178         * lib/acosl.c (main): Use a prototype.
82179         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82180         tanl.c: Likewise.
82181
82182         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82183
82184         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82185         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82186         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82187         with a prototype.
82188         * lib/getopt.c (const): Remove macro.
82189         Include <string.h> unconditionally.
82190         (my_index): Remove; all uses changed to strchr.
82191         (strlen): Remove decl.
82192         (exchange): Remove forward decl; no longer needed.
82193         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82194         Define with prototype.
82195         * lib/getopt1.c (const): Remove macro.
82196         (getopt_long, getopt_long_only, main): Define with prototype.
82197
82198         * lib/getugroups.c: Include <string.h> unconditionally.
82199
82200         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82201         (getusershell, setusershell, endusershell, readname, main):
82202         Define with prototypes.
82203
82204         * lib/group-member.c: Include group-member.h first.
82205         Include <stdlib.h> unconditionally.
82206
82207         * lib/hard-locale.c: Include hard-locale.h first.
82208         Include <stdlib.h>, <string.h> unconditionally.
82209
82210         * lib/hash.c (free, malloc): Remove decls.
82211         Include <stdlib.h> unconditionally.
82212
82213         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82214         (getenv): Do not declare.
82215
82216         * lib/idcache.c: Include <string.h> unconditionally.
82217
82218         * lib/long-options.c: Include long-options.h first, to test interface.
82219         Include <stdlib.h> unconditionally.
82220
82221         * lib/makepath.c: Include makepath.h first, to test interface.
82222         Include <stdlib.h> and <string.h> unconditionally.
82223
82224         * lib/linebuffer.c: Include <stdlib.h>.
82225         (free): Remove decl.
82226
82227         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82228         stddef.h. rpl_malloc returns void *, not char *.
82229         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82230         prototype.
82231
82232         * lib/md5.h: Include <limits.h> unconditionally.
82233         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82234         (__P): Remove; all uses removed.
82235         * lib/md5.c: Include "md5.h" first.
82236         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82237         md5_buffer, md5_process_bytes, md5_process_block):
82238         Define with prototypes.
82239         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82240         * lib/sha.c: Include "sha.h" first.
82241         Include <stdlib.h>, <string.h> unconditionally.
82242
82243         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82244         * lib/memcmp.c (__ptr_t): Likewise.
82245         * lib/memrchr.c (__ptr_t): Likewise.
82246         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82247         Include <string.h> unconditionally.
82248         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82249         * lib/memchr.c: Include <stdlib.h> unconditionally.
82250         * lib/memchr.c (LONG_MAX): Remove.
82251         * lib/memrchr.c (LONG_MAX): Likewise.
82252         * lib/memchr.c (__memchr): Define via a prototype.
82253         * lib/memrchr.c (__memrchr): Likewise.
82254         * lib/memcmp.c (__P): Remove, and remove all uses.
82255         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82256         Remove forward decls; no longer needed.
82257         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82258         Use types required by C89 in prototype.
82259
82260         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82261         * lib/savedir.c: Likewise.
82262         * lib/mkdir.c (free): Remove decl.
82263         * lib/rmdir.c (rmdir): Define with a prototype.
82264         * lib/savedir.c: Include savedir.h first, to test interface.
82265
82266         * lib/mktime.c (STDC_HEADERS): Remove.
82267         Include <stdlib.h>, <string.h> unconditionally.
82268
82269         * lib/modechange.c: Include <stdlib.h> unconditionally.
82270         (malloc): Remove decl.
82271
82272         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82273         (free): Remove decl.
82274
82275         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82276         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82277         (This type really should be intptr_t, but that's a C99ism.)
82278         (_obstack_memcpy): Remove: all uses changed to memcpy.
82279         Include <string.h> unconditionally.
82280         (struct obstack): Assume __STDC__ for types of members
82281         chunkfun, freefun, extra_arg.
82282         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82283         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82284         obstack_begin, obstack_specify_allocation,
82285         obstack_specify_allocation_with_arg, obstack_chunkfun,
82286         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82287         Remove unprototyped decls and the macros that use them.
82288         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82289         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82290         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82291         (defined __STDC__ && __STDC__)]:
82292         Remove nonprototyped code.
82293         Include <stdlib.h> unconditionally.
82294         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82295         _obstack_allocated_p, _obstack_free, obstack_free,
82296         _obstack_memory_used, print_and_abort):
82297         Define using prototypes.
82298         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82299         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82300         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82301         obstack_next_free, obstack_object_size, obstack_room) [0]:
82302         Remove unused, unprototyped code.
82303
82304         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82305
82306         * lib/physmem.c (physmem_total, physmem_available, main): Define
82307         with prototypes.
82308
82309         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82310         (main): Define with a prototype.
82311
82312         * lib/posixver.c (getenv): Remove decl.
82313
82314         * lib/putenv.c (malloc): Returns void *, not char *.
82315         Include <string.h> unconditionally.
82316         (strchr, memcpy, NULL): Do not define.
82317
82318         * lib/readtokens.c: Include readtokens.h first, to test interface.
82319         Include <stdlib.h>, <string.h> unconditionally.
82320         (init_tokenbuffer): Define with a prototype.
82321
82322         * lib/regex.c (PARAMS): Remove.  All uses removed.
82323         All uses of _RE_ARGS removed, too.
82324         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82325         unconditionally.
82326         (bzero): Assume memset exists.
82327         (memcmp, memcpy, NULL): Remove.
82328         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82329         char, or assignments to local vars of type signed char.
82330         (init_syntax_once, PREFIX(extract_number_and_incr),
82331         PREFIX(print_partial_compiled_pattern),
82332         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82333         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82334         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82335         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82336         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82337         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82338         wcs_compile_range, byte_compile_range, truncate_wchar,
82339         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82340         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82341         count_mbs_length, wcs_re_match_2_internal,
82342         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82343         PREFIX(alt_match_null_string_p),
82344         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82345         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82346         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82347         now-unnecessary declaration, if any.
82348         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82349         regcomp, regexec):
82350         Remove now-unnecessary casts among pointer types.
82351         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82352
82353         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82354         (free): Remove decl.
82355
82356         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82357
82358         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82359         (free): Remove decl.
82360
82361         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82362         * lib/xgetcwd.c: Likewise.
82363
82364         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82365         (free): Remove decl.
82366
82367         * lib/strchrnul.c (strchrnul): Define with a prototype.
82368         Fix bug: c_in was not converted to char before searching.
82369
82370         The following changes are not K&R related:
82371
82372         * lib/group-member.h: Include <sys/types.h>, so that this file is
82373         self-contained.
82374         * lib/makepath.h: Likewise.
82375
82376         * lib/getusershell.c (readname, default_index, line_size, readname):
82377         Use size_t, not int, for sizes.
82378         (readname): If the size overflows, report an error instead of
82379         looping forever.
82380
82381 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82382
82383         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82384         libc.
82385
82386 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82387
82388         * README: New section: portability guidelines.
82389
82390 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82391
82392         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82393         C89 spec.
82394
82395 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82396
82397         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82398
82399 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82400
82401         Assume C89 or better; remove K&R cruft.
82402         A few of these changes were first proposed by Derek Robert Price
82403         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82404
82405         * lib/addext.c: Include <string.h> unconditionally.
82406         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82407         Don't declare getenv or malloc.
82408
82409         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82410         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82411         (NULL): Remove.
82412         (find_stack_direction, alloca): Use prototypes.
82413
82414         * lib/atexit.c (atexit): Define using a prototype.
82415
82416         * lib/basename.c, dirname.c, stripslash.c:
82417         Include <string.h> unconditionally.
82418
82419         * lib/bcopy.c: Include <stddef.h>.
82420         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82421
82422         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82423
82424         * lib/error.h (error, error_at_line, error_print_progname)
82425         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82426         * lib/error.c: Include error.h first, to check interface.
82427         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82428         (VA_START): Remove; all uses changeed to va_start.
82429         (exit, strerror): Remove decls.
82430         (error_print_progname): Prototype uncondionally.
82431         Don't include <errno.h>; no longer needed.
82432         (private_strerror): Remove.
82433         (error_tail): Always define.
82434         (error, error_at_line): Assume C89 or better; always use prototypes.
82435         * lib/fatal.c: Include "fatal.h" first, to test interface.
82436         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82437         (VA_START): Remove; all uses changed to va_start.
82438         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82439         this case.
82440         (exit): Remove decl.
82441         (fatal): Prototype unconditionally.  Assume va_start works.
82442         Abort at end, to pacify gcc.
82443
82444         * lib/euidaccess.c (main): Define with a prototype.
82445
82446         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82447
82448         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82449
82450         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82451         prototypes.
82452         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82453         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82454         (getenv): Remove decl.
82455         (fnmatch): Define using a prototype.
82456         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82457         (FCT): Define using a prototype.
82458
82459         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82460
82461         * lib/gethostname.c: Include <stddef.h>.
82462         (gethostname): Define with prototype.  Length is size_t, not int.
82463
82464 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82465
82466         Assume C89 or better; remove K&R cruft.
82467         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82468         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82469         string.h, getenv, malloc.
82470         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82471         headers.
82472         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82473         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82474         do not check for strerror.
82475         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82476         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82477         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82478         do not check for doprnt or vprintf.
82479         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82480         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82481
82482 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82483
82484         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82485         getversion.c should have been removed then, but was accidentally
82486         preserved.
82487
82488         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82489         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82490
82491 2003-09-08  Karl Berry  <karl@gnu.org>
82492
82493         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82494                 config, forget about prep.
82495
82496         * config/depcomp, missing: update from automake.
82497
82498 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82499
82500         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82501         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82502
82503 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82504
82505         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82506         copy_tm_result.  Bug reported by Simon Josefsson in
82507         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82508
82509 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82510
82511         * m4/time_r.m4: New file.
82512         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82513         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82514         is. Check for timegm declaration.
82515         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82516         Do not check for gmtime_r.
82517         Replace mktime if __mktime_internal does not exist and if mktime
82518         hasn't been replaced already.
82519
82520 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82521
82522         * lib/time_r.c, lib/time_r.h: New files.
82523
82524         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82525         __localtime_r.
82526         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82527         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82528
82529         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82530         __gmtime_r.
82531         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82532         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82533         Include <time_r.h>.
82534
82535         * lib/timegm.c: Switch to glibc implementation, with the following
82536         changes:
82537         [defined HAVE_CONFIG_H]: Include <config.h>.
82538         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82539         (__mktime_internal) [!defined _LIBC]: New decl.
82540         (__gmtime_r) [!defined _LIBC]: New macro and function.
82541         (timegm): Use a prototype, since gnulib assumes C89.
82542         Do not bother declaring tmp to be const, as it's not really usefu.
82543         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82544         (timegm): Declare only if HAVE_DECL_TIMEGM.
82545
82546 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82547
82548         * MODULES.html.sh (func_all_modules): Add time_r.
82549         * modules/time_r: New file.
82550         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82551         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82552
82553 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82554
82555         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82556         Bug reported by Lute Kamstra in
82557         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82558
82559         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82560         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82561         course with correspondingly smaller numbers for tomorrow and
82562         yesterday.  From Tadayoshi Funaba.  Originally installed into
82563         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82564         coreutils merge?).
82565
82566 2003-08-31  Simon Josefsson  <jas@extundo.com>
82567
82568         * modules/timegm: New file.
82569         * MODULES.html.sh (func_all_modules): Add timegm.
82570
82571 2003-08-31  Simon Josefsson  <jas@extundo.com>
82572
82573         * m4/timegm.m4: New file.
82574
82575 2003-08-31  Simon Josefsson  <jas@extundo.com>
82576
82577         * lib/timegm.h: New file.
82578         * lib/timegm.c: New file.  Based on
82579         wget-1.8.2/src/http.c:mktime_from_utc.
82580
82581 2003-08-31  Karl Berry  <karl@gnu.org>
82582
82583         * lib/argp.h: update from libc.
82584
82585 2003-08-28  Bruno Haible  <bruno@clisp.org>
82586
82587         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82588         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82589         followed by '#define fnmatch fnmatch_posix' gives an error.
82590
82591 2003-08-28  Bruno Haible  <bruno@clisp.org>
82592
82593         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82594         warning on QNX, which defines O_BINARY to 000000.
82595
82596 2003-08-27  Jim Meyering  <jim@meyering.net>
82597
82598         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82599         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82600         would fail after 32.  Reported by Danny Levinson.  Details here:
82601         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82602
82603 2003-08-24  Bruno Haible  <bruno@clisp.org>
82604
82605         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82606         MSVC7 <stdio.h> is included later.
82607
82608 2003-08-22  Simon Josefsson  <jas@extundo.com>
82609
82610         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82611
82612 2003-08-20  Karl Berry  <karl@gnu.org>
82613
82614         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82615
82616 2003-08-20  Bruno Haible  <bruno@clisp.org>
82617
82618         * modules/progname: New file.
82619         * MODULES.html.sh (func_all_modules): Add progname.
82620
82621 2003-08-20  Bruno Haible  <bruno@clisp.org>
82622
82623         * lib/progname.h: New file, from GNU gettext.
82624         * lib/progname.c: New file, from GNU gettext.
82625         * lib/progreloc.c: New file, from GNU gettext.
82626
82627 2003-08-19  Jim Meyering  <jim@meyering.net>
82628
82629         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82630         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82631
82632 2003-08-19  Bruno Haible  <bruno@clisp.org>
82633
82634         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82635         more.
82636
82637 2003-08-19  Bruno Haible  <bruno@clisp.org>
82638
82639         * lib/xstrdup.c: Assume <string.h> exists.
82640
82641 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82642
82643         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82644         in makefile rules.
82645
82646 2003-08-18  Jim Meyering  <jim@meyering.net>
82647
82648         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82649         * m4/lib-ld.m4: Likewise.
82650
82651 2003-08-18  Jim Meyering  <jim@meyering.net>
82652
82653         * lib/setenv.h: Indent nested cpp directive.
82654         * lib/vasnprintf.c: Remove trailing blanks.
82655
82656 2003-08-17  Simon Josefsson  <jas@extundo.com>
82657
82658         * modules/xstrndup: New file.
82659         * MODULES.html.sh (func_all_modules): Add xstrndup.
82660
82661 2003-08-17  Simon Josefsson  <jas@extundo.com>
82662
82663         * modules/argp: Fix autoconf macro name. Add more dependencies.
82664
82665 2003-08-17  Simon Josefsson  <jas@extundo.com>
82666
82667         * m4/xstrndup.m4: New file.
82668
82669 2003-08-17  Simon Josefsson  <jas@extundo.com>
82670
82671         * m4/argp.m4: New file.
82672
82673 2003-08-17  Simon Josefsson  <jas@extundo.com>
82674             Bruno Haible  <bruno@clisp.org>
82675
82676         * lib/xstrndup.h: New file.
82677         * lib/xstrndup.c: New file.
82678
82679 2003-08-17  Bruno Haible  <bruno@clisp.org>
82680
82681         * modules/strndup (Files, Include): Add lib/strndup.h.
82682
82683 2003-08-17  Bruno Haible  <bruno@clisp.org>
82684
82685         * modules/euidaccess (Files): Add lib/euidaccess.h.
82686
82687 2003-08-17  Bruno Haible  <bruno@clisp.org>
82688
82689         * lib/strndup.h: New file.
82690
82691 2003-08-17  Bruno Haible  <bruno@clisp.org>
82692
82693         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82694         like AC_GNU_SOURCE.
82695         * modules/extensions (configure.ac): Comment out the invocation of
82696         gl_USE_SYSTEM_EXTENSIONS.
82697
82698 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82699
82700         Merges from coreutils, etc.
82701         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82702         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82703         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82704         fixing a typo.
82705         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82706         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82707
82708 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82709
82710         Document merge from coreutils.
82711         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82712         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82713         * modules/utime: Add m4/utimes-null.m4.
82714
82715 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82716
82717         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82718         space, undoing this 2003-08-12 change:
82719         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82720
82721 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82722
82723         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82724         strtoul.c from libc, undoing this 2003-08-12 change:
82725         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82726
82727 2003-08-16  Jim Meyering  <jim@meyering.net>
82728
82729         Merges from coreutils.
82730         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82731         prefix.  Adjust cache variables similarly.  Create 500 rather than
82732         just 300 files, to exercise bug on Darwin6.5, too.
82733         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82734         $missing_dir.
82735         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82736         AM_SYS_POSIX_TERMIOS.
82737         Reported by mkc@mathdogs.com.
82738         Also change use of $am_cv_sys_posix_termios
82739         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82740         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82741         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82742         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82743         in /proc/mounts until it finds one with matching device number.  This
82744         is unnecessary when the FILE argument *is* a mount point.  No stat call
82745         is necessary in that case.  So, disable the statvfs-testing code on
82746         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82747         as RedHat bug# 84846.
82748         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82749         to 1MB, so as not to render systems with no stack size limit (e.g.,
82750         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82751         Include <unistd.h>.  On some systems,
82752         it is required for the definition of _SC_PAGESIZE.
82753
82754 2003-08-16  Jim Meyering  <jim@meyering.net>
82755
82756         Merge from coreutils.
82757         * lib/xstrtoimax.c: #else #if -> #elif.
82758         * lib/xstrtoumax.c: Likewise.
82759
82760 2003-08-16  Jim Meyering  <jim@meyering.net>
82761
82762         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82763         * m4/utimes.m4: Removed.
82764         * m4/utimes-null.m4: Renamed from utimes.m4.
82765
82766         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82767         to 1MB, so as not to render systems with no stack size limit (e.g.,
82768         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82769         Include <unistd.h>.  On some systems,
82770         it is required for the definition of _SC_PAGESIZE.
82771
82772 2003-08-16  Jim Meyering  <jim@meyering.net>
82773         and Paul Eggert  <eggert@cs.ucla.edu>
82774
82775         Merges from coreutils, etc.
82776
82777         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82778         using the latest version from cvs.  This avoids problems with #line
82779         directives using a vendor (Sun) compiler.
82780         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82781         Don't set GETGROUPS_LIB here; now it's
82782         done via getgroups.m4's wrapper function.
82783         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82784         rather than just in sh-util/configure.in, so that the
82785         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82786         same.
82787         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82788         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82789         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82790         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82791         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82792         Remove code that is now done by the newly-required macros.
82793         Append $(EXEEXT) to DF_PROG.
82794         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82795         Do not invoke or require the following here,
82796         since prereq.m4 or some gnulib .m4 now does this for us:
82797         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82798         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82799         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82800         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82801         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82802         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82803         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82804         AC_FUNC_OBSTACK.
82805         Do not replace the following functions, as this is now the job
82806         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82807         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82808         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82809         atexit getpass, strdup, getpagesize.
82810         Replace 'raise'.
82811         Do not check for the following functions, as this is now the job
82812         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82813         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82814         setregid.
82815         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82816         Check for sys/sysctl.h.
82817         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82818         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82819         of checking for ssize_t ourselves.
82820
82821         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82822         Require every macro that gnulib/modules/* suggests for us.
82823         (jm_PREREQ_ADDEXT): New macro.
82824         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82825         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82826
82827         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82828         (gl_PHYSMEM): Use it.
82829         Also check for `table' function.
82830         Check for new headers and functions.
82831         Add check for sys/sysmp.h.
82832         With suggestions from Kaveh Ghazi.
82833         Ignore headers that are present but cannot be compiled.  This
82834         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82835         C 5.4.
82836
82837 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82838
82839         Document merge from coreutils.
82840         * modules/userspec: Depend on posixver.
82841         * modules/strftime: Depend on tzset.
82842
82843 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82844
82845         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82846         rather than tab, after '#' in shell-script copyright notices.
82847         Suggested by Bruno Haible.
82848
82849 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82850
82851         * config/srclist-update: Use three spaces, rather than tab, after '#'
82852         in shell-script copyright notices.  Suggested by Bruno Haible.
82853         Remove unnecessary parenthesization in regular expression.
82854
82855 2003-08-15  Jim Meyering  <jim@meyering.net>
82856
82857         Merge from coreutils.
82858         * lib/xgethostname.c: Include <stdlib.h>.
82859         (xghostname): Don't exit for anything other than memory-related
82860         failure; just return NULL.
82861         * lib/userspec.c: Include "posixver.h".
82862         (parse_user_spec): Accept `.' as a separator only
82863         in pre-POSIX-200112 mode.
82864         * lib/strtoimax.c: Use #elif rather than #else #if.
82865         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82866         Remove function, now that we can rely on a working tzset function.
82867         [!_LIBC]: Ensure that the required autoconf test has been run.
82868         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82869         Use underlying_strftime for %r.
82870         * lib/sha.c: Merge in some clean-up and optimization changes from
82871         glibc.
82872         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82873         Ensure that it is a multiple of 64.
82874         Rearrange loop exit tests so as to avoid performing an
82875         additional fread after encountering an error or EOF.
82876         * lib/realloc.c: Update copyright date.
82877
82878 2003-08-15  Jim Meyering  <jim@meyering.net>
82879         and Paul Eggert  <eggert@twinsun.com>
82880
82881         Merge from coreutils.
82882         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82883         member but strut utmpx does not.  Needed for AIX 4.3.3.
82884         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82885
82886 2003-08-15  Jim Meyering  <jim@meyering.net>
82887         and Paul Eggert  <eggert@cs.ucla.edu>
82888
82889         Merges from coreutils, etc.
82890         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82891         Require gl_FUNC_TZSET_CLOBBER.
82892         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82893         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82894         members.
82895
82896 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82897
82898         Help the merge from coreutils.
82899         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82900         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82901         * m4/tzset.m4: Use it too.
82902
82903 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82904
82905         * modules/tzset: New file.
82906
82907 2003-08-14  Jim Meyering  <jim@meyering.net>
82908
82909         Merges from coreutils.
82910         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82911         variable names, rather than @FNMATCH_H@.
82912         * modules/alloca: Likewise for $(ALLOCA_H).
82913
82914         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82915         the three copies of the literal target, `fnmatch.h'.
82916         * modules/alloca (alloca.h): Likewise.
82917
82918 2003-08-14  Jim Meyering  <jim@meyering.net>
82919
82920         Merge from coreutils.
82921         * m4/tzset.m4: New file.
82922         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82923         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82924         otherwise, AIX 5.1 systems would end up using the latter.
82925         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82926         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82927         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82928         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82929
82930 2003-08-14  Jim Meyering  <jim@meyering.net>
82931
82932         Merge from coreutils.
82933         * lib/obstack.h: Whitespace changes.
82934         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82935         and xcalloc return values.
82936         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82937         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82938         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82939         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82940         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82941         error from mntctl.
82942         Use mntctl's return value to drive the entry-processing loop, since
82943         we can't rely on the value of the vmt_length member in the last
82944         entry.  On some systems doing so could result in exhausting
82945         virtual memory.  Based in part on a patch from Mike Jetzer.
82946
82947 2003-08-14  Jim Meyering  <jim@meyering.net>
82948         and Paul Eggert  <eggert@twinsun.com>
82949
82950         Merges from coreutils, plus other fixes.
82951         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82952         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82953         for credits and details.  Thanks to Kaveh Ghazi for helping
82954         to keep these files in sync.
82955         (ARRAY_SIZE): Define it.
82956         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82957         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82958         (memcasecmp): Don't assume size_t fits in unsigned int.
82959         Remove casts and duplicate code.
82960         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82961         (memcpy): Remove definition.
82962         Merge in some clean-up and optimization changes from glibc.
82963         [BLOCKSIZE]: Move definition to top of file.
82964         Ensure that it is a multiple of 64.
82965         Rearrange loop exit tests so as to avoid performing an
82966         additional fread after encountering an error or EOF.
82967         * lib/md5.h (md5_uintptr): Define.
82968         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82969         return to the initial working directory.  Preserve errno
82970         for caller.
82971         * lib/idcache.c: Include "xalloc.h".
82972         (xmalloc, xrealloc): Remove decls.
82973         (getuser): Remove casts no longer required in C89.
82974         * lib/human.c: Include stdio.h, for sprintf.
82975         * lib/group-member.c: Include "xalloc.h".
82976         (xmalloc, xrealloc): Remove decls.
82977         (get_group_info): Remove casts no longer required in C89.
82978         * lib/getusershell.c (readname): Remove casts no longer required in
82979         C89.
82980         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82981         * lib/getline.c: Whitespace fix, from coreutils.
82982
82983 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82984
82985         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82986         Check for isascii.
82987
82988         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82989         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82990         Undo previous (whitespace-only) change.
82991
82992 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82993
82994         * lib/exclude.c: Include <ctype.h>
82995         (IN_CTYPE_DOMAIN): New macro.
82996         (is_space): New fn.
82997         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82998         and empty lines.
82999
83000         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83001         Undo previous (whitespace-only) change.
83002
83003 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83004
83005         * config/srclist-update: Change update back to the old behavior,
83006         leaving whitespace alone.  Use one 'sed' command rather than a
83007         pipeline.
83008         (fixlicense): Now a variable, not a function.
83009         (remove_trailing_blanks): Remove.
83010         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83011         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83012         Undo previous (whitespace-only) change.
83013
83014 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83015
83016         Merge from coreutils.
83017         * modules/euidaccess: Add lib_SOURCES, include for new
83018         file euidaccess.h
83019
83020 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83021
83022         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83023         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83024         Normalize leading white space and remove trailing white space.
83025
83026         Merge from coreutils
83027         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83028
83029         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83030         0.12.1.  These files are now being upgraded automatically by
83031         ../config/srclist-update.
83032
83033 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83034
83035         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83036         Normalize leading white space and remove trailing white space.
83037         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83038         notice, as per ../config/srclist-update.
83039
83040         Merge from coreutils.
83041         * lib/euidaccess.h: New file.
83042         * lib/euidaccess.c: Include it.
83043         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83044         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83045         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83046
83047 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83048
83049         * config/srclist-update: Add copyright notice.
83050         (remove_id_lines, remove_trailing_blanks): New constants.
83051         (fixfile): Use them to normalize spacing a bit in copied files.
83052         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83053         Normalize leading white space and remove trailing white space.
83054
83055         * config/texinfo.tex: Sync with texinfo.
83056
83057         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83058         strtoul.c from libc, to merge coreutils whitespace changes.
83059
83060         * config/srclist.txt: Get the following m4 files from gettext:
83061         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83062         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83063         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83064         wint_t.m4.
83065
83066 2003-08-12  Karl Berry  <karl@gnu.org>
83067
83068         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83069         been made.
83070
83071 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83072
83073         * modules/gnu-source, m4/gnu-source.m4:
83074         Remove; we're assuming Autoconf 2.54 or later now.
83075         Suggested by Bruno Haible.
83076         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83077
83078 2003-08-11  Bruno Haible  <bruno@clisp.org>
83079
83080         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83081
83082 2003-08-11  Bruno Haible  <bruno@clisp.org>
83083
83084         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83085         (vasnprintf): Use it instead of wcslen.
83086
83087 2003-08-11  Bruno Haible  <bruno@clisp.org>
83088
83089         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83090         value to ensure that _Bool promotes to int. Use #define for _Bool when
83091         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83092
83093 2003-08-10  Karl Berry  <karl@gnu.org>
83094
83095         * lib/regex.h: update from libc (whitespace fix).
83096
83097 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83098
83099         Merge some files from coreutils.  These changes were
83100         originally made by Jim Meyering.
83101         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83102         many older Unixes require this.
83103         * lib/alloca.c (alloca): Remove cast to argument of free;
83104         no longer needed in C89.
83105         * lib/alloca_.h, regex.h: Fix white space to match
83106         what GNU indent does.
83107
83108 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83109
83110         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83111         apparently Emacs's Unicode mode got confused before my 2003-08-05
83112         checkin.
83113
83114 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83115
83116         * m4/extensions.m4: New file.
83117         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83118         Require gl_USE_SYSTEM_EXTENSIONS.
83119         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83120         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83121
83122 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83123
83124         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83125         * modules/extensions, modules/gnu-source: New files.
83126         * modules/timespec, modules/unlocked-io: Depend on extensions.
83127
83128 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83129
83130         * modules/restrict: New file.
83131         * MODULES.html.sh (func_all_modules): Add restrict.
83132         * modules/regex: Depend on restrict.
83133
83134 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83135
83136         * m4/restrict.m4: New file.
83137         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83138
83139 2003-08-07  Bruno Haible  <bruno@clisp.org>
83140
83141         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83142         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83143
83144 2003-08-07  Bruno Haible  <bruno@clisp.org>
83145
83146         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83147         makes the module 'getndelim2' compatible with the module 'getline'.
83148
83149 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83150
83151         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83152         byte with "\201" to avoid glitches when editing that source file
83153         with multi-gnome-terminal.
83154
83155 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83156
83157         * lib/bumpalloc.h: Remove.
83158
83159 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83160
83161         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83162         * modules/bumpalloc: Remove.
83163
83164 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83165
83166         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83167         GNU coding style.
83168
83169         Merge from coreutils.
83170         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83171         1. From glibc.
83172         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83173         from Karl Berry, implemented by Jim Meyering.
83174         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83175         from Dmitry V. Levin.
83176         Remove anachronistic cast of xrealloc.
83177         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83178         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83179         type. Otherwise, it wouldn't compile with at least /bin/cc on
83180         ymp-cray-unicos9.0.2.X.
83181         Combine two mostly-identical uses of alloca into one.
83182         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83183
83184 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83185
83186         [From Emacs.]
83187
83188         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83189         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83190         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83191         obsolete NLIST_NAME_UNION.
83192         [__GNU__]: Undef BSD and FSCALE.
83193         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83194
83195 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83196
83197         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83198         an enum type, so that it's guaranteed to promote to int.  See:
83199         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83200
83201 2003-08-03  Karl Berry  <karl@gnu.org>
83202
83203         * config/depcomp: update from automake.
83204
83205 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83206
83207         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83208         (strerror): Don't assume that a printable int fits in 14 bytes.
83209
83210 2003-07-31  Bruno Haible  <bruno@clisp.org>
83211
83212         * modules/getpass-gnu: New file.
83213         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83214
83215 2003-07-31  Bruno Haible  <bruno@clisp.org>
83216
83217         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83218
83219 2003-07-24  Karl Berry  <karl@gnu.org>
83220
83221         * config/missing: update from automake.
83222
83223 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83224             Bruno Haible  <bruno@clisp.org>
83225
83226         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83227         * lib/getline.c (getline, getdelim): Likewise.
83228         Remove _GNU_SOURCE define; now it's defined in config.h through
83229         m4/getline.m4.
83230
83231 2003-07-23  Karl Berry  <karl@gnu.org>
83232
83233         * config/config.sub: update from prep.
83234
83235 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83236
83237         * modules/xalloc (Depends-on): Add exitfail.
83238         * modules/xmemcoll: Likewise.
83239
83240 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83241
83242         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83243         over-parenthesization in macros.
83244
83245         Sync with coreutils.
83246
83247         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83248         required by C99.
83249
83250         Use `exit_failure' for xalloc and xmemcoll instead of their own
83251         private exit-failure variables.
83252         * lib/xalloc.h (xalloc_exit_failure): Remove.
83253         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83254         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83255         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83256         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83257         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83258
83259 2003-07-20  Jim Meyering  <jim@meyering.net>
83260
83261         * modules/closeout (Depends-on): Add exitfail.
83262         Suggestion from Bruno Haible.
83263
83264 2003-07-19  Karl Berry  <karl@gnu.org>
83265
83266         * config/config.sub: update from prep.
83267
83268 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83269
83270         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83271         Remove.
83272         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83273         to test that it can stand by itself.  Include "exitfail.h".
83274         Clients should set exit_failure instead.
83275         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83276
83277 2003-07-18  Bruno Haible  <bruno@clisp.org>
83278
83279         * modules/getndelim2: New file.
83280         * modules/getline: Share files with module getndelim2.
83281         * modules/getnline: Depend on getndelim2 instead of sharing files with
83282         it. Add getnline.c to lib_SOURCES.
83283         * MODULES.html.sh (func_all_modules): Add getndelim2.
83284
83285 2003-07-18  Bruno Haible  <bruno@clisp.org>
83286
83287         * m4/getndelim2.m4: New file.
83288         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83289         invoke gl_PREREQ_GETNDELIM2.
83290         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83291         gl_PREREQ_GETNDELIM2.
83292         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83293         gl_GETNDELIM2.
83294
83295 2003-07-18  Bruno Haible  <bruno@clisp.org>
83296
83297         * lib/getndelim2.h: New file.
83298         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83299         getndelim2.h.
83300         (getndelim2): Make non-static. Change return type to ssize_t.
83301         * lib/getline.h: Change argument names.
83302         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83303         * lib/getnline.c: Include getndelim2.h.
83304
83305 2003-07-18  Andreas Schwab  <schwab@suse.de>
83306
83307         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83308
83309 2003-07-17  Karl Berry  <karl@gnu.org>
83310
83311         * config/config.sub: update from prep.
83312
83313 2003-07-17  Bruno Haible  <bruno@clisp.org>
83314
83315         * modules/getnline: New file.
83316         * modules/getline: Add lib/getndelim2.c to source file list.
83317         * MODULES.html.sh (func_all_modules): Add getnline.
83318
83319 2003-07-17  Bruno Haible  <bruno@clisp.org>
83320
83321         * m4/getnline.m4: New file.
83322
83323 2003-07-17  Bruno Haible  <bruno@clisp.org>
83324
83325         * m4/Makefile.am.in: Remove file.
83326         * m4/Makefile.am: Remove file.
83327         * m4/Makefile.in: Remove file.
83328
83329 2003-07-17  Bruno Haible  <bruno@clisp.org>
83330
83331         * lib/getnline.h: New file.
83332         * lib/getnline.c: New file.
83333         * lib/getndelim2.c: New file, extracted from getline.c.
83334         (getndelim2): Renamed from getdelim2, with added nmax argument.
83335         * lib/getline.c: Include getndelim2.c.
83336         (getdelim2): Moved out to getndelim2.c.
83337         (getline, getdelim): Update.
83338
83339 2003-07-17  Bruno Haible  <bruno@clisp.org>
83340
83341         * lib/Makefile.am: Remove file.
83342         * lib/Makefile.in: Remove file.
83343
83344 2003-07-17  Bruno Haible  <bruno@clisp.org>
83345
83346         * configure.in: Remove file.
83347         * Makefile.in: Remove file.
83348
83349 2003-07-17  Bruno Haible  <bruno@clisp.org>
83350
83351         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83352
83353 2003-07-16  Karl Berry  <karl@gnu.org>
83354
83355         * config/srclist-update: was running fixlicense twice, which caused
83356                 texinfo.tex to be nullified for some reason.  Simplify,
83357                 $gplsrc is no longer needed as far as I can see?
83358
83359 2003-07-16  Jim Meyering  <jim@meyering.net>
83360
83361         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83362
83363 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83364
83365         * config/srclist.txt: Get the following files from gettext-runtime/intl
83366         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83367         ref-del.sin.  From Bruno Haible.
83368         * config/srclist-update (fixfile): Change grep pattern again, since the
83369         previous fix didn't work (there was another trailing $).  Use
83370         '[$]' to escape the $s.
83371
83372 2003-07-15  Karl Berry  <karl@gnu.org>
83373
83374         * lib/vasnprintf.c: update from gettext.
83375
83376 2003-07-15  Karl Berry  <karl@gnu.org>
83377
83378         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83379         gets expanded when surrounded by '$'.
83380
83381 2003-07-15  Jim Meyering  <jim@meyering.net>
83382
83383         * modules/save-cwd: Don't depend on error.  From Derek Price.
83384
83385 2003-07-15  Jim Meyering  <jim@meyering.net>
83386
83387         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83388
83389 2003-07-14  Simon Josefsson  <jas@extundo.com>
83390
83391         * modules/mempcpy: New file.
83392         * MODULES.html.sh (func_all_modules): Add mempcpy.
83393
83394 2003-07-14  Simon Josefsson  <jas@extundo.com>
83395
83396         * m4/mempcpy.m4: New file.
83397
83398 2003-07-14  Simon Josefsson  <jas@extundo.com>
83399
83400         * lib/mempcpy.h: New file.
83401         * lib/mempcpy.c: New file.
83402
83403 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83404
83405         * modules/getdate, modules/posixtm: Depend on mktime.
83406
83407 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83408
83409         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83410         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83411         unicodeio.c, unicodeio.h, unlocked-io.h:
83412         Switch from LGPL to GPL.
83413
83414 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83415
83416         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83417         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83418         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83419         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83420         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83421         updated automatically by ../config/srclist-update.  This changes
83422         their license from LPGL to GPL.
83423
83424 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83425
83426         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83427         assumed to refer to the root of the most recent stable gettext version.
83428         * config/srclistvars.sh: Add defaults for eggert.
83429         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83430         Match "This program" as well as "The program".  This is needed
83431         for gettext.
83432
83433 2003-07-14  Jim Meyering  <jim@meyering.net>
83434
83435         Don't emit diagnostics.  Let callers do that.
83436         * lib/save-cwd.c: Don't include "error.h".
83437         (save_cwd): Don't call error.  Ensure that errno is valid
83438         when returning nonzero.
83439
83440         * lib/save-cwd.h (restore_cwd): Update prototype.
83441         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83442         Simplify.  Don't call error upon failure.  Let callers do that.
83443         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83444         when auditing is enabled.  But don't bother updating the #if.
83445
83446 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83447
83448         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83449         it breaks C++ compilation.
83450         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83451
83452 2003-07-10  Simon Josefsson  <jas@extundo.com>
83453
83454         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83455
83456 2003-07-10  Jim Meyering  <jim@meyering.net>
83457
83458         * m4/clock_time.m4: Remove trailing blank.
83459         * m4/intmax_t.m4: Likewise.
83460
83461 2003-07-10  Jim Meyering  <jim@meyering.net>
83462
83463         * lib/vasnprintf.c: Remove trailing blanks.
83464         Make cpp indentation consistent.
83465
83466 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83467
83468         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83469         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83470         Switch from LGPL to GPL.
83471
83472 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83473
83474         * config/srclist.txt: Sort sublists.  Add
83475         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83476         that differ from gnulib for one reason or another; we'd like this list
83477         to be smaller but for now let's document what we have.
83478
83479 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83480
83481         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83482         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83483         and sweeter "eval x=$x".
83484         * config/srclist.txt: Get lib/argp* from glibc.
83485
83486 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83487
83488         * lib/mktime.c: Fix some boundary cases and remove need for floating
83489         point.
83490
83491         Issue a compile-time diagnostic if time_t is floating point, or if
83492         two's complement arithmetic is not in effect, or if arithmetic
83493         right shift does not propagate the sign.  These assumptions were
83494         all in the original code but they weren't checked.
83495
83496         (TIME_T_MIDPOINT, verify): New macros.
83497         (__isleap): Remove; it has integer overflow problems.
83498         (leapyear): New function, without those problems.
83499         (ydhms_tm_diff): Remove; splitting into two parts.
83500         (ydhms_diff): New function, containing the arithmetic part of
83501         the old ydhms_tm_diff function.  Issue a compile-time
83502         diagnostic if we are not using C99 integer division.
83503         Avoid casts when possible.
83504         (guess_time_tm): New function, containing the checking part of
83505         the old ydhms_tm_diff function.  Return the new value, rather than
83506         the difference between it and the old.  Accept a new argument T
83507         so that *T specifies the old value.  Check for overflow in the result.
83508
83509         (__mktime_internal): Use a time_t offset, not a long int offset.
83510         This undoes the 2003-06-04 change, which is no longer needed now
83511         that we have better overflow checking.
83512         (localtime_offset): Likewise.
83513
83514         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83515         and long are 64-bit but int is only 32-bit.
83516         (ydhms_diff): Use long int to store year1 and yday1.
83517         Issue a compile-time diagnostic if long int is not wide enough.
83518
83519         (__mktime_internal): Use long int to store adjusted year and yday.
83520         Use plain C rather than preprocessor commands, if that doesn't
83521         affect efficiency.
83522         Check for overflow (and try to repair) after each probe
83523         rather than checking only at the very end.  This avoids some bugs
83524         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83525         does not equal GMT offset at maximum time).
83526         Use integer to check for overflow rather than floating point; this
83527         is more portable to non-IEEE hosts, and is a tad faster.
83528         When we detect that we are oscillating between two values,
83529         don't check whether tm_isdst has the requested value, since
83530         we already know the answer.  When tm_isdst has the wrong value,
83531         use a different heuristic to find the right one, based on the
83532         extreme values actually observed in practice in tz2003a,
83533         rather than the (overly optimistic) "previous 3 calendar quarters".
83534
83535         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83536         "T const" to accommodate glibc style.
83537         (check_result): Use less-confusing report format.  "long" -> "long int.
83538         (main): Likewise.
83539         Don't loop if the iteration overflows time_t.
83540         Allow a negative step in the iteration.
83541
83542 2003-07-06  Karl Berry  <karl@gnu.org>
83543
83544         * config/depcomp: update from automake.
83545         * config/config.sub: update from prep.
83546
83547 2003-07-03  Karl Berry  <karl@gnu.org>
83548
83549         * config/config.guess: update from prep.
83550
83551 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83552
83553         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83554         xreadlink.c now includes it unconditionally.
83555
83556 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83557
83558         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83559         having it depend on HAVE_SYS_TYPES_H.
83560
83561 2003-07-01  Bruno Haible  <bruno@clisp.org>
83562
83563         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83564         <sys/types.h> should be sufficient.
83565         Reported by Paul Eggert.
83566
83567 2003-06-26  Karl Berry  <karl@gnu.org>
83568
83569         * config/depcomp: update from automake.
83570
83571 2003-06-26  Bruno Haible  <bruno@clisp.org>
83572
83573         * modules/human: Depend on module stdbool.
83574
83575 2003-06-25  Bruno Haible  <bruno@clisp.org>
83576
83577         * modules/readlink: New file.
83578         * modules/xreadlink: Depend on it.
83579         * MODULES.html.sh (func_all_modules): Add readlink.
83580
83581 2003-06-25  Bruno Haible  <bruno@clisp.org>
83582
83583         * m4/readlink.m4: New file.
83584
83585 2003-06-25  Bruno Haible  <bruno@clisp.org>
83586
83587         * lib/readlink.c: New file.
83588
83589 2003-06-22  Karl Berry  <karl@gnu.org>
83590
83591         * config/srclist.txt: update mkinstalldirs from automake.
83592         * config/mkinstalldirs: update.
83593
83594 2003-06-22  Bruno Haible  <bruno@clisp.org>
83595
83596         Portability to mingw32.
83597         * m4/ssize_t.m4: New file, from GNU gettext.
83598         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83599         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83600
83601 2003-06-22  Bruno Haible  <bruno@clisp.org>
83602
83603         * modules/safe-read: Add m4/ssize_t.m4.
83604         * modules/xreadlink: Add m4/ssize_t.m4.
83605
83606 2003-06-20  Bruno Haible  <bruno@clisp.org>
83607
83608         Assume C89, so PARAMS isn't needed.
83609         * lib/unicodeio.h (PARAMS): Remove.
83610         * lib/unicodeio.c: Don't use PARAMS.
83611
83612 2003-06-18  Karl Berry  <karl@gnu.org>
83613
83614         * config/config.{guess,sub}: update from prep.
83615
83616 2003-06-18  Jim Meyering  <jim@meyering.net>
83617
83618         Merge changes from coreutils.
83619         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83620         Remove explicit declarations of xmalloc and realloc.
83621         Include xalloc.h.
83622         (read_utmp): Remove anachronistic cast of xmalloc.
83623
83624 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83625
83626         Assume C89, so PARAMS isn't needed.
83627         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83628         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83629         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83630         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83631         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83632         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83633         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83634         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83635         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83636         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83637         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83638         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83639         no longer needed. Anyway, config.h should always be included before any
83640         other file.
83641
83642 2003-06-11  Simon Josefsson  <jas@extundo.com>
83643
83644         * modules/sysexits: New file.
83645         * MODULES.html.sh (func_all_modules): Add sysexits.
83646
83647 2003-06-11  Simon Josefsson  <jas@extundo.com>
83648
83649         * lib/sysexit_.h: New file.
83650
83651 2003-06-11  Derek Price  <derek@ximbiot.com>
83652
83653         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83654         necessary.
83655
83656 2003-06-11  Bruno Haible  <bruno@clisp.org>
83657
83658         * m4/sysexits.m4: New file.
83659
83660 2003-06-10  Simon Josefsson  <jas@extundo.com>
83661
83662         * lib/argp.h: New file, from glibc.
83663         * lib/argp-ba.c: New file, from glibc.
83664         * lib/argp-eexst.c: New file, from glibc.
83665         * lib/argp-fmtstream.c: New file, from glibc.
83666         * lib/argp-fmtstream.h: New file, from glibc.
83667         * lib/argp-fs-xinl.c: New file, from glibc.
83668         * lib/argp-help.c: New file, from glibc.
83669         * lib/argp-namefrob.h: New file, from glibc.
83670         * lib/argp-parse.c: New file, from glibc.
83671         * lib/argp-pv.c: New file, from glibc.
83672         * lib/argp-pvh.c: New file, from glibc.
83673         * lib/argp-xinl.c: New file, from glibc.
83674
83675 2003-06-10  Simon Josefsson  <jas@extundo.com>
83676
83677         * modules/strchrnul: New file.
83678
83679 2003-06-10  Simon Josefsson  <jas@extundo.com>
83680
83681         * modules/argp: New file.
83682
83683 2003-06-10  Simon Josefsson  <jas@extundo.com>
83684
83685         * m4/strchrnul.m4: New file.
83686
83687 2003-06-10  Simon Josefsson  <jas@extundo.com>
83688
83689         * lib/strchrnul.h: New file.
83690         * lib/strchrnul.c: New file.
83691
83692 2003-06-10  Bruno Haible  <bruno@clisp.org>
83693
83694         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83695
83696 2003-06-07  Karl Berry  <karl@gnu.org>
83697
83698         * config/config.{guess,sub}: update from prep.
83699
83700 2003-06-07  Jim Meyering  <jim@meyering.net>
83701
83702         * modules/strtod: Use $(...) notation, not @...@ for
83703         AC_REPLACE'd variables.
83704         * modules/localcharset: Likewise.
83705
83706 2003-06-07  Jim Meyering  <jim@meyering.net>
83707
83708         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83709         in place of my name in the copyright comment.
83710         Remove definition and uses of __P.
83711
83712         From coreutils.
83713         * lib/stat.c: Don't declare xmalloc explicitly.
83714         Instead, include "xalloc.h".
83715         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83716         xrealloc, and xcalloc return values.
83717         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83718         Improve comment.
83719         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83720
83721 2003-06-07  Bruno Haible  <bruno@clisp.org>
83722
83723         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83724         avoid AC_CONFIG_LINKS.
83725         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83726         fnmatch.h, to avoid AC_CONFIG_LINKS.
83727         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83728
83729 2003-06-07  Bruno Haible  <bruno@clisp.org>
83730
83731         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83732         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83733         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83734         directory.
83735         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83736         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83737         directory.
83738
83739 2003-06-06  Jim Meyering  <jim@meyering.net>
83740
83741         Merge from coreutils.
83742         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83743         Consolidate declarations and initializations of *_base* locals.
83744
83745         Merge from coreutils.
83746         This avoids a core dump on systems without GNU putenv,
83747         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83748         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83749         (unsetenv): New static function, from GNU libc.
83750         (rpl_putenv): Use it.
83751
83752         * lib/modechange.c: Remove trailing blanks.
83753
83754         Merge from coreutils.
83755         * lib/fsusage.c: Remove declaration of statfs.
83756         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83757
83758         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83759
83760 2003-06-06  Jim Meyering  <jim@meyering.net>
83761
83762         * lib/stdbool_.h: Renamed from stdbool.h.in.
83763
83764 2003-06-06  Jim Meyering  <jim@meyering.net>
83765             Bruno Haible  <bruno@clisp.org>
83766
83767         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83768         Adjust Makefile.am snippet not to redirect directly to target.
83769         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83770
83771 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83772
83773         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83774         mismatch, look in future quarters as well as past.  This fixes a
83775         bug when processing fall-backwards gaps immediately after a long
83776         period of daylight-saving time.
83777
83778         * lib/mktime.c: Assume freestanding C89 or better.
83779         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83780         (__P): Remove; not used.
83781         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83782         (mktime, not_equal_tm, print_tm, check_result,
83783         main): Use prototypes.  Use const * where appropriate.
83784         (main): Fix typo in testing code that uncovered by above changes.
83785         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83786
83787 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83788
83789         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83790         locale.h, localeconv.  This merges changes from coreutils.
83791
83792         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83793         It can be removed after the next Autoconf is released.
83794         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83795         needed.
83796
83797 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83798
83799         * lib/mktime.c: Fix Debian bug 177940
83800         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83801         (localtime_offset): Now long int, not time_t, because we want it
83802         to be guaranteed to be signed.  All uses changed.
83803         (__mktime_internal): If overflow would occur when adding offset,
83804         don't add it.
83805
83806         Merge 'human' changes from coreutils.  Rewrite to support
83807         locale-specific notations like thousands separators.
83808         * lib/human.c: Simplify authorship notice.
83809         Include human.h immediately after config.h.
83810         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83811         <limits.h>: Do not include, since human.h does.
83812         (SIZE_MAX, UINTMAX_MAX): New macros.
83813         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83814         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83815         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83816         (power_letter): Renamed from suffixes.
83817         (generate_suffix_backwards): Remove.
83818         (adjust_value): Now takes int style (because of human.h changes)
83819         and long double value (for greater precision on some platforms).
83820         (group_number): New function.
83821         (human_readable): Use it.  Use integer options, not enum.
83822         Put the options before the sizes in the arg list.
83823         Support all the new options.
83824         The old human_readable function has been removed;
83825         use inttostr.h instead.
83826         (human_readable, default_block_size, humblock):
83827         Use uintmax_t, not int, for block sizes.
83828         (human_readable_inexact, block_size_types): Remove.
83829         (block_size_opts): New constant.
83830         (human_options): Renamed from human_block_size, with new signature
83831         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83832         * lib/human.h: Add copyright and authorship notice.
83833         Include <limits.h> and <stdbool.h> unconditionally.
83834         (PARAMS): Remove.  All uses removed.
83835         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83836         (enum human_inexact_style): Remove tag; now a nameless enum.
83837         (human_floor, human_ceiling, human_round_to_even): Now have
83838         values 2, 0, 1 rather than -1, 1, 0.
83839         (human_group_digits, human_suppress_point_zero, human_autoscale,
83840         human_base_1024, human_SI, human_B): New constants.
83841         (human_readable_inexact, human_block_size): Remove.
83842         (human_readable): Size args are now uintmax_t, not int.
83843         (human_options): New decl.
83844
83845         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83846         unnecessary now that we assume C89 or better.  This change
83847         imported from coreutils.
83848
83849         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83850         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83851         in the 2003-05-30 sync from glibc.
83852
83853         .h files should stand alone, but we shouldn't include <sys/types.h>
83854         if we can get away with just <stddef.h>.
83855
83856         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83857         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83858         rather than <sys/types.h>, as we merely need size_t.
83859         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83860         to get size_t.
83861         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83862         Include <stdio.h>, to get FILE.
83863         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83864         memcasecmp.h has included <stddef.h> and all we need is size_t.
83865         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83866         our interface, instead of including <sys/types.h>
83867
83868 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83869
83870         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83871         now, as glibc mktime is buggy on non-glibc systems.
83872
83873 2003-06-03  Karl Berry  <karl@gnu.org>
83874
83875         * config/config.sub: update from prep.
83876
83877 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83878
83879         [from coreutils]
83880         Fix some minor time-related bugs with POSIX time arguments.
83881         Some valid time stamps were being rejected (notably -1, and
83882         time stamps before 1900 on 64-bit hosts).  And some invalid
83883         time stamps were being accepted, e.g. September 31.
83884
83885         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83886         that we can return (time_t) -1 successfully.
83887         * lib/posixtm.c: Likewise.
83888         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83889         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83890         (t): Remove static var.
83891         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83892         of static var.  All uses changed.
83893         (year): Do not reject years before 1900; they can occur with
83894         64-bit time_t.
83895         (posix_time_parse): Do not check for out-of-range components;
83896         that is now the caller's responsibility, since our checks were
83897         only approximations.
83898         (posixtime): Use mktime to check for out-of-range components,
83899         since it knows them exactly.
83900         If mktime returns (time_t) -1, check whether an error actually occurred
83901         by invoking localtime on -1.
83902         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83903         posixtime failures better.
83904         Improve the test data (in comments only).
83905
83906 2003-06-02  Karl Berry  <karl@gnu.org>
83907
83908         * config/mkinstalldirs (version): new variable.
83909         (--version): new option.
83910         (usage): improve message.
83911
83912 2003-05-30  Karl Berry  <karl@gnu.org>
83913
83914         * lib/mktime.c: update from libc.
83915
83916 2003-05-30  Bruno Haible  <bruno@clisp.org>
83917
83918         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83919         * config/config.rpath: Upgrade to gettext-0.12.1.
83920
83921 2003-05-30  Bruno Haible  <bruno@clisp.org>
83922
83923         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83924         * m4/nls.m4: New file, from gettext-0.12.1.
83925         * m4/po.m4: New file, from gettext-0.12.1.
83926         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83927
83928 2003-05-30  Bruno Haible  <bruno@clisp.org>
83929
83930         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83931         * lib/localcharset.h: Likewise.
83932         * lib/localcharset.c: Likewise.
83933
83934 2003-05-29  Karl Berry  <karl@gnu.org>
83935
83936         * config/config.rpath: update from gettext.
83937
83938 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83939
83940         Assume the headers required for C89 freestanding compilers.
83941         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83942         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83943         * m4/human.m4 (gl_HUMAN): Likewise.
83944         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83945         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83946         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83947         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83948         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83949         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83950
83951 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83952
83953         Assume the headers required for C89 freestanding compilers.
83954         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83955         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83956         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83957         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83958         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83959         define, since <limits.h> is guaranteed to do that.
83960         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83961         * lib/exclude.c: Include <stdbool.h> unconditionally.
83962         * lib/tempname.c: Include <stddef.h> unconditionally.
83963         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83964         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83965         <stddef.h> does that.
83966         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83967         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83968         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83969         needed.
83970         * lib/xstrtol.c: Likewise.
83971         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83972         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83973
83974         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83975         warnings on some platforms.
83976
83977         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83978         arbitrarily.
83979
83980 2003-05-26  Jim Meyering  <jim@meyering.net>
83981
83982         Merge in a change from coreutils:
83983         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83984         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83985         that condition, rather than `-1' which is slightly misleading.
83986         Change the name of the cache variable to have the gl_ prefix.
83987         Prompted by a patch from Richard Dawe for DJGPP.
83988
83989 2003-05-24  Karl Berry  <karl@gnu.org>
83990
83991         * config/config.guess: update from prep.
83992
83993 2003-05-22  Karl Berry  <karl@gnu.org>
83994
83995         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83996
83997 2003-05-20  Karl Berry  <karl@gnu.org>
83998
83999         * config/config.guess: update from prep.
84000
84001 2003-05-18  Karl Berry  <karl@gnu.org>
84002
84003         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84004         might actually be set by the user.
84005
84006         * config/depcomp, install-sh, mdate-sh: update from automake.
84007
84008 2003-05-17  Bruno Haible  <bruno@clisp.org>
84009
84010         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84011         invalid expansion for AC_EGREP_CPP.
84012         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84013         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84014         Suggested by Akim Demaille <akim@epita.fr> in
84015         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84016
84017 2003-05-12  Jim Meyering  <jim@meyering.net>
84018
84019         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84020         the space-padded-by-default conversion specifiers, %e, %k, %l.
84021
84022 2003-05-12  Bruno Haible  <bruno@clisp.org>
84023
84024         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84025         the string is longer than 4 KB.
84026
84027 2003-05-11  Karl Berry  <karl@gnu.org>
84028
84029         * config/config.{guess,sub}: update from prep.
84030
84031 2003-05-09  Bruno Haible  <bruno@clisp.org>
84032
84033         * modules/error: Add m4/strerror_r.m4 to file list.
84034
84035 2003-05-03  Bruno Haible  <bruno@clisp.org>
84036
84037         Upgrade to Unicode-4.0.
84038         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84039         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84040         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84041         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84042         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84043         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84044         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84045         Change width of U+E0100..U+E01EF from 1 to 0.
84046
84047 2003-04-25  Jim Meyering  <jim@meyering.net>
84048
84049         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84050         of type size_t, not int.
84051
84052 2003-04-25  Bruno Haible  <bruno@clisp.org>
84053
84054         * lib/copy-file.c: Include <stddef.h>, for size_t.
84055
84056 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84057
84058         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84059         code which expansion is under static control.  Patch imported from
84060         Akim Demaille's patch to Bison; see
84061         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84062
84063 2003-04-14  Bruno Haible  <bruno@clisp.org>
84064
84065         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84066
84067 2003-04-11  Jim Meyering  <jim@meyering.net>
84068
84069         Merge changes from Coreutils.
84070
84071         2003-03-22  Jim Meyering  <jim@meyering.net>
84072
84073         * lib/strftime.c (widen): Cast alloca return value to proper type.
84074
84075         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84076
84077         From GNU libc.
84078         * lib/strftime.c (my_strftime): Handle very large width
84079         specifications for numeric values correctly.  Improve checks for
84080         overflow.
84081
84082         2003-01-19  Jim Meyering  <jim@meyering.net>
84083
84084         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84085         definitions.
84086         (nl_get_alt_digit) [! defined my_strftime]: Define.
84087         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84088         _nl_get_alt_digit and _nl_get_walt_digit.
84089
84090         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84091         libc. These changes have no effect outside of _LIBC.
84092
84093 2003-04-10  Bruno Haible  <bruno@clisp.org>
84094
84095         * modules/findprog: New file.
84096         * MODULES.html.sh (func_all_modules): Add it.
84097
84098 2003-04-10  Bruno Haible  <bruno@clisp.org>
84099
84100         * m4/findprog.m4: New file.
84101         * m4/eaccess.m4: New file.
84102
84103 2003-04-10  Bruno Haible  <bruno@clisp.org>
84104
84105         * lib/findprog.h: New file, from GNU gettext.
84106         * lib/findprog.c: New file, from GNU gettext.
84107
84108 2003-04-05  Jim Meyering  <jim@meyering.net>
84109
84110         Merge changes from Coreutils.
84111
84112         * lib/exclude.h (PARAMS): Remove definition and uses.
84113         * lib/exclude.c: Remove uses of `PARAMS'.
84114
84115         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84116         Add test-cases for DOS filenames. Declare program_name.
84117         (main): Set up program_name.  Patch by Rich Dawe.
84118
84119         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84120         error from mntctl.
84121         Use mntctl's return value to drive the entry-processing loop, since
84122         we can't rely on the value of the vmt_length member in the last
84123         entry.  On some systems doing so could result in exhausting
84124         virtual memory.  Based in part on a patch from Mike Jetzer.
84125
84126 2003-04-04  Bruno Haible  <bruno@clisp.org>
84127
84128         * modules/linebreak: New file.
84129         * MODULES.html.sh (func_all_modules): Add it.
84130
84131 2003-04-04  Bruno Haible  <bruno@clisp.org>
84132
84133         * m4/linebreak.m4: New file.
84134
84135 2003-04-04  Bruno Haible  <bruno@clisp.org>
84136
84137         * lib/linebreak.h: New file, from GNU gettext.
84138         * lib/linebreak.c: New file, from GNU gettext with slight
84139         modifications.
84140         * lib/lbrkprop.h: New file, from GNU gettext.
84141
84142 2003-04-03  Bruno Haible  <bruno@clisp.org>
84143
84144         * modules/utf8-ucs4: New file.
84145         * modules/utf16-ucs4: New file.
84146         * modules/ucs4-utf8: New file.
84147         * modules/ucs4-utf16: New file.
84148         * MODULES.html.sh (func_all_modules): Add them.
84149
84150 2003-04-03  Bruno Haible  <bruno@clisp.org>
84151
84152         * m4/utf-ucs4.m4: New file.
84153         * m4/ucs4-utf.m4: New file.
84154
84155 2003-04-03  Bruno Haible  <bruno@clisp.org>
84156
84157         * lib/utf8-ucs4.h: New file, from GNU gettext.
84158         * lib/utf16-ucs4.h: New file, from GNU gettext.
84159         * lib/ucs4-utf8.h: New file, from GNU gettext.
84160         * lib/ucs4-utf16.h: New file, from GNU gettext.
84161
84162 2003-04-02  Bruno Haible  <bruno@clisp.org>
84163
84164         * modules/binary-io: New file.
84165         * MODULES.html.sh (func_all_modules): Add it.
84166
84167 2003-04-02  Bruno Haible  <bruno@clisp.org>
84168
84169         * lib/binary-io.h: New file, from GNU gettext.
84170
84171 2003-04-01  Bruno Haible  <bruno@clisp.org>
84172
84173         * modules/pathname: New file.
84174         * MODULES.html.sh (func_all_modules): Add it.
84175
84176 2003-04-01  Bruno Haible  <bruno@clisp.org>
84177
84178         * lib/pathname.h: New file, from GNU gettext.
84179         * lib/concatpath.c: New file, from GNU gettext.
84180
84181 2003-03-30  Bruno Haible  <bruno@clisp.org>
84182
84183         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84184
84185 2003-03-30  Bruno Haible  <bruno@clisp.org>
84186
84187         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84188         function chown() doesn't exist.
84189
84190 2003-03-28  Bruno Haible  <bruno@clisp.org>
84191
84192         * modules/copy-file: New file.
84193         * MODULES.html.sh (func_all_modules): Add it.
84194
84195 2003-03-28  Bruno Haible  <bruno@clisp.org>
84196
84197         * m4/copy-file.m4: New file.
84198
84199 2003-03-28  Bruno Haible  <bruno@clisp.org>
84200
84201         * lib/copy-file.h: New file, from GNU gettext.
84202         * lib/copy-file.c: New file, from GNU gettext.
84203
84204 2003-03-18  Jim Meyering  <jim@meyering.net>
84205
84206         * lib/quote.c (quote_n): Fix typo in comment.
84207
84208 2003-03-18  Bruno Haible  <bruno@clisp.org>
84209
84210         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84211         checking.
84212         * m4/onceonly_2_57.m4: Likewise.
84213
84214 2003-03-17  Bruno Haible  <bruno@clisp.org>
84215
84216         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84217         (m4_quote): Remove macro.
84218         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84219
84220 2003-03-14  Jim Meyering  <jim@meyering.net>
84221
84222         Merge changes from Coreutils.
84223         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84224         to be const, in order to avoid warnings.
84225         (obstack_room): Likewise.
84226         (obstack_empty_p): Likewise.
84227
84228 2003-03-14  Bruno Haible  <bruno@clisp.org>
84229
84230         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84231         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84232
84233 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84234
84235         Merge changes from Bison.
84236         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84237         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84238         when compiling Bison 1.875's `bitset bset = obstack_alloc
84239         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84240         * lib/hash.c: Include <stdbool.h> unconditionally.
84241
84242 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84243
84244         * m4/onceonly.m4 (m4_quote): New macro.
84245         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84246         Quote AC_FOREACH variable-expansions properly.
84247
84248 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84249
84250         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84251
84252 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84253
84254         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84255         Reported by Bruce Becker; see:
84256         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84257
84258 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84259             Bruno Haible  <bruno@clisp.org>
84260
84261         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84262         Reported by John Hughes, see
84263         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84264
84265 2003-02-20  Bruno Haible  <bruno@clisp.org>
84266
84267         * MODULES.html.sh (func_all_modules): Add poll.
84268
84269 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84270
84271         * modules/poll: New file.
84272
84273 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84274
84275         * lib/poll_.h: New file.
84276         * lib/poll.c: New file.
84277
84278 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84279
84280         * m4/poll.m4: New file.
84281
84282 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84283
84284         * modules/mathl: New file.
84285
84286 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84287
84288         * lib/mathl.h: New file.
84289         * lib/acosl.c: New file.
84290         * lib/asinl.c: New file.
84291         * lib/atanl.c: New file.
84292         * lib/ceill.c: New file.
84293         * lib/cosl.c: New file.
84294         * lib/expl.c: New file.
84295         * lib/floorl.c: New file.
84296         * lib/frexpl.c: New file.
84297         * lib/ldexpl.c: New file.
84298         * lib/logl.c: New file.
84299         * lib/sincosl.c: New file.
84300         * lib/sinl.c: New file.
84301         * lib/sqrtl.c: New file.
84302         * lib/tanl.c: New file.
84303         * lib/trigl.c: New file.
84304         * lib/trigl.h: New file.
84305
84306 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84307
84308         * m4/mathl.m4: New file.
84309
84310 2003-02-18  Bruno Haible  <bruno@clisp.org>
84311
84312         * MODULES.html.sh (func_all_modules): Add mathl.
84313
84314 2003-02-17  Bruno Haible  <bruno@clisp.org>
84315
84316         * modules/mkdtemp: New module.
84317         * MODULES.html.sh (func_all_modules): Add it.
84318
84319 2003-02-17  Bruno Haible  <bruno@clisp.org>
84320
84321         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84322
84323 2003-02-17  Bruno Haible  <bruno@clisp.org>
84324
84325         * lib/mkdtemp.h: New file, from GNU gettext.
84326         * lib/mkdtemp.c: New file, from GNU gettext.
84327
84328 2003-02-02  Jim Meyering  <jim@meyering.net>
84329
84330         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84331         e.g. glibc-2.2.93.
84332
84333 2003-01-31  Bruno Haible  <bruno@clisp.org>
84334
84335         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84336         'rpl_rename'.
84337         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84338         'rpl_strnlen'.
84339         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84340         'rpl_strtod'.
84341         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84342         'rpl_utime'.
84343
84344 2003-01-31  Bruno Haible  <bruno@clisp.org>
84345
84346         * lib/rename.c: #undef rename before defining rpl_rename.
84347         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84348
84349 2003-01-30  Bruno Haible  <bruno@clisp.org>
84350
84351         * modules/vasnprintf, modules/vasprintf: New modules.
84352         * MODULES.html.sh (func_all_modules): Add them.
84353
84354 2003-01-30  Bruno Haible  <bruno@clisp.org>
84355
84356         * m4/signed.m4: New file, from GNU gettext.
84357         * m4/longdouble.m4: New file, from GNU gettext.
84358         * m4/wchar_t.m4: New file, from GNU gettext.
84359         * m4/wint_t.m4: New file, from GNU gettext.
84360         * m4/vasnprintf.m4: New file.
84361         * m4/vasprintf.m4: New file.
84362
84363 2003-01-30  Bruno Haible  <bruno@clisp.org>
84364
84365         * lib/printf-args.h: New file, from GNU gettext.
84366         * lib/printf-args.c: New file, from GNU gettext.
84367         * lib/printf-parse.h: New file, from GNU gettext.
84368         * lib/printf-parse.c: New file, from GNU gettext.
84369         * lib/vasnprintf.h: New file, from GNU gettext.
84370         * lib/vasnprintf.c: New file, from GNU gettext.
84371         * lib/asnprintf.c: New file, from GNU gettext.
84372         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84373         * lib/vasprintf.c: New file, from GNU gettext.
84374         * lib/asprintf.c: New file, from GNU gettext.
84375
84376 2003-01-29  Bruno Haible  <bruno@clisp.org>
84377
84378         * modules/stpncpy: New module.
84379         * MODULES.html.sh (func_all_modules): Add it.
84380
84381 2003-01-29  Bruno Haible  <bruno@clisp.org>
84382
84383         * m4/stpncpy.m4: New file.
84384
84385 2003-01-29  Bruno Haible  <bruno@clisp.org>
84386
84387         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84388         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84389
84390 2003-01-28  Bruno Haible  <bruno@clisp.org>
84391
84392         * modules/c-ctype: New module.
84393         * MODULES.html.sh (func_all_modules): Add it.
84394
84395 2003-01-28  Bruno Haible  <bruno@clisp.org>
84396
84397         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84398         Paul Eggert.
84399         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84400         Paul Eggert.
84401
84402 2003-01-27  Bruno Haible  <bruno@clisp.org>
84403
84404         * modules/xsetenv: New module.
84405         * MODULES.html.sh (func_all_modules): Add it.
84406
84407 2003-01-27  Bruno Haible  <bruno@clisp.org>
84408
84409         * lib/xsetenv.h: New file, from GNU gettext.
84410         * lib/xsetenv.c: New file, from GNU gettext.
84411
84412 2003-01-23  Jim Meyering  <jim@meyering.net>
84413
84414         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84415         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84416
84417 2003-01-23  Bruno Haible  <bruno@clisp.org>
84418
84419         * modules/minmax: New module.
84420         * MODULES.html.sh (func_all_modules): Add it.
84421
84422 2003-01-23  Bruno Haible  <bruno@clisp.org>
84423
84424         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84425         Eggert.
84426
84427 2003-01-22  Bruno Haible  <bruno@clisp.org>
84428
84429         * modules/exit: New module.
84430         * MODULES.html.sh (func_all_modules): Add it.
84431
84432 2003-01-22  Bruno Haible  <bruno@clisp.org>
84433
84434         * lib/exit.h: New file, from GNU gettext.
84435
84436 2003-01-19  Bruno Haible  <bruno@clisp.org>
84437
84438         * gnulib-tool: Recognize option --extract-maintainer.
84439         (func_get_maintainer): New function.
84440         * modules/*: Add Maintainer entry.
84441
84442 2003-01-16  Jim Meyering  <jim@meyering.net>
84443
84444         * m4/regex.m4: The `regex' struct is both input and output.
84445         Initialize it before each use.  Patch by Tim Waugh.
84446
84447 2003-01-16  Bruno Haible  <bruno@clisp.org>
84448
84449         * MODULES.html.sh: Add a table of contents. Add the module name as
84450         leftmost column. Add hyperlinks.
84451
84452 2003-01-15  Bruno Haible  <bruno@clisp.org>
84453
84454         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84455
84456 2003-01-15  Bruno Haible  <bruno@clisp.org>
84457
84458         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84459         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84460         suffix.
84461
84462 2003-01-15  Bruno Haible  <bruno@clisp.org>
84463
84464         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84465
84466 2003-01-15  Bruno Haible  <bruno@clisp.org>
84467
84468         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84469         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84470
84471 2003-01-14  Jim Meyering  <jim@meyering.net>
84472
84473         * lib/same.c (same_name): Tweak a comment.
84474
84475 2003-01-14  Bruno Haible  <bruno@clisp.org>
84476
84477         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84478         when a string comparison is sufficient.
84479
84480 2003-01-14  Bruno Haible  <bruno@clisp.org>
84481
84482         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84483         'unsigned int'.
84484
84485 2003-01-14  Bruno Haible  <bruno@clisp.org>
84486
84487         * lib/hash-pjw.c: Add comment about low quality of this function.
84488
84489 2003-01-13  Bruno Haible  <bruno@clisp.org>
84490
84491         * modules/stpcpy: Distribute lib/stpcpy.h.
84492         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84493
84494 2003-01-13  Bruno Haible  <bruno@clisp.org>
84495
84496         * modules/*: Add a description.
84497         * modules/strpbrk: Fix Makefile.am snippet.
84498         * modules/strtoimax: Fix dependencies.
84499         * modules/strtoumax: Likewise.
84500
84501 2003-01-13  Bruno Haible  <bruno@clisp.org>
84502
84503         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84504         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84505         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84506
84507 2003-01-13  Bruno Haible  <bruno@clisp.org>
84508
84509         * gnulib-tool (func_create_testdir): Store config/* files in the main
84510         directory.
84511         * config.rpath: Move to ...
84512         * config/config.rpath: ... here.
84513         * modules/gettext: Contains config/config.rpath, not config.rpath.
84514         * modules/iconv: Likewise.
84515
84516 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84517
84518         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84519         to avoid collisions with libcurses and libreadline.
84520
84521         * m4/getstr.m4: Remove.
84522         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84523
84524 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84525
84526         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84527         to avoid collisions with libcurses and libreadline.
84528
84529         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84530         * lib/getstr.h, getstr.c: Remove.
84531         * lib/getline.c: Include "getline.h", to check interface.
84532         Move body of old getstr.c here: this defines MIN_CHUNK and
84533         declares getdelim2, which is renamed from getstr.
84534         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84535
84536         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84537         All uses changed.
84538         * lib/linebuffer.h: Likewise.
84539         (readline): Remove backward-compatibility macro.
84540
84541 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84542
84543         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84544         to avoid collisions with libcurses and libreadline.
84545         * getstr: Remove.
84546         * MODULES.html.sh: Remove getstr.
84547         * modules/getline: Depend on unlocked-io, not getstr.
84548
84549 2003-01-12  Jim Meyering  <jim@meyering.net>
84550
84551         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84552
84553 2003-01-10  Bruno Haible  <bruno@clisp.org>
84554
84555         * modules/alloca: Change Makefile.am requirements. Simplify Include
84556         requirements. Add lib/alloca_.h to file list.
84557
84558 2003-01-10  Bruno Haible  <bruno@clisp.org>
84559
84560         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84561
84562 2003-01-10  Bruno Haible  <bruno@clisp.org>
84563
84564         * lib/alloca_.h: New file.
84565         * lib/getdate.y: Unconditionally include alloca.h.
84566         * lib/makepath.c: Likewise.
84567         * lib/setenv.c: Likewise.
84568         * lib/userspec.c: Likewise.
84569
84570 2003-01-09  Karl Berry  <karl@gnu.org>
84571
84572         * MODULES.html.sh: include `dirname $0` in PATH, to find
84573         gnulib-tool.
84574
84575 2003-01-09  Bruno Haible  <bruno@clisp.org>
84576
84577         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84578         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84579
84580 2003-01-09  Bruno Haible  <bruno@clisp.org>
84581
84582         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84583
84584 2003-01-09  Bruno Haible  <bruno@clisp.org>
84585
84586         * lib/stdbool.h.in: New file.
84587
84588 2003-01-09  Bruno Haible  <bruno@clisp.org>
84589
84590         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84591         * MODULES.html.sh: Likewise.
84592
84593 2003-01-08  Jim Meyering  <jim@meyering.net>
84594
84595         * lib/full-write.c: Undefine and define-away `const' after inclusion
84596         of errno.h, not before.  Suggestion from Bruno Haible.
84597
84598 2003-01-08  Bruno Haible  <bruno@clisp.org>
84599
84600         * modules/full-read: Depend on full-write.
84601
84602 2003-01-08  Bruno Haible  <bruno@clisp.org>
84603
84604         * lib/safe-read.c: Include specification header first, to ensure its
84605         selfcontainedness.
84606         * lib/full-write.c: Likewise.
84607
84608 2003-01-07  Jim Meyering  <jim@meyering.net>
84609
84610         * lib/full-write.c: Rework so that it may serve to define full_read,
84611         too.
84612         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84613
84614 2003-01-07  Bruno Haible  <bruno@clisp.org>
84615
84616         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84617         <inttypes.h>.
84618         * lib/xstrtol.h: Likewise.
84619         * lib/xstrtoimax.c: Likewise.
84620         * lib/xstrtoumax.c: Likewise.
84621         * lib/human.h: Likewise.
84622
84623         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84624         on systems that have <inttypes.h> but not <stdint.h>.
84625
84626 2003-01-07  Bruno Haible  <bruno@clisp.org>
84627
84628         * MODULES.html.sh: Add copyright notice.
84629         (missed_files): Omit CVS directory entries.
84630         (func_module): Make it work with sed-3.02.
84631         * MODULES.txt: Remove file.
84632
84633 2003-01-06  Jim Meyering  <jim@meyering.net>
84634
84635         * lib/version-etc.c: Update year in translatable copyright string.
84636
84637 2003-01-03  Karl Berry  <karl@gnu.org>
84638
84639         * config/config.{guess,sub}: update from prep.
84640
84641 2003-01-02  Karl Berry  <karl@gnu.org>
84642
84643         * doc/COPYING.DOC: belatedly updated to 1.2.
84644
84645 2003-01-01  Karl Berry  <karl@gnu.org>
84646
84647         * gnulib-tool (func_verify_module): report module name $module in
84648         error message, not $1.
84649         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84650         be created, only if it doesn't exist.
84651         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84652
84653 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84654
84655         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84656
84657 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84658
84659         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84660         memcmp if strcoll doesn't work.
84661
84662 2002-12-31  Bruno Haible  <bruno@clisp.org>
84663
84664         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84665         nonempty.
84666
84667 2002-12-31  Bruno Haible  <bruno@clisp.org>
84668
84669         * lib/memcoll.c (STRCOLL): New macro.
84670         (memcoll): Use it.
84671
84672 2002-12-31  Bruno Haible  <bruno@clisp.org>
84673
84674         * lib/localcharset.h: New file.
84675         * lib/localcharset.c: Include it.
84676         * lib/unicodeio.c: Likewise.
84677
84678 2002-12-31  Bruno Haible  <bruno@clisp.org>
84679
84680         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84681         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84682
84683 2002-12-31  Bruno Haible  <bruno@clisp.org>
84684
84685         * lib/getline.h: Include <stddef.h>, for size_t.
84686
84687         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84688         * lib/unicodeio.c: Don't include <stddef.h>.
84689
84690 2002-12-31  Bruno Haible  <bruno@clisp.org>
84691
84692         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84693         HAVE_TM_ZONE.
84694
84695 2002-12-24  Karl Berry  <karl@gnu.org>
84696
84697         * config/config.guess: update from prep.
84698
84699 2002-12-24  Bruno Haible  <bruno@clisp.org>
84700
84701         General infrasructure.
84702         * m4/README: Rewritten.
84703         * m4/onceonly.m4: New file.
84704         * m4/onceonly_2_57.m4: New file.
84705
84706         Module atexit.
84707         * m4/atexit.m4: New file.
84708
84709         Module strtod.
84710         * m4/strtod.m4: New file.
84711
84712         Module strtol.
84713         * m4/strtol.m4: New file.
84714
84715         Module strtoul.
84716         * m4/strtoul.m4: New file.
84717
84718         Module memchr.
84719         * m4/memchr.m4: New file.
84720
84721         Module memcmp.
84722         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84723         (jm_FUNC_MEMCMP): Invoke it.
84724
84725         Module memcpy.
84726         * m4/memcpy.m4: New file.
84727
84728         Module memmove.
84729         * m4/memmove.m4: New file.
84730
84731         Module memset.
84732         * m4/memset.m4: New file.
84733
84734         Module strcspn.
84735         * m4/strcspn.m4: New file.
84736
84737         Module strpbrk.
84738         * m4/strpbrk.m4: New file.
84739
84740         Module strstr.
84741         * m4/strstr.m4: New file.
84742
84743         Module strerror.
84744         * m4/strerror.m4: New file.
84745
84746         Module mktime.
84747         * m4/mktime.m4: Renamed from jm-mktime.m4.
84748         (gl_PREREQ_MKTIME): New macro.
84749         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84750
84751         Module malloc.
84752         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84753         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84754         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84755
84756         Module realloc.
84757         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84758         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84759         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84760
84761         Module strftime.
84762         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84763         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84764         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84765         gl_TM_GMTOFF.
84766         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84767
84768         Module xalloc.
84769         * m4/xalloc.m4: New file.
84770
84771         Module alloca.
84772         * m4/alloca.m4: New file.
84773
84774         Module putenv.
84775         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84776         (jm_FUNC_PUTENV): Invoke it.
84777
84778         Module setenv.
84779         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84780         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84781         when invoked twice.
84782         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84783         gt_FUNC_SETENV.
84784
84785         Module memrchr.
84786         * m4/memrchr.m4: New file.
84787
84788         Module stpcpy.
84789         * m4/stpcpy.m4: New file.
84790
84791         Module strcase.
84792         * m4/strcase.m4: New file.
84793
84794         Module strdup.
84795         * m4/strdup.m4: New file.
84796
84797         Module strnlen.
84798         * m4/strnlen.m4: New file.
84799
84800         Module strndup.
84801         * m4/strndup.m4: New file.
84802
84803         Module xstrtod.
84804         * m4/xstrtod.m4: New file.
84805
84806         Module xstrtol.
84807         * m4/xstrtol.m4: New file.
84808
84809         Module getdate.
84810         * m4/getdate.m4: New file.
84811
84812         Module unlocked-io.
84813         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84814         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84815         * m4/jm-glibc-io.m4n: Remove file.
84816
84817         Module long-options.
84818         * m4/long-options.m4: New file.
84819
84820         Module md5.
84821         * m4/md5.m4: New file.
84822
84823         Module sha.
84824         * m4/sha.m4: New file.
84825
84826         Module getstr.
84827         * m4/getstr.m4: New file.
84828
84829         Module getline.
84830         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84831         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84832         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84833         simply getline. Infoke gl_PREREQ_GETLINE.
84834
84835         Module obstack.
84836         * m4/obstack.m4: New file.
84837
84838         Module hash.
84839         * m4/hash.m4: New file.
84840
84841         Module readtokens.
84842         * m4/readtokens.m4: New file.
84843
84844         Module strverscmp.
84845         * m4/strverscmp.m4: New file.
84846
84847         Module stdbool.
84848         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84849         OSF/1.
84850
84851         Module strtoll.
84852         * m4/strtoll.m4: New file.
84853
84854         Module strtoull.
84855         * m4/strtoull.m4: New file.
84856
84857         Module strtoimax.
84858         * m4/strtoimax.m4: New file.
84859
84860         Module strtoumax.
84861         * m4/strtoumax.m4: New file.
84862
84863         Module xstrtoimax.
84864         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84865         jm_AC_PREREQ_XSTRTOIMAX.
84866         Moved the strtol prerequisites to strtol.m4.
84867         Moved the strtoll prerequisites to strtoll.m4.
84868         Moved the strtoimax prerequisites to strtoimax.m4.
84869
84870         Module xstrtoumax.
84871         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84872         jm_AC_PREREQ_XSTRTOUMAX.
84873         Moved the strtoul prerequisites to strtoul.m4.
84874         Moved the strtoull prerequisites to strtoull.m4.
84875         Moved the strtoumax prerequisites to strtoumax.m4.
84876
84877         Module chown.
84878         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84879         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84880
84881         Module dup2.
84882         * m4/dup2.m4: New file.
84883
84884         Module ftruncate.
84885         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84886         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84887
84888         Module getgroups.
84889         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84890         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84891
84892         Module gettimeofday.
84893         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84894         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84895         gl_PREREQ_GETTIMEOFDAY.
84896
84897         Module mkdir.
84898         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84899         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84900
84901         Module mkstemp.
84902         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84903         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84904         jm_AC_TYPE_UINTMAX_T.
84905         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84906
84907         Module stat.
84908         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84909         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84910
84911         Module lstat.
84912         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84913         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84914
84915         Module timespec.
84916         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84917         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84918         * m4/st_mtim.m4: Indentation.
84919
84920         Module nanosleep.
84921         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84922         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84923         gl_PREREQ_NANOSLEEP.
84924
84925         Module regex.
84926         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84927         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84928         (gl_REGEX): New macro.
84929
84930         Module rename.
84931         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84932         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84933
84934         Module rmdir.
84935         * m4/rmdir.m4: New file.
84936
84937         Module utime.
84938         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84939         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84940         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84941
84942         Module dirname.
84943         * m4/dirname.m4: New file.
84944
84945         Module getopt.
84946         * m4/getopt.m4: New file.
84947
84948         Module unistd-safer.
84949         * m4/unistd-safer.m4: New file.
84950
84951         Module fnmatch.
84952         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84953         declaration.
84954         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84955         (gl_FUNC_FNMATCH_POSIX): New macro.
84956         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84957         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84958         simply fnmatch.
84959
84960         Module exclude.
84961         * m4/exclude.m4: New file.
84962
84963         Module human.
84964         * m4/human.m4: New file.
84965
84966         Module acl.
84967         * m4/acl.m4: Nop.
84968
84969         Module backupfile.
84970         * m4/backupfile.m4: New file.
84971         * m4/d-ino.m4: Indentation.
84972
84973         Module fsusage.
84974         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84975         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84976         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84977
84978         Module dirfd.
84979         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84980         requirements.
84981
84982         Module euidaccess.
84983         * m4/euidaccess.m4: New file.
84984
84985         Module file-type.
84986         * m4/file-type.m4: New file.
84987
84988         Module fileblocks.
84989         * m4/fileblocks.m4: New file.
84990
84991         Module filemode.
84992         * m4/filemode.m4: New file.
84993
84994         Module isdir.
84995         * m4/isdir.m4: New file.
84996
84997         Module lchown.
84998         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84999         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85000
85001         Module makepath.
85002         * m4/makepath.m4: New file.
85003
85004         Module modechange.
85005         * m4/modechange.m4: New file.
85006
85007         Module mountlist.
85008         * m4/mountlist.m4: New file.
85009         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85010         Indentation.
85011
85012         Module path-concat.
85013         * m4/path-concat.m4: New file.
85014
85015         Module pathmax.
85016         * m4/pathmax.m4: New file.
85017
85018         Module same.
85019         * m4/same.m4: New file.
85020
85021         Module save-cwd.
85022         * m4/save-cwd.m4: New file.
85023
85024         Module savedir.
85025         * m4/savedir.m4: New file.
85026
85027         Module xgetcwd.
85028         * m4/xgetcwd.m4: New file.
85029         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85030
85031         Module xreadlink.
85032         * m4/xreadlink.m4: New file.
85033
85034         Module safe-read.
85035         * m4/safe-read.m4: New file.
85036
85037         Module safe-write.
85038         * m4/safe-write.m4: New file.
85039
85040         Module closeout.
85041         * m4/closeout.m4: New file.
85042
85043         Module stdio-safer.
85044         * m4/stdio-safer.m4: New file.
85045
85046         Module getpass.
85047         * m4/getpass.m4: New file.
85048
85049         Module getugroups.
85050         * m4/getugroups.m4: New file.
85051
85052         Module group-member.
85053         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85054         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85055
85056         Module idcache.
85057         * m4/idcache.m4: New file.
85058
85059         Module userspec.
85060         * m4/userspec.m4: New file.
85061
85062         Module gettime.
85063         * m4/clock_time.m4: New file.
85064         * m4/gettime.m4: New file.
85065
85066         Module settime.
85067         * m4/settime.m4: New file.
85068
85069         Module posixtm.
85070         * m4/posixtm.m4: New file.
85071
85072         Module gethostname.
85073         * m4/gethostname.m4: New file.
85074
85075         Module canon-host.
85076         * m4/canon-host.m4: New file.
85077
85078         Module gettext.
85079         * m4/codeset.m4: New file, from gettext-0.11.5.
85080         * m4/gettext.m4: New file, from gettext-0.11.5.
85081         * m4/glibc21.m4: New file, from gettext-0.11.5.
85082         * m4/iconv.m4: New file, from gettext-0.11.5.
85083         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85084         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85085         * m4/inttypes.m4: New file, from gettext-0.11.5.
85086         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85087         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85088         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85089         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85090         * m4/lib-link.m4: New file, from gettext-0.11.5.
85091         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85092         * m4/progtest.m4: New file, from gettext-0.11.5.
85093         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85094         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85095         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85096
85097         Module localcharset.
85098         * m4/localcharset.m4: New file.
85099
85100         Module hard-locale.
85101         * m4/hard-locale.m4: New file.
85102
85103         Module mbswidth.
85104         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85105         onceonly macros.
85106         * m4/mbrtowc.m4: Add comment.
85107
85108         Module memcasecmp.
85109         * m4/memcasecmp.m4: New file.
85110
85111         Module memcoll.
85112         * m4/memcoll.m4: New file.
85113
85114         Module unicodeio.
85115         * m4/unicodeio.m4: New file.
85116
85117         Module rpmatch.
85118         * m4/rpmatch.m4: New file.
85119
85120         Module yesno.
85121         * m4/yesno.m4: New file.
85122
85123         Module exitfail.
85124         * m4/exitfail.m4: New file.
85125
85126         Module c-stack.
85127         * m4/c-stack.m4 (gl_C_STACK): New macro.
85128         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85129
85130         Module error.
85131         * m4/error.m4 (gl_ERROR): New macro.
85132         (jm_PREREQ_ERROR): Use onceonly macros.
85133
85134         Module fatal.
85135         * m4/fatal.m4: New file.
85136
85137         Module getloadavg.
85138         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85139         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85140
85141         Module getpagesize.
85142         * m4/getpagesize.m4: New file.
85143
85144         Module getusershell.
85145         * m4/getusershell.m4: New file.
85146
85147         Module physmem.
85148         * m4/physmem.m4: New file.
85149
85150         Module posixver.
85151         * m4/posixver.m4: New file.
85152
85153         Module quotearg.
85154         * m4/quotearg.m4: New file.
85155
85156         Module quote.
85157         * m4/quote.m4: New file.
85158
85159         Module readutmp.
85160         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85161
85162         Module sig2str.
85163         * m4/sig2str.m4: New file.
85164
85165         Other.
85166         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85167         ulonglong.m4.
85168         * m4/intmax_t.m4: New file.
85169         * m4/d-type.m4: Indentation.
85170         * m4/jm-macros.m4: Update.
85171         * m4/prereq.m4 (jm_PREREQ): Update.
85172         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85173         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85174         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85175         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85176         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85177         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85178         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85179         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85180         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85181         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85182         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85183         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85184         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85185         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85186         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85187         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85188         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85189         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85190         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85191
85192 2002-12-24  Bruno Haible  <bruno@clisp.org>
85193
85194         * MODULES.txt: Update according to m4/ changes.
85195
85196         Module gettext.
85197         * config.rpath: New file, from gettext-0.11.5.
85198
85199         * modules/*: New module descriptions.
85200         * gnulib-tool: New file.
85201         * MODULES.html.sh: New file.
85202
85203 2002-12-21  Karl Berry  <karl@gnu.org>
85204
85205         * doc/fdl.texi: update to version 1.2.
85206
85207 2002-12-19  Karl Berry  <karl@gnu.org>
85208
85209         * config/config.guess: update from prep.
85210
85211 2002-12-18  Bruno Haible  <bruno@clisp.org>
85212
85213         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85214         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85215
85216 2002-12-17  Bruno Haible  <bruno@clisp.org>
85217
85218         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85219         stdlib.h, string.h.
85220
85221 2002-12-17  Bruno Haible  <bruno@clisp.org>
85222
85223         * lib/canon-host.c (strdup): Remove unused declaration.
85224
85225         * lib/fsusage.c: Include full_read.h.
85226         (get_fs_usage): Use full_read instead of safe_read.
85227
85228         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85229
85230 2002-12-12  Karl Berry  <karl@gnu.org>
85231
85232         * config/config.guess: update from prep.
85233
85234 2002-12-11  Bruno Haible  <bruno@clisp.org>
85235
85236         * m4/setenv.m4: New file, from gettext-0.11.5.
85237
85238 2002-12-11  Bruno Haible  <bruno@clisp.org>
85239
85240         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85241         not unsetenv().
85242         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85243         modifications:
85244
85245         2002-12-11  Bruno Haible  <bruno@clisp.org>
85246
85247                 * setenv.c (alloca): Fall back to malloc.
85248                 (freea): New macro.
85249                 (setenv): Use freea() to free memory allocated with alloca().
85250
85251         2002-11-13  Bruno Haible  <bruno@clisp.org>
85252
85253                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85254                 function declarations.
85255                 * unsetenv.c (unsetenv): Likewise.
85256
85257         2002-03-04  Bruno Haible  <bruno@clisp.org>
85258
85259                 Portability to AIX 4.3.3.
85260                 * unsetenv.c: New file, extracted from setenv.c.
85261                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85262
85263         2001-12-20  Bruno Haible  <bruno@clisp.org>
85264
85265                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85266                 use malloc instead. For SunOS 4.
85267
85268         2001-12-11  Bruno Haible  <bruno@clisp.org>
85269
85270                 * setenv.c: Declare alloca.
85271                 (compar_fn_t): New typedef.
85272                 (KNOWN_VALUE, STORE_VALUE): Use it.
85273
85274         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85275         setenv.h.
85276
85277 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85278
85279         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85280         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85281         Choose values that are less likely to collide with system fnmatch
85282         options.
85283         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85284         defined (e.g., a pure POSIX system).
85285         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85286         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85287
85288 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85289
85290         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85291         a pain in practice to deal with generated m4 files.  This change
85292         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85293
85294         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85295         and jm-glibc-io.m4, as they are no longer a special case.
85296         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85297         kludge and the auto-generation stuff.  Check only whether the
85298         functions are declared, not whether they exist, since older hosts
85299         that don't declare the functions can't use the optimization anyway.
85300
85301 2002-12-06  Jim Meyering  <jim@meyering.net>
85302
85303         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85304
85305         Merge in changes from libc's misc/error.c, in preparation
85306         for the merge of gnulib's changes back into libc.
85307
85308         * lib/error.c (_): Define only if not already defined.
85309         Move definition to follow all #include directives.
85310         Include unlocked-io.h only if !_LIBC.
85311         [_LIBC]: Include <libio/libioP.h>.
85312         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85313         (fflush): Tweak definition to use INTUSE.
85314         (putc): Define.
85315
85316 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85317
85318         * lib/alloca.c [defined emacs]: Include "lisp.h".
85319         (xalloc_die) [defined emacs]: New macro.
85320         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85321         [! defined emacs]: Include <xalloc.h>.
85322         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85323         (pointer): Typedef to POINTER_TYPE *.
85324         (malloc): Remove decl; we now always use xmalloc.
85325         (alloca): Use old-style definition, since Emacs needs this.
85326         Check for arithmetic overflow when computing combined size.
85327
85328 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85329
85330         Do not generate unlocked-io.h automatically, since it's easier to
85331         maintain it by hand.
85332
85333         * lib/unlocked-io.h: New file, from GNU diffutils,
85334         but with proper copyright notice and attribution.
85335         * lib/gen-uio: Remove.
85336         * lib/Makefile.am: Add copyright notice.
85337         (libfetish_a_SOURCES): Add unlocked-io.h.
85338         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85339         (DISTCLEANFILES, io_functions): Remove macros.
85340         (EXTRA_DIST): Remove gen_uio.
85341         (unlocked-io.h): Remove rule.
85342
85343 2002-12-04  Jim Meyering  <jim@meyering.net>
85344
85345         Reflect the fact that stat.c and lstat.c are no longer generated.
85346         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85347         (DISTCLEANFILES): Likewise.
85348         (EXTRA_DIST): Likewise.
85349         (all_local): Don't depend on stat.c or lstat.c.
85350         (stat.c, lstat.c): Remove rules.
85351         (EXTRA_DIST): Remove xstat.in.
85352
85353         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85354         * lib/stat.c: New file.  Contents mostly from xstat.in.
85355         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85356         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85357
85358         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85359         too.
85360         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85361
85362 2002-12-03  Jim Meyering  <jim@meyering.net>
85363
85364         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85365         but not semantics, to minimize the differences between these two files.
85366         (safe_read): Change comment to mention SAFE_READ_ERROR.
85367
85368         * lib/safe-read.c (IS_EINTR): Define.
85369         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85370
85371 2002-12-02  Jim Meyering  <jim@meyering.net>
85372
85373         * lib/safe-read.c (EINTR): Define.
85374         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85375         (INT_MAX): Provide fallback.
85376         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85377
85378         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85379
85380 2002-12-02  Bruno Haible  <bruno@clisp.org>
85381
85382         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85383         Define, taken from safe-read.c.
85384         (INT_MAX): Provide fallback.
85385         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85386         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85387
85388         * lib/safe-read.c (EINTR): Remove definition.
85389         (safe_read): Don't use EINTR if it is absent.
85390
85391 2002-12-01  Jim Meyering  <jim@meyering.net>
85392
85393         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85394         zero.
85395         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85396
85397 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85398
85399         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85400         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85401         with `if (! (value < limit)) abort ();', for readability.
85402
85403 2002-11-26  Karl Berry  <karl@gnu.org>
85404
85405         * lib/strdup.c: copy from libc again, with jim's ok.
85406         * lib/.cppi-disable: re-add strdup.c
85407
85408 2002-11-25  Karl Berry  <karl@gnu.org>
85409
85410         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85411         instead of "strtol.c".
85412
85413 2002-11-25  Karl Berry  <karl@gnu.org>
85414
85415         * config/install-sh: update from automake for variable quoting, $0 in
85416         error msgs, etc.
85417
85418         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85419         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85420         entry.
85421
85422 2002-11-25  Jim Meyering  <jim@meyering.net>
85423
85424         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85425
85426 2002-11-24  Karl Berry  <karl@gnu.org>
85427
85428         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85429         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85430
85431 2002-11-24  Jim Meyering  <jim@meyering.net>
85432
85433         Update from coreutils:
85434
85435         * lib/mktime.c: Merge in changes from libc.
85436
85437         Avoid a link-time failure on some Linux systems.
85438         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85439         (otherwise).
85440         (__mon_yday): Declare with the STATIC attribute.
85441         (__mktime_internal): Likewise.
85442         Based on a report from Greg Schafer.
85443
85444 2002-11-23  Jim Meyering  <jim@meyering.net>
85445
85446         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85447         Use `unsigned', not `int', as type of index.
85448
85449         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85450
85451         * lib/fsusage.c: Remove unneeded parentheses around operands of
85452         `defined'.
85453
85454 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85455
85456         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85457         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85458         so that we can be included first.
85459         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85460         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85461         No need to include stddef.h or sys/types.h any more.
85462         Surround local include files with "", not "<>".
85463         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85464         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85465         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85466         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85467         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85468         (ISPRINT): Remove; no longer needed now that we assume C89.
85469
85470         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85471         Preserve errno.
85472
85473         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85474         quotearg_char): Use SIZE_MAX rather than
85475         (size_t) -1 when we are talking about "infinity".
85476
85477         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85478
85479 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85480
85481         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85482         hint that one should use `if (! x) abort ();' rather than `assert
85483         (x);', and anyway it's one less thing to worry about configuring.
85484         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85485         hash_rehash, hash_insert): Use abort rather than assert.
85486
85487 2002-11-22  Bruno Haible  <bruno@clisp.org>
85488
85489         * lib/safe-read.h: Assume C89. Add comments.
85490         (safe_read): Change return type to size_t.
85491         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85492         byte counts > SSIZE_MAX correctly.
85493         * lib/safe-write.h: New file.
85494         * lib/safe-write.c: New file.
85495         * lib/full-read.h: New file.
85496         * lib/full-read.c: New file.
85497         * lib/full-write.h: Assume C89. Add comments.
85498         * lib/full-write.c: Include safe-write.h.
85499         (full_write): Rewritten to use safe_write.
85500         Suggested by Jim Meyering and Paul Eggert.
85501
85502 2002-11-21  Jim Meyering  <jim@meyering.net>
85503
85504         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85505
85506         Merge in changes from the coreutils.
85507
85508         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85509         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85510         <stdint.h>.
85511         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85512         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85513         int.  Work more efficiently if X is the same width as uintmax_t.
85514         Do not compare X to -1, to avoid bogus compiler warning.
85515         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85516         Don't assume that f_frsize and f_bsize are the same type.
85517
85518         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85519         warning on FreeBSD.
85520
85521         * lib/makepath.c (make_path): Restore umask *before* creating the final
85522         component.
85523         (make_path): Minor reformatting.
85524
85525         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85526         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85527         HAVE_MALLOC/HAVE_REALLOC.
85528
85529         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85530         dummy ones.  At least on GNU/Linux systems, `auto' means something
85531         else.
85532         From Michael Stone.
85533
85534 2002-11-21  Bruno Haible  <bruno@clisp.org>
85535
85536         Remove case insensitive option matching.
85537         * lib/argmatch.h (argcasematch): Remove declaration.
85538         (ARGCASEMATCH): Remove macro.
85539         (__xargmatch_internal): Remove case_sensitive argument.
85540         (XARGMATCH): Update.
85541         (XARGCASEMATCH): Remove macro.
85542         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85543         case_sensitive argument.
85544         (argcasematch): Remove function.
85545         (__xargmatch_internal): Remove case_sensitive argument.
85546         (main): Use XARGMATCH instead of XARGCASEMATCH.
85547
85548         * lib/xmalloc.c: Change compile-time error message. Add comment about
85549         required autoconf version.
85550
85551 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85552
85553         Merge argmatch cleanups from Bison.  Assume C89.
85554
85555         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85556         Include stdlib.h, for EXIT_FAILURE.
85557         Always include <string.h>, since we assume C89.
85558         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85559         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85560         Include <stddef.h> instead, since it's all we need for size_t.
85561         (PARAMS): Remove.  All uses removed.
85562         (ARRAY_CARDINALITY): Do not bother to #undef.
85563         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85564         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85565         Remove unnecessary parentheses.
85566         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85567         Insert necessary parentheses.
85568         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85569         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85570
85571 2002-11-19  Bruno Haible  <bruno@clisp.org>
85572
85573         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85574         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85575
85576         * lib/mbswidth.h (PARAMS): Remove macro.
85577         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85578         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85579
85580         * lib/gcd.h (PARAMS): Remove macro.
85581         (gcd): Use ANSI C function declarations.
85582         * lib/gcd.c (gcd): Likewise.
85583
85584 2002-11-15  Bruno Haible  <bruno@clisp.org>
85585
85586         * lib/strcspn.c: Include <stddef.h>.
85587         (strcspn): Use ANSI C function declaration. Change return type to
85588         size_t. Use NULL.
85589         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85590         (strpbrk): Use NULL.
85591         * lib/strpbrk.h (PARAMS): Remove macro.
85592         (strpbrk): Use ANSI C function declaration.
85593         * lib/strstr.c: Don't include <sys/types.h>.
85594         * lib/strstr.h (PARAMS): Remove macro.
85595         (strstr): Use ANSI C function declarations.
85596
85597 2002-11-14  Karl Berry  <karl@gnu.org>
85598
85599         * config/mkinstalldirs: `do' on separate line, instead of
85600         `for var; do'.
85601
85602 2002-11-06  Bruno Haible  <bruno@clisp.org>
85603
85604         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85605         * lib/gcd.c (gcd): Likewise.
85606
85607 2002-11-05  Bruno Haible  <bruno@clisp.org>
85608
85609         * lib/gcd.h: New file, from gettext-0.11.5.
85610         * lib/gcd.c: New file, from gettext-0.11.5.
85611
85612 2002-11-05  Bruno Haible  <bruno@clisp.org>
85613
85614         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85615         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85616         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85617         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85618
85619         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85620         <libintl.h>.
85621         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85622         <libintl.h>.
85623
85624         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85625         * lib/human.c: Include gettext.h instead of <libintl.h>.
85626         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85627         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85628         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85629         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85630         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85631         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85632         (textdomain): Remove definition.
85633         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85634
85635         * lib/long-options.c: Remove include of <libintl.h> and definition of
85636         _.
85637         * lib/same.c: Remove include of <libintl.h> and definition of _.
85638
85639 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85640
85641         * lib/config.charset: A few additions for Solaris.
85642
85643 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85644
85645         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85646         * lib/localcharset.c (locale_charset): Declare as extern "C".
85647
85648 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85649
85650         * lib/config.charset: msdos in uk_UA uses CP1125.
85651
85652 2002-11-04  Bruno Haible  <bruno@clisp.org>
85653
85654         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85655         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85656         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85657         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85658         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85659
85660 2002-11-04  Bruno Haible  <bruno@clisp.org>
85661
85662         * lib/localcharset.c (locale_charset): Don't return an empty string.
85663
85664 2002-11-04  Bruno Haible  <bruno@clisp.org>
85665
85666         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85667         aliases.
85668
85669 2002-11-04  Bruno Haible  <bruno@clisp.org>
85670
85671         * lib/config.charset: Update for newest glibc. Add canonical names
85672         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85673
85674 2002-11-04  Bruno Haible  <bruno@clisp.org>
85675
85676         * lib/config.charset: Add support for NetBSD.
85677
85678 2002-11-04  Bruno Haible  <bruno@clisp.org>
85679
85680         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85681
85682 2002-11-01  Bruno Haible  <bruno@clisp.org>
85683
85684         * configure.in: Add AC_CONFIG_AUX_DIR call.
85685         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85686         test/Makefile.
85687         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85688
85689 2002-09-28  Karl Berry  <karl@gnu.org>
85690
85691         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85692         installed automake until the next release, since changes have been
85693         made.
85694
85695 2002-09-25  Karl Berry  <karl@gnu.org>
85696
85697         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85698         * lib/getopt*: copy from libc/posix.
85699         * lib/gettext.h: copy from gettext.
85700         * lib/.cppi-disable: add strdup.c, gettext.h.
85701
85702 2002-09-25  Karl Berry  <karl@gnu.org>
85703
85704         * config/srclist.txt: enable gettext.h check.
85705         * config/config.{guess,sub}: update from prep.
85706         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85707                 from automake 1.6.3.
85708         See srclist*.
85709
85710 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85711
85712         * regex.c (PATFETCH): Remove the translating fetch.
85713         (PATFETCH_RAW): Rename to PATFETCH.
85714         (set_image_of_range): New fun.
85715         (SET_RANGE_TABLE_WORK_AREA): Use it.
85716         (regex_compile): Don't translate the pattern chars so eagerly.
85717         Only do it when inserting an `exactn' bytecode or when handling
85718         a char-range.
85719         (mutually_exclusive_p): Avoid empty statement.
85720
85721 2002-07-06  Jim Meyering  <meyering@lucent.com>
85722
85723         * m4/README: Don't mention Makefile.am.in.
85724         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85725
85726 2002-07-01  Jim Meyering  <meyering@lucent.com>
85727
85728         * lib/c-stack.c: Include sys/time.h.
85729         From Volker Borchert.
85730
85731 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85732
85733         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85734
85735 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85736
85737         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85738         New macro.  Use it uniformly instead of
85739         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85740         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85741         reported by Vin Shelton.
85742
85743 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85744
85745         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85746         Do not assume SA_SIGINFO behavior.
85747         Bug reported by Jim Meyering on NetBSD 1.5.2.
85748
85749 2002-06-22  Jim Meyering  <meyering@lucent.com>
85750
85751         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85752         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85753
85754         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85755         now that configure.ac uses AC_GNU_SOURCE.
85756         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85757         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85758
85759         Update to latest tools.  Suggestions from Paul Eggert.
85760         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85761         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85762         * m4/fnmatch.m4: Likewise.
85763         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85764         to AC_HEADER_STDBOOL
85765
85766 2002-06-22  Jim Meyering  <meyering@lucent.com>
85767
85768         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85769         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85770
85771 2002-06-22  Jim Meyering  <meyering@lucent.com>
85772
85773         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85774
85775         * lib/exitfail.c, exitfail.h: Likewise.
85776         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85777
85778         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85779         of fnmatch.h.
85780         (EXTRA_DIST): Add fnmatch_loop.c.
85781         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85782
85783         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85784         * lib/fnmatch.c: Update from diffutils-2.8.2.
85785         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85786         * lib/fnmatch.h: Remove file.
85787
85788 2002-06-21  Jim Meyering  <meyering@lucent.com>
85789
85790         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85791         * m4/mbrtowc.m4: Likewise.
85792
85793         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85794         * m4/mbswidth.m4: Reflect name change:
85795         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85796         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85797
85798         * m4/lib-link.m4: Update from gettext-0.11.2.
85799         * m4/gettext.m4: Likewise.
85800
85801         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85802         From Alfred M. Szmidt.
85803
85804 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85805
85806         * lib/file-type.h: Report an error if neither S_ISREG nor
85807         S_IFREG is defined, instead of using a test specific to glibc
85808         2.2.  This should be safe, since POSIX requires S_ISREG and
85809         Unix Version 7 had S_IFREG.  We don't need to check for
85810         <sys/types.h> since we don't use any symbols that it defines.
85811
85812 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85813
85814         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85815         $@-t, so that each temporary file name is unique and valid in the first
85816         8 characters, for operation under DOS.
85817
85818 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85819
85820         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85821
85822 2002-06-15  Jim Meyering  <meyering@lucent.com>
85823
85824         Work even with DJGPP 2.03, which lacks support for symlinks.
85825         From Richard Dawe.
85826         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85827         is defined.
85828         * lib/lchown.c (S_ISLNK): Likewise.
85829
85830 2002-06-15  Jim Meyering  <meyering@lucent.com>
85831
85832         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85833         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85834         have been included before this file.
85835
85836 2002-06-14  Jim Meyering  <meyering@lucent.com>
85837
85838         * lib/file-type.h: Use the version from diffutils-2.8.2.
85839         * lib/file-type.c: Likewise.
85840
85841 2002-06-07  Jim Meyering  <meyering@lucent.com>
85842
85843         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85844         They're needed at least for NetBSD 1.5.2.
85845         ($statxfs_includes): Include those same headers.
85846         ($statxfs_includes): Include sys/vfs.h if available.
85847         ($statxfs_includes): Likewise for sys/statvfs.h.
85848         Check for the following members in both structs statfs and statvfs:
85849         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85850
85851 2002-06-01  Jim Meyering  <meyering@lucent.com>
85852
85853         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85854         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85855
85856 2002-05-28  Jim Meyering  <meyering@lucent.com>
85857
85858         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85859         Reported by Volker Borchert.
85860
85861 2002-05-27  Jim Meyering  <meyering@lucent.com>
85862
85863         Fix a problem seen only on nonconforming systems whereby ls.c's
85864         use of localtime, and then of gettimeofday would cause trouble:
85865         the localtime call used to initialize rpl_gettimeofday's save
85866         mechanism would clobber ls's current local time information so
85867         that in any long listing the first file would always be listed
85868         with date 1970-01-01.  Analysis by Volker Borchert.
85869
85870         * lib/gettimeofday.c (localtime): Undefine.
85871         (rpl_localtime): New function.
85872
85873 2002-05-27  Jim Meyering  <meyering@lucent.com>
85874
85875         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85876         localtime.
85877
85878         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85879         use the replacement function; it wouldn't resolve at link time.
85880         Reported by Volker Borchert.
85881
85882 2002-05-22  Jim Meyering  <meyering@lucent.com>
85883
85884         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85885         file-type.h.
85886         * lib/file-type.h: New file.
85887         * lib/file-type.c (file_type): New file/function.  Extracted from
85888         diffutils.
85889
85890 2002-04-30  Jim Meyering  <meyering@lucent.com>
85891
85892         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85893
85894 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85895
85896         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85897
85898 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85899
85900         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85901         Do not check for alloca.h (no longer used) or stdbool.h (was never
85902         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85903
85904 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85905
85906         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85907
85908 2002-04-29  Jim Meyering  <meyering@lucent.com>
85909
85910         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85911         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85912         Use AC_FUNC_STRNLEN here instead.
85913
85914         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85915         With autoconf-2.53a, it's part of AC_PROG_CC.
85916
85917 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85918
85919         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85920         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85921
85922 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85923
85924         * lib/sig2str.h, lib/sig2str.c: New files.
85925         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85926
85927 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85928
85929         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85930         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85931         of 127, since 64 is the largest conceivable number for ancient
85932         nonstandard hosts.
85933         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85934
85935 2002-04-28  Jim Meyering  <meyering@lucent.com>
85936
85937         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85938
85939 2002-04-24  Jim Meyering  <meyering@lucent.com>
85940
85941         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85942         (jm_PREREQ): Use it.
85943
85944         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85945         mach/mach.h fcntl.h.
85946         Check for this function: setlocale.
85947
85948 2002-04-24  Jim Meyering  <meyering@lucent.com>
85949
85950         * lib/gettext.h: New file, from Gettext.
85951         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85952         (libfetish_a_SOURCES): Add gettext.h.
85953
85954 2002-04-16  Jim Meyering  <meyering@lucent.com>
85955
85956         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85957         ut_pid, ut_id, ut_exit.
85958
85959 2002-04-16  Jim Meyering  <meyering@lucent.com>
85960
85961         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85962         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85963         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85964
85965 2002-04-12  Jim Meyering  <meyering@lucent.com>
85966
85967         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85968         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85969         existence of the getmntinfo function.  Needed for Darwin 5.3.
85970
85971         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85972         This is necessary at least on Darwin 5.3.
85973
85974         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85975         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85976         strnlen.o in the library, and that makes some versions of ranlib
85977         object.
85978
85979 2002-04-12  Jim Meyering  <meyering@lucent.com>
85980
85981         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85982
85983 2002-04-09  Jim Meyering  <meyering@lucent.com>
85984
85985         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85986         to be more precise.  Rather than saying we're checking whether the
85987         function `works', say what we're testing.
85988         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85989         Reported by Bruno Haible.
85990
85991 2002-03-10  Jim Meyering  <meyering@lucent.com>
85992
85993         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85994         Suggestion from Santiago Vila.
85995
85996 2002-03-08  Jim Meyering  <meyering@lucent.com>
85997
85998         * lib/rename.c: Mention that this wrapper is needed also on
85999         mips-dec-ultrix4.4 systems.
86000
86001 2002-03-02  Jim Meyering  <meyering@lucent.com>
86002
86003         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86004         not HAVE_CLOCK_SETTIME.
86005
86006 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86007
86008         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86009         Check for clock_settime.
86010
86011 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86012
86013         * lib/nanosleep.h: Rename to....
86014         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86015
86016         * lib/gettime.c: New file.
86017         * lib/settime.c: New file.
86018         * lib/stime.c: Remove.
86019
86020         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86021         timespec.h.  Remove nanosleep.h.
86022
86023 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86024
86025         * m4/acl.m4: New file.
86026         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86027         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86028
86029 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86030
86031         * lib/acl.c, lib/acl.h: New files.
86032         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86033
86034 2002-02-24  Jim Meyering  <meyering@lucent.com>
86035
86036         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86037         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86038         cause trouble.  Reported by Nelson Beebe.
86039
86040 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86041
86042         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86043         compilers that don't know that xalloc_die never returns.
86044
86045 2002-02-20  Jim Meyering  <meyering@lucent.com>
86046
86047         * lib/getdate.c: Regenerate using bison-1.33.
86048
86049 2002-02-17  Jim Meyering  <meyering@lucent.com>
86050
86051         * config/config.guess (main): Don't use `head -1'; it's no longer
86052         portable. Use `sed 1q' instead.
86053
86054 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86055
86056         * m4/codeset.m4: Upgrade to gettext-0.11.
86057         * m4/gettext.m4: Upgrade to gettext-0.11.
86058         * m4/glibc21.m4: Upgrade to gettext-0.11.
86059         * m4/iconv.m4: Upgrade to gettext-0.11.
86060         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86061         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86062         * m4/lib-ld.m4: New file, from gettext-0.11.
86063         * m4/lib-link.m4: New file, from gettext-0.11.
86064         * m4/lib-prefix.m4: New file, from gettext-0.11.
86065         * m4/progtest.m4: Upgrade to gettext-0.11.
86066
86067 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86068
86069         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86070         (jm_PREREQ): Use it.
86071
86072 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86073
86074         * lib/posixver.c, lib/posixver.h: New files.
86075         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86076
86077 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86078             Bruno Haible  <bruno@clisp.org>
86079
86080         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86081         (fwrite_success_callback): New declaration.
86082         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86083         print_unicode_char. Call failure callback instead of error.
86084         (fwrite_success_callback): New function.
86085         (exit_failure_callback): New function.
86086         (fallback_failure_callback): New function.
86087         (print_unicode_char): Call unicode_to_mb.
86088
86089 2002-01-26  Jim Meyering  <meyering@lucent.com>
86090
86091         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86092         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86093
86094 2002-01-26  Jim Meyering  <meyering@lucent.com>
86095
86096         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86097
86098 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86099
86100         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86101
86102 2002-01-22  Jim Meyering  <meyering@lucent.com>
86103
86104         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86105         Otherwise, some versions of automake would omit the rule that makes
86106         Makefile from Makefile.in.
86107
86108 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86109
86110         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86111         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86112         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86113         (memcoll): Set errno to zero if there is no error.
86114
86115         * lib/quotearg.c (quotearg_buffer_restyled):
86116         Fix bug with quoting buffers containing NUL when backslashing escapes.
86117         This bug was exposed by the other changes in this patch.
86118         (quotearg_n_options): New arg ARGSIZE.
86119         All callers changed.
86120         (quoting_options_from_style): New function.
86121         (quotearg_n_style): Use it.
86122         (quotearg_n_style_mem): New function.
86123
86124         * lib/quotearg.h (quotearg_n_style_mem): New function.
86125
86126 2002-01-19  Jim Meyering  <meyering@lucent.com>
86127
86128         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86129         Remove useless quotes: DF_PROG="df".
86130         * m4/strnlen.m4: New file.
86131
86132 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86133
86134         * lib/backupfile.c (ISDIGIT): Comment fix.
86135         * lib/getdate.y (ISDIGIT): Likewise.
86136         * lib/posixtm.c (ISDIGIT, year): Likewise.
86137         * lib/strverscmp.c (ISDIGIT): Likewise.
86138         * lib/userspec.c (ISDIGIT): Likewise.
86139
86140 2002-01-16  Jim Meyering  <meyering@lucent.com>
86141
86142         * lib/getdate.y: Add three semicolons, each just before a closing
86143         brace. Bison (as of version 1.31) no longer papers over that mistake.
86144
86145 2002-01-05  Jim Meyering  <meyering@lucent.com>
86146
86147         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86148
86149 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86150
86151         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86152         not silently exit merely because the output buffer happens to
86153         have nothing pending.
86154
86155 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86156
86157         See the big note in ../ChangeLog.
86158         * lib/human.c (suffixes): Prefer K to k for 1024.
86159         (generate_suffix_backwards): New function.
86160         (human_readable_inexact): Use it.
86161         * lib/xstrtol.c (__xstrtol): If there is no number but there
86162         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86163         Accept 'K' as well as 'k'.
86164
86165 2001-12-15  Jim Meyering  <meyering@lucent.com>
86166
86167         * lib/regex.h (__restrict_arr): Update from libc.
86168
86169         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86170         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86171         (STREQ): Define.
86172
86173 2001-12-14  Jim Meyering  <meyering@lucent.com>
86174
86175         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86176         Suggestion from Bruno Haible.
86177
86178 2001-12-10  Jim Meyering  <meyering@lucent.com>
86179
86180         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86181         xrealloc, Instead, include "xalloc.h".
86182         (initbuffer): Don't cast xmalloc return value to char*.
86183         (readline): Reword comment.
86184         Don't cast xrealloc return value to char*
86185         Return NULL, not 0.
86186
86187 2001-12-09  Jim Meyering  <meyering@lucent.com>
86188
86189         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86190         about `signed and unsigned type in conditional expression'.
86191         * lib/posixtm.c (posix_time_parse): Likewise.
86192
86193         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86194
86195         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86196         to avoid a pedantic warning.
86197
86198         * lib/getstr.c: Don't include assert.h.
86199         (getstr): Remove warning-evoking assertions.
86200         Return -1 if offset parameter is out of bounds.
86201         Change the type of a local from int to size_t.
86202
86203         * lib/strftime.c (my_strftime_localtime_r): Include this function
86204         definition in the `#if ! HAVE_TM_GMTOFF' block.
86205
86206         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86207         Include xalloc.h instead.
86208
86209 2001-12-02  Jim Meyering  <meyering@lucent.com>
86210
86211         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86212         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86213         included.
86214
86215         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86216         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86217
86218 2001-11-30  Akim Demaille  <akim@epita.fr>
86219
86220         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86221         before being defined.
86222
86223 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86224
86225         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86226         First arg is int, not unsigned.
86227         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86228         (SIZE_MAX, UINT_MAX): New macros.
86229         (quotearg_n_options): Abort if N is negative.
86230         Avoid overflow check on hosts where size_t is 64 bits and int
86231         is 32 bits, as overflow is impossible there.
86232         Fix off-by-one typo that caused unnecessary reallocation.
86233
86234 2001-11-27  Jim Meyering  <meyering@lucent.com>
86235
86236         * lib/tempname.c: Merge with version from libc.
86237         * lib/regex.c: Likewise.
86238
86239         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86240         systems for which STDC_HEADERS is 0, it was not included, resulting in
86241         a warning about an integer-to-pointer conversion problem with getenv.
86242         Reported by Volker Borchert.
86243
86244 2001-11-26  Jim Meyering  <meyering@lucent.com>
86245
86246         * lib/gtod.h: Remove file.
86247         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86248         * lib/gettimeofday.c: Don't include gtod.h.
86249         (GTOD_init): Remove function.
86250         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86251         Suggestion from Volker Borchert.
86252
86253 2001-11-23  Jim Meyering  <meyering@lucent.com>
86254
86255         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86256         it.
86257         * lib/hash.c (struct hash_table): Define it here instead.
86258
86259 2001-11-22  Jim Meyering  <meyering@lucent.com>
86260
86261         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86262
86263 2001-11-20  Jim Meyering  <meyering@lucent.com>
86264
86265         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86266         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86267
86268 2001-11-19  Jim Meyering  <meyering@lucent.com>
86269
86270         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86271         directory.  Use "conftestXXXXXX" as the template.
86272         Suggestion from Paul Eggert.
86273
86274         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86275         immediately, so the test doesn't mistakenly hit the max-open-files
86276         limit.
86277
86278 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86279
86280         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86281         (TEMPORARIES): New macro.
86282         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86283         removes an artificial limitation (e.g. HP-UX 10.20, where
86284         TMP_MAX is 17576).
86285
86286 2001-11-18  Jim Meyering  <meyering@lucent.com>
86287
86288         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86289
86290 2001-11-18  Jim Meyering  <meyering@lucent.com>
86291
86292         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86293         on SunOS 4.
86294
86295         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86296         files will be created before anything else.
86297
86298 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86299
86300         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86301         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86302
86303 2001-11-17  Jim Meyering  <meyering@lucent.com>
86304
86305         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86306         Prompted by a report from Bob Proulx.
86307
86308         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86309         Instead, require UTILS_FUNC_MKSTEMP.
86310
86311 2001-11-17  Jim Meyering  <meyering@lucent.com>
86312
86313         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86314         Now, that's done as part of AC_FUNC_STRTOD.
86315
86316 2001-11-17  Jim Meyering  <meyering@lucent.com>
86317
86318         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86319         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86320         rather than group writable.  Patch by Juan F. Codagnone.
86321
86322         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86323         xrealloc, Instead, include "xalloc.h".
86324
86325         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86326         Remove explicit declarations of xmalloc, xrealloc,
86327         and xstrdup.  Instead, include "xalloc.h".
86328
86329         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86330         unlocked-io.h.
86331         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86332         Likewise.
86333         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86334
86335         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86336         Reported by Padraig Brady.
86337
86338         * lib/mkstemp.c: #undef mkstemp.
86339         Include config.h.
86340         (rpl_mkstemp): Rename from mkstemp.
86341         Protoize.
86342
86343 2001-11-16  Jim Meyering  <meyering@lucent.com>
86344
86345         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86346         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86347         determine the amount of total physical memory, use pstat_getstatic.
86348         HPUX-11 doesn't define _SC_PHYS_PAGES.
86349         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86350         If sysconf couldn't be used to determine the amount of available
86351         physical memory, use both pstat_getstatic and pstat_getdynamic.
86352         Based on a patch from Bob Proulx.
86353
86354 2001-11-10  Jim Meyering  <meyering@lucent.com>
86355
86356         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86357         (jm_PREREQ): Use it.
86358
86359 2001-11-09  Jim Meyering  <meyering@lucent.com>
86360
86361         * m4/jm-macros.m4: Require autoconf-2.52f.
86362         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86363         Use these AC_-prefixed names, not the AM_-prefixed ones.
86364
86365         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86366
86367 2001-11-05  Jim Meyering  <meyering@lucent.com>
86368
86369         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86370
86371 2001-11-04  Jim Meyering  <meyering@lucent.com>
86372
86373         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86374         $DEFS.
86375
86376 2001-11-03  Jim Meyering  <meyering@lucent.com>
86377
86378         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86379         of AC_DEFUN.
86380
86381         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86382         know the name of the variable in the macro definition.
86383
86384 2001-11-03  Jim Meyering  <meyering@lucent.com>
86385
86386         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86387         in argmatch_to_argument call.
86388
86389         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86390         argument.
86391
86392         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86393         e.g., a fault due to an attempt to free a NULL pointer.
86394
86395 2001-11-01  Jim Meyering  <meyering@lucent.com>
86396
86397         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86398         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86399
86400 2001-11-01  Jim Meyering  <meyering@lucent.com>
86401
86402         * lib/dirfd.c, lib/dirfd.h: New files.
86403         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86404
86405         * lib/hash.c (hash_print) [TESTING]: Clean up.
86406
86407 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86408
86409         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86410         to avoid a warning if -Wall.
86411
86412 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86413
86414         * README: New file
86415         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86416         (per RMS's instructions, this is now the canonical source)
86417         * lgpl/, gpl/: New directories.
86418
86419 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86420
86421         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86422
86423 2001-10-21  Jim Meyering  <meyering@lucent.com>
86424
86425         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86426         this code would end up calling gettext even in packages built
86427         with --disable-nls.
86428         * lib/getopt.c (_): Likewise.
86429         * lib/regex.c (_): Likewise.
86430
86431 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86432
86433         * m4/error.m4 (jm_PREREQ_ERROR):
86434         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86435         AC_FUNC_STRERROR_R does that.
86436         Check for strerror declaration.
86437
86438         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86439         are supposed to have them these days.
86440         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86441         Merge changes from latest Autoconf CVS.
86442         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86443         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86444         POSIX decided to standardize on the int flavor of strerror_r.
86445
86446 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86447
86448         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86449         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86450         Use strerror_r that is only a macro, even if it is not a function.
86451         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86452         (private_strerror): Use prototypes, not old-style function definition.
86453         (print_errno_message): New function.
86454         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86455         char*-flavored one.
86456         (error_tail, error, error_at_line): Use it.
86457
86458 2001-10-11  Jim Meyering  <meyering@lucent.com>
86459
86460         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86461         and quote_n (1, ... to avoid clobbering a buffer.
86462
86463 2001-10-05  Jim Meyering  <meyering@lucent.com>
86464
86465         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86466         hash-pjw.h.
86467         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86468         * lib/hash-pjw.h: New file.
86469
86470 2001-09-30  Jim Meyering  <meyering@lucent.com>
86471
86472         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86473         `struct fsstat' has the `f_fstypename' member.
86474         Use that to define FS_TYPE, which is now used to make
86475         the getfsstat link test tighter.
86476
86477 2001-09-30  Jim Meyering  <meyering@lucent.com>
86478
86479         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86480         Include <sys/ucred.h>, for Apple Darwin.
86481         Include sys/mount.h and sys/fs_types.h only if available.
86482         (FS_TYPE): Define.
86483         (read_filesystem_list): Use FS_TYPE.
86484
86485 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86486
86487         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86488         a boolean context.
86489
86490 2001-09-29  Jim Meyering  <meyering@lucent.com>
86491
86492         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86493         [one-argument getmntent function]): Include stdio.h before mntent.h.
86494         SunOS 4.1.x needs it for the declaration of `FILE'.
86495         Patch by Volker Borchert.
86496
86497         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86498         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86499         sys/fs_types.h, and make the link-test for getfsstat guard #include
86500         directives with appropriate #if HAVE_*_H tests so that we can
86501         detect getfsstat on Apple Darwin1.3.7 systems.
86502         Reported by Nelson Beebe.
86503         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86504
86505 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86506
86507         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86508         #defines strtoimax.  Also treat the other strto* functions
86509         like strtoimax.
86510
86511         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86512         Check for strtoul and strtoumax,
86513         as those declarations are made even in the signed case.
86514         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86515         Likewise, for strtol and strtoimax.
86516
86517 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86518
86519         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86520         #defines strtoimax.  Also treat the other strto* functions
86521         like strtoimax.
86522
86523         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86524         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86525         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86526
86527 2001-09-26  Jim Meyering  <meyering@lucent.com>
86528
86529         Most macros in unlocked-io.h had the wrong number of arguments.
86530         * lib/gen-uio: New script.
86531         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86532         * lib/unlocked-io.hin: Remove file.
86533         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86534         rather than trying to embed it here.
86535         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86536         Reported by Padraig Brady.
86537
86538 2001-09-25  Volker Borchert  <bt@teknon.de>
86539
86540         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86541         `result'.
86542
86543 2001-09-24  Jim Meyering  <meyering@lucent.com>
86544
86545         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86546
86547 2001-09-23  Jim Meyering  <meyering@lucent.com>
86548
86549         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86550         instead of the mere test for existence of mntent.h.  The latter
86551         would get a false-positive on AIX 3.4 systems.
86552         In the outer getmntent if-block, don't die if neither of the getmntent
86553         tests succeeds.  Instead, just fall through and continue with the
86554         remaining tests.
86555
86556 2001-09-23  Jim Meyering  <meyering@lucent.com>
86557
86558         * lib/mountlist.c: Remove useless parentheses in #if directives.
86559         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86560         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86561
86562 2001-09-22  Jim Meyering  <meyering@lucent.com>
86563
86564         * m4/gettext.m4: New file.  From gettext.
86565         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86566         * m4/progtest.m4: Likewise
86567         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86568         * m4/glibc21.m4: Likewise.
86569
86570         * m4/libintl.m4: Remove.  No longer used.
86571
86572 2001-09-22  Jim Meyering  <meyering@lucent.com>
86573
86574         * lib/localcharset.c: Update from latest gettext.
86575         * lib/config.charset: Likewise.
86576
86577 2001-09-20  Jim Meyering  <meyering@lucent.com>
86578
86579         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86580         strtoimax.
86581         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86582         strtoumax.
86583
86584 2001-09-20  Jim Meyering  <meyering@lucent.com>
86585
86586         * lib/xstrtol.c (strtoimax): Guard declaration with
86587         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86588         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86589         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86590         (strtoumax): Likewise, for completeness (it wasn't necessary).
86591
86592 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86593
86594         * lib/strtoimax.c (HAVE_LONG_LONG):
86595         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86596         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86597         to work around bug in IBM C compiler.
86598
86599 2001-09-17  Jim Meyering  <meyering@lucent.com>
86600
86601         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86602         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86603         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86604         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86605         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86606         whenever the right hand side need not be expanded by the shell.
86607
86608 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86609
86610         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86611         library.  It's not correct, as some older glibcs are buggy.
86612         fnmatch wasn't fixed until glibc 2.2.
86613
86614         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86615         special shell magic here.
86616
86617 2001-09-16  Jim Meyering  <meyering@lucent.com>
86618
86619         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86620         * m4/jm-macros.m4: Require it.
86621
86622 2001-09-16  Jim Meyering  <meyering@lucent.com>
86623
86624         * lib/mkdir.c: New file.
86625
86626 2001-09-15  Jim Meyering  <meyering@lucent.com>
86627
86628         * m4/jm-macros.m4: Check for help2man.
86629
86630 2001-09-11  Jim Meyering  <meyering@lucent.com>
86631
86632         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86633         The body, by Paul Eggert, was moved here from configure.in.
86634         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86635
86636 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86637
86638         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86639         (jm_PREREQ): Use it.
86640
86641 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86642
86643         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86644         Use ssize_t, not int, to store result of readlink.
86645         Check for ssize_t overflow as well as size_t overflow,
86646         as POSIX says the result of readlink is implementation-defined
86647         when ssize_t overflows.
86648         Remove unnecessary cast to char*.
86649         Use free+malloc instead of realloc, as the storage doesn't need
86650         to be preserved and it's clearer and can be more efficient that way.
86651         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86652         * lib/xreadlink.h (xreadlink): Update prototype.
86653
86654 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86655
86656         * lib/xgetcwd.c: Revert some of the previous change; intead,
86657         fix the HAVE_GETCWD_NULL code to behave more like the
86658         !HAVE_GETCWD_NULL code used to.
86659
86660         Include "xalloc.h".
86661         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86662         invoke xalloc_die.
86663
86664 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86665
86666         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86667         sys/param.h, as pathmax.h includes them.
86668
86669 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86670
86671         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86672         (jm_PREREQ_XGETCWD): New macro.
86673
86674         * m4/getcwd.m4: New file.
86675
86676 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86677
86678         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86679         like the HAVE_GETCWD_NULL code.
86680         Include pathmax.h if not HAVE_GETCWD.
86681         Do not include xalloc.h.
86682         (INITIAL_BUFFER_SIZE): New symbol.
86683         Do not use xmalloc / xrealloc, since the caller is responsible for
86684         handling errors.  Preserve errno around `free' during failure.
86685         Do not overrun buffer when using getwd.
86686
86687 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86688
86689         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86690         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86691         getcwd (NULL, 0).
86692
86693 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86694
86695         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86696         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86697         spotted by Jim Meyering.
86698
86699 2001-09-03  Jim Meyering  <meyering@lucent.com>
86700
86701         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86702         failure.
86703
86704 2001-09-02  Jim Meyering  <meyering@lucent.com>
86705
86706         * lib/error.c: Update from GNU libc.
86707
86708 2001-09-01  Jim Meyering  <meyering@lucent.com>
86709
86710         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86711         Used by df.
86712
86713 2001-09-01  Jim Meyering  <meyering@lucent.com>
86714
86715         * lib/xreadlink.c: New file.
86716         * lib/xreadlink.h: New file.
86717         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86718         xreadlink.h.
86719
86720         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86721         doesn't conflict with sparc Solaris 7's definition in
86722         /usr/include/sys/int_types.h.
86723
86724         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86725         files.
86726         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86727         and strncasecmp as r-values.  Unixware didn't have declarations.
86728
86729 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86730
86731         * lib/xstrtol.h: Add copyright notice.
86732         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86733         LONGINT_INVALID_SUFFIX_CHAR.
86734
86735 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86736
86737         * lib/xstrtol.c (strtoimax): New decl.
86738
86739 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86740
86741         * lib/xgetcwd.c: Don't include pathmax.h.
86742         Include stdlib.h and unistd.h if available.
86743         Include xalloc.h.
86744         (xmalloc, xstrdup, free): Remove decls.
86745         (xgetcwd): Don't assume sizes fit in unsigned.
86746         Check for overflow when computing sizes.
86747         Simplify reallocation code.
86748
86749 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86750
86751         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86752         a directory's st_size can have an arbitrary value, so the old
86753         usage could waste an arbitrary amount of memory.  All uses
86754         changed.
86755         * lib/savedir.h: Update prototype.
86756
86757 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86758
86759         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86760
86761         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86762         old strtoimax.c.
86763
86764         Also, make the following further changes to make this file's
86765         configuration more similar to that of strtol.c:
86766         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86767         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86768         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86769         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86770         changed to signed values.
86771
86772         And make the following changes as well:
86773         Fix copyright notice, as 1999 was missing.
86774         (verify): New macro.
86775         (strtoimax): Check sizes at compile-time, not run-time.
86776         Prefer strtol to strtoll if both work.
86777         (main): Remove; it was not that useful and was a pain to maintain.
86778
86779         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86780
86781 2001-08-31  Jim Meyering  <meyering@lucent.com>
86782
86783         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86784         Use an initial, malloc'd, buffer of length 128 rather than
86785         a statically allocated one of length 1024.
86786
86787 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86788
86789         Simplify code, partly by assuming autoconf 2.52 semantics.
86790
86791         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86792
86793         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86794         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86795         All uses removed.
86796         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86797         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86798         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86799         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86800         jm_AC_HEADER_INTTYPES_H.
86801         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86802
86803         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86804
86805         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86806         Quote first arg of AC_DEFUN.
86807         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86808         since they are needed to parse the include file even if we need
86809         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86810         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86811         but with opposite signedness.
86812
86813 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86814
86815         Merge 'exclude' changes from tar 1.13.22.
86816         This fixes one or two unlikely storage allocation overflow bugs,
86817         but doesn't change user-visible behavior otherwise.
86818
86819 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86820
86821         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86822         (jm_PREREQ_EXCLUDE): New macro.
86823
86824 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86825
86826         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86827         tm to be declared.
86828
86829 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86830
86831         * lib/hash.c: Remove '2001' from copyright notice.
86832
86833 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86834
86835         * lib/full-write.h: New file.
86836         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86837         * lib/full-write.c: Correct credits, as cccp.c no longer
86838         exists and anyway it was so heavily changed from the old cccp
86839         code as to be unrecognizable.  Include full-write.h.
86840         (full_write): Return size_t, with short writes meaning failure.
86841         All callers changed.  This fixes a bug with large buffers
86842         on 64-bit hosts.
86843         * lib/utime.c: Include full-write.h.
86844
86845 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86846
86847         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86848         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86849         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86850         Include if available.
86851         (<xalloc.h>): Include
86852         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86853         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86854         collide with FNM macros.
86855         (struct patopts): New struct.
86856         (struct exclude): Use it, as exclude patterns now come with options.
86857         (new_exclude): Support above changes.
86858         (new_exclude, add_exclude_file):
86859         Initial size must now be a power of two to simplify overflow checking.
86860         (free_exclude, fnmatch_no_wildcards): New function.
86861         (excluded_filename): No longer requires options arg, as the options
86862         are determined by add_exclude.  Now returns bool, not int.
86863         (excluded_filename, add_exclude):
86864         Add support for the fancy new exclusion options.
86865         (add_exclude, add_exclude_file): Now takes int options arg.
86866         Check for arithmetic overflow when computing sizes.
86867         (add_exclude_file): xrealloc might modify errno, so don't
86868         realloc until after errno might be used.
86869
86870         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86871         New macros.
86872         (free_exclude): New decl.
86873         (add_exclude, add_exclude_file): Now takes int options arg.
86874         (excluded_filename): No longer requires options arg, as the options
86875         are determined by add_exclude.  Now returns bool, not int.
86876
86877 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86878
86879         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86880
86881 2001-08-27  Jim Meyering  <meyering@lucent.com>
86882
86883         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86884
86885         * lib/version-etc.c (N_): Remove definition.
86886         Revert most of last change.
86887         Instead, simply don't mark the `Copyright...' string for translation.
86888         Based on advice from Paul Eggert.
86889
86890         * lib/strtoxmax.c: Tweak comment.
86891
86892 2001-08-26  Jim Meyering  <meyering@lucent.com>
86893
86894         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86895
86896         * m4/xstrtoimax.m4: New file.
86897         * m4/xstrtoumax.m4: Add comments explaining why we
86898         AC_REPLACE_FUNCS(strtol).
86899
86900 2001-08-26  Jim Meyering  <meyering@lucent.com>
86901
86902         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86903         of copyright with `%s' so translators don't get an untranslated
86904         message in 2002.
86905         (COPYRIGHT_YEAR): Define.
86906         (version_etc): Use fprintf rather than fputs.
86907         Suggestion from Ulrich Drepper.
86908
86909         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86910
86911         * lib/strtoll.c: New file, from GNU libc.
86912         * lib/xstrtoimax.c: New file.
86913
86914         * lib/xstrtol.h: Add xstrtoimax.
86915         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86916         * lib/strtoimax.c: New file.  Likewise, but first define
86917         STRTOUXMAX_SIGNED.
86918
86919         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86920         ...
86921         * lib/strtoxmax.c: ... then renamed to this.
86922
86923 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86924
86925         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86926         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86927         (jm_AC_TYPE_INTMAX_T): New macro.
86928         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86929
86930         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86931
86932         * m4/longlong.m4: Renamed from ulonglong.m4.
86933         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86934         * m4/uintmax_t.m4: Removed.
86935
86936 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86937
86938         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86939         Port to Solaris 8, where 'sed' requires a space after the 'r'
86940         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86941         Redirect output to $tmp just once.
86942
86943 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86944
86945         * lib/addext.c (<errno.h>): Include.
86946         (errno): Declare if not defined.
86947         (addext): Work correctly when pathconf returns -1 and leaves
86948         errno alone because there is no limit.  Also, work even if
86949         pathconf returns a value greater than SIZE_MAX.
86950
86951 2001-08-12  Jim Meyering  <meyering@lucent.com>
86952
86953         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86954         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86955         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86956         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86957         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86958         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86959         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86960         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86961         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86962         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86963         utime.m4, utimes.m4, xstrtoumax.m4:
86964         Quote the first argument in each use of AC_DEFUN.
86965
86966 2001-08-12  Jim Meyering  <meyering@lucent.com>
86967
86968         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86969         Simply `return getcwd (NULL, 0);'.
86970         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86971         Use 1300 as initial value for length, not PATH_MAX.
86972
86973         * lib/pathmax.h: Clean up cpp syntax.
86974
86975 2001-08-12  Jim Meyering  <meyering@lucent.com>
86976
86977         * lib/gettimeofday.c: New file.
86978         * lib/gtod.h: New file.
86979         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86980
86981 2001-08-05  Jim Meyering  <meyering@lucent.com>
86982
86983         * m4/jm-macros.m4: Require autoconf-2.52.
86984
86985 2001-08-04  Jim Meyering  <meyering@lucent.com>
86986
86987         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86988         stmt, to get in sync with glibc.
86989
86990 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86991
86992         The following changes are from gettext 0.10.39 as maintained by
86993         Bruno Haible.
86994
86995         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86996         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86997         with inverted sense.  All uses changed.
86998
86999         * lib/mbswidth.c: Don't include <limits.h>.
87000         Include <stdlib.h> and <string.h> unconditionally.
87001         (iswcntrl, mbsinit, ISCNTRL): New macros.
87002         (mbsnwidth): Use K&R style function declarations.
87003         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87004         can optimize it when MB_CUR_MAX == 1.
87005         The width of control characters is zero, not 1.
87006
87007 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87008
87009         The following changes are from gettext 0.10.39 as maintained by
87010         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87011
87012         * m4/codeset.m4: Upgrade to serial AM1.
87013         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87014         all uses changed.  Quote first arg of AC_DEFUN.
87015         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87016
87017         * m4/iconv.m4: Upgrade to serial AM2.
87018         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87019         Add --with-libconv-prefix.
87020         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87021         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87022         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87023         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87024         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87025
87026         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87027         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87028         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87029         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87030         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87031         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87032         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87033         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87034         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87035
87036         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87037         string.h any more.
87038
87039         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87040         not the default value.
87041
87042         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87043         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87044         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87045         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87046         Also check for iswcntrl, used for wcwidth fallback.
87047         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87048         to Autoconf 2.13.
87049
87050 2001-08-03  Jim Meyering  <meyering@lucent.com>
87051
87052         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87053         as it was in the original.  Reported by Paul Eggert.
87054
87055 2001-07-16  Jim Meyering  <meyering@lucent.com>
87056
87057         * m4/gettimeofday.m4: New file.
87058         Prompted by a report from Bernhard Baehr.
87059
87060 2001-07-15  Jim Meyering  <meyering@lucent.com>
87061
87062         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87063         stuff. Now it's in ../Makefile.cfg.
87064
87065 2001-07-15  Jim Meyering  <meyering@lucent.com>
87066
87067         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87068         (BUILT_SOURCES): Add unlocked-io.h.
87069         (io_functions): Define.
87070         (unlocked-io.h): New rule.
87071         (DISTCLEANFILES): Add unlocked-io.h.
87072         (all-local): Depend on unlocked-io.h, to ensure it is created.
87073
87074         * lib/unlocked-io.hin: New file
87075
87076         * lib/regex.c: Update from glibc.
87077
87078 2001-07-05  Jim Meyering  <meyering@lucent.com>
87079
87080         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87081         recommendation.
87082         (libfetish_a_SOURCES): Put all .h files here instead.
87083         Remove a thus-exposed (better checks in automake) duplicate and
87084         two unnecessary .h files.
87085
87086 2001-07-04  Jim Meyering  <meyering@lucent.com>
87087
87088         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87089         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87090         distcheck failure.
87091
87092 2001-07-02  Jim Meyering  <meyering@lucent.com>
87093
87094         The following changes were prompted by suggestions from Bruno Haible.
87095
87096         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87097         is now generated.
87098         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87099         definition of EXTRA_DIST.
87100         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87101         ensure that the generated file is created/updated whenever the list
87102         of $(unlocked_functions) is changed.
87103         (jm-glibc-io.m4): New rule.
87104         (unlocked-io.h): New rule -- currently unused.
87105
87106 2001-06-24  Jim Meyering  <meyering@lucent.com>
87107
87108         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87109         unmatched right bracket, rather than kludging it with an extra,
87110         falsely-matching quote in a comment.  Patch by Akim Demaille.
87111
87112 2001-06-11  Jim Meyering  <meyering@lucent.com>
87113
87114         * lib/regex.c: Update from GNU libc.
87115
87116 2001-05-27  Jim Meyering  <meyering@lucent.com>
87117
87118         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87119         Check for ut_type in struct utmp.
87120
87121 2001-05-27  Jim Meyering  <meyering@lucent.com>
87122
87123         * lib/readutmp.h (UT_TYPE): Define.
87124
87125 2001-05-24  Jim Meyering  <meyering@lucent.com>
87126
87127         * lib/argmatch.c: Include "quote.h".
87128         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87129         quote function.  Reported by Göran Uddeborg.
87130
87131 2001-05-22  Jim Meyering  <meyering@lucent.com>
87132
87133         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87134         now that we use the package-supplied version unconditionally.
87135         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87136
87137 2001-05-21  Jim Meyering  <meyering@lucent.com>
87138
87139         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87140         shell syntax errors.
87141
87142 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87143
87144         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87145
87146 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87147
87148         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87149         Don't bother to check library strftime, since
87150         we'll be using our own my_strftime function anyway.
87151         Define my_strftime instead of strftime.
87152
87153 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87154
87155         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87156         which is not yet declared.
87157
87158 2001-05-15  Jim Meyering  <meyering@lucent.com>
87159
87160         * m4/regex.m4: Use proper quoting so brackets appear in the test
87161         program.
87162         Reported by, and with help from, Bruno Haible.
87163
87164 2001-05-13  Jim Meyering  <meyering@lucent.com>
87165
87166         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87167         undefined.
87168
87169 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87170
87171         dirname code cleanup.  base_name now behaves more compatibly
87172         with POSIX basename when given file names that have trailing
87173         slashes, and similarly for dir_name.  Add new primitives
87174         base_len and dir_len.  Put the directory-name-related decls
87175         into dirname.h.
87176
87177         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87178         * lib/backupfile.c (base_name): Likewise.
87179         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87180         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87181         * lib/makepath.c (strip_trailing_slashes): Likewise.
87182         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87183         ISSLASH): Likewise.
87184         * lib/rename.c (strip_trailing_slashes): Likewise.
87185         * lib/same.c (base_name): Likewise.
87186         * lib/stripslash.c (ISSLASH): Likewise.
87187
87188         * lib/addext.c: Include <dirname.h> after size_t is defined.
87189         * lib/backupfile.c: Likewise.
87190
87191         * lib/addext.c (addext): Use base_len to trim redundant
87192         trailing slashes instead of doing it ourselves.
87193         But do not trim the last slash if it is not redundant.
87194
87195         * lib/backupfile.c (find_backup_file_name,
87196         max_backup_version): Use base_len instead of rolling it ourselves.
87197         Handle the case of "" and (on DOS) "C:" correctly.
87198
87199         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87200         needed. Include <string.h>, <dirname.h>.
87201         (base_name): Allow file names ending in slashes, other than names
87202         that are all slashes.  In this case, return the basename followed
87203         by the slashes.  This is more general, and can be used in places
87204         where the original base_name purposely had an assertion failure.
87205         (base_len): New function.
87206
87207         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87208         Do not include <assert.h>; no longer needed.
87209         Include xalloc.h.
87210         (memrchr): Remove decl.
87211         (dir_name_r): Remove.
87212         (dir_len): Renamed from dirlen.  All callers changed.
87213         Rewrite in terms of base_name, for simplicity and consistency.
87214         (dir_name): Never return NULL.  All callers changed.
87215         Do not include <stdlib.h> in test program; no longer needed.
87216         return 0; is fine for test program.
87217
87218         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87219         New macros.
87220         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87221
87222         * lib/path-concat.c (path_concat): Use base_len to compute
87223         base length, not strlen; this means we cannot rely on memcpy
87224         to null-terminate.
87225
87226         * lib/same.c (STREQ): Remove.
87227         (same_name): Handle the case where the basename ends in trailing '/'.
87228
87229         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87230         a slash was stripped.  Do not strip the last slash after a
87231         file system prefix.
87232
87233 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87234
87235         * lib/Makefile.am (libfetish_a_SOURCES):
87236         Add strftime.c, since we now compile it on all hosts.
87237
87238         * lib/strftime.c (my_strftime):
87239         Define to nstrftime if emacs, but only if my_strftime is not defined.
87240         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87241         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87242         Add one more extra argument: a nanoseconds value.
87243         All uses changed.
87244         (ns): New macro.
87245         (my_strftime function): Add %N format.
87246         (emacs_strftimeu): Renamed from emacs_strftime,
87247         with extra ut argument.
87248
87249 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87250
87251         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87252
87253 2001-04-21  Jim Meyering  <meyering@lucent.com>
87254
87255         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87256         doesn't interfere.
87257
87258 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87259
87260         * m4/ftruncate.m4: Check for chsize.
87261         Link with ftruncate.o unconditionally if ftruncate is missing.
87262         This was required when cross-compiling to i586-mingw32msvc.
87263
87264 2001-04-08  Jim Meyering  <meyering@lucent.com>
87265
87266         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87267         recomputed; that's necessary when the offset spans a DST transition.
87268         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87269
87270 2001-04-02  Jim Meyering  <meyering@lucent.com>
87271
87272         * lib/regex.h, regex.c: Update from GNU libc.
87273
87274 2001-03-24  Jim Meyering  <meyering@lucent.com>
87275
87276         * m4/jm-macros.m4: Require autoconf-2.49d.
87277
87278 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87279
87280         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87281
87282 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87283
87284         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87285
87286 2001-03-17  Jim Meyering  <meyering@lucent.com>
87287
87288         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87289         now that the version in autoconf is equivalent.
87290         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87291
87292         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87293         Suggestion from Akim Demaille.
87294
87295         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87296         (jm_PREREQ_TEMPNAME): New function.
87297
87298 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87299
87300         * lib/tempname.c (uint64_t): Define to uintmax_t if
87301         not defined, and if UINT64_MAX is not defined.
87302         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87303         Reported by John David Anglin.
87304
87305 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87306
87307         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87308         resolve alias if codeset is empty.
87309         * lib/config.charset (BeOS): Use wildcard syntax.
87310
87311 2001-03-13  Jim Meyering  <meyering@lucent.com>
87312
87313         * lib/path-concat.c (path_concat)
87314         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87315         concatenating e.g., `C:' and `foo'.
87316         From Bruno Haible.
87317
87318 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87319
87320         * lib/localcharset.c (locale_charset): Don't use
87321         setlocale(LC_CTYPE,NULL). Don't return NULL.
87322         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87323
87324 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87325
87326         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87327         support for DOS/DJGPP.
87328
87329 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87330
87331         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87332         lacks mkstemp.  Compile our own tempname.c if we compile our own
87333         mkstemp.c, as mkstemp relies on tempname.
87334
87335 2001-03-01  Jim Meyering  <meyering@lucent.com>
87336
87337         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87338         AH_VERBATIM really does output its argument verbatim.
87339
87340 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87341
87342         * lib/Makefile.am (libfetish_a_SOURCES):
87343         Add dup-safer.c, fopen-safer.c.
87344         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87345
87346         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87347         * lib/unistd-safer.h: New files.
87348
87349 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87350
87351         The mkstemp replacement is taken from glibc 2.2.2, with some
87352         portability fixes for use outside glibc, as follows:
87353
87354         * lib/tempname.c (struct_stat64): New macro.
87355         (direxists, __gen_tempname): Use it.
87356         This avoids a portability problem with Solaris 8.
87357
87358         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87359         (<stddef.h>, <stdint.h>, <string.h>):
87360         Include only if STDC_HEADERS || _LIBC.
87361         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87362         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87363         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87364         (__set_errno): Define this macro if <errno.h> doesn't.
87365         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87366         Define these macros if <stdio.h> doesn't.
87367         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87368         Define these macros if <sys/stat.h>
87369         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87370         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87371         __xstat64): Define if not _LIBC.
87372         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87373         (__gen_tempname): Invoke gettimeofday only if
87374         HAVE_GETTIMEOFDAY || _LIBC;
87375         otherwise, fall back on plain "time".
87376         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87377
87378         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87379
87380         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87381
87382 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87383
87384         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87385
87386 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87387
87388         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87389         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87390         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87391         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87392
87393 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87394
87395         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87396         Remove workaround macros for hosts that have mbrtowc but not
87397         mbstate_t, as we now insist on proper declarations for both
87398         before using mbrtowc.
87399
87400 2001-02-17  Jim Meyering  <meyering@lucent.com>
87401
87402         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87403         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87404         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87405         UnixWare 7.1.1.
87406
87407         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87408         rather than AC_CACHE_VAL.
87409
87410 2001-02-17  Jim Meyering  <meyering@lucent.com>
87411
87412         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87413         around included file name.
87414
87415         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87416
87417         * lib/strftime.c: Update from GNU libc (the only changes were to
87418         comments).
87419
87420 2001-02-17  Jim Meyering  <meyering@lucent.com>
87421
87422         * lib/regex.c: Update from libc.
87423
87424 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87425
87426         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87427         clash.
87428
87429 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87430
87431         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87432         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87433         Reported by Mark Hounschell via Paul Eggert.
87434
87435 2001-02-07  Jim Meyering  <meyering@lucent.com>
87436
87437         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87438
87439 2001-02-05  Jim Meyering  <meyering@lucent.com>
87440
87441         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87442         it includes the patch required for `large file' support with at least
87443         HP-UX's 10.20 /bin/cc.
87444
87445 2001-02-03  Jim Meyering  <meyering@lucent.com>
87446
87447         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87448         AS_IF, now that it works once again (mysteriously).
87449         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87450
87451 2001-01-30  Jim Meyering  <meyering@lucent.com>
87452
87453         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87454         * m4/chown.m4: Rename conftestchown to conftest.chown.
87455         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87456         s/conftestdir2/conftest.d2/.
87457         * m4/utimes.m4: s/conftestdata/conftest.data/
87458         Inspired by Pavel Roskin's change in autoconf.
87459
87460 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87461
87462         * lib/config.charset: Update for FreeBSD 4.2.
87463
87464 2001-01-27  Jim Meyering  <meyering@lucent.com>
87465
87466         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87467         a use of AS_IF.
87468         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87469
87470 2001-01-26  Jim Meyering  <meyering@lucent.com>
87471
87472         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87473         quotearg.c includes it.
87474
87475 2001-01-26  Jim Meyering  <meyering@lucent.com>
87476
87477         * lib/quotearg.c: Include stddef.h.
87478         * lib/quote.c: Include stddef.h.
87479         Reported by Axel Kittenberger.
87480
87481         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87482         line in double quotes so that it evokes a better diagnostic.
87483         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87484         Reported by Axel Kittenberger.
87485
87486 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87487
87488         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87489         as if it was a `charset'.
87490
87491 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87492
87493         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87494         has const.
87495
87496 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87497
87498         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87499         to avoid a warning.  Add back 'const' to inptr.
87500
87501 2001-01-20  Jim Meyering  <meyering@lucent.com>
87502
87503         Be sure that headers are checked before used in code compiled
87504         for the type checks.
87505         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87506         In place of that, invoke jm_CHECK_ALL_TYPES.
87507         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87508         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87509         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87510         The check for ssize_t was mistakenly run before the test for unistd.h.
87511
87512         The configure-time check for stdbool.h was missing.
87513         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87514         (jm_PREREQ_HASH): New function.
87515
87516 2001-01-17  Jim Meyering  <meyering@lucent.com>
87517
87518         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87519         for autoconf-2.49c.
87520         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87521
87522 2001-01-16  Jim Meyering  <meyering@lucent.com>
87523
87524         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87525         From Bruno Haible.
87526
87527 2001-01-14  Jim Meyering  <meyering@lucent.com>
87528
87529         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87530         foo and bar.  Create conftestdir/ in the script, not in the C code.
87531         Remove directories in the script, not in the C code.
87532         Remove conftestdir{,2} before trying to create the directory.
87533         Make the entire configure script fail if the mkdir fails.
87534
87535 2001-01-14  Jim Meyering  <meyering@lucent.com>
87536
87537         * lib/rename.c: New file.  From Volker Borchert.
87538         Include stdlib.h, string.h or strings.h, and xalloc.h.
87539         Use strip_trailing_slashes rather than open-coding it.
87540
87541 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87542
87543         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87544
87545 2001-01-03  Jim Meyering  <meyering@lucent.com>
87546
87547         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87548         of local `inptr' to avoid warning with some system declarations of
87549         iconv.
87550
87551 2001-01-02  Volker Borchert  <bt@teknon.de>
87552
87553         * m4/rename.m4: New file.
87554         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87555
87556 2001-01-01  Jim Meyering  <meyering@lucent.com>
87557
87558         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87559         even on systems with utmpx.h.  It's necessary for the declaration of
87560         utmp's ut_user member.  Reported by Andreas Jaeger.
87561
87562         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87563         available. They are required for the declarations of getgrgid and
87564         getpwuid resp.
87565         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87566         Reported by Andreas Jaeger.
87567
87568 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87569
87570         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87571         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87572         so `make install' also works in VPATH builds.
87573
87574 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87575
87576         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87577         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87578         can be used in subdirectories.
87579
87580 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87581
87582         * lib/modechange.c: Do not assume that mode_t uses the
87583         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87584         the other-execute bit of FOO even if S_IXOTH != 1.
87585
87586         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87587         WOTH, XOTH, ALLM): New macros.
87588         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87589          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87590         Use them.
87591         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87592         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87593         (mode_compile):
87594         No need to use uintmax_t; unsigned long is long enough.
87595         Don't bother to get suffix since we don't use it.
87596
87597 2000-12-26  Jim Meyering  <meyering@lucent.com>
87598
87599         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87600         better with autoheader.
87601
87602 2000-12-24  Jim Meyering  <meyering@lucent.com>
87603
87604         * lib/hash.c (is_prime): Return explicit boolean values.
87605         (hash_get_first): Return NULL to appease Irix5.6's 89.
87606         Reported by Nelson Beebe.
87607
87608 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87609
87610         * lib/localcharset.c (locale_charset): Add support for Win32.
87611
87612 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87613
87614         * lib/physmem.h, lib/physmem.c: New files.
87615
87616         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87617         (noinst_HEADERS): Add physmem.h.
87618
87619         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87620         't' for compatibility with Solaris 8 sort.
87621
87622 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87623
87624         * lib/config.charset: Add support for BeOS.
87625
87626 2000-12-17  Jim Meyering  <meyering@lucent.com>
87627
87628         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87629         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87630
87631 2000-12-16  Jim Meyering  <meyering@lucent.com>
87632
87633         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87634         N and M) would have treated it like `chown N:N FILE'.
87635
87636         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87637
87638 2000-12-16  Jim Meyering  <meyering@lucent.com>
87639
87640         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87641         SHELLS_FILE to a file name that's useful on djgpp systems.
87642         Include stdlib.h.
87643         (ADDITIONAL_DEFAULT_SHELLS): Define.
87644         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87645         Based mostly on a patch from Prashant TR.
87646
87647 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87648
87649         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87650         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87651         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87652
87653 2000-12-08  Andreas Schwab  <schwab@suse.de>
87654
87655         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87656         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87657
87658 2000-12-07  Jim Meyering  <meyering@lucent.com>
87659
87660         * lib/stripslash.c (ISSLASH): Define.
87661         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87662         `/'.
87663         From Prashant TR.
87664
87665         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87666         (dir_name_r): Declare this function as static.
87667         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87668         manifest itself on a name containing a mix of slashes and
87669         backslashes.
87670         Make this function work with names starting with a DOS-style
87671         drive letter and colon prefix.
87672         (dir_name): Append `.' if necessary.
87673         Based mostly on patches from Prashant TR and Eli Zaretskii.
87674
87675         * lib/dirname.h (dir_name_r): Remove prototype.
87676
87677 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87678
87679         * m4/off_t-format.m4: Remove this file.
87680         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87681
87682 2000-12-06  Jim Meyering  <meyering@lucent.com>
87683
87684         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87685         replacement strtoull, we may well need the replacement strtoul, too.
87686         Check for declarations of strtoul and strtoull.
87687         Check for strtol.  Mainly as a cue to cause automake to include
87688         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87689         Check for limits.h -- strtol.c needs it.
87690
87691 2000-12-05  Jim Meyering  <meyering@lucent.com>
87692
87693         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87694
87695 2000-12-04  Jim Meyering  <meyering@lucent.com>
87696
87697         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87698         Also include memory.h, stdlib.h, unistd.h if appropriate.
87699         Reported by Andreas Jaeger (conflicting declaration of malloc).
87700
87701 2000-12-02  Jim Meyering  <meyering@lucent.com>
87702
87703         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87704         * m4/jm-macros.m4 (jm_MACROS): require it.
87705
87706 2000-12-02  Jim Meyering  <meyering@lucent.com>
87707
87708         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87709
87710 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87711
87712         * lib/memrchr.c: Include <config.h> before any system include file.
87713
87714 2000-11-30  Jim Meyering  <meyering@lucent.com>
87715
87716         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87717
87718 2000-11-30  Jim Meyering  <meyering@lucent.com>
87719
87720         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87721
87722 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87723
87724         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87725
87726 2000-11-26  Jim Meyering  <meyering@lucent.com>
87727
87728         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87729
87730 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87731
87732         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87733         size of (size_t) -1; it's not portable.
87734
87735 2000-11-17  Jim Meyering  <meyering@lucent.com>
87736
87737         * lib/strstr.c: Update from GNU libc.
87738
87739 2000-11-17  Akim Demaille  <akim@epita.fr>
87740
87741         * lib/obstack.h: Formatting changes.
87742         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87743         prevent type checking.
87744         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87745         cast the value to (void *): assigning a `foo *' to a `void *'
87746         variable is valid.
87747         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87748
87749 2000-11-16  Jim Meyering  <meyering@lucent.com>
87750
87751         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87752
87753 2000-11-11  Jim Meyering  <meyering@lucent.com>
87754
87755         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87756
87757 2000-11-10  Jim Meyering  <meyering@lucent.com>
87758
87759         * lib/obstack.h: Update from GNU libc.
87760         * lib/obstack.c: Likewise.
87761
87762 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87763
87764         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87765
87766 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87767
87768         * lib/getusershell.c (setusershell): Use rewind rather than
87769         fseek/fseeko, to avoid configuration hassles with fseeko.
87770         Don't bother opening SHELLS_FILE if shellstream is NULL;
87771         it's not necessary.
87772
87773 2000-11-05  Jim Meyering  <meyering@lucent.com>
87774
87775         * lib/makepath.h (make_dir): Declare.
87776         * lib/makepath.c (make_dir): Remove `static' attribute.
87777         Tweak a comment.
87778
87779 2000-11-04  Jim Meyering  <meyering@lucent.com>
87780
87781         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87782
87783 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87784
87785         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87786         last one in a bucket, advance to the next bucket.
87787
87788 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87789
87790         * lib/fnmatch.c: Do not comment out all the code if we are using
87791         the GNU C library, because in some cases we are replacing buggy
87792         code in the GNU C library itself.
87793
87794 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87795
87796         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87797         (regex_compile): Catch bogus \(\1\).
87798
87799 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87800
87801         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87802         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87803         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87804
87805 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87806
87807         * lib/error.h, getline.h, modechange.h:
87808         Remove "2000" from Copyright line, as the file hasn't been
87809         changed this year other than in the copyright notice.
87810
87811         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87812         was changed this year.
87813
87814 2000-10-29  Jim Meyering  <meyering@lucent.com>
87815
87816         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87817         renaming.
87818         * m4/ls-mntd-fs.m4: Likewise
87819
87820 2000-10-29  Jim Meyering  <meyering@lucent.com>
87821
87822         * lib/xstat.in: Fix grammar in comment.
87823
87824 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87825
87826         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87827         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87828         doesn't define __restrict_arr.
87829
87830 2000-10-28  Jim Meyering  <meyering@lucent.com>
87831
87832         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87833         (jm_PREREQ_MEMCHR): New function.
87834
87835 2000-10-28  Jim Meyering  <meyering@lucent.com>
87836
87837         * lib/memchr.c: Update from libc.
87838         Adjust for portability:
87839         [HAVE_STDLIB_H]: Include stdlib.h.
87840         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87841         Undef __memchr, too.
87842         [!weak_alias]: Define __memchr to memchr.
87843
87844         * lib/regex.c: Update from libc.
87845         * lib/regex.h: Likewise.
87846         * lib/getopt1.c: Likewise.
87847         * lib/memcmp.c: Likewise.
87848
87849         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87850         Avoid using fseek, when possible -- it's broken by design.
87851         Patch by Ulrich Drepper.
87852
87853 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87854
87855         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87856         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87857         Giving in to popular pressure to shut up the compiler with casts.
87858
87859 2000-10-26  Jim Meyering  <meyering@lucent.com>
87860
87861         * lib/strftime.c: Update from libc.
87862
87863 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87864
87865         * regex.c: More `unsigned char' -> `re_char' changes.
87866         Also change several `int' into `re_wchar_t'.
87867         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87868         (PUSH_FAILURE_POINTER): Don't cast any more.
87869         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87870         We want GCC to complain, since this piece of code makes
87871         re_match non-reentrant, which *should* be fixed.
87872         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87873         (EXTEND_BUFFER): Use RETALLOC.
87874         (SET_LIST_BIT): Don't cast.
87875         (re_wchar_t): New type.
87876         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87877         that those two functions will always properly return.
87878         (IMMEDIATE_QUIT_CHECK): Cast to void.
87879         (analyse_first): Use recursion rather than an explicit stack.
87880         (re_compile_fastmap): Can't fail anymore.
87881         (re_search_2): Don't check re_compile_fastmap for failure.
87882         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87883         Now also sets the new value (passed in a new argument).
87884         (re_match_2_internal): Use it.
87885         Also, use a new var `reg' of type size_t when looping through regs
87886         rather than reuse the inappropriate `mcnt'.
87887
87888 2000-10-25  Jim Meyering  <meyering@lucent.com>
87889
87890         * lib/obstack.c: Update from libc.
87891
87892 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87893
87894         * regex.c (regex_compile): Change the way of handling a range from
87895         a char less than 256 to a char not less than 256.
87896
87897 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87898
87899         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87900         NT-Emacs only.
87901         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87902         so that re_search functions only quit when callers expect them to.
87903
87904 2000-10-23  Jim Meyering  <meyering@lucent.com>
87905
87906         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87907         wrong.  That set_locale call must not have any side effects.
87908         From Paul Eggert.
87909
87910 2000-10-22  Jim Meyering  <meyering@lucent.com>
87911
87912         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87913         [CYCLIC]: Remove now-unused definition.
87914
87915         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87916         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87917         Suggestion from Ulrich Drepper.
87918
87919 2000-10-21  Jim Meyering  <meyering@lucent.com>
87920
87921         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87922         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87923         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87924
87925 2000-10-21  Jim Meyering  <meyering@lucent.com>
87926
87927         * lib/dirname.c (memrchr): Declare if necessary.
87928         (dir_name): Remove the restriction that there be no
87929         trailing slashes.  Now, this code skips past them, effectively
87930         ignoring them.
87931         [TEST_DIRNAME] (main): New unit tests.
87932
87933         * lib/memrchr.c: New file from GNU libc.
87934         Undef __memrchr, too.
87935         [!weak_alias]: Define __memrchr to memrchr.
87936         Guard weak_alias use with `#ifdef weak_alias'.
87937
87938 2000-10-21  Jim Meyering  <meyering@lucent.com>
87939
87940         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87941         (dir_name): Use dir_name_r.
87942         * lib/dirname.h (dir_name_r): Declare it.
87943
87944 2000-10-17  Jim Meyering  <meyering@lucent.com>
87945
87946         * lib/quote.h (PARAMS): Define and use.
87947         Reported by Akim Demaille.
87948
87949         * lib/getopt.c: Update from libc.
87950
87951 2000-10-16  Jim Meyering  <meyering@lucent.com>
87952
87953         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87954         setlocale.
87955         From Jan Fedak.
87956
87957 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87958
87959         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87960
87961 2000-09-25  Jim Meyering  <meyering@lucent.com>
87962
87963         * lib/md5.h (rol): Define (from GnuPG).
87964
87965         * lib/sha.c: Give credit (GnuPG) where due.
87966         (M): Use rol rather than open-coding it.
87967         Add a FIXME comment.
87968
87969 2000-09-21  Jim Meyering  <meyering@lucent.com>
87970
87971         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87972         Reported by Michael Stone.
87973
87974 2000-09-20  Jim Meyering  <meyering@lucent.com>
87975
87976         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87977         (noinst_HEADERS): Add sha.h.
87978         Based on code from Scott G. Miller and from GnuPG.
87979
87980 2000-09-18  Jim Meyering  <meyering@lucent.com>
87981
87982         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87983         LIBS. Otherwise, everyone ends up linking with -lelf for some
87984         configurations.
87985         Reported by Mike Stone.
87986
87987 2000-09-15  Jim Meyering  <meyering@lucent.com>
87988
87989         * lib/regex.c: Update from libc.
87990
87991 2000-09-10  Jim Meyering  <meyering@lucent.com>
87992
87993         * lib/getopt.c (_getopt_internal): Update from glibc.
87994
87995 2000-09-09  Jim Meyering  <meyering@lucent.com>
87996
87997         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87998         think it should be used as a general replacement for isascii.
87999         * lib/fnmatch.c: Likewise.
88000         * lib/mbswidth.c: Likewise
88001         * lib/regex.c: Likewise.
88002
88003         Don't use atoi.
88004         * lib/userspec.c: Include sys/param.h and limits.h.
88005         Include xstrtol.h.
88006         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88007         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88008         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88009         UID, GID.  Check range.
88010
88011 2000-09-06  Jim Meyering  <meyering@lucent.com>
88012
88013         * lib/getopt.c (_getopt_internal): Update from glibc.
88014
88015 2000-08-30  Jim Meyering  <meyering@lucent.com>
88016
88017         * lib/strftime.c: Merge in changes from GNU libc.
88018
88019 2000-08-26  Jim Meyering  <meyering@lucent.com>
88020
88021         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88022         * m4/fpending.m4: New file.
88023
88024 2000-08-26  Jim Meyering  <meyering@lucent.com>
88025
88026         * lib/closeout.c: Include "__fpending.h".
88027         (close_stdout_status): Return right away if there's nothing to flush.
88028
88029         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88030         * lib/__fpending.c: New file.
88031         * lib/__fpending.h: New file.
88032
88033 2000-08-20  Jim Meyering  <meyering@lucent.com>
88034
88035         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88036         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88037         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88038
88039 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88040
88041         Improve fileutils installation on systems where running
88042         programs (like install) can't be unlinked.
88043         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88044         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88045
88046 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88047
88048         Standardize on "memory exhausted" instead of "Memory exhausted"
88049         or "virtual memory exhausted".
88050         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88051         "virtual memory exhausted".
88052         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88053         our own message.
88054         * lib/userspec.c (parse_user_spec): Likewise.
88055         * lib/bumpalloc.h: comment fix
88056         * lib/same.c, userspec.c: Include xalloc.h.
88057
88058         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88059         not char *const and pointing to a constant array.
88060         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88061         (xrealloc): Comment fix.
88062
88063         * lib/userspec.c (parse_user_spec):
88064         Don't translate a message until just before returning,
88065         to avoid unnecessary translation.
88066
88067 2000-08-07  Jim Meyering  <meyering@lucent.com>
88068
88069         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88070         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88071         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88072         getgroups.c, gethostname.c, getopt.h, group-member.c,
88073         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88074         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88075         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88076         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88077         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88078         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88079         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88080         yesno.c: Back out Copyright date changes for each file with no change
88081         this year.  This eases coordination with other programs using the same
88082         source code modules.  From Paul Eggert.
88083
88084 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88085
88086         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88087         not char, for compatibility with glibc 2.1.3 strftime.c.
88088
88089 2000-08-03  Greg McGary  <greg@mcgary.org>
88090
88091         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88092         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88093         (EXTEND_BUFFER): Use them.
88094
88095 2000-08-01  Jim Meyering  <meyering@lucent.com>
88096
88097         * lib/dirname.c (ISSLASH): Define.
88098         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88099         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88100         both `\' and `/' may be use as path separators.
88101         Based on a patch from Prashant TR.
88102
88103 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88104
88105         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88106         slot vector a constant, since it might get modified.
88107
88108 2000-07-31  Jim Meyering  <meyering@lucent.com>
88109
88110         * lib/xmalloc.c: Use `virtual memory exhausted', not
88111         `Memory exhausted'.
88112         * lib/obstack.c (print_and_abort): Likewise.
88113
88114 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88115
88116         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88117         buffer, so that the caller can always quote one small
88118         component of a "memory exhausted" message in slot 0.
88119         From a suggestion by Jim Meyering.
88120
88121 2000-07-30  Jim Meyering  <meyering@lucent.com>
88122
88123         * lib/makepath.c (make_path): Quote the other instance, too.
88124
88125         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88126         (STATIC_BUF_SIZE): Define.
88127         (quotearg_n_options): Use only statically allocated storage when
88128         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88129         than STATIC_BUF_SIZE.
88130
88131 2000-07-29  Jim Meyering  <meyering@lucent.com>
88132
88133         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88134         * lib/dirname.c (dir_name): Likewise.
88135
88136         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88137         `/'.
88138
88139         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88140         (dir_name): Assert that there are no trailing slashes.
88141
88142 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88143
88144         * lib/mbswidth.h (mbswidth): Add a flags argument.
88145         (mbswidth): New declaration.
88146         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88147         * lib/mbswidth.c (mbswidth): Add a flags argument.
88148         (mbsnwidth): New function.
88149
88150 2000-07-24  Jim Meyering  <meyering@lucent.com>
88151
88152         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88153
88154 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88155
88156         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88157
88158 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88159
88160         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88161         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88162         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88163         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88164         invoke multibyte primitives.
88165
88166 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88167
88168         * lib/quotearg.c:
88169         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88170         so that mbstate_t is always defined.
88171
88172         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88173         be 1 in at least one GCC installation, and this configuration
88174         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88175         performance on hosts that have mbrtowc but have only unibyte
88176         locales, but I assume these hosts are rare.
88177
88178 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88179
88180         * lib/mbswidth.c (_XOPEN_SOURCE):
88181         Don't define; this causes problems on Solaris 7.
88182         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88183
88184 2000-07-23  Jim Meyering  <meyering@lucent.com>
88185
88186         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88187         too: getgrgid, getpwuid, getuid.
88188
88189 2000-07-23  Jim Meyering  <meyering@lucent.com>
88190
88191         * lib/basename.c (base_name): Add an assertion.
88192
88193 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88194
88195         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88196         shadow its mbsinit function.
88197
88198 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88199
88200         * lib/mbswidth.h: New file.
88201         * lib/mbswidth.c: New file.
88202         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88203         (noinst_HEADERS): Add mbswidth.h.
88204
88205 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88206
88207         * lib/config.charset: Add support for FreeBSD. Improve support for
88208         HP-UX and IRIX 6.
88209
88210 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88211
88212         * m4/mbswidth.m4: New file.
88213         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88214
88215 2000-07-15  Jim Meyering  <meyering@lucent.com>
88216
88217         * lib/makepath.c: Include quote.h.
88218         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88219         corresponding argument in a `quote (...)' call.
88220         Give better diagnostics.
88221
88222         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88223         (noinst_HEADERS): Add quote.h.
88224
88225         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88226         from tar's src/misc.c.
88227         * lib/quote.h: New file.  Prototypes for same.
88228
88229 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88230
88231         From a suggestion by Bruno Haible.
88232         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88233         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88234         to decide whether to define the BeOS workaround macro;
88235         this adjusts to the change to AC_MBSTATE_T.
88236
88237 2000-07-14  Jim Meyering  <meyering@lucent.com>
88238
88239         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88240         jm_AC_TYPE_UINTMAX_T.
88241
88242 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88243
88244         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88245
88246         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88247         quotearg_buffer_restyled): Add support for
88248         clocale_quoting_style.  Undo previous change to
88249         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88250         and "{RIGHT QUOTATION MARK}" msgids.
88251
88252 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88253
88254         From a suggestion by Bruno Haible.
88255         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88256         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88257         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88258         and mbstate_t, to a single-part test that simply defines mbstate_t.
88259         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88260         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88261
88262 2000-07-10  Jim Meyering  <meyering@lucent.com>
88263
88264         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88265
88266         * m4/gnu-source.m4: Output to confdefs.h directly.
88267         Suggestion from Akim Demaille.
88268
88269 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88270
88271         The old behavior of quoting `like this' doesn't look good with
88272         newer, ISO-style fonts.  See:
88273         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88274
88275         Instead, quote "like this" by default.  Let the translator
88276         tailor the locale-specific quoting behavior by providing
88277         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88278
88279         * lib/quotearg.c (N_): New macro.
88280         (gettext_default): New function.
88281         (quotearg_buffer_restyled): Use
88282         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88283         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88284
88285 2000-07-09  Jim Meyering  <meyering@lucent.com>
88286
88287         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88288         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88289
88290         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88291         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88292
88293 2000-07-09  Jim Meyering  <meyering@lucent.com>
88294
88295         * lib/Most files: Update copyright dates to include 2000.
88296
88297 2000-07-08  Jim Meyering  <meyering@lucent.com>
88298
88299         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88300         if not defined.
88301         (xgethostname): Remove now-unnecessary #ifdef.
88302         Move declaration of `err' into loop where it's used.
88303
88304 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88305         and Bruno Haible  <haible@clisp.cons.org>
88306
88307         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88308         only if the test for an object-type mbstate_t fails.  This
88309         prevents us from mistakenly reporting that mbstate_t is a
88310         system object type after we "#define mbstate_t int" to work
88311         around its lack.
88312
88313 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88314         and Bruno Haible  <haible@clisp.cons.org>
88315
88316         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88317
88318 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88319
88320         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88321         to strerror_r.
88322         Include <ctype.h> for use of isalpha.
88323
88324 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88325
88326         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88327         by allocating a larger buffer. Test the gethostname return value for
88328         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88329         returns an error and ENAMETOOLONG isn't defined.
88330
88331 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88332
88333         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88334         dimension.
88335
88336 2000-07-04  Jim Meyering  <meyering@lucent.com>
88337
88338         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88339         of the deprecated AC_CHECKING.
88340
88341 2000-07-04  Jim Meyering  <meyering@lucent.com>
88342
88343         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88344         Reported by Bruno Haible.
88345
88346 2000-07-04  Jim Meyering  <meyering@lucent.com>
88347
88348         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88349         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88350         lacks mbrtowc.
88351
88352 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88353
88354         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88355         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88356
88357 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88358         and Bruno Haible  <haible@clisp.cons.org>
88359
88360         * lib/quotearg.c (mbrtowc):
88361         Assign to *pwc, and return 1 only if result is nonzero.
88362         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88363
88364 2000-07-03  Jim Meyering  <meyering@lucent.com>
88365
88366         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88367
88368 2000-07-03  Jim Meyering  <meyering@lucent.com>
88369
88370         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88371         This is necessary to get a definition of e.g., UTMP_FILE on
88372         HP-UX 10.20.
88373         From Bob Proulx.
88374
88375 2000-07-02  Jim Meyering  <meyering@lucent.com>
88376
88377         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88378
88379         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88380         AC_LIBOBJ(function_name).
88381         * m4/chown.m4: Likewise.
88382         * m4/fnmatch.m4: Likewise.
88383         * m4/ftruncate.m4: Likewise.
88384         * m4/getgroups.m4: Likewise.
88385         * m4/getline.m4: Likewise.
88386         * m4/group-member.m4: Likewise.
88387         * m4/jm-macros.m4: Likewise.
88388         * m4/lstat.m4: Likewise.
88389         * m4/malloc.m4: Likewise.
88390         * m4/memcmp.m4: Likewise.
88391         * m4/nanosleep.m4: Likewise.
88392         * m4/putenv.m4: Likewise.
88393         * m4/realloc.m4: Likewise.
88394         * m4/regex.m4: Likewise.
88395         * m4/stat.m4: Likewise.
88396         * m4/strftime.m4: Likewise.
88397
88398 2000-07-02  Jim Meyering  <meyering@lucent.com>
88399
88400         * lib/quotearg.c (mbstate_t): Don't define here.
88401
88402 2000-07-02  Jim Meyering  <meyering@lucent.com>
88403
88404         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88405
88406 2000-07-01  Jim Meyering  <meyering@lucent.com>
88407
88408         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88409
88410 2000-07-01  Jim Meyering  <meyering@lucent.com>
88411
88412         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88413         problem.
88414
88415 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88416
88417         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88418         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88419
88420 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88421
88422         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88423         per change in ../m4/ls-mntd-fs.m4.
88424         (read_filesystem_list): Ignore symbolic links.
88425
88426 2000-06-29  Jim Meyering  <meyering@lucent.com>
88427
88428         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88429         for declaration of strcmp.
88430
88431         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88432
88433         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88434         Avoid warning by casting result to `char *' to remove `const'.
88435
88436 2000-06-28  Jim Meyering  <meyering@lucent.com>
88437
88438         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88439         included by quotearg.c, for which we perform this test.  From
88440         Bruno Haible.
88441
88442 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88443
88444         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88445         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88446         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88447
88448 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88449
88450         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88451
88452 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88453
88454         savedir now sets errno on failure and invokes xmalloc to get memory.
88455         Fix a couple of other minor bugs while we're at it.
88456
88457         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88458         (NAMLEN): Remove macro.
88459         (malloc, realloc): Remove decls.
88460         (stpcpy): Likewise.
88461         ("xalloc.h"): Include.
88462         (NAME_SIZE_DEFAULT): New macro.
88463         (savedir): Use xmalloc / xrealloc to allocate memory.
88464         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88465         Skip "" directory entries.
88466         Use strlen to calculate directory entry length, since the old method
88467         is rarely used these days and isn't worth supporting.
88468         Don't use a pointer after freeing it.
88469         Check for integer overflow when calculating allocation size.
88470         Use memcpy to copy entries, instead of stpcpy.
88471         Set errno properly when returning NULL.
88472         Check for readdir error.
88473
88474 2000-06-26  Jim Meyering  <meyering@lucent.com>
88475
88476         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88477
88478 2000-06-25  Jim Meyering  <meyering@lucent.com>
88479
88480         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88481         Linux header bug when _XOPEN_SOURCE is defined to 500.
88482
88483 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88484
88485         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88486         deficiency.
88487
88488 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88489
88490         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88491         Include xalloc.h.
88492         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88493
88494 2000-06-24  Jim Meyering  <meyering@lucent.com>
88495
88496         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88497         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88498         for which strerror does return char*, but which lacks a conveniently
88499         accessible declaration of the function.  If the compile-test says
88500         strerror_r doesn't work, then resort to a `run'-test that works on
88501         BeOS and segfaults on DEC Unix.
88502
88503 2000-06-24  Jim Meyering  <meyering@lucent.com>
88504
88505         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88506
88507 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88508
88509         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88510         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88511
88512 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88513
88514         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88515         (mbrtowc, mbstate_t): Define substitutes if
88516         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88517         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88518         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88519
88520 2000-06-23  Jim Meyering  <meyering@lucent.com>
88521
88522         * m4/afs.m4: Add missing AC_MSG_RESULT.
88523         Reported by Bruno Haible.
88524
88525         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88526         Suggestion from Bruno Haible.
88527
88528 2000-06-23  Jim Meyering  <meyering@lucent.com>
88529
88530         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88531
88532 2000-06-21  Jim Meyering  <meyering@lucent.com>
88533
88534         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88535
88536 2000-06-21  Jim Meyering  <meyering@lucent.com>
88537
88538         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88539         (noinst_HEADERS): Add getstr.h.
88540
88541         * lib/getline.c (getstr): Move into a separate file.
88542         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88543         the following changes: new parameter, delim2; both delim[12]
88544         parameters have type `int', not `char'.  The latter would lose
88545         with 8-bit delimiters.
88546         * lib/getstr.h: New file.
88547
88548 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88549
88550         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88551         than 1024, return a memory chunk of least possible size, instead
88552         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88553         Use free/xmalloc instead of xrealloc to avoid copying for very long
88554         paths.
88555
88556 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88557
88558         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88559         the empty string.
88560
88561 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88562
88563         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88564         address, not strdup.  Include <stdlib.h> and don't declare free().
88565
88566 2000-06-19  Jim Meyering  <meyering@lucent.com>
88567
88568         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88569
88570 2000-06-18  Jim Meyering  <meyering@lucent.com>
88571
88572         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88573
88574         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88575         `checking whether...' message to be consistent with that of the
88576         lstat test.
88577
88578 2000-06-18  Jim Meyering  <meyering@lucent.com>
88579
88580         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88581         Besides, these days every porting target provides a mkdir function.
88582
88583         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88584         needed. (this snippet comes from src/system.h).
88585
88586 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88587
88588         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88589
88590 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88591
88592         * lib/human.c (adjust_value): New function.
88593         (human_readable_inexact): Apply rounding style even when
88594         printing approximate values.
88595
88596 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88597
88598         * lib/human.c (human_readable_inexact): Allow an input block
88599         size that is not a multiple of the output block size, and vice versa.
88600         Reported by Piergiorgio Sartor.
88601
88602 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88603
88604         * lib/getdate.y (get_date): Apply relative times after time
88605         zone indicator, not before.  Reported by Todd A. Jacobs.
88606
88607 2000-06-13  Jim Meyering  <meyering@lucent.com>
88608
88609         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88610
88611         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88612
88613 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88614
88615         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88616
88617 2000-06-12  Jim Meyering  <meyering@lucent.com>
88618
88619         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88620         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88621         optional argument.
88622         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88623         the optional argument, `lib'.
88624
88625 2000-06-08  Jim Meyering  <meyering@lucent.com>
88626
88627         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88628
88629 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88630
88631         Rewrite largefile configuration so that we don't need to run
88632         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88633         AC_CANONICAL_HOST in configure.in -- jmm]
88634
88635         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88636         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88637         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88638         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88639         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88640         All uses changed.
88641         Instead of inspecting the output of getconf, try to compile the
88642         test program without and with the macro definition.
88643         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88644         for getconf.  Instead, check for the needed flags by compiling
88645         test programs.
88646
88647 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88648
88649         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88650
88651 2000-06-04  Jim Meyering  <meyering@lucent.com>
88652
88653         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88654         SunOS 4.1.4 for which gid_t is an unsigned type.
88655
88656 2000-06-03  Jim Meyering  <meyering@lucent.com>
88657
88658         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88659         now that autoconf requires that.
88660
88661         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88662         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88663         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88664
88665 2000-06-03  Jim Meyering  <meyering@lucent.com>
88666
88667         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88668
88669 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88670
88671         * m4/glibc21.m4: New file.
88672         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88673
88674 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88675
88676         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88677         newer, don't install charset.alias.
88678         * lib/config.charset: Change the Linux/glibc rules so they become empty
88679         on glibc-2.1 or newer.
88680
88681 2000-06-02  Jim Meyering  <meyering@lucent.com>
88682
88683         * lib/mountlist.c: Back out last change.  Instead, do this...
88684         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88685         me_dummy member using the same `ignore'-testing code.
88686         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88687         fs_type strings.
88688         From Mark D. Roth.
88689
88690 2000-05-29  Jim Meyering  <meyering@lucent.com>
88691
88692         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88693         mounts with the `ignore' attribute.  Based on a patch from
88694         Mark D. Roth.
88695
88696 2000-05-28  Jim Meyering  <meyering@lucent.com>
88697
88698         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88699         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88700         * m4/stat.m4: Likewise.
88701         * m4/lstat.m4: Likewise.
88702         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88703
88704         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88705         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88706
88707 2000-05-26  Jim Meyering  <meyering@lucent.com>
88708
88709         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88710
88711 2000-05-24  Jim Meyering  <meyering@lucent.com>
88712
88713         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88714         autoconf requires that.
88715         * m4/lib-check.m4: Likewise.
88716         * m4/jm-macros.m4: Likewise.
88717         * m4/strftime.m4: Likewise.
88718
88719         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88720         AC_CHECK_DECLS, now that autoconf requires that.
88721
88722 2000-05-22  Jim Meyering  <meyering@lucent.com>
88723
88724         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88725         * m4/lstat.m4: Likewise.
88726
88727 2000-05-22  Jim Meyering  <meyering@lucent.com>
88728
88729         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88730
88731 2000-05-20  Jim Meyering  <meyering@lucent.com>
88732
88733         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88734         (jm_PREREQ): Use it.
88735
88736 2000-05-18  Jim Meyering  <meyering@lucent.com>
88737
88738         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88739         back, too, since it may have been modified by allocate_entry.
88740         (hash_delete): Rewrite to use neither the assignment operator
88741         nor the comma operator in an if-expression.
88742
88743 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88744
88745         * lib/closeout.c:
88746         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88747         Remove; no longer needed.
88748         "quotearg.h": Add include.
88749         (file_name): Do not bother to explicitly initialize to NULL; it's less
88750         efficient on some hosts.
88751         (close_stdout_status): Remove test as to whether stdout was already
88752         closed; it breaks for the case "echo x | sort >&-".
88753         Quote file name colons.
88754         Do not assume that _("write error") lacks format strings.
88755
88756 2000-05-15  Jim Meyering  <meyering@lucent.com>
88757
88758         * lib/version-etc.c (version_etc_copyright): Update the copyright
88759         string used in all --version output.
88760
88761 2000-05-14  Jim Meyering  <meyering@lucent.com>
88762
88763         * lib/closeout.c (close_stdout_set_file_name): New function.
88764         (close_stdout_status): Use new file-scoped global.
88765         Return right away if fstat says the stdout file descriptor is invalid.
88766         * lib/closeout.h (close_stdout_set_file_name): Declare.
88767
88768 2000-05-10  Jim Meyering  <meyering@lucent.com>
88769
88770         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88771         (close_stdout_set_status): New function.
88772         * lib/closeout.h (close_stdout_set_status): Declare.
88773
88774 2000-05-09  Jim Meyering  <meyering@lucent.com>
88775
88776         * m4/gettext.m4: Rename this...
88777         * m4/libintl.m4: ...to this.
88778
88779 2000-05-08  Jim Meyering  <meyering@lucent.com>
88780
88781         * lib/long-options.c: Don't include closeout.h.
88782         (parse_long_options): Don't call close_stdout for --version.
88783
88784 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88785
88786         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88787         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88788         2.1.3 bug.  This avoids a clash when files like regex.c define
88789         _GNU_SOURCE.
88790
88791 2000-05-06  Jim Meyering  <meyering@lucent.com>
88792
88793         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88794         (AC_REPLACE_FUNCS): Add strnlen.
88795
88796         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88797         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88798
88799         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88800         AC_SEARCH_LIBS call for nanosleep.
88801         (LIB_NANOSLEEP): Set and AC_SUBST.
88802
88803 2000-05-06  Jim Meyering  <meyering@lucent.com>
88804
88805         * lib/strnlen.c: Undefine __strnlen and strnlen.
88806         [!weak_alias]: Define __strnlen to strnlen.
88807
88808         * lib/atexit.c: New file, from libiberty.
88809
88810 2000-05-06  Jim Meyering  <meyering@lucent.com>
88811
88812         * lib/closeout.c (close_stdout_status): Also check for errors on the
88813         stderr stream.
88814
88815 2000-05-05  Jim Meyering  <meyering@lucent.com>
88816
88817         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88818         AC_SEARCH_LIBS call for clock_gettime.
88819         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88820
88821         * m4/search-libs.m4: Update from autoconf.
88822
88823         su doesn't work on Solaris 2.6.
88824         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88825         <shadow.h>.  Reported by Dragos Harabor.
88826
88827 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88828
88829         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88830         memcpy instead of xmalloc, xrealloc, path_concat.
88831         (locale_charset): Treat empty environment variables as absent.
88832         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88833
88834 2000-05-04  Jim Meyering  <meyering@lucent.com>
88835
88836         * lib/getopt.c: Update from glibc.
88837         * lib/obstack.c: Likewise.
88838         * lib/obstack.h: Likewise.
88839         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88840         file
88841
88842         * lib/regex.h: Likewise.
88843         * lib/strndup.c: Likewise.
88844         * lib/strnlen.c: New file, from glibc.
88845
88846 2000-05-03  Jim Meyering  <meyering@lucent.com>
88847
88848         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88849
88850 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88851
88852         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88853         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88854         compile-time test, rather than inspecting host and OS, to
88855         decide whether to define _LARGEFILE_SOURCE.
88856
88857 2000-05-01  Jim Meyering  <meyering@lucent.com>
88858
88859         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88860
88861         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88862         Based on a patch from Bruno Haible.
88863
88864 2000-05-01  Jim Meyering  <meyering@lucent.com>
88865
88866         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88867
88868 2000-04-29  Jim Meyering  <meyering@lucent.com>
88869
88870         * lib/path-concat.c: Declare strdup only if it's not defined.
88871         * lib/canon-host.c: Likewise.
88872
88873 2000-04-28  Jim Meyering  <meyering@lucent.com>
88874
88875         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88876         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88877         is included first, then limits.h is included by locale.h by libintl.h.
88878         From John David Anglin.
88879
88880 2000-04-25  Jim Meyering  <meyering@lucent.com>
88881
88882         * lib/makepath.c (S_IRWXUGO): Define.
88883         (make_path): Always perform explicit chmod if MODE specifies any
88884         of the `special' permission bits.  Prompted by a bug report against
88885         install from Mate Wierdl and Joost van Baal.
88886
88887 2000-04-18  Jim Meyering  <meyering@lucent.com>
88888
88889         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88890         (jm_PREREQ): Use it.
88891
88892 2000-04-18  Jim Meyering  <meyering@lucent.com>
88893
88894         * lib/README: New file.
88895
88896         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88897         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88898
88899 2000-04-17  Jim Meyering  <meyering@lucent.com>
88900
88901         Get it right :-)
88902         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88903         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88904         Suggestion from Akim Demaille.
88905
88906 2000-04-17  Jim Meyering  <meyering@lucent.com>
88907
88908         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88909         the definition of it to rpl_strftime also defined-away the system's
88910         declaration.
88911
88912 2000-04-15  Jim Meyering  <meyering@lucent.com>
88913
88914         Use `C' to denote so-called `contiguous' files, the same way
88915         that tar does.
88916         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88917         (ftypelet): Use S_ISCTG.
88918         From Michael Deutschmann.
88919
88920 2000-04-14  Jim Meyering  <meyering@lucent.com>
88921
88922         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88923         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88924         clobbered.
88925
88926 2000-04-14  Jim Meyering  <meyering@lucent.com>
88927
88928         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88929
88930 2000-04-13  Jim Meyering  <meyering@lucent.com>
88931
88932         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88933         AH_VERBATIM to insert required #ifndef into config.h.in.
88934         Suggestion from Akim Demaille.
88935
88936 2000-04-12  Jim Meyering  <meyering@lucent.com>
88937
88938         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88939         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88940         Christian Krackowizer.
88941
88942         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88943         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88944         (AC_SYS_LARGEFILE): Require.
88945         (AM_C_PROTOTYPES): Require.
88946
88947 2000-04-08  Jim Meyering  <meyering@lucent.com>
88948
88949         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88950         names don't conflict.  Reported by Eli Zaretskii.
88951
88952 2000-04-07  Jim Meyering  <meyering@lucent.com>
88953
88954         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88955         sys/types.h, to work around system header problems on AIX 3.2.5.
88956         From Bruno Haible.
88957
88958 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88959
88960         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88961         bug.  Deal with the different error behavior of Irix iconv.
88962
88963 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88964
88965         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88966         IRIX if the installer said otherwise.
88967
88968 2000-04-05  Jim Meyering  <meyering@lucent.com>
88969
88970         Portability tweaks required for ultrix4.3.
88971         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88972         (jm_CHECK_DECLS): Add getutent to the list of functions.
88973         (_jm_DECL_HEADERS): Add utmpx.h.
88974         From John David Anglin.
88975
88976         * m4/strftime.m4: Back out the 2000-04-02 change.
88977         Instead of that change, simply undefine putenv in the test program.
88978
88979 2000-04-05  Jim Meyering  <meyering@lucent.com>
88980
88981         Portability tweaks required for ultrix4.3.
88982         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88983         getutent.
88984         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88985         * lib/canon-host.c: Declare strdup.
88986         * lib/path-concat.c: Likewise.
88987         From John David Anglin.
88988
88989 2000-04-04  Jim Meyering  <meyering@lucent.com>
88990
88991         Be more DOS 8.3-friendly.
88992         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88993         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88994         * lib/Makefile.am: Reflect renaming.
88995         Reported by Eli Zaretskii.
88996
88997         Use a temporary file name that won't clash with `charset.alias'
88998         in the DOS 8.3 name space.
88999         * lib/Makefile.am (charset_tmp): Define.
89000         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89001         (uninstall-local): Likewise.
89002         Reported by Eli Zaretskii.
89003
89004 2000-04-03  Jim Meyering  <meyering@lucent.com>
89005
89006         * m4/gettext.m4: Fix typo in comment.
89007
89008         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89009         textutils/configure.in).  Suggestion from Paul Eggert.
89010         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89011
89012 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89013
89014         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89015         variable in the shell rather than using putenv, which isn't
89016         portable.  This avoids the configure-time inter-test dependency
89017         on the potentially-renamed putenv function.
89018
89019 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89020
89021         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89022         before checking struct stat.st_blksize, so that
89023         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89024
89025 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89026
89027         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89028         since strftime.c uses HAVE_STRFTIME to decide whether to use
89029         the underlying strftime.
89030
89031 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89032
89033         * lib/time/strftime.c (my_strftime): Make sure we call the system
89034         strftime, not ourselves, when invoking the underlying strftime.
89035
89036 2000-03-24  Jim Meyering  <meyering@lucent.com>
89037
89038         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89039         (charset_alias): Define.
89040         (install-exec-local): Factor out common code.
89041         (uninstall-local): Split lines longer than 80.
89042         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89043         (SUFFIXES): Define.
89044         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89045         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89046
89047 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89048
89049         * lib/config.charset: Output a line containing "Packages using this
89050         file".
89051         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89052         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89053         ref-del.sed): New rules.
89054
89055 2000-03-17  Jim Meyering  <meyering@lucent.com>
89056
89057         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89058         Otherwise, include <strings.h>
89059
89060 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89061
89062         * lib/unicodeio.c (utf8_wctomb): New function.
89063         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89064         format instead of in UCS-4 with platform dependent endianness.
89065
89066 2000-03-10  Jim Meyering  <meyering@lucent.com>
89067
89068         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89069         From Marco Franzen.
89070
89071 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89072
89073         * lib/savedir.c (savedir): Work even if directory size is
89074         negative; this can happen with some screwy NFS configurations.
89075
89076 2000-03-06  Jim Meyering  <meyering@lucent.com>
89077
89078         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89079         if it's NULL (because we ran out of memory).  From Bruno Haible.
89080
89081 2000-03-05  Jim Meyering  <meyering@lucent.com>
89082
89083         * lib/localcharset.c ("path-concat.h"): Include.
89084         (get_charset_aliases): Use path_concat instead of ANSI string
89085         concatenation.
89086
89087         * lib/unicodeio.h (PARAMS): Define.
89088         Use it to guard prototype.
89089
89090 2000-03-04  Jim Meyering  <meyering@lucent.com>
89091
89092         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89093         for lib/localcharset.c.
89094
89095 2000-03-04  Jim Meyering  <meyering@lucent.com>
89096
89097         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89098         installing into it.
89099         (uninstall-local): Uncomment this rule so `make distcheck' works
89100         once again.
89101
89102         * lib/unicodeio.c (<errno.h>): Include it.
89103         (errno): Declare if not defined.
89104
89105         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89106
89107         * lib/config.charset: New version, incorporating remarks from a linux
89108         i18n mailing list.  From Bruno Haible.
89109
89110 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89111
89112         * m4/codeset.m4: New file.
89113         * m4/iconv.m4: New file.
89114         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89115
89116 2000-03-03  Jim Meyering  <meyering@lucent.com>
89117
89118         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89119
89120 2000-03-02  Jim Meyering  <meyering@lucent.com>
89121
89122         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89123         the messages come out on separate lines.
89124
89125         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89126         rather than jm_CHECK_DECLARATIONS.
89127         * m4/decl.m4: Remove now-unused file.
89128
89129         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89130         geteuid.
89131
89132 2000-03-02  Jim Meyering  <meyering@lucent.com>
89133
89134         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89135
89136 2000-03-01  Jim Meyering  <meyering@lucent.com>
89137
89138         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89139         * lib/unicodeio.c: Likewise.
89140
89141 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89142
89143         * lib/config.charset: New file.
89144         * lib/localcharset.c: New file.
89145         * lib/unicodeio.h, lib/unicodeio.c: New files.
89146         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89147         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89148         (noinst_HEADERS): Add unicodeio.h.
89149         (all-local, install-exec-local, charset.alias): New targets.
89150
89151 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89152
89153         * lib/quotearg.c (ALERT_CHAR): New macro.
89154         (quotearg_buffer_restyled): Use it.
89155
89156 2000-02-27  Jim Meyering  <meyering@lucent.com>
89157
89158         * m4/check-decl.m4: Add getenv to the list.
89159
89160 2000-02-27  Jim Meyering  <meyering@lucent.com>
89161
89162         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89163         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89164
89165         * lib/backupfile.c: Guard inclusion of stdlib.h with
89166         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89167         Declare malloc if needed.
89168
89169         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89170         `#ifndef HAVE_DECL..'
89171         now that autoconf always defines the HAVE_DECL_ symbols.
89172         * lib/human.c: Likewise.
89173         * lib/same.c: Likewise.
89174         * lib/strtoumax.c: Likewise.
89175
89176         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89177         declaration check was not run.
89178         * lib/hash.c: Likewise.
89179         * lib/human.c: Likewise.
89180         * lib/same.c: Likewise.
89181         * lib/strtoumax.c: Likewise.
89182
89183         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89184         `.', then first look up the entire `.'-containing string as a login
89185         name.
89186
89187 2000-02-23  Jim Meyering  <meyering@lucent.com>
89188
89189         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89190         in place of my hack.
89191
89192 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89193
89194         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89195         (textint): New typedef.
89196         (parser_control): Member year changed from int to textint.
89197         All uses changed.
89198         (YYSTYPE): Removed; replaced by %union with int and textint members.
89199         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89200         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89201         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89202         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89203         (date, number, to_year): Use width of number in digits, not its value,
89204         to determine whether it's a 2-digit year, or a 2-digit time.
89205         (yylex): Store number of digits of numeric tokens.
89206         Reported by John Kendall.
89207
89208         (parser_control): Changed from struct parser_control to typedef (for
89209         consistency).  All uses changed.
89210
89211         (tID): Removed; not used.
89212         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89213
89214 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89215
89216         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89217         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89218
89219 2000-02-12  Jim Meyering  <meyering@lucent.com>
89220
89221         * lib/userspec.c (ISDIGIT): Define it.
89222         (isdigit): Remove definition.
89223         (is_number): Use ISDIGIT, not isdigit.
89224         <libintl.h>: Include.
89225         (_ and N_): Define.
89226         (parse_user_spec): Mark translatable strings.
89227
89228 2000-02-10  Jim Meyering  <meyering@lucent.com>
89229
89230         With these changes, nanosleep.[ch] are finally enough like the other
89231         lib/* replacement files to compile on a few more losing systems.
89232
89233         * lib/nanosleep.h: Don't include config.h.
89234         Remove prototype from declaration of nanosleep.
89235         (PARAMS): Remove now-unneeded definition.
89236         * lib/nanosleep.c: #undef nanosleep.
89237         (rpl_nanosleep): Rename from nanosleep.
89238
89239 2000-02-10  Jim Meyering  <meyering@lucent.com>
89240
89241         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89242         gnu_nanosleep to rpl_nanosleep.
89243
89244 2000-02-09  Jim Meyering  <meyering@lucent.com>
89245
89246         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89247         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89248
89249 2000-02-08  Akim Demaille  <akim@epita.fr>
89250
89251         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89252         `[' and `]' and remove uses of `changequote'.
89253         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89254         (AC_SYS_LARGEFILE): Likewise.
89255         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89256         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89257         of changequote.
89258         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89259         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89260         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89261         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89262
89263 2000-02-05  Jim Meyering  <meyering@lucent.com>
89264
89265         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89266         Remove explicit use of AC_HEADER_TIME.  It is required by
89267         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89268         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89269         in autoconf whereby the expansion of the latter ended up preceding
89270         the expansion of its prerequisite, AC_HEADER_TIME.
89271         Reported by Volker Borchert.
89272
89273 2000-02-03  Jim Meyering  <meyering@lucent.com>
89274
89275         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89276
89277 2000-02-03  Jim Meyering  <meyering@lucent.com>
89278
89279         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89280         rather than with `#if HAVE_UTMPNAME'.
89281
89282 2000-02-02  Jim Meyering  <meyering@lucent.com>
89283
89284         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89285         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89286         Reported by Eli Zaretskii.
89287
89288 2000-02-01  Jim Meyering  <meyering@lucent.com>
89289
89290         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89291
89292 2000-01-31  Jim Meyering  <meyering@lucent.com>
89293
89294         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89295         functions.  Add the time.h and sys/time.h headers along with the
89296         AC_REQUIRE'ment of AC_HEADER_TIME.
89297
89298 2000-01-31  Jim Meyering  <meyering@lucent.com>
89299
89300         * lib/nanosleep.h (nanosleep): Guard declaration with
89301         `#if ! HAVE_DECL_NANOSLEEP'.
89302         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89303         the declaration in that vendor's sys/timers.h.
89304         Reported by Christian Krackowizer.
89305
89306         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89307         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89308         (ISPRINT): Likewise.
89309         Reported by Tom Tromey.
89310
89311 2000-01-30  Jim Meyering  <meyering@lucent.com>
89312
89313         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89314
89315         * m4/prereq.m4 (utmp_includes): Define.
89316         Check for ut_user and ut_name members in both struct utmpx
89317         and struct utmp.
89318
89319 2000-01-30  Jim Meyering  <meyering@lucent.com>
89320
89321         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89322         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89323         header files where only utmpx.ut_user is declared.
89324
89325         * lib/readutmp.h (UT_USER): Define.
89326
89327 2000-01-29  Jim Meyering  <meyering@lucent.com>
89328
89329         * m4/lib-check.m4: New file containing library-related checks from
89330         fileutils and sh-utils (textutils had none).
89331
89332 2000-01-28  Jim Meyering  <meyering@lucent.com>
89333
89334         * m4/perl.m4: Change format of warning message to look more like that
89335         from the missing script.  Suggestion from François Pinard.
89336
89337 2000-01-25  Jim Meyering  <meyering@lucent.com>
89338
89339         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89340         well as time.h in the compile check.
89341         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89342         Fix typo in cross-compiling case: s/yes/no/.
89343
89344 2000-01-23  Jim Meyering  <meyering@lucent.com>
89345
89346         * m4/jm-macros.m4: Move df-related tests here from
89347         fileutils/configure.in
89348
89349         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89350         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89351
89352         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89353         s/space/ac_fsusage_space/.
89354         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89355
89356         * m4/ftruncate.m4: New file (derived from part of
89357         fileutils/configure.in).
89358         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89359         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89360
89361         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89362         AC_SUBST these here, rather than just in sh-util/configure.in, so
89363         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89364         all the same.
89365         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89366         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89367         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89368         (AC_SUBST(POW_LIBM)): Likewise.
89369         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89370
89371 2000-01-23  Jim Meyering  <meyering@lucent.com>
89372
89373         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89374         obstack.c.
89375
89376 2000-01-22  Jim Meyering  <meyering@lucent.com>
89377
89378         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89379
89380         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89381
89382         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89383         configure.in
89384         (AC_CHECK_HEADERS): Likewise for sh-utils.
89385         (AC_CHECK_HEADERS): Likewise for textutils.
89386         Merge the three lists of headers.
89387
89388         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89389         from fileutils' configure.in.
89390
89391         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89392         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89393         check-decl.m4.
89394
89395         * m4/check-decl.m4: Use #if rather than #ifdef.
89396         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89397         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89398         (_jm_DECL_HEADERS): Define new function.
89399         (jm_CHECK_DECLARATIONS): Require it.
89400
89401 2000-01-22  Jim Meyering  <meyering@lucent.com>
89402
89403         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89404         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89405         Required for some AIX systems.  Reported by Christian Krackowizer.
89406         [TESTING] (main): New function.
89407
89408         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89409         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89410         letters.
89411
89412         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89413         iswprint.
89414
89415         * lib/strverscmp.c (ISDIGIT): Define.
89416         (strverscmp): Use ISDIGIT, not isdigit.
89417
89418 2000-01-19  Jim Meyering  <meyering@lucent.com>
89419
89420         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89421         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89422         defines `struct timespec' in <sys/time.h>
89423
89424         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89425         Thanks to Akim for explaining.
89426
89427 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89428
89429         * lib/nanosleep.c (nanosleep):
89430         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89431         POSIX.1 doesn't require SA_INTERRUPT and some systems
89432         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89433         it's been part of POSIX.1 since day 1 (in 1988).
89434
89435 2000-01-17  Jim Meyering  <meyering@lucent.com>
89436
89437         * lib/interlock: Remove unused file.  Reported by François Pinard.
89438
89439 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89440
89441         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89442         alert, backslash, formfeed, and vertical tab unnecessarily in
89443         shell quoting style.
89444
89445 2000-01-16  Jim Meyering  <meyering@lucent.com>
89446
89447         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89448         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89449         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89450         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89451
89452 2000-01-16  Jim Meyering  <meyering@lucent.com>
89453
89454         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89455         because the latter didn't work.
89456
89457 2000-01-15  Jim Meyering  <meyering@lucent.com>
89458
89459         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89460         (AC_REPLACE_FUNCS): Add memcpy and memset.
89461         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89462         Add strpbrk.
89463         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89464
89465 2000-01-12  Jim Meyering  <meyering@lucent.com>
89466
89467         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89468         (jm_PREREQ): Use it.
89469         (jm_PREREQ_READUTMP): New macro.
89470         (jm_PREREQ): Use it.
89471
89472 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89473
89474         Quote multibyte characters correctly.
89475         * m4/c-bs-a.m4: New file.
89476         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89477         (jm_PREREQ): Use it.
89478
89479 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89480
89481         * m4/uintmax_t.m4: Port to autoconf 2.13.
89482
89483 2000-01-08  Jim Meyering  <meyering@ascend.com>
89484
89485         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89486         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89487
89488 2000-01-04  Jim Meyering  <meyering@ascend.com>
89489
89490         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89491         jm_STRUCT_DIRENT_D_TYPE.
89492         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89493         jm_STRUCT_DIRENT_D_INO.
89494         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89495         jm_STRUCT_UTIMBUF.
89496         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89497         renamings.
89498         * m4/utime.m4: Likewise.
89499
89500         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89501         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89502
89503 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89504
89505         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89506         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89507
89508 2000-01-02  Jim Meyering  <meyering@ascend.com>
89509
89510         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89511         remember if this is necessary.
89512
89513 1999-12-26  Jim Meyering  <meyering@ascend.com>
89514
89515         * m4/jm-macros.m4: Use it here.
89516         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89517
89518 1999-12-23  Jim Meyering  <meyering@ascend.com>
89519
89520         * m4/jm-macros.m4: Check for clock_gettime (moved from
89521         fileutils/configure.in)
89522         Check for gettimeofday.
89523
89524 1999-12-20  Jim Meyering  <meyering@ascend.com>
89525
89526         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89527         autoconf-2.14a-1999-12-20.
89528
89529 1999-12-19  Jim Meyering  <meyering@ascend.com>
89530
89531         * m4/lstat-slash.m4: New file.
89532         * m4/jm-macros.m4: Use the new macro:
89533         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89534
89535 1999-12-07  Jim Meyering  <meyering@ascend.com>
89536
89537         * m4/perl.m4: Require that File::Compare be available, too.
89538         Too many systems seem to lack it.
89539
89540         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89541         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89542
89543 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89544
89545         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89546         problem with the QNX 4.25 shell, which doesn't propagate exit
89547         status of failed commands inside shell assignments.
89548
89549 1999-11-17  Jim Meyering  <meyering@ascend.com>
89550
89551         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89552
89553 1999-11-07  Jim Meyering  <meyering@ascend.com>
89554
89555         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89556
89557 1999-11-06  Jim Meyering  <meyering@ascend.com>
89558
89559         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89560         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89561
89562 1999-11-05  Jim Meyering  <meyering@ascend.com>
89563
89564         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89565         configure.in of textutils, fileutils, and sh-utils into this one
89566         (shared between those packages) file.
89567         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89568         AC_STRUCT_ST_BLKSIZE.
89569
89570 1999-11-03  Jim Meyering  <meyering@ascend.com>
89571
89572         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89573         of AC_CHECK_TYPE checks includes unistd.h.
89574         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89575         Suggestion from Akim Demaille.
89576
89577 1999-10-30  Jim Meyering  <meyering@ascend.com>
89578
89579         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89580         m4-quoted string.
89581         * m4/ls-mntd-fs.m4: Likewise.
89582         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89583         * m4/jm-winsz1.m4: Likewise.
89584
89585         * m4/const.m4: Remove file, since the fix made it into the experimental
89586         version of autoconf.
89587         * m4/mktime.m4: Likewise.
89588
89589         * m4/check-type.m4: Remove file, now that the latest version of
89590         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89591
89592         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89593         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89594         AC_CHECK_TYPE.
89595
89596 1999-10-04  Jim Meyering  <meyering@ascend.com>
89597
89598         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89599
89600 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89601
89602         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89603         2.95.1 bug with HP-UX 10.20.
89604
89605 1999-09-17  Jim Meyering  <meyering@ascend.com>
89606
89607         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89608         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89609         due to missing strdup (against sh-utils-2.0).
89610
89611 1999-08-29  Jim Meyering  <meyering@ascend.com>
89612
89613         * m4/jm-macros.m4: Require jm_BISON.
89614         * m4/bison.m4: New file.
89615
89616 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89617
89618         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89619         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89620
89621 1999-08-05  Jim Meyering  <meyering@ascend.com>
89622
89623         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89624         to avoid conflicts with `conftest' on 8+3 filesystems.
89625         Suggestion from Eli Zaretskii.
89626
89627 1999-08-04  Jim Meyering  <meyering@ascend.com>
89628
89629         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89630         fileutils and sh-utils (textutils's getline test was inadequate).
89631         (AM_FUNC_GETLINE): Run this test.
89632         (AC_CHECK_FUNCS): Check for getdelim.
89633         Reported by Bob Proulx.
89634
89635 1999-08-02  Jim Meyering  <meyering@ascend.com>
89636
89637         * m4/jm-macros.m4: Add a comment.
89638
89639 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89640
89641         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89642         <inttypes.h> defines strtoumax as a macro (and not as a
89643         function).
89644
89645 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89646
89647         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89648         that we can shift, multiply and divide unsigned long long
89649         values; Ultrix cc can't do it.
89650
89651 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89652
89653         * m4/mktime.m4: New file, which is a preview of what should appear
89654         in the next public autoconf release.
89655
89656 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89657
89658         * m4/lfs.m4: Remove this file.
89659         * m4/largefile.m4: New file.  It contains the old contents of
89660         lfs.m4, except that all names with prefix AC_LFS have been
89661         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89662         compatible with future autoconf versions.  Also, some minor m4
89663         quoting problems have been fixed.
89664
89665 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89666
89667         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89668         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89669         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89670         and simplify the shell code.
89671
89672 1999-08-01  Jim Meyering  <meyering@ascend.com>
89673
89674         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89675         m4.
89676
89677 1999-07-20  Jim Meyering  <meyering@ascend.com>
89678
89679         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89680
89681 1999-07-15  Jim Meyering  <meyering@ascend.com>
89682
89683         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89684
89685 1999-05-22  Jim Meyering  <meyering@ascend.com>
89686
89687         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89688
89689 1999-05-20  Jim Meyering  <meyering@ascend.com>
89690
89691         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89692         Add a colon after each `then' in case $4 is empty.
89693
89694 1999-05-16  Jim Meyering  <meyering@ascend.com>
89695
89696         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89697
89698 1999-05-10  Jim Meyering  <meyering@ascend.com>
89699
89700         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89701
89702         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89703         AC_FUNC_MKTIME.
89704
89705 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89706
89707         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89708
89709 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89710
89711         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89712         not CPPFLAGS, so that linking works correctly in IRIX.
89713
89714 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89715
89716         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89717
89718 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89719
89720         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89721         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89722         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89723         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89724         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89725
89726         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89727
89728 1999-04-20  Jim Meyering  <meyering@ascend.com>
89729
89730         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89731         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89732         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89733
89734 1999-04-18  Jim Meyering  <meyering@ascend.com>
89735
89736         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89737         * m4/jm-macros.m4: Use it.
89738
89739 1999-04-06  Jim Meyering  <meyering@ascend.com>
89740
89741         * m4/strftime.m4: Remove test for %f.
89742
89743 1999-03-29  Jim Meyering  <meyering@ascend.com>
89744
89745         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89746         superset of the AC_TYPE_* checks in the textutils, fileutils,
89747         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89748         AC_TYPE_PID_T.
89749
89750 1999-03-28  Jim Meyering  <meyering@ascend.com>
89751
89752         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89753         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89754         replaced e.g., in the *.sh files of the sh-utils.
89755
89756 1999-03-20  Jim Meyering  <meyering@ascend.com>
89757
89758         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89759         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89760         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89761
89762 1999-03-19  Jim Meyering  <meyering@ascend.com>
89763
89764         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89765
89766 1999-03-12  Jim Meyering  <meyering@ascend.com>
89767
89768         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89769
89770 1999-03-07  Jim Meyering  <meyering@ascend.com>
89771
89772         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89773         declared.
89774
89775 1999-02-17  Jim Meyering  <meyering@ascend.com>
89776
89777         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89778         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89779
89780 1999-02-07  Jim Meyering  <meyering@ascend.com>
89781
89782         * m4/group-member.m4: New file -- extracted from sh-utils'
89783         configure.in.
89784
89785         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89786         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89787
89788 1999-02-06  Jim Meyering  <meyering@ascend.com>
89789
89790         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89791         * m4/fnmatch.m4: Likewise.
89792         * m4/getgroups.m4: Likewise.
89793         * m4/lstat.m4: Likewise.
89794         * m4/malloc.m4: Likewise.
89795         * m4/putenv.m4: Likewise.
89796         * m4/realloc.m4: Likewise.
89797         * m4/regex.m4: Likewise.
89798         * m4/stat.m4: Likewise.
89799         * m4/strftime.m4: Likewise.
89800         Suggestion from Alain Magloire.
89801
89802         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89803         * m4/fnmatch.m4: Likewise.
89804         * m4/getgroups.m4: Likewise.
89805         * m4/getline.m4: Likewise.
89806         * m4/lstat.m4: Likewise.
89807         * m4/malloc.m4: Likewise.
89808         * m4/memcmp.m4: Likewise.
89809         * m4/putenv.m4: Likewise.
89810         * m4/realloc.m4: Likewise.
89811         * m4/regex.m4: Likewise.
89812         * m4/stat.m4: Likewise.
89813         * m4/strftime.m4: Likewise.
89814         Suggestion from Alain Magloire.
89815
89816         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89817         an argument.
89818
89819         * m4/regex.m4: Add a run-time Test for proper operation of
89820         re_compile_pattern.
89821
89822 1999-01-31  Jim Meyering  <meyering@ascend.com>
89823
89824         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89825
89826 1999-01-30  Jim Meyering  <meyering@ascend.com>
89827
89828         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89829
89830         * m4/jm-mktime.m4: Make this a wrapper around the official
89831         AM_FUNC_MKTIME rather than my private copy, now that the official one
89832         is up to date.
89833         * m4/mktime.m4: Remove file.
89834
89835         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89836         * m4/uptime.m4: Likewise.
89837         * m4/uintmax_t.m4: Likewise.
89838
89839 1999-01-28  Jim Meyering  <meyering@ascend.com>
89840
89841         * m4/jm-macros.m4: Use jm_AFS.
89842         * m4/afs.m4: New file (from fileutils' configure.in).
89843
89844         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89845         * m4/chown.m4: Likewise.
89846         * m4/d-ino.m4: Likewise.
89847         * m4/d-type.m4: Likewise.
89848         * m4/fnmatch.m4: Likewise.
89849         * m4/getgroups.m4: Likewise.
89850         * m4/gettext.m4: Likewise.
89851         * m4/jm-mktime.m4: Likewise.
89852         * m4/jm-winsz2.m4: Likewise.
89853         * m4/lcmessage.m4: Likewise.
89854         * m4/ls-mntd-fs.m4: Likewise.
89855         * m4/malloc.m4: Likewise.
89856         * m4/memcmp.m4: Likewise.
89857         * m4/putenv.m4: Likewise.
89858         * m4/realloc.m4: Likewise.
89859         * m4/st_mtim.m4: Likewise.
89860         * m4/strftime.m4: Likewise.
89861
89862 1999-01-16  Jim Meyering  <meyering@ascend.com>
89863
89864         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89865         (ARGMATCH_DIE_DECL): Define.
89866
89867 1999-01-12  Jim Meyering  <meyering@ascend.com>
89868
89869         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89870         Reported by Lars Hecking.
89871
89872 1999-01-10  Jim Meyering  <meyering@ascend.com>
89873
89874         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89875         gross kludge.
89876         * m4/inttypes_h.m4: Likewise.
89877         * m4/lstat.m4: Likewise.
89878         * m4/malloc.m4: Likewise.
89879         * m4/readdir.m4: Likewise.
89880         * m4/realloc.m4: Likewise.
89881         * m4/st_dm_mode.m4: Likewise.
89882         * m4/stat.m4: Likewise.
89883         * m4/utimbuf.m4: Likewise.
89884         * m4/utimes.m4: Likewise.
89885
89886         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89887         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89888         comments in config.h.in are meaningful.
89889
89890         * m4/jm-macros.m4: Require autoconf-2.13 here.
89891
89892         * m4/regex.m4: By default, don't use the included regex.c on systems
89893         with glibc 2.  Suggestion from Uli Drepper.
89894
89895 1999-01-02  Jim Meyering  <meyering@ascend.com>
89896
89897         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89898
89899 1998-12-18  Jim Meyering  <meyering@ascend.com>
89900
89901         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89902         Based on a suggestion from Lars Hecking.
89903
89904 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89905
89906         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89907
89908 1998-11-16  Jim Meyering  <meyering@ascend.com>
89909
89910         * m4/lfs.m4: Double-quote the `uname...` expression.
89911
89912 1998-11-14  Jim Meyering  <meyering@ascend.com>
89913
89914         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89915         * m4/stat.m4: Likewise.
89916
89917 1998-11-03  Jim Meyering  <meyering@ascend.com>
89918
89919         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89920         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89921
89922 1998-10-18  Jim Meyering  <meyering@ascend.com>
89923
89924         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89925
89926 1998-10-17  Jim Meyering  <meyering@ascend.com>
89927
89928         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89929         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89930         calls for those previously hard-coded headers.  Instead, take a new
89931         parameter.
89932         (jm_CHECK_DECLARATIONS): Reflect interface change.
89933         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89934         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89935
89936         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89937
89938 1998-10-14  Jim Meyering  <meyering@ascend.com>
89939
89940         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89941         instead of "TZ=America/Vancouver".  From Paul Eggert.
89942
89943 1998-10-11  Jim Meyering  <meyering@ascend.com>
89944
89945         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89946         This adds a test for a recently added compatibility fix for mktime.c.
89947         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89948
89949 1998-09-27  Jim Meyering  <meyering@ascend.com>
89950
89951         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89952
89953         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89954         ../configure.in, including a change from Gordon Matzigkeit to allow
89955         cross-compiling for the Hurd.
89956
89957         * m4/glibc.m4: New file/macro to test for the GNU C Library
89958         versions 1 and 2.  From Gordon Matzigkeit.
89959         Indent.
89960
89961 1998-09-21  Jim Meyering  <meyering@ascend.com>
89962
89963         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89964
89965 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89966
89967         Port nanosecond-resolution times to UnixWare 2.1.2 and
89968         pedantic Solaris 2.6.
89969
89970         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89971         AC_STRUCT_ST_MTIM.
89972         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89973         Generate name of ns member, instead of just 1 or undef.
89974         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89975
89976 1998-08-15  Jim Meyering  <meyering@ascend.com>
89977
89978         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89979         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89980         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89981         instead of jm_TYPE_SSIZE_T.
89982
89983 1998-08-12  Jim Meyering  <meyering@ascend.com>
89984
89985         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89986
89987 1998-08-02  Jim Meyering  <meyering@ascend.com>
89988
89989         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89990         in acconfig.h manually.
89991
89992 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89993
89994         * m4/st_mtim.m4: New file.
89995
89996 1998-07-28  Jim Meyering  <meyering@ascend.com>
89997
89998         * m4/utimes.m4: Undef stat.
89999
90000 1998-07-25  Jim Meyering  <meyering@ascend.com>
90001
90002         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90003         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90004
90005 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90006
90007         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90008         uid and gid actually remain unchanged.
90009
90010 1998-07-07  Jim Meyering  <meyering@ascend.com>
90011
90012         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90013
90014 1998-07-04  Jim Meyering  <meyering@ascend.com>
90015
90016         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90017         to prove that this macro can be used in packages without regex.c.
90018
90019 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90020
90021         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90022         is to be used.
90023
90024 1998-07-03  Jim Meyering  <meyering@ascend.com>
90025
90026         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90027
90028         * m4/gettext.m4: New file -- from gettext-0.10.35.
90029         * m4/lcmessage.m4: Likewise.
90030         * m4/progtest.m4: Likewise.
90031
90032         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90033         * m4/jm-macros.m4: Require the new macro.
90034
90035 1998-06-29  Jim Meyering  <meyering@ascend.com>
90036
90037         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90038         for the definition of NGROUPS (used in a system header included
90039         by sys/mount.h).
90040
90041 1998-06-28  Jim Meyering  <meyering@ascend.com>
90042
90043         * m4/ls-mntd-fs.m4: New file.
90044         * m4/fstypename.m4: New file.
90045
90046         * m4/jm-macros.m4: Require the new macro.
90047         * m4/jm-glibc-io.m4: New file.
90048
90049 1998-05-19  Jim Meyering  <meyering@ascend.com>
90050
90051         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90052         * m4/lchown.m4: New file.
90053
90054         * m4/Makefile.am.in: New file.
90055         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90056
90057 1998-05-14  Jim Meyering  <meyering@ascend.com>
90058
90059         * m4/Makefile.am (EXTRA_DIST): Add them.
90060         * m4/jm-macros.m4: New file.
90061         * m4/utimbuf.m4: New file.
90062
90063 1998-05-12  Jim Meyering  <meyering@ascend.com>
90064
90065         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90066
90067 1998-05-11  Jim Meyering  <meyering@ascend.com>
90068
90069         * m4/isc-posix.m4: New file.
90070
90071 1998-05-10  Jim Meyering  <meyering@ascend.com>
90072
90073         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90074
90075 1998-05-09  Jim Meyering  <meyering@ascend.com>
90076
90077         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90078         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90079         with automake.
90080
90081         * m4/ssize_t.m4: New file.
90082         * m4/mktime.m4: Remove file -- the new automake has this now.
90083
90084 1998-04-26  Jim Meyering  <meyering@ascend.com>
90085
90086         * m4/assert.m4: New file.
90087         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90088
90089 1998-04-05  Jim Meyering  <meyering@ascend.com>
90090
90091         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90092         (jm_PREREQ): Use it here.
90093
90094 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90095
90096         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90097         in acconfig.h.
90098
90099 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90100
90101         * m4/prereq.m4: New file.
90102         * m4/error.m4: New file.
90103         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90104
90105 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90106
90107         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90108         cache-check for the same variable -- that defeated the purpose of
90109         the test; the test program was never run.  This was a problem only
90110         on systems with losing getline functions -- HP-UX 10.20 is one.
90111         Reported by Bjorn Helgaas.
90112
90113 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90114
90115         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90116
90117 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90118
90119         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90120
90121         * m4/const.m4: New file.  Use an initializer in this declaration
90122         typedef int charset[2]; const charset x;
90123         Reported by Bob Glickstein.
90124
90125 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90126
90127         * m4/chown.m4: Fix reversed types on -1 args to chown.
90128         From Kaveh Ghazi.
90129
90130 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90131
90132         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90133         Add lseek and memchr.
90134
90135         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90136         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90137         have a 20-character limit on names.
90138
90139 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90140
90141         * m4/inttypes_h.m4: New file.
90142         * m4/uintmax_t.m4: New file.
90143         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90144
90145
90146         -----
90147
90148         Local Variables:
90149         coding: utf-8
90150         End:
90151
90152         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90153
90154         Copying and distribution of this file, with or without
90155         modification, are permitted provided the copyright notice
90156         and this notice are preserved.